Class SPIRVModule
java.lang.Object
com.mojang.renderpearl.frontend.shaders.SPIRVModule
- All Implemented Interfaces:
SpvModule, AutoCloseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface SpvModule
SpvModule.Reflection -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable SpvModule.Reflectionprivate final ByteBufferprivate longprivate final ShaderType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidprivate static List<SpvModule.Reflection.Descriptor> generateDescriptorList(long compiler, long spvcResources, IntBuffer spirv, int resourceType) private static List<SpvModule.Reflection.InterfaceVariable> generateInterfaceVariableList(long compiler, long spvcResources, IntBuffer spirv, int resourceType) private static List<SpvModule.Reflection.PushConstant> generatePushConstantList(long compiler, long spvcResources) reflect()spv()type()
-
Field Details
-
spv
-
type
-
reflection
-
spvcContext
private long spvcContext
-
-
Constructor Details
-
SPIRVModule
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSpvModule
-
spv
-
type
-
reflect
- Specified by:
reflectin interfaceSpvModule- Throws:
ShaderCompileException
-
getReflectionInfoIfAvailable
- Specified by:
getReflectionInfoIfAvailablein interfaceSpvModule
-
doReflection
- Throws:
ShaderCompileException
-
generateInterfaceVariableList
private static List<SpvModule.Reflection.InterfaceVariable> generateInterfaceVariableList(long compiler, long spvcResources, IntBuffer spirv, int resourceType) throws ShaderCompileException - Throws:
ShaderCompileException
-
generateDescriptorList
private static List<SpvModule.Reflection.Descriptor> generateDescriptorList(long compiler, long spvcResources, IntBuffer spirv, int resourceType) throws ShaderCompileException - Throws:
ShaderCompileException
-
generatePushConstantList
private static List<SpvModule.Reflection.PushConstant> generatePushConstantList(long compiler, long spvcResources) throws ShaderCompileException - Throws:
ShaderCompileException
-