init
This commit is contained in:
commit
8084ac50b3
1629 changed files with 238620 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* This file is part of the Combatant Client distribution.
|
||||
* Copyright (c) 2026 pivosos2007.
|
||||
*
|
||||
* Licensed under the GNU General Public License v3.0.
|
||||
*/
|
||||
|
||||
package dev.loki.lovisual.mixins;
|
||||
|
||||
import com.mojang.blaze3d.GpuFormat;
|
||||
import com.mojang.blaze3d.systems.GpuDevice;
|
||||
import com.mojang.blaze3d.textures.GpuTexture;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import dev.loki.lovisual.mixininterface.IGpuDevice;
|
||||
import dev.loki.lovisual.mixininterface.IMsaaDevice;
|
||||
import dev.loki.lovisual.render.engine.core.CombatantRenderSystem;
|
||||
import dev.loki.lovisual.render.engine.rhi.scissor.GlobalScissorState;
|
||||
|
||||
@Mixin(GpuDevice.class)
|
||||
public abstract class GpuDeviceMixin implements IGpuDevice, IMsaaDevice {
|
||||
@Override
|
||||
public void combatant$pushScissor(int x, int y, int width, int height) {
|
||||
GlobalScissorState.push(x, y, width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void combatant$popScissor() {
|
||||
GlobalScissorState.pop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GpuTexture combatant$createMsaaTexture(String label, int usage, GpuFormat format, int width, int height, int samples) {
|
||||
return CombatantRenderSystem.rhi().msaa().createTexture(label, usage, format, width, height, samples);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue