net.minecraft.client.gl

class GlBackend

implements GpuBackend

com.mojang.renderpearl.backend.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 long
initialWindowHandle
field_1_9066
window
private final long
glContext
field_1_9065
contextHandle
private final GlDeviceInfo
heuristics
field_1_10520
field_1_10520
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 BiFunction<GlShaderProgram, BackendRenderPipeline$Layout, VertexArray>
vertexArraySource
field_1_9414
vertexArrayFactory
private final GpuBufferManager
bufferStorage
field_60017
gpuBufferManager
private final GpuDeviceInfo
deviceInfo
field_1_3390
deviceInfo
private final GlProgramCompiler
recompiler
field_1_9413
programCompiler
private boolean
shaderCompilerRequiresSacrifice
field_1_7955
compilePipelineClosed
private long
currentWindow
field_1_10076
currentWindow

Constructor summary

ModifierConstructor
public (GlWindowBackend window, DebugOptions debugOptions)

Method summary

Modifier and TypeMethod
public GlDeviceInfo
heuristics()
method_1_10470()
method_1_10470()
public DebugLabelManager
debugLabels()
method_68377()
getDebugLabelManager()
public GpuSurfaceBackend
createSurface(long windowHandle, BooleanSupplier isIconified)
method_1_4219(long arg0, BooleanSupplier arg1)
createSurface(long arg0, BooleanSupplier arg1)
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(class_1_1239 arg0, class_1_1239 arg1, class_1_1230 arg2, class_1_1230 arg3, int arg4, OptionalDouble arg5)
createSampler(AddressMode arg0, AddressMode arg1, FilterMode arg2, FilterMode arg3, int arg4, OptionalDouble arg5)
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, int baseMipLevel, int mipLevels)
method_1_1293(class_1_1318 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()
public BackendRenderPipeline$Supplier
compilePipeline(BackendRenderPipeline$CreateInfo createInfo)
method_1_1306(class_1_1386$class_1_1387 arg0)
getCompiledPipeline(BackendRenderPipeline$Layout arg0)
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
getTimestampCalibrationOffset()
method_1_4222()
getTimestampNow()
public GpuDeviceInfo
getDeviceInfo()
method_1_4221()
getDeviceInfo()
void
makeCurrent(long windowHandle)
method_1_9789(long arg0)
makeWindowCurrent(long window)
private BackendRenderPipeline
lambda$compilePipeline$0(BackendRenderPipeline$CreateInfo arg0, Map arg1)
method_1_9948(class_1_1386$class_1_1387 arg0, Map arg1)
method_1_9948(BackendRenderPipeline$Layout arg0, Map arg1)