Package com.aspose.threed
Class SPIRVSource
- java.lang.Object
-
- com.aspose.threed.ShaderSource
-
- com.aspose.threed.SPIRVSource
-
public final class SPIRVSource extends ShaderSource
The compiled shader in SPIR-V format.
-
-
Constructor Summary
Constructors Constructor Description SPIRVSource()
Constructor of SPIR-V based shader sources.
-
Method Summary
Modifier and Type Method Description byte[]
getComputeShader()
Gets the source code of the compute shader.byte[]
getFragmentShader()
Gets the source code of the fragmnt shader.byte[]
getGeometryShader()
Gets the source code of the geometry shader.int
getMaximumDescriptorSets()
Maximum descriptor sets, default value is 10byte[]
getVertexShader()
Gets the source code of the vertex shadervoid
setComputeShader(byte[] value)
Sets the source code of the compute shader.void
setFragmentShader(byte[] value)
Sets the source code of the fragmnt shader.void
setGeometryShader(byte[] value)
Sets the source code of the geometry shader.void
setMaximumDescriptorSets(int value)
Maximum descriptor sets, default value is 10void
setVertexShader(byte[] value)
Sets the source code of the vertex shader
-
-
-
Method Detail
-
getMaximumDescriptorSets
public int getMaximumDescriptorSets()
Maximum descriptor sets, default value is 10
-
setMaximumDescriptorSets
public void setMaximumDescriptorSets(int value)
Maximum descriptor sets, default value is 10- Parameters:
value
- New value
-
getComputeShader
public byte[] getComputeShader()
Gets the source code of the compute shader.
-
setComputeShader
public void setComputeShader(byte[] value)
Sets the source code of the compute shader.- Parameters:
value
- New value
-
getGeometryShader
public byte[] getGeometryShader()
Gets the source code of the geometry shader.
-
setGeometryShader
public void setGeometryShader(byte[] value)
Sets the source code of the geometry shader.- Parameters:
value
- New value
-
getVertexShader
public byte[] getVertexShader()
Gets the source code of the vertex shader
-
setVertexShader
public void setVertexShader(byte[] value)
Sets the source code of the vertex shader- Parameters:
value
- New value
-
getFragmentShader
public byte[] getFragmentShader()
Gets the source code of the fragmnt shader.
-
setFragmentShader
public void setFragmentShader(byte[] value)
Sets the source code of the fragmnt shader.- Parameters:
value
- New value
-
-