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
protected static boolean
USE_GL_ARB_base_instance
field_1_6380
allowGlArbBaseInstance
protected static boolean
USE_GL_ARB_draw_indirect
field_1_6381
allowGlArbDrawIndirect
protected static boolean
USE_GL_ARB_multi_draw_indirect
field_1_6382
allowGlArbMultiDrawIndirect
protected static boolean
USE_GL_ARB_shader_draw_parameters
field_1_6383
allowGlArbShaderDrawParameters
private final GlCommandEncoderBackend
encoder
field_57854
commandEncoder
private final GlDebug
debugLog
field_57855
glDebug
private final DebugLabelManager
debugLabels
field_57856
debugLabelManager
private final GlBufferManager
directStateAccess
field_57858
bufferManager
private final GlFramebufferManager
frameBufferCache
field_1_6266
framebufferManager
private final VertexBufferManager
vertexArrayCache
field_57862
vertexBufferManager
private final GpuBufferManager
bufferStorage
field_60017
gpuBufferManager
private final GpuDeviceInfo
deviceInfo
field_1_3390
deviceInfo
private final Defines
globalDefines
field_1_7954
baseDefines
private boolean
shaderCompilerRequiresSacrifice
field_1_7955
compilePipelineClosed

Constructor summary

ModifierConstructor
public (long contextId, DebugOptions debugOptions)

Method summary

Modifier and TypeMethod
public DebugLabelManager
debugLabels()
method_68377()
getDebugLabelManager()
public GpuSurfaceBackend
createSurface(long windowHandle)
method_1_4219(long arg0)
createSurface(long arg0)
public CommandEncoderBackend
createCommandEncoder()
method_1_1288()
getCommandEncoder()
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, 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)
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)
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 List<String>
getLastDebugMessages()
method_1_1297()
getLastDebugMessages()
public boolean
isDebuggingEnabled()
method_1_1304()
isDebuggingEnabled()
private void
sacrificeShaderToOpenGlAndAmd()
method_72699()
applyAmdCleanupHack()
void
markAmdShaderCompilerAngry()
method_1_7302()
onCompiledPipelineClose()
public void
close()
method_1_1285()
close()
public GlBufferManager
directStateAccess()
method_68401()
getBufferManager()
protected GlCompiledShader
compileShader(Identifier id, ShaderType type, ShaderDefines defines, ShaderSource shaderSource)
method_68379(class_2960 arg0, ShaderType arg1, class_10149 arg2, class_12289 arg3)
compileShader(Identifier id, ShaderType shaderType, Defines defines, ShaderSourceGetter sourceGetter)
private GlShaderProgram
compileProgram(RenderPipeline pipeline, ShaderSource shaderSource)
method_76229(RenderPipeline arg0, class_12289 arg1)
compileProgram(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
public GlCompiledRenderPipeline
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
method_1_1306(RenderPipeline arg0, class_12289 arg1)
getCompiledPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
public VertexBufferManager
vertexArrayCache()
method_68402()
getVertexBufferManager()
public GpuBufferManager
getBufferStorage()
method_71032()
getGpuBufferManager()
public GlFramebufferManager
frameBufferCache()
method_1_5402()
getFramebufferManager()
public TimestampQueryPool
createTimestampQueryPool(int size)
method_1_4220(int arg0)
createTimestampQueryPool(int arg0)
public long
getTimestampNow()
method_1_4222()
getTimestampNow()
public GpuDeviceInfo
getDeviceInfo()
method_1_4221()
getDeviceInfo()
public CompiledRenderPipeline
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
method_1_1306(RenderPipeline arg0, class_12289 arg1)
getCompiledPipeline(RenderPipeline arg0, ShaderSourceGetter arg1)