Package com.aspose.threed
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 Summary
Constructors Constructor Description PushConstant()
Constructor of thePushConstant
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PushConstant
commit(int stage, ICommandList commandList)
Commit prepared data to graphics pipeline.PushConstant
write(float f)
Write a float value to the constantPushConstant
write(float x, float y, float z, float w)
Write a 4-component vector to the constantPushConstant
write(int n)
Write a int value to the constantPushConstant
write(FMatrix4 mat)
Write the matrix to the constantPushConstant
write(FVector3 vec)
Write a 3-component vector to the constantPushConstant
write(FVector4 vec)
Write a 4-component vector to the constant
-
-
-
Constructor Detail
-
PushConstant
public PushConstant()
Constructor of thePushConstant
-
-
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
-
-
-