Package net.minecraft.client.gl
Class GlBackend
java.lang.Object
net.minecraft.client.gl.GlBackend
- All Implemented Interfaces:
GpuDevice
- Mappings:
Namespace Name named net/minecraft/client/gl/GlBackend
intermediary net/minecraft/class_10865
official fmd
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static boolean
protected static boolean
protected static boolean
protected static boolean
protected static boolean
protected static boolean
private final BufferManager
private final CommandEncoder
private final DebugLabelManager
private final BiFunction
<Identifier, ShaderType, String> private final GpuBufferManager
private static final Logger
private final int
private final Map
<RenderPipeline, CompiledShaderPipeline> private final Map
<GlBackend.ShaderKey, CompiledShader> private final int
private final VertexBufferManager
-
Constructor Summary
ConstructorsConstructorDescriptionGlBackend
(long contextId, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
protected CompiledShaderPipeline
compilePipelineCached
(RenderPipeline pipeline) private CompiledShaderPipeline
compileRenderPipeline
(RenderPipeline pipeline, BiFunction<Identifier, ShaderType, String> sourceRetriever) private CompiledShader
compileShader
(GlBackend.ShaderKey key, BiFunction<Identifier, ShaderType, String> sourceRetriever) protected CompiledShader
compileShader
(Identifier id, ShaderType type, Defines defines, BiFunction<Identifier, ShaderType, String> sourceRetriever) createBuffer
(@Nullable Supplier<String> labelGetter, int usage, int size) createBuffer
(@Nullable Supplier<String> labelGetter, int usage, ByteBuffer data) createTexture
(@Nullable String label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) createTexture
(@Nullable Supplier<String> labelGetter, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) createTextureView
(GpuTexture texture) createTextureView
(GpuTexture texture, int baseMipLevel, int mipLevels) private static int
int
int
boolean
private static void
precompilePipeline
(RenderPipeline renderPipeline, @Nullable BiFunction<Identifier, ShaderType, String> biFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.blaze3d.systems.GpuDevice
precompilePipeline
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gl/GlBackend;LOGGER:Lorg/slf4j/Logger;
intermediary field_57853
Lnet/minecraft/class_10865;field_57853:Lorg/slf4j/Logger;
official g
Lfmd;g:Lorg/slf4j/Logger;
-
allowGlArbVABinding
protected static boolean allowGlArbVABinding- Mappings:
Namespace Name Mixin selector named allowGlArbVABinding
Lnet/minecraft/client/gl/GlBackend;allowGlArbVABinding:Z
intermediary field_58035
Lnet/minecraft/class_10865;field_58035:Z
official a
Lfmd;a:Z
-
allowGlKhrDebug
protected static boolean allowGlKhrDebug- Mappings:
Namespace Name Mixin selector named allowGlKhrDebug
Lnet/minecraft/client/gl/GlBackend;allowGlKhrDebug:Z
intermediary field_58036
Lnet/minecraft/class_10865;field_58036:Z
official b
Lfmd;b:Z
-
allowExtDebugLabel
protected static boolean allowExtDebugLabel- Mappings:
Namespace Name Mixin selector named allowExtDebugLabel
Lnet/minecraft/client/gl/GlBackend;allowExtDebugLabel:Z
intermediary field_58037
Lnet/minecraft/class_10865;field_58037:Z
official c
Lfmd;c:Z
-
allowGlArbDebugOutput
protected static boolean allowGlArbDebugOutput- Mappings:
Namespace Name Mixin selector named allowGlArbDebugOutput
Lnet/minecraft/client/gl/GlBackend;allowGlArbDebugOutput:Z
intermediary field_58038
Lnet/minecraft/class_10865;field_58038:Z
official d
Lfmd;d:Z
-
allowGlArbDirectAccess
protected static boolean allowGlArbDirectAccess- Mappings:
Namespace Name Mixin selector named allowGlArbDirectAccess
Lnet/minecraft/client/gl/GlBackend;allowGlArbDirectAccess:Z
intermediary field_58039
Lnet/minecraft/class_10865;field_58039:Z
official e
Lfmd;e:Z
-
allowGlBufferStorage
protected static boolean allowGlBufferStorage- Mappings:
Namespace Name Mixin selector named allowGlBufferStorage
Lnet/minecraft/client/gl/GlBackend;allowGlBufferStorage:Z
intermediary field_60016
Lnet/minecraft/class_10865;field_60016:Z
official f
Lfmd;f:Z
-
commandEncoder
- Mappings:
Namespace Name Mixin selector named commandEncoder
Lnet/minecraft/client/gl/GlBackend;commandEncoder:Lcom/mojang/blaze3d/systems/CommandEncoder;
intermediary field_57854
Lnet/minecraft/class_10865;field_57854:Lcom/mojang/blaze3d/systems/CommandEncoder;
official h
Lfmd;h:Lcom/mojang/blaze3d/systems/CommandEncoder;
-
glDebug
- Mappings:
Namespace Name Mixin selector named glDebug
Lnet/minecraft/client/gl/GlBackend;glDebug:Lnet/minecraft/client/gl/GlDebug;
intermediary field_57855
Lnet/minecraft/class_10865;field_57855:Lnet/minecraft/class_1008;
official i
Lfmd;i:Lfmb;
-
debugLabelManager
- Mappings:
Namespace Name Mixin selector named debugLabelManager
Lnet/minecraft/client/gl/GlBackend;debugLabelManager:Lnet/minecraft/client/gl/DebugLabelManager;
intermediary field_57856
Lnet/minecraft/class_10865;field_57856:Lnet/minecraft/class_10861;
official j
Lfmd;j:Lfmc;
-
maxTextureSize
private final int maxTextureSize- Mappings:
Namespace Name Mixin selector named maxTextureSize
Lnet/minecraft/client/gl/GlBackend;maxTextureSize:I
intermediary field_57857
Lnet/minecraft/class_10865;field_57857:I
official k
Lfmd;k:I
-
bufferManager
- Mappings:
Namespace Name Mixin selector named bufferManager
Lnet/minecraft/client/gl/GlBackend;bufferManager:Lnet/minecraft/client/gl/BufferManager;
intermediary field_57858
Lnet/minecraft/class_10865;field_57858:Lnet/minecraft/class_10874;
official l
Lfmd;l:Lfly;
-
defaultShaderSourceGetter
- Mappings:
Namespace Name Mixin selector named defaultShaderSourceGetter
Lnet/minecraft/client/gl/GlBackend;defaultShaderSourceGetter:Ljava/util/function/BiFunction;
intermediary field_57859
Lnet/minecraft/class_10865;field_57859:Ljava/util/function/BiFunction;
official m
Lfmd;m:Ljava/util/function/BiFunction;
-
pipelineCompileCache
- Mappings:
Namespace Name Mixin selector named pipelineCompileCache
Lnet/minecraft/client/gl/GlBackend;pipelineCompileCache:Ljava/util/Map;
intermediary field_57860
Lnet/minecraft/class_10865;field_57860:Ljava/util/Map;
official n
Lfmd;n:Ljava/util/Map;
-
shaderCompileCache
- Mappings:
Namespace Name Mixin selector named shaderCompileCache
Lnet/minecraft/client/gl/GlBackend;shaderCompileCache:Ljava/util/Map;
intermediary field_57861
Lnet/minecraft/class_10865;field_57861:Ljava/util/Map;
official o
Lfmd;o:Ljava/util/Map;
-
vertexBufferManager
- Mappings:
Namespace Name Mixin selector named vertexBufferManager
Lnet/minecraft/client/gl/GlBackend;vertexBufferManager:Lnet/minecraft/client/gl/VertexBufferManager;
intermediary field_57862
Lnet/minecraft/class_10865;field_57862:Lnet/minecraft/class_10869;
official p
Lfmd;p:Lfmm;
-
gpuBufferManager
- Mappings:
Namespace Name Mixin selector named gpuBufferManager
Lnet/minecraft/client/gl/GlBackend;gpuBufferManager:Lnet/minecraft/client/gl/GpuBufferManager;
intermediary field_60017
Lnet/minecraft/class_10865;field_60017:Lnet/minecraft/class_11266;
official q
Lfmd;q:Lflx;
-
usedGlCapabilities
- Mappings:
Namespace Name Mixin selector named usedGlCapabilities
Lnet/minecraft/client/gl/GlBackend;usedGlCapabilities:Ljava/util/Set;
intermediary field_58040
Lnet/minecraft/class_10865;field_58040:Ljava/util/Set;
official r
Lfmd;r:Ljava/util/Set;
-
uniformOffsetAlignment
private final int uniformOffsetAlignment- Mappings:
Namespace Name Mixin selector named uniformOffsetAlignment
Lnet/minecraft/client/gl/GlBackend;uniformOffsetAlignment:I
intermediary field_60018
Lnet/minecraft/class_10865;field_60018:I
official s
Lfmd;s:I
-
-
Constructor Details
-
GlBackend
public GlBackend(long contextId, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gl/GlBackend;<init>(JIZLjava/util/function/BiFunction;Z)V
intermediary <init>
Lnet/minecraft/class_10865;<init>(JIZLjava/util/function/BiFunction;Z)V
official <init>
Lfmd;<init>(JIZLjava/util/function/BiFunction;Z)V
-
-
Method Details
-
getDebugLabelManager
- Mappings:
Namespace Name Mixin selector named getDebugLabelManager
Lnet/minecraft/client/gl/GlBackend;getDebugLabelManager()Lnet/minecraft/client/gl/DebugLabelManager;
intermediary method_68377
Lnet/minecraft/class_10865;method_68377()Lnet/minecraft/class_10861;
official a
Lfmd;a()Lfmc;
-
createCommandEncoder
- Specified by:
createCommandEncoder
in interfaceGpuDevice
-
createTexture
public GpuTexture createTexture(@Nullable @Nullable Supplier<String> labelGetter, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) - Specified by:
createTexture
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named createTexture
Lcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/util/function/Supplier;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
intermediary createTexture
Lcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/util/function/Supplier;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
official createTexture
Lcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/util/function/Supplier;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
-
createTexture
public GpuTexture createTexture(@Nullable @Nullable String label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) - Specified by:
createTexture
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named createTexture
Lcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/lang/String;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
intermediary createTexture
Lcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/lang/String;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
official createTexture
Lcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/lang/String;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
-
createTextureView
- Specified by:
createTextureView
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named createTextureView
Lcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;)Lcom/mojang/blaze3d/textures/GpuTextureView;
intermediary createTextureView
Lcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;)Lcom/mojang/blaze3d/textures/GpuTextureView;
official createTextureView
Lcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;)Lcom/mojang/blaze3d/textures/GpuTextureView;
-
createTextureView
- Specified by:
createTextureView
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named createTextureView
Lcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;II)Lcom/mojang/blaze3d/textures/GpuTextureView;
intermediary createTextureView
Lcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;II)Lcom/mojang/blaze3d/textures/GpuTextureView;
official createTextureView
Lcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;II)Lcom/mojang/blaze3d/textures/GpuTextureView;
-
createBuffer
public GpuBuffer createBuffer(@Nullable @Nullable Supplier<String> labelGetter, int usage, int size) - Specified by:
createBuffer
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named createBuffer
Lcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;II)Lcom/mojang/blaze3d/buffers/GpuBuffer;
intermediary createBuffer
Lcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;II)Lcom/mojang/blaze3d/buffers/GpuBuffer;
official createBuffer
Lcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;II)Lcom/mojang/blaze3d/buffers/GpuBuffer;
-
createBuffer
public GpuBuffer createBuffer(@Nullable @Nullable Supplier<String> labelGetter, int usage, ByteBuffer data) - Specified by:
createBuffer
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named createBuffer
Lcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;ILjava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
intermediary createBuffer
Lcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;ILjava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
official createBuffer
Lcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;ILjava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
-
getImplementationInformation
- Specified by:
getImplementationInformation
in interfaceGpuDevice
-
getLastDebugMessages
- Specified by:
getLastDebugMessages
in interfaceGpuDevice
-
isDebuggingEnabled
public boolean isDebuggingEnabled()- Specified by:
isDebuggingEnabled
in interfaceGpuDevice
-
getRenderer
- Specified by:
getRenderer
in interfaceGpuDevice
-
getVendor
-
getBackendName
- Specified by:
getBackendName
in interfaceGpuDevice
-
getVersion
- Specified by:
getVersion
in interfaceGpuDevice
-
determineMaxTextureSize
private static int determineMaxTextureSize()- Mappings:
Namespace Name Mixin selector named determineMaxTextureSize
Lnet/minecraft/client/gl/GlBackend;determineMaxTextureSize()I
intermediary method_68403
Lnet/minecraft/class_10865;method_68403()I
official e
Lfmd;e()I
-
getMaxTextureSize
public int getMaxTextureSize()- Specified by:
getMaxTextureSize
in interfaceGpuDevice
-
getUniformOffsetAlignment
public int getUniformOffsetAlignment()- Specified by:
getUniformOffsetAlignment
in interfaceGpuDevice
-
clearPipelineCache
public void clearPipelineCache()- Specified by:
clearPipelineCache
in interfaceGpuDevice
-
method_72241
private static void method_72241()- Mappings:
Namespace Name Mixin selector named method_72241
Lnet/minecraft/client/gl/GlBackend;method_72241()V
intermediary method_72241
Lnet/minecraft/class_10865;method_72241()V
official f
Lfmd;f()V
-
getEnabledExtensions
- Specified by:
getEnabledExtensions
in interfaceGpuDevice
-
close
public void close() -
getBufferManager
- Mappings:
Namespace Name Mixin selector named getBufferManager
Lnet/minecraft/client/gl/GlBackend;getBufferManager()Lnet/minecraft/client/gl/BufferManager;
intermediary method_68401
Lnet/minecraft/class_10865;method_68401()Lnet/minecraft/class_10874;
official b
Lfmd;b()Lfly;
-
compilePipelineCached
- Mappings:
Namespace Name Mixin selector named compilePipelineCached
Lnet/minecraft/client/gl/GlBackend;compilePipelineCached(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Lnet/minecraft/client/gl/CompiledShaderPipeline;
intermediary method_68381
Lnet/minecraft/class_10865;method_68381(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Lnet/minecraft/class_10867;
official a
Lfmd;a(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Lfmh;
-
compileShader
protected CompiledShader compileShader(Identifier id, ShaderType type, Defines defines, BiFunction<Identifier, ShaderType, String> sourceRetriever) - Mappings:
Namespace Name Mixin selector named compileShader
Lnet/minecraft/client/gl/GlBackend;compileShader(Lnet/minecraft/util/Identifier;Lcom/mojang/blaze3d/shaders/ShaderType;Lnet/minecraft/client/gl/Defines;Ljava/util/function/BiFunction;)Lnet/minecraft/client/gl/CompiledShader;
intermediary method_68378
Lnet/minecraft/class_10865;method_68378(Lnet/minecraft/class_2960;Lcom/mojang/blaze3d/shaders/ShaderType;Lnet/minecraft/class_10149;Ljava/util/function/BiFunction;)Lnet/minecraft/class_10141;
official a
Lfmd;a(Lame;Lcom/mojang/blaze3d/shaders/ShaderType;Lgye;Ljava/util/function/BiFunction;)Lfmi;
-
precompilePipeline
public CompiledShaderPipeline precompilePipeline(RenderPipeline renderPipeline, @Nullable @Nullable BiFunction<Identifier, ShaderType, String> biFunction) - Specified by:
precompilePipeline
in interfaceGpuDevice
- Mappings:
Namespace Name Mixin selector named precompilePipeline
Lnet/minecraft/client/gl/GlBackend;precompilePipeline(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Ljava/util/function/BiFunction;)Lnet/minecraft/client/gl/CompiledShaderPipeline;
intermediary method_68383
Lnet/minecraft/class_10865;method_68383(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Ljava/util/function/BiFunction;)Lnet/minecraft/class_10867;
official a
Lfmd;a(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Ljava/util/function/BiFunction;)Lfmh;
-
compileShader
private CompiledShader compileShader(GlBackend.ShaderKey key, BiFunction<Identifier, ShaderType, String> sourceRetriever) - Mappings:
Namespace Name Mixin selector named compileShader
Lnet/minecraft/client/gl/GlBackend;compileShader(Lnet/minecraft/client/gl/GlBackend$ShaderKey;Ljava/util/function/BiFunction;)Lnet/minecraft/client/gl/CompiledShader;
intermediary method_68379
Lnet/minecraft/class_10865;method_68379(Lnet/minecraft/class_10865$class_10154;Ljava/util/function/BiFunction;)Lnet/minecraft/class_10141;
official a
Lfmd;a(Lfmd$a;Ljava/util/function/BiFunction;)Lfmi;
-
compileRenderPipeline
private CompiledShaderPipeline compileRenderPipeline(RenderPipeline pipeline, BiFunction<Identifier, ShaderType, String> sourceRetriever) - Mappings:
Namespace Name Mixin selector named compileRenderPipeline
Lnet/minecraft/client/gl/GlBackend;compileRenderPipeline(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Ljava/util/function/BiFunction;)Lnet/minecraft/client/gl/CompiledShaderPipeline;
intermediary method_68392
Lnet/minecraft/class_10865;method_68392(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Ljava/util/function/BiFunction;)Lnet/minecraft/class_10867;
official b
Lfmd;b(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Ljava/util/function/BiFunction;)Lfmh;
-
getVertexBufferManager
- Mappings:
Namespace Name Mixin selector named getVertexBufferManager
Lnet/minecraft/client/gl/GlBackend;getVertexBufferManager()Lnet/minecraft/client/gl/VertexBufferManager;
intermediary method_68402
Lnet/minecraft/class_10865;method_68402()Lnet/minecraft/class_10869;
official c
Lfmd;c()Lfmm;
-
getGpuBufferManager
- Mappings:
Namespace Name Mixin selector named getGpuBufferManager
Lnet/minecraft/client/gl/GlBackend;getGpuBufferManager()Lnet/minecraft/client/gl/GpuBufferManager;
intermediary method_71032
Lnet/minecraft/class_10865;method_71032()Lnet/minecraft/class_11266;
official d
Lfmd;d()Lflx;
-