Class 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 10
      byte[] getVertexShader()
      Gets the source code of the vertex shader
      void 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 10
      void setVertexShader​(byte[] value)
      Sets the source code of the vertex shader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SPIRVSource

        public SPIRVSource()
        Constructor of SPIR-V based shader sources.
    • 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