net.minecraft.client.gl

class GlBackend

implements GpuBackend

com.mojang.blaze3d.opengl.GlDevice
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
LOGGER
field_57853
LOGGER
protected static boolean
USE_GL_ARB_vertex_attrib_binding
USE_GL_ARB_vertex_attrib_binding
field_58035
allowGlArbVABinding
protected static boolean
USE_GL_KHR_debug
USE_GL_KHR_debug
field_58036
allowGlKhrDebug
protected static boolean
USE_GL_EXT_debug_label
USE_GL_EXT_debug_label
field_58037
allowExtDebugLabel
protected static boolean
USE_GL_ARB_debug_output
USE_GL_ARB_debug_output
field_58038
allowGlArbDebugOutput
protected static boolean
USE_GL_ARB_direct_state_access
USE_GL_ARB_direct_state_access
field_58039
allowGlArbDirectAccess
protected static boolean
USE_GL_ARB_buffer_storage
USE_GL_ARB_buffer_storage
field_60016
allowGlBufferStorage
protected static boolean
USE_GL_ARB_base_instance
USE_GL_ARB_base_instance
field_1_6380
allowGlArbBaseInstance
protected static boolean
USE_GL_ARB_draw_indirect
USE_GL_ARB_draw_indirect
field_1_6381
allowGlArbDrawIndirect
protected static boolean
USE_GL_ARB_multi_draw_indirect
USE_GL_ARB_multi_draw_indirect
field_1_6382
allowGlArbMultiDrawIndirect
protected static boolean
USE_GL_ARB_shader_draw_parameters
USE_GL_ARB_shader_draw_parameters
field_1_6383
allowGlArbShaderDrawParameters
private final GlCommandEncoderBackend
encoder
encoder
field_57854
commandEncoder
private final GlDebug
debugLog
debugLog
field_57855
glDebug
private final DebugLabelManager
debugLabels
debugLabels
field_57856
debugLabelManager
private final GlBufferManager
directStateAccess
directStateAccess
field_57858
bufferManager
private final ShaderSourceGetter
defaultShaderSource
defaultShaderSource
field_57859
defaultShaderSourceGetter
private final Map<RenderPipeline, GlCompiledRenderPipeline>
pipelineCache
pipelineCache
field_57860
pipelineCompileCache
private final Map<GlBackend$ShaderKey, GlCompiledShader>
shaderCache
shaderCache
field_57861
shaderCompileCache
private final GlFramebufferManager
frameBufferCache
frameBufferCache
field_1_6266
framebufferManager
private final VertexBufferManager
vertexArrayCache
vertexArrayCache
field_57862
vertexBufferManager
private final GpuBufferManager
bufferStorage
bufferStorage
field_60017
gpuBufferManager
private final GpuDeviceInfo
deviceInfo
deviceInfo
field_1_3390
deviceInfo

Constructor summary

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

Method summary

Modifier and TypeMethod
public DebugLabelManager
debugLabels()
debugLabels()
method_68377()
getDebugLabelManager()
public GpuSurfaceBackend
createSurface(long windowHandle)
createSurface(long windowHandle)
method_1_4219(long arg0)
createSurface(long arg0)
public CommandEncoderBackend
createCommandEncoder()
createCommandEncoder()
method_1_1288()
getCommandEncoder()
public GpuSampler
createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilter, FilterMode magFilter, int maxAnisotropy, OptionalDouble maxLod)
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, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
createTexture(Supplier<String> label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
method_1_1291(Supplier<String> arg0, int arg1, class_1_658 arg2, int arg3, int arg4, int arg5, int arg6)
createTexture(Supplier<String> arg0, int arg1, TexelFormat arg2, int arg3, int arg4, int arg5, int arg6)
public GpuTexture
createTexture(String label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
createTexture(String label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
method_1_1290(String arg0, int arg1, class_1_658 arg2, int arg3, int arg4, int arg5, int arg6)
createTexture(String arg0, int arg1, TexelFormat arg2, int arg3, int arg4, int arg5, int arg6)
public GpuTextureView
createTextureView(GpuTexture texture)
createTextureView(GpuTexture texture)
method_1_1292(GpuTexture arg0)
createTextureView(GpuTexture arg0)
public GpuTextureView
createTextureView(GpuTexture texture, int baseMipLevel, int mipLevels)
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)
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)
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 List<String>
getLastDebugMessages()
getLastDebugMessages()
method_1_1297()
getLastDebugMessages()
public boolean
isDebuggingEnabled()
isDebuggingEnabled()
method_1_1304()
isDebuggingEnabled()
public void
clearPipelineCache()
clearPipelineCache()
method_1_1284()
clearPipelineCache()
private static void
sacrificeShaderToOpenGlAndAmd()
sacrificeShaderToOpenGlAndAmd()
method_72699()
applyAmdCleanupHack()
public void
close()
close()
method_1_1285()
close()
public GlBufferManager
directStateAccess()
directStateAccess()
method_68401()
getBufferManager()
protected GlCompiledRenderPipeline
getOrCompilePipeline(RenderPipeline pipeline)
getOrCompilePipeline(RenderPipeline pipeline)
method_68381(RenderPipeline arg0)
getCompiledPipeline(RenderPipeline pipeline)
protected GlCompiledShader
getOrCompileShader(Identifier id, ShaderType type, ShaderDefines defines, ShaderSource shaderSource)
getOrCompileShader(Identifier id, ShaderType type, ShaderDefines defines, ShaderSource shaderSource)
method_68378(class_2960 arg0, ShaderType arg1, class_10149 arg2, class_12289 arg3)
getCompiledShader(Identifier id, ShaderType type, Defines defines, ShaderSourceGetter sourceGetter)
public GlCompiledRenderPipeline
precompilePipeline(RenderPipeline pipeline, ShaderSource customShaderSource)
precompilePipeline(RenderPipeline pipeline, ShaderSource customShaderSource)
method_1_1306(RenderPipeline arg0, class_12289 arg1)
getCompiledPipeline(RenderPipeline arg0, ShaderSourceGetter arg1)
private GlCompiledShader
compileShader(GlDevice$ShaderCompilationKey key, ShaderSource shaderSource)
compileShader(GlDevice$ShaderCompilationKey key, ShaderSource shaderSource)
method_68379(class_10865$class_10154 arg0, class_12289 arg1)
compileShader(GlBackend$ShaderKey key, ShaderSourceGetter sourceGetter)
private GlShaderProgram
compileProgram(RenderPipeline pipeline, ShaderSource shaderSource)
compileProgram(RenderPipeline pipeline, ShaderSource shaderSource)
method_76229(RenderPipeline arg0, class_12289 arg1)
compileProgram(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
private GlCompiledRenderPipeline
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
method_68392(RenderPipeline arg0, class_12289 arg1)
compileRenderPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
public VertexBufferManager
vertexArrayCache()
vertexArrayCache()
method_68402()
getVertexBufferManager()
public GpuBufferManager
getBufferStorage()
getBufferStorage()
method_71032()
getGpuBufferManager()
public GlFramebufferManager
frameBufferCache()
frameBufferCache()
method_1_5402()
getFramebufferManager()
public TimestampQueryPool
createTimestampQueryPool(int size)
createTimestampQueryPool(int size)
method_1_4220(int arg0)
createTimestampQueryPool(int arg0)
public long
getTimestampNow()
getTimestampNow()
method_1_4222()
getTimestampNow()
public GpuDeviceInfo
getDeviceInfo()
getDeviceInfo()
method_1_4221()
getDeviceInfo()