Class GlPipelineRecompiler
java.lang.Object
com.mojang.renderpearl.backend.opengl.GlPipelineRecompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlDebugLabelprivate final booleanprivate static final booleanprivate static final org.slf4j.Loggerstatic final intstatic final Stringprivate static final booleanstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionGlPipelineRecompiler(GlDebugLabel debugLabels, boolean drawParametersSupported) -
Method Summary
Modifier and TypeMethodDescriptioncompileProgram(BackendRenderPipeline.CreateInfo createInfo, Map<BackendRenderPipeline.CreateInfo.Shader, String> decompiledShaders) private GlShaderModulecompileShader(String name, ShaderType type, String source) private StringdecompileShader(BackendRenderPipeline.CreateInfo.Shader shaderCreateInfo) decompileShaders(BackendRenderPipeline.CreateInfo createInfo) private voidrenameDescriptors(long compiler, long spvcResources, int resourceType) private voidrenameInterfaceVariables(long compiler, long spvcResources, int resourceType, String formatString)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_LOG_LENGTH
public static final int MAX_LOG_LENGTH- See Also:
-
IS_MACOS
private static final boolean IS_MACOS -
UNIFORM_FORMAT_STRING
- See Also:
-
PUSH_CONSTANT_BLOCK_NAME
- See Also:
-
SHADER_DEBUG_MODE
private static final boolean SHADER_DEBUG_MODE -
debugLabels
-
drawParametersSupported
private final boolean drawParametersSupported
-
-
Constructor Details
-
GlPipelineRecompiler
-
-
Method Details
-
decompileShader
private String decompileShader(BackendRenderPipeline.CreateInfo.Shader shaderCreateInfo) throws ShaderCompileException - Throws:
ShaderCompileException
-
renameInterfaceVariables
private void renameInterfaceVariables(long compiler, long spvcResources, int resourceType, String formatString) throws ShaderCompileException - Throws:
ShaderCompileException
-
renameDescriptors
private void renameDescriptors(long compiler, long spvcResources, int resourceType) throws ShaderCompileException - Throws:
ShaderCompileException
-
compileShader
-
decompileShaders
public @Nullable Map<BackendRenderPipeline.CreateInfo.Shader, String> decompileShaders(BackendRenderPipeline.CreateInfo createInfo) -
compileProgram
public @Nullable GlProgram compileProgram(BackendRenderPipeline.CreateInfo createInfo, Map<BackendRenderPipeline.CreateInfo.Shader, String> decompiledShaders)
-