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/GlBackendintermediary net/minecraft/class_10865official fvm
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected static booleanprotected static booleanprotected static booleanprotected static booleanprotected static booleanprivate final BufferManagerprivate final CommandEncoderprivate final DebugLabelManagerprivate final ShaderSourceGetterprivate final GlDebugprivate final GpuBufferManagerprivate static final Loggerprivate final intprivate final intprivate final Map<RenderPipeline, CompiledShaderPipeline> private final Map<GlBackend.ShaderKey, CompiledShader> private final intprivate final VertexBufferManager -
Constructor Summary
ConstructorsConstructorDescriptionGlBackend(long contextId, int debugVerbosity, boolean sync, ShaderSourceGetter defaultShaderSourceGetter, boolean renderDebugLabels) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidvoidvoidclose()protected CompiledShaderPipelinecompilePipelineCached(RenderPipeline pipeline) private ShaderProgramcompileProgram(RenderPipeline pipeline, ShaderSourceGetter sourceGetter) private CompiledShaderPipelinecompileRenderPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter) private CompiledShadercompileShader(GlBackend.ShaderKey key, ShaderSourceGetter sourceGetter) protected CompiledShadercompileShader(Identifier id, ShaderType type, Defines defines, ShaderSourceGetter sourceGetter) createBuffer(@Nullable Supplier<String> labelGetter, int usage, int size) createBuffer(@Nullable Supplier<String> labelGetter, int usage, ByteBuffer data) createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilterMode, FilterMode magFilterMode, int maxAnisotropy) 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 intintintintbooleanprecompilePipeline(RenderPipeline renderPipeline, @Nullable ShaderSourceGetter shaderSourceGetter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.blaze3d.systems.GpuDevice
precompilePipeline
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/gl/GlBackend;LOGGER:Lorg/slf4j/Logger;intermediary field_57853Lnet/minecraft/class_10865;field_57853:Lorg/slf4j/Logger;official gLfvm;g:Lorg/slf4j/Logger;
-
allowGlArbVABinding
protected static boolean allowGlArbVABinding- Mappings:
Namespace Name Mixin selector named allowGlArbVABindingLnet/minecraft/client/gl/GlBackend;allowGlArbVABinding:Zintermediary field_58035Lnet/minecraft/class_10865;field_58035:Zofficial aLfvm;a:Z
-
allowGlKhrDebug
protected static boolean allowGlKhrDebug- Mappings:
Namespace Name Mixin selector named allowGlKhrDebugLnet/minecraft/client/gl/GlBackend;allowGlKhrDebug:Zintermediary field_58036Lnet/minecraft/class_10865;field_58036:Zofficial bLfvm;b:Z
-
allowExtDebugLabel
protected static boolean allowExtDebugLabel- Mappings:
Namespace Name Mixin selector named allowExtDebugLabelLnet/minecraft/client/gl/GlBackend;allowExtDebugLabel:Zintermediary field_58037Lnet/minecraft/class_10865;field_58037:Zofficial cLfvm;c:Z
-
allowGlArbDebugOutput
protected static boolean allowGlArbDebugOutput- Mappings:
Namespace Name Mixin selector named allowGlArbDebugOutputLnet/minecraft/client/gl/GlBackend;allowGlArbDebugOutput:Zintermediary field_58038Lnet/minecraft/class_10865;field_58038:Zofficial dLfvm;d:Z
-
allowGlArbDirectAccess
protected static boolean allowGlArbDirectAccess- Mappings:
Namespace Name Mixin selector named allowGlArbDirectAccessLnet/minecraft/client/gl/GlBackend;allowGlArbDirectAccess:Zintermediary field_58039Lnet/minecraft/class_10865;field_58039:Zofficial eLfvm;e:Z
-
allowGlBufferStorage
protected static boolean allowGlBufferStorage- Mappings:
Namespace Name Mixin selector named allowGlBufferStorageLnet/minecraft/client/gl/GlBackend;allowGlBufferStorage:Zintermediary field_60016Lnet/minecraft/class_10865;field_60016:Zofficial fLfvm;f:Z
-
commandEncoder
- Mappings:
Namespace Name Mixin selector named commandEncoderLnet/minecraft/client/gl/GlBackend;commandEncoder:Lcom/mojang/blaze3d/systems/CommandEncoder;intermediary field_57854Lnet/minecraft/class_10865;field_57854:Lcom/mojang/blaze3d/systems/CommandEncoder;official hLfvm;h:Lcom/mojang/blaze3d/systems/CommandEncoder;
-
glDebug
- Mappings:
Namespace Name Mixin selector named glDebugLnet/minecraft/client/gl/GlBackend;glDebug:Lnet/minecraft/client/gl/GlDebug;intermediary field_57855Lnet/minecraft/class_10865;field_57855:Lnet/minecraft/class_1008;official iLfvm;i:Lfvk;
-
debugLabelManager
- Mappings:
Namespace Name Mixin selector named debugLabelManagerLnet/minecraft/client/gl/GlBackend;debugLabelManager:Lnet/minecraft/client/gl/DebugLabelManager;intermediary field_57856Lnet/minecraft/class_10865;field_57856:Lnet/minecraft/class_10861;official jLfvm;j:Lfvl;
-
maxTextureSize
private final int maxTextureSize- Mappings:
Namespace Name Mixin selector named maxTextureSizeLnet/minecraft/client/gl/GlBackend;maxTextureSize:Iintermediary field_57857Lnet/minecraft/class_10865;field_57857:Iofficial kLfvm;k:I
-
bufferManager
- Mappings:
Namespace Name Mixin selector named bufferManagerLnet/minecraft/client/gl/GlBackend;bufferManager:Lnet/minecraft/client/gl/BufferManager;intermediary field_57858Lnet/minecraft/class_10865;field_57858:Lnet/minecraft/class_10874;official lLfvm;l:Lfvh;
-
defaultShaderSourceGetter
- Mappings:
Namespace Name Mixin selector named defaultShaderSourceGetterLnet/minecraft/client/gl/GlBackend;defaultShaderSourceGetter:Lnet/minecraft/client/gl/ShaderSourceGetter;intermediary field_57859Lnet/minecraft/class_10865;field_57859:Lnet/minecraft/class_12289;official mLfvm;m:Lfxg;
-
pipelineCompileCache
- Mappings:
Namespace Name Mixin selector named pipelineCompileCacheLnet/minecraft/client/gl/GlBackend;pipelineCompileCache:Ljava/util/Map;intermediary field_57860Lnet/minecraft/class_10865;field_57860:Ljava/util/Map;official nLfvm;n:Ljava/util/Map;
-
shaderCompileCache
- Mappings:
Namespace Name Mixin selector named shaderCompileCacheLnet/minecraft/client/gl/GlBackend;shaderCompileCache:Ljava/util/Map;intermediary field_57861Lnet/minecraft/class_10865;field_57861:Ljava/util/Map;official oLfvm;o:Ljava/util/Map;
-
vertexBufferManager
- Mappings:
Namespace Name Mixin selector named vertexBufferManagerLnet/minecraft/client/gl/GlBackend;vertexBufferManager:Lnet/minecraft/client/gl/VertexBufferManager;intermediary field_57862Lnet/minecraft/class_10865;field_57862:Lnet/minecraft/class_10869;official pLfvm;p:Lfvx;
-
gpuBufferManager
- Mappings:
Namespace Name Mixin selector named gpuBufferManagerLnet/minecraft/client/gl/GlBackend;gpuBufferManager:Lnet/minecraft/client/gl/GpuBufferManager;intermediary field_60017Lnet/minecraft/class_10865;field_60017:Lnet/minecraft/class_11266;official qLfvm;q:Lfvg;
-
usedGlCapabilities
- Mappings:
Namespace Name Mixin selector named usedGlCapabilitiesLnet/minecraft/client/gl/GlBackend;usedGlCapabilities:Ljava/util/Set;intermediary field_58040Lnet/minecraft/class_10865;field_58040:Ljava/util/Set;official rLfvm;r:Ljava/util/Set;
-
uniformOffsetAlignment
private final int uniformOffsetAlignment- Mappings:
Namespace Name Mixin selector named uniformOffsetAlignmentLnet/minecraft/client/gl/GlBackend;uniformOffsetAlignment:Iintermediary field_60018Lnet/minecraft/class_10865;field_60018:Iofficial sLfvm;s:I
-
maxSupportedAnisotropy
private final int maxSupportedAnisotropy- Mappings:
Namespace Name Mixin selector named maxSupportedAnisotropyLnet/minecraft/client/gl/GlBackend;maxSupportedAnisotropy:Iintermediary field_64185Lnet/minecraft/class_10865;field_64185:Iofficial tLfvm;t:I
-
-
Constructor Details
-
GlBackend
public GlBackend(long contextId, int debugVerbosity, boolean sync, ShaderSourceGetter defaultShaderSourceGetter, boolean renderDebugLabels) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gl/GlBackend;<init>(JIZLnet/minecraft/client/gl/ShaderSourceGetter;Z)Vintermediary <init>Lnet/minecraft/class_10865;<init>(JIZLnet/minecraft/class_12289;Z)Vofficial <init>Lfvm;<init>(JIZLfxg;Z)V
-
-
Method Details
-
getDebugLabelManager
- Mappings:
Namespace Name Mixin selector named getDebugLabelManagerLnet/minecraft/client/gl/GlBackend;getDebugLabelManager()Lnet/minecraft/client/gl/DebugLabelManager;intermediary method_68377Lnet/minecraft/class_10865;method_68377()Lnet/minecraft/class_10861;official aLfvm;a()Lfvl;
-
createCommandEncoder
- Specified by:
createCommandEncoderin interfaceGpuDevice
-
getMaxSupportedAnisotropy
public int getMaxSupportedAnisotropy()- Specified by:
getMaxSupportedAnisotropyin interfaceGpuDevice
-
createSampler
public GpuSampler createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilterMode, FilterMode magFilterMode, int maxAnisotropy) - Specified by:
createSamplerin interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createSamplerLcom/mojang/blaze3d/systems/GpuDevice;createSampler(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;I)Lnet/minecraft/client/gl/GpuSampler;intermediary createSamplerLcom/mojang/blaze3d/systems/GpuDevice;createSampler(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;I)Lnet/minecraft/class_12137;official createSamplerLcom/mojang/blaze3d/systems/GpuDevice;createSampler(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;I)Lfxn;
-
createTexture
public GpuTexture createTexture(@Nullable Supplier<String> labelGetter, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) - Specified by:
createTexturein interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createTextureLcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/util/function/Supplier;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;intermediary createTextureLcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/util/function/Supplier;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;official createTextureLcom/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 String label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) - Specified by:
createTexturein interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createTextureLcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/lang/String;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;intermediary createTextureLcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/lang/String;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;official createTextureLcom/mojang/blaze3d/systems/GpuDevice;createTexture(Ljava/lang/String;ILcom/mojang/blaze3d/textures/TextureFormat;IIII)Lcom/mojang/blaze3d/textures/GpuTexture;
-
createTextureView
- Specified by:
createTextureViewin interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createTextureViewLcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;)Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary createTextureViewLcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;)Lcom/mojang/blaze3d/textures/GpuTextureView;official createTextureViewLcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;)Lcom/mojang/blaze3d/textures/GpuTextureView;
-
createTextureView
- Specified by:
createTextureViewin interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createTextureViewLcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;II)Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary createTextureViewLcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;II)Lcom/mojang/blaze3d/textures/GpuTextureView;official createTextureViewLcom/mojang/blaze3d/systems/GpuDevice;createTextureView(Lcom/mojang/blaze3d/textures/GpuTexture;II)Lcom/mojang/blaze3d/textures/GpuTextureView;
-
createBuffer
- Specified by:
createBufferin interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createBufferLcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;II)Lcom/mojang/blaze3d/buffers/GpuBuffer;intermediary createBufferLcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;II)Lcom/mojang/blaze3d/buffers/GpuBuffer;official createBufferLcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;II)Lcom/mojang/blaze3d/buffers/GpuBuffer;
-
createBuffer
- Specified by:
createBufferin interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named createBufferLcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;ILjava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;intermediary createBufferLcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;ILjava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;official createBufferLcom/mojang/blaze3d/systems/GpuDevice;createBuffer(Ljava/util/function/Supplier;ILjava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
-
getImplementationInformation
- Specified by:
getImplementationInformationin interfaceGpuDevice
-
getLastDebugMessages
- Specified by:
getLastDebugMessagesin interfaceGpuDevice
-
isDebuggingEnabled
public boolean isDebuggingEnabled()- Specified by:
isDebuggingEnabledin interfaceGpuDevice
-
getRenderer
- Specified by:
getRendererin interfaceGpuDevice
-
getVendor
-
getBackendName
- Specified by:
getBackendNamein interfaceGpuDevice
-
getVersion
- Specified by:
getVersionin interfaceGpuDevice
-
determineMaxTextureSize
private static int determineMaxTextureSize()- Mappings:
Namespace Name Mixin selector named determineMaxTextureSizeLnet/minecraft/client/gl/GlBackend;determineMaxTextureSize()Iintermediary method_68403Lnet/minecraft/class_10865;method_68403()Iofficial eLfvm;e()I
-
getMaxTextureSize
public int getMaxTextureSize()- Specified by:
getMaxTextureSizein interfaceGpuDevice
-
getUniformOffsetAlignment
public int getUniformOffsetAlignment()- Specified by:
getUniformOffsetAlignmentin interfaceGpuDevice
-
clearPipelineCache
public void clearPipelineCache()- Specified by:
clearPipelineCachein interfaceGpuDevice
-
applyAmdCleanupHack
private static void applyAmdCleanupHack()- Mappings:
Namespace Name Mixin selector named applyAmdCleanupHackLnet/minecraft/client/gl/GlBackend;applyAmdCleanupHack()Vintermediary method_72699Lnet/minecraft/class_10865;method_72699()Vofficial fLfvm;f()V
-
getEnabledExtensions
- Specified by:
getEnabledExtensionsin interfaceGpuDevice
-
close
public void close() -
getBufferManager
- Mappings:
Namespace Name Mixin selector named getBufferManagerLnet/minecraft/client/gl/GlBackend;getBufferManager()Lnet/minecraft/client/gl/BufferManager;intermediary method_68401Lnet/minecraft/class_10865;method_68401()Lnet/minecraft/class_10874;official bLfvm;b()Lfvh;
-
compilePipelineCached
- Mappings:
Namespace Name Mixin selector named compilePipelineCachedLnet/minecraft/client/gl/GlBackend;compilePipelineCached(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Lnet/minecraft/client/gl/CompiledShaderPipeline;intermediary method_68381Lnet/minecraft/class_10865;method_68381(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Lnet/minecraft/class_10867;official aLfvm;a(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Lfvq;
-
compileShader
protected CompiledShader compileShader(Identifier id, ShaderType type, Defines defines, ShaderSourceGetter sourceGetter) - Mappings:
Namespace Name Mixin selector named compileShaderLnet/minecraft/client/gl/GlBackend;compileShader(Lnet/minecraft/util/Identifier;Lcom/mojang/blaze3d/shaders/ShaderType;Lnet/minecraft/client/gl/Defines;Lnet/minecraft/client/gl/ShaderSourceGetter;)Lnet/minecraft/client/gl/CompiledShader;intermediary method_68378Lnet/minecraft/class_10865;method_68378(Lnet/minecraft/class_2960;Lcom/mojang/blaze3d/shaders/ShaderType;Lnet/minecraft/class_10149;Lnet/minecraft/class_12289;)Lnet/minecraft/class_10141;official aLfvm;a(Lamu;Lcom/mojang/blaze3d/shaders/ShaderType;Lhks;Lfxg;)Lfvs;
-
precompilePipeline
public CompiledShaderPipeline precompilePipeline(RenderPipeline renderPipeline, @Nullable ShaderSourceGetter shaderSourceGetter) - Specified by:
precompilePipelinein interfaceGpuDevice- Mappings:
Namespace Name Mixin selector named precompilePipelineLnet/minecraft/client/gl/GlBackend;precompilePipeline(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/client/gl/ShaderSourceGetter;)Lnet/minecraft/client/gl/CompiledShaderPipeline;intermediary method_68383Lnet/minecraft/class_10865;method_68383(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/class_12289;)Lnet/minecraft/class_10867;official aLfvm;a(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lfxg;)Lfvq;
-
compileShader
- Mappings:
Namespace Name Mixin selector named compileShaderLnet/minecraft/client/gl/GlBackend;compileShader(Lnet/minecraft/client/gl/GlBackend$ShaderKey;Lnet/minecraft/client/gl/ShaderSourceGetter;)Lnet/minecraft/client/gl/CompiledShader;intermediary method_68379Lnet/minecraft/class_10865;method_68379(Lnet/minecraft/class_10865$class_10154;Lnet/minecraft/class_12289;)Lnet/minecraft/class_10141;official aLfvm;a(Lfvm$a;Lfxg;)Lfvs;
-
compileProgram
- Mappings:
Namespace Name Mixin selector named compileProgramLnet/minecraft/client/gl/GlBackend;compileProgram(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/client/gl/ShaderSourceGetter;)Lnet/minecraft/client/gl/ShaderProgram;intermediary method_76229Lnet/minecraft/class_10865;method_76229(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/class_12289;)Lnet/minecraft/class_5944;official bLfvm;b(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lfxg;)Lfvo;
-
compileRenderPipeline
private CompiledShaderPipeline compileRenderPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter) - Mappings:
Namespace Name Mixin selector named compileRenderPipelineLnet/minecraft/client/gl/GlBackend;compileRenderPipeline(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/client/gl/ShaderSourceGetter;)Lnet/minecraft/client/gl/CompiledShaderPipeline;intermediary method_68392Lnet/minecraft/class_10865;method_68392(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/class_12289;)Lnet/minecraft/class_10867;official cLfvm;c(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lfxg;)Lfvq;
-
getVertexBufferManager
- Mappings:
Namespace Name Mixin selector named getVertexBufferManagerLnet/minecraft/client/gl/GlBackend;getVertexBufferManager()Lnet/minecraft/client/gl/VertexBufferManager;intermediary method_68402Lnet/minecraft/class_10865;method_68402()Lnet/minecraft/class_10869;official cLfvm;c()Lfvx;
-
getGpuBufferManager
- Mappings:
Namespace Name Mixin selector named getGpuBufferManagerLnet/minecraft/client/gl/GlBackend;getGpuBufferManager()Lnet/minecraft/client/gl/GpuBufferManager;intermediary method_71032Lnet/minecraft/class_10865;method_71032()Lnet/minecraft/class_11266;official dLfvm;d()Lfvg;
-