com.mojang.blaze3d.opengl

public class GlDevice

implements GpuDevice

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

字段概要

修饰符与类型字段
private static final org.slf4j.Logger
g
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
protected static boolean
f
USE_GL_ARB_buffer_storage
field_60016
allowGlBufferStorage
USE_GL_ARB_buffer_storage
private final CommandEncoder
h
encoder
field_57854
commandEncoder
encoder
private final GlDebug
i
debugLog
field_57855
glDebug
debugLog
private final GlDebugLabel
j
debugLabels
field_57856
debugLabelManager
debugLabels
private final int
k
maxSupportedTextureSize
field_57857
maxTextureSize
maxSupportedTextureSize
private final DirectStateAccess
l
directStateAccess
field_57858
bufferManager
directStateAccess
private final ShaderSource
m
defaultShaderSource
field_57859
defaultShaderSourceGetter
defaultShaderSource
private final Map<RenderPipeline, GlRenderPipeline>
n
pipelineCache
field_57860
pipelineCompileCache
pipelineCache
private final Map<GlDevice$ShaderCompilationKey, GlShaderModule>
o
shaderCache
field_57861
shaderCompileCache
shaderCache
private final VertexArrayCache
p
vertexArrayCache
field_57862
vertexBufferManager
vertexArrayCache
private final BufferStorage
q
bufferStorage
field_60017
gpuBufferManager
bufferStorage
private final Set<String>
r
enabledExtensions
field_58040
usedGlCapabilities
enabledExtensions
private final int
s
uniformOffsetAlignment
field_60018
uniformOffsetAlignment
uniformOffsetAlignment
private final int
t
maxSupportedAnisotropy
field_64185
maxSupportedAnisotropy
maxSupportedAnisotropy

构造函数概要

修饰符构造函数
public (long contextId, int debugVerbosity, boolean sync, ShaderSource defaultShaderSourceGetter, boolean renderDebugLabels)

方法概要

修饰符与类型方法
public GlDebugLabel
a()
debugLabels()
method_68377()
getDebugLabelManager()
debugLabels()
public CommandEncoder
createCommandEncoder()
createCommandEncoder()
createCommandEncoder()
public int
getMaxSupportedAnisotropy()
getMaxSupportedAnisotropy()
getMaxSupportedAnisotropy()
public GpuSampler
createSampler(AddressMode arg0, AddressMode arg1, FilterMode arg2, FilterMode arg3, int arg4, OptionalDouble arg5)
createSampler(AddressMode arg0, AddressMode arg1, FilterMode arg2, 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)
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)
createSampler(AddressMode p_456049_, AddressMode p_460715_, FilterMode p_458527_, FilterMode p_460326_, int p_456743_, OptionalDouble arg5)
public GpuTexture
createTexture(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)
createTexture(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)
createTexture(Supplier<String> p_394481_, int p_394839_, TextureFormat p_391831_, int p_395609_, int p_407582_, int p_408928_, int arg6)
public GpuTexture
createTexture(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)
createTexture(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)
createTexture(String p_395535_, int p_394951_, TextureFormat p_393944_, int p_392329_, int p_408015_, int p_406483_, int arg6)
public GpuTextureView
createTextureView(GpuTexture arg0)
createTextureView(GpuTexture arg0)
createTextureView(GpuTexture arg0)
createTextureView(GpuTexture arg0)
createTextureView(GpuTexture arg0)
public GpuTextureView
createTextureView(GpuTexture arg0, int arg1, int arg2)
createTextureView(GpuTexture arg0, int arg1, int arg2)
createTextureView(GpuTexture arg0, int arg1, int arg2)
createTextureView(GpuTexture arg0, int arg1, int arg2)
createTextureView(GpuTexture p_410314_, int p_406705_, int arg2)
public GpuBuffer
createBuffer(Supplier<String> arg0, int arg1, long arg2)
createBuffer(Supplier<String> arg0, int arg1, long arg2)
createBuffer(Supplier<String> arg0, int arg1, long arg2)
createBuffer(Supplier<String> arg0, int arg1, long arg2)
createBuffer(Supplier<String> p_395846_, int p_458099_, long arg2)
public GpuBuffer
createBuffer(Supplier<String> arg0, int arg1, ByteBuffer arg2)
createBuffer(Supplier<String> arg0, int arg1, ByteBuffer arg2)
createBuffer(Supplier<String> arg0, int arg1, ByteBuffer arg2)
createBuffer(Supplier<String> arg0, int arg1, ByteBuffer arg2)
createBuffer(Supplier<String> p_410182_, int p_397021_, ByteBuffer arg2)
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
e()
getMaxSupportedTextureSize()
method_68403()
determineMaxTextureSize()
getMaxSupportedTextureSize()
public int
getMaxTextureSize()
getMaxTextureSize()
getMaxTextureSize()
public int
getUniformOffsetAlignment()
getUniformOffsetAlignment()
getUniformOffsetAlignment()
public void
clearPipelineCache()
clearPipelineCache()
clearPipelineCache()
private static void
f()
sacrificeShaderToOpenGlAndAmd()
method_72699()
applyAmdCleanupHack()
sacrificeShaderToOpenGlAndAmd()
public List<String>
getEnabledExtensions()
getEnabledExtensions()
getEnabledExtensions()
public void
close()
close()
close()
public DirectStateAccess
b()
directStateAccess()
method_68401()
getBufferManager()
directStateAccess()
protected GlRenderPipeline
a(RenderPipeline arg0)
getOrCompilePipeline(RenderPipeline arg0)
method_68381(RenderPipeline arg0)
compilePipelineCached(RenderPipeline pipeline)
getOrCompilePipeline(RenderPipeline arg0)
protected GlShaderModule
a(amo arg0, ShaderType arg1, hpg arg2, fyy arg3)
getOrCompileShader(Identifier arg0, ShaderType arg1, ShaderDefines arg2, ShaderSource arg3)
method_68378(class_2960 arg0, ShaderType arg1, class_10149 arg2, class_12289 arg3)
compileShader(Identifier id, ShaderType type, Defines defines, ShaderSourceGetter sourceGetter)
getOrCompileShader(C_432211_ p_393555_, ShaderType p_392809_, C_346062_ p_460383_, C_432075_ arg3)
public GlRenderPipeline
a(RenderPipeline arg0, fyy arg1)
precompilePipeline(RenderPipeline arg0, ShaderSource arg1)
method_68383(RenderPipeline arg0, class_12289 arg1)
precompilePipeline(RenderPipeline arg0, ShaderSourceGetter arg1)
precompilePipeline(RenderPipeline p_457717_, C_432075_ arg1)
private GlShaderModule
a(fxe$a arg0, fyy arg1)
compileShader(GlDevice$ShaderCompilationKey arg0, ShaderSource arg1)
method_68379(class_10865$class_10154 arg0, class_12289 arg1)
compileShader(GlBackend$ShaderKey key, ShaderSourceGetter sourceGetter)
compileShader(GlDevice$C_379316_ p_454231_, C_432075_ arg1)
private GlProgram
b(RenderPipeline arg0, fyy arg1)
compileProgram(RenderPipeline arg0, ShaderSource arg1)
method_76229(RenderPipeline arg0, class_12289 arg1)
compileProgram(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
compileProgram(RenderPipeline p_459964_, C_432075_ arg1)
private GlRenderPipeline
c(RenderPipeline arg0, fyy arg1)
compilePipeline(RenderPipeline arg0, ShaderSource arg1)
method_68392(RenderPipeline arg0, class_12289 arg1)
compileRenderPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
compilePipeline(RenderPipeline p_452962_, C_432075_ arg1)
public VertexArrayCache
c()
vertexArrayCache()
method_68402()
getVertexBufferManager()
vertexArrayCache()
public BufferStorage
d()
getBufferStorage()
method_71032()
getGpuBufferManager()
getBufferStorage()