mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-21 21:02:15 +00:00
* 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
18 lines
438 B
Java
18 lines
438 B
Java
package net.coderbot.iris.gl.blending;
|
|
|
|
import com.gtnewhorizons.angelica.glsm.states.BlendState;
|
|
|
|
public class BufferBlendOverride {
|
|
private final int drawBuffer;
|
|
private final BlendState blendMode;
|
|
|
|
public BufferBlendOverride(int drawBuffer, BlendState blendMode) {
|
|
this.drawBuffer = drawBuffer;
|
|
this.blendMode = blendMode;
|
|
}
|
|
|
|
public void apply() {
|
|
BlendModeStorage.overrideBufferBlend(this.drawBuffer, this.blendMode);
|
|
}
|
|
}
|