net.minecraft.client.gl

class GlBackend

implements GpuBackend

com.mojang.blaze3d.opengl.GlDevice
net.minecraft.class_10865
net.minecraft.client.gl.GlBackend

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_57853
LOGGER
protected static boolean
USE_GL_ARB_vertex_attrib_binding
field_58035
allowGlArbVABinding
protected static boolean
USE_GL_KHR_debug
field_58036
allowGlKhrDebug
protected static boolean
USE_GL_EXT_debug_label
field_58037
allowExtDebugLabel
protected static boolean
USE_GL_ARB_debug_output
field_58038
allowGlArbDebugOutput
protected static boolean
USE_GL_ARB_direct_state_access
field_58039
allowGlArbDirectAccess
protected static boolean
USE_GL_ARB_buffer_storage
field_60016
allowGlBufferStorage
private final CommandEncoderBackend
encoder
field_57854
commandEncoder
private final GlDebug
debugLog
field_57855
glDebug
private final DebugLabelManager
debugLabels
field_57856
debugLabelManager
private final int
maxSupportedTextureSize
field_57857
maxTextureSize
private final BufferManager
directStateAccess
field_57858
bufferManager
private final ShaderSourceGetter
defaultShaderSource
field_57859
defaultShaderSourceGetter
private final Map<RenderPipeline, CompiledShaderPipeline>
pipelineCache
field_57860
pipelineCompileCache
private final Map<GlBackend$ShaderKey, CompiledShader>
shaderCache
field_57861
shaderCompileCache
private final VertexBufferManager
vertexArrayCache
field_57862
vertexBufferManager
private final GpuBufferManager
bufferStorage
field_60017
gpuBufferManager
private final Set<String>
enabledExtensions
field_58040
usedGlCapabilities
private final int
uniformOffsetAlignment
field_60018
uniformOffsetAlignment
private final int
maxSupportedAnisotropy
field_64185
maxSupportedAnisotropy
private final long
windowHandle
field_1_23
contextId

Constructor summary

ModifierConstructor
public (long contextId, ShaderSourceGetter defaultShaderSourceGetter, DebugOptions debugOptions)

Method summary

Modifier and TypeMethod
public DebugLabelManager
debugLabels()
method_68377()
getDebugLabelManager()
public CommandEncoderBackend
createCommandEncoder()
method_1_1288()
createBaseCommandEncoder()
public int
getMaxSupportedAnisotropy()
method_1_1298()
getMaxSupportedAnisotropy()
public GpuSampler
createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilter, FilterMode magFilter, int maxAnisotropy, OptionalDouble maxLod)
method_1_1289(com.mojang.blaze3d.textures.AddressMode arg0, com.mojang.blaze3d.textures.AddressMode arg1, com.mojang.blaze3d.textures.FilterMode arg2, com.mojang.blaze3d.textures.FilterMode arg3, int arg4, OptionalDouble arg5)
createSampler(com.mojang.blaze3d.textures.AddressMode arg0, com.mojang.blaze3d.textures.AddressMode arg1, com.mojang.blaze3d.textures.FilterMode arg2, com.mojang.blaze3d.textures.FilterMode arg3, int arg4, OptionalDouble arg5)
public GpuTexture
createTexture(Supplier<String> label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels)
method_1_1291(Supplier<String> arg0, int arg1, TextureFormat arg2, int arg3, int arg4, int arg5, int arg6)
createTexture(Supplier<String> arg0, int arg1, TextureFormat arg2, int arg3, int arg4, int arg5, int arg6)
public GpuTexture
createTexture(String label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels)
method_1_1290(String arg0, int arg1, TextureFormat arg2, int arg3, int arg4, int arg5, int arg6)
createTexture(String arg0, int arg1, TextureFormat arg2, int arg3, int arg4, int arg5, int arg6)
public GpuTextureView
createTextureView(GpuTexture texture)
method_1_1292(GpuTexture arg0)
createTextureView(GpuTexture arg0)
public GpuTextureView
createTextureView(GpuTexture texture, int baseMipLevel, int mipLevels)
method_1_1293(GpuTexture arg0, int arg1, int arg2)
createTextureView(GpuTexture arg0, int arg1, int arg2)
public GpuBuffer
createBuffer(Supplier<String> label, int usage, long size)
method_1_1286(Supplier<String> arg0, int arg1, long arg2)
createBuffer(Supplier<String> arg0, int arg1, long arg2)
public GpuBuffer
createBuffer(Supplier<String> label, int usage, ByteBuffer data)
method_1_1287(Supplier<String> arg0, int arg1, ByteBuffer arg2)
createBuffer(Supplier<String> arg0, int arg1, ByteBuffer arg2)
public String
getImplementationInformation()
method_1_1296()
getImplementationInformation()
public List<String>
getLastDebugMessages()
method_1_1297()
getLastDebugMessages()
public boolean
isDebuggingEnabled()
method_1_1304()
isDebuggingEnabled()
public String
getRenderer()
method_1_1300()
getRenderer()
public String
getVendor()
method_1_1302()
getVendor()
public String
getBackendName()
method_1_1294()
getBackendName()
public String
getVersion()
method_1_1303()
getVersion()
private static int
getMaxSupportedTextureSize()
method_68403()
determineMaxTextureSize()
public int
getMaxTextureSize()
method_1_1299()
getMaxTextureSize()
public int
getUniformOffsetAlignment()
method_1_1301()
getUniformOffsetAlignment()
public void
clearPipelineCache()
method_1_1284()
clearPipelineCache()
private static void
sacrificeShaderToOpenGlAndAmd()
method_72699()
applyAmdCleanupHack()
public List<String>
getEnabledExtensions()
method_1_1295()
getEnabledExtensions()
public void
close()
method_1_1285()
close()
public void
setVsync(boolean enabled)
method_1_1308(boolean arg0)
setVsync(boolean arg0)
public void
presentFrame()
method_1_1307()
presentFrame()
public boolean
isZZeroToOne()
method_1_1305()
isZZeroToOne()
public BufferManager
directStateAccess()
method_68401()
getBufferManager()
protected CompiledShaderPipeline
getOrCompilePipeline(RenderPipeline pipeline)
method_68381(RenderPipeline arg0)
compilePipelineCached(RenderPipeline pipeline)
protected CompiledShader
getOrCompileShader(Identifier id, ShaderType type, ShaderDefines defines, ShaderSource shaderSource)
method_68378(class_2960 arg0, ShaderType arg1, class_10149 arg2, class_12289 arg3)
compileShader(Identifier id, ShaderType type, Defines defines, ShaderSourceGetter sourceGetter)
public CompiledShaderPipeline
precompilePipeline(RenderPipeline pipeline, ShaderSource customShaderSource)
method_1_1306(RenderPipeline arg0, class_12289 arg1)
precompilePipeline(RenderPipeline arg0, ShaderSourceGetter arg1)
private CompiledShader
compileShader(GlDevice$ShaderCompilationKey key, ShaderSource shaderSource)
method_68379(class_10865$class_10154 arg0, class_12289 arg1)
compileShader(GlBackend$ShaderKey key, ShaderSourceGetter sourceGetter)
private ShaderProgram
compileProgram(RenderPipeline pipeline, ShaderSource shaderSource)
method_76229(RenderPipeline arg0, class_12289 arg1)
compileProgram(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
private CompiledShaderPipeline
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
method_68392(RenderPipeline arg0, class_12289 arg1)
compileRenderPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
public VertexBufferManager
vertexArrayCache()
method_68402()
getVertexBufferManager()
public GpuBufferManager
getBufferStorage()
method_71032()
getGpuBufferManager()
public CompiledRenderPipeline
precompilePipeline(RenderPipeline pipeline, ShaderSource customShaderSource)
method_1_1306(RenderPipeline arg0, class_12289 arg1)
precompilePipeline(RenderPipeline arg0, ShaderSourceGetter arg1)
private CompiledShaderPipeline
lambda$precompilePipeline$0(ShaderSource arg0, RenderPipeline arg1)
method_68384(class_12289 arg0, RenderPipeline arg1)
method_68384(ShaderSourceGetter arg0, RenderPipeline p)
private CompiledShader
lambda$getOrCompileShader$0(ShaderSource arg0, GlDevice$ShaderCompilationKey arg1)
method_68380(class_12289 arg0, class_10865$class_10154 arg1)
method_68380(ShaderSourceGetter arg0, GlBackend$ShaderKey key)
private CompiledShaderPipeline
lambda$getOrCompilePipeline$0(RenderPipeline arg0)
method_68382(RenderPipeline arg0)
method_68382(RenderPipeline p)