com.mojang.blaze3d.opengl

public class GlDevice

implements GpuDevice

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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
f
LOGGER
field_57853
LOGGER
LOGGER
protected static boolean
a
USE_GL_ARB_vertex_attrib_binding
field_58035
allowGlArbVABinding
USE_GL_ARB_vertex_attrib_binding
protected static boolean
b
USE_GL_KHR_debug
field_58036
allowGlKhrDebug
USE_GL_KHR_debug
protected static boolean
c
USE_GL_EXT_debug_label
field_58037
allowExtDebugLabel
USE_GL_EXT_debug_label
protected static boolean
d
USE_GL_ARB_debug_output
field_58038
allowGlArbDebugOutput
USE_GL_ARB_debug_output
protected static boolean
e
USE_GL_ARB_direct_state_access
field_58039
allowGlArbDirectAccess
USE_GL_ARB_direct_state_access
private final CommandEncoder
g
encoder
field_57854
commandEncoder
encoder
private final GlDebug
h
debugLog
field_57855
glDebug
debugLog
private final GlDebugLabel
i
debugLabels
field_57856
debugLabelManager
debugLabels
private final int
j
maxSupportedTextureSize
field_57857
maxTextureSize
maxSupportedTextureSize
private final DirectStateAccess
k
directStateAccess
field_57858
framebufferManager
directStateAccess
private final BiFunction<ResourceLocation, ShaderType, String>
l
defaultShaderSource
field_57859
defaultShaderSourceGetter
defaultShaderSource
private final Map<RenderPipeline, GlRenderPipeline>
m
pipelineCache
field_57860
pipelineCompileCache
pipelineCache
private final Map<GlDevice$ShaderCompilationKey, GlShaderModule>
n
shaderCache
field_57861
shaderCompileCache
shaderCache
private final VertexArrayCache
o
vertexArrayCache
field_57862
bufferManager
vertexArrayCache
private final Set<String>
p
enabledExtensions
field_58040
usedGlCapabilities
enabledExtensions

Constructor summary

ModifierConstructor
public (long contextId, int debugVerbosity, boolean sync, BiFunction<ResourceLocation, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels)

Method summary

Modifier and TypeMethod
public GlDebugLabel
a()
debugLabels()
method_68377()
getDebugLabelManager()
debugLabels()
public CommandEncoder
createCommandEncoder()
createCommandEncoder()
createCommandEncoder()
public GpuTexture
createTexture(Supplier<String> arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(Supplier<String> arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(Supplier<String> arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(Supplier<String> arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(Supplier<String> p_394839_, TextureFormat p_394481_, int p_391831_, int p_395609_, int arg4)
public GpuTexture
createTexture(String arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(String arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(String arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(String arg0, TextureFormat arg1, int arg2, int arg3, int arg4)
createTexture(String p_394951_, TextureFormat p_395535_, int p_393944_, int p_392329_, int arg4)
public GpuBuffer
createBuffer(Supplier<String> arg0, BufferType arg1, BufferUsage arg2, int arg3)
createBuffer(Supplier<String> arg0, BufferType arg1, BufferUsage arg2, int arg3)
createBuffer(Supplier<String> arg0, com.mojang.blaze3d.buffers.BufferType arg1, BufferUsage arg2, int arg3)
createBuffer(Supplier<String> arg0, com.mojang.blaze3d.buffers.BufferType arg1, BufferUsage arg2, int arg3)
createBuffer(Supplier<String> p_394889_, BufferType p_396759_, BufferUsage p_395846_, int arg3)
public GpuBuffer
createBuffer(Supplier<String> arg0, BufferType arg1, BufferUsage arg2, ByteBuffer arg3)
createBuffer(Supplier<String> arg0, BufferType arg1, BufferUsage arg2, ByteBuffer arg3)
createBuffer(Supplier<String> arg0, com.mojang.blaze3d.buffers.BufferType arg1, BufferUsage arg2, ByteBuffer arg3)
createBuffer(Supplier<String> arg0, com.mojang.blaze3d.buffers.BufferType arg1, BufferUsage arg2, ByteBuffer arg3)
createBuffer(Supplier<String> p_391768_, BufferType p_396874_, BufferUsage p_397021_, ByteBuffer arg3)
public String
getImplementationInformation()
getImplementationInformation()
getImplementationInformation()
public List<String>
getLastDebugMessages()
getLastDebugMessages()
getLastDebugMessages()
public boolean
isDebuggingEnabled()
isDebuggingEnabled()
isDebuggingEnabled()
public String
getRenderer()
getRenderer()
getRenderer()
public String
getVendor()
getVendor()
getVendor()
public String
getBackendName()
getBackendName()
getBackendName()
public String
getVersion()
getVersion()
getVersion()
private static int
d()
getMaxSupportedTextureSize()
method_68403()
determineMaxTextureSize()
getMaxSupportedTextureSize()
public int
getMaxTextureSize()
getMaxTextureSize()
getMaxTextureSize()
public void
clearPipelineCache()
clearPipelineCache()
clearPipelineCache()
public List<String>
getEnabledExtensions()
getEnabledExtensions()
getEnabledExtensions()
public void
close()
close()
close()
public DirectStateAccess
b()
directStateAccess()
method_68401()
getFramebufferManager()
directStateAccess()
protected GlRenderPipeline
a(RenderPipeline arg0)
getOrCompilePipeline(RenderPipeline arg0)
method_68381(RenderPipeline arg0)
compilePipelineCached(RenderPipeline pipeline)
getOrCompilePipeline(RenderPipeline arg0)
protected GlShaderModule
a(alr arg0, ShaderType arg1, gse arg2, BiFunction<alr, ShaderType, String> arg3)
getOrCompileShader(ResourceLocation arg0, ShaderType arg1, ShaderDefines arg2, BiFunction<ResourceLocation, ShaderType, String> arg3)
method_68378(class_2960 arg0, ShaderType arg1, class_10149 arg2, BiFunction<class_2960, ShaderType, String> arg3)
compileShader(Identifier id, ShaderType type, Defines defines, BiFunction<Identifier, ShaderType, String> sourceRetriever)
getOrCompileShader(C_5265_ p_393555_, ShaderType p_392809_, C_346062_ p_398003_, BiFunction<C_5265_, ShaderType, String> arg3)
public GlRenderPipeline
a(RenderPipeline arg0, BiFunction<alr, ShaderType, String> arg1)
precompilePipeline(RenderPipeline arg0, BiFunction<ResourceLocation, ShaderType, String> arg1)
method_68383(RenderPipeline arg0, BiFunction<class_2960, ShaderType, String> arg1)
precompilePipeline(RenderPipeline arg0, BiFunction<Identifier, ShaderType, String> arg1)
precompilePipeline(RenderPipeline p_395925_, BiFunction<C_5265_, ShaderType, String> arg1)
private GlShaderModule
a(fjg$a arg0, BiFunction<alr, ShaderType, String> arg1)
compileShader(GlDevice$ShaderCompilationKey arg0, BiFunction<ResourceLocation, ShaderType, String> arg1)
method_68379(class_10865$class_10154 arg0, BiFunction<class_2960, ShaderType, String> arg1)
compileShader(GlBackend$ShaderKey key, BiFunction<Identifier, ShaderType, String> sourceRetriever)
compileShader(GlDevice$C_379316_ p_393230_, BiFunction<C_5265_, ShaderType, String> arg1)
private GlRenderPipeline
b(RenderPipeline arg0, BiFunction<alr, ShaderType, String> arg1)
compilePipeline(RenderPipeline arg0, BiFunction<ResourceLocation, ShaderType, String> arg1)
method_68392(RenderPipeline arg0, BiFunction<class_2960, ShaderType, String> arg1)
compileRenderPipeline(RenderPipeline pipeline, BiFunction<Identifier, ShaderType, String> sourceRetriever)
compilePipeline(RenderPipeline p_394041_, BiFunction<C_5265_, ShaderType, String> arg1)
public VertexArrayCache
c()
vertexArrayCache()
method_68402()
getBufferManager()
vertexArrayCache()