Files
Angelica/src/main/java/net/coderbot/iris/gl/blending/BlendModeOverride.java
T
Jason Mitchell 6691511e17 More Caching (#242)
* More Caching
* Pull TextureTracker & TextureInfoCache out of Iris and into GLSM
* Cache more TextureInfo state
* GLSM: glTexParameter, glGetTexParameter(i|f), glGetTexLevelParameteri
* Move IrisRenderSystem -> GLSM.RenderSystem
* Ensure DSA works properly with GLSM
 * Further updates to DSA for texParameter/getTexParameter
* A few more cached fields for TextureInfo
* Properly handle deleteTextures
* Ensure anyone crazy enough to use an Int/FloatBuffer for single value params get redirected
* Add optional runtime disabling of GLSM
* Switch checkGLError from an inject to a redirect, hopefully fewer allocations
* Fewer allocations for clearBufferState
* Microoptimization for (setup|clear)BufferState
2024-01-27 15:52:57 -08:00

22 lines
478 B
Java

package net.coderbot.iris.gl.blending;
import com.gtnewhorizons.angelica.glsm.states.BlendState;
public class BlendModeOverride {
public static final BlendModeOverride OFF = new BlendModeOverride(null);
private final BlendState blendMode;
public BlendModeOverride(BlendState blendMode) {
this.blendMode = blendMode;
}
public void apply() {
BlendModeStorage.overrideBlend(this.blendMode);
}
public static void restore() {
BlendModeStorage.restoreBlend();
}
}