Class GlslCompiler
java.lang.Object
com.mojang.blaze3d.vulkan.glsl.GlslCompiler
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShaderDefinesprivate final longprivate final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddToBindGroup(List<VulkanBindGroupLayout.Entry> entries, IntermediaryShaderModule shader, RenderPipeline pipeline) voidclose()compile(VulkanDevice device, RenderPipeline pipeline, IntermediaryShaderModule vertex, IntermediaryShaderModule fragment) createIntermediary(String filename, String source, ShaderType type)
-
Field Details
-
shaderCompiler
private final long shaderCompiler -
shaderOptions
private final long shaderOptions -
globalDefines
-
-
Constructor Details
-
GlslCompiler
public GlslCompiler()
-
-
Method Details
-
createIntermediary
public IntermediaryShaderModule createIntermediary(String filename, String source, ShaderType type) throws ShaderCompileException - Throws:
ShaderCompileException
-
compile
public GlslCompiler.CompiledModules compile(VulkanDevice device, RenderPipeline pipeline, IntermediaryShaderModule vertex, IntermediaryShaderModule fragment) throws ShaderCompileException - Throws:
ShaderCompileException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
addToBindGroup
private static void addToBindGroup(List<VulkanBindGroupLayout.Entry> entries, IntermediaryShaderModule shader, RenderPipeline pipeline) throws ShaderCompileException - Throws:
ShaderCompileException
-