Class PushConstant

  • java.lang.Object
    • com.aspose.threed.PushConstant

  • public class PushConstant
    extends java.lang.Object
    A utility to provide data to shader through push constant.
    • Constructor Detail

      • PushConstant

        public PushConstant()
        Constructor of the PushConstant
    • Method Detail

      • write

        public PushConstant write​(FMatrix4 mat)
        Write the matrix to the constant
        Parameters:
        mat - The matrix to write
      • write

        public PushConstant write​(int n)
        Write a int value to the constant
        Parameters:
        n -
      • write

        public PushConstant write​(float f)
        Write a float value to the constant
        Parameters:
        f -
      • write

        public PushConstant write​(FVector4 vec)
        Write a 4-component vector to the constant
        Parameters:
        vec -
      • write

        public PushConstant write​(FVector3 vec)
        Write a 3-component vector to the constant
        Parameters:
        vec -
      • write

        public PushConstant write​(float x,
                                  float y,
                                  float z,
                                  float w)
        Write a 4-component vector to the constant
        Parameters:
        x -
        y -
        z -
        w -
      • commit

        public PushConstant commit​(int stage,
                                   ICommandList commandList)
        Commit prepared data to graphics pipeline.
        Parameters:
        stage -
        commandList -