PushConstant
Contents
[
Hide
]Inheritance: java.lang.Object
public class PushConstant
A utility to provide data to shader through push constant.
Constructors
Constructor | Description |
---|---|
PushConstant() | Constructor of the PushConstant |
Methods
Method | Description |
---|---|
commit(int stage, ICommandList commandList) | Commit prepared data to graphics pipeline. |
equals(Object arg0) | |
getClass() | |
hashCode() | |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) | |
write(FMatrix4 mat) | Write the matrix to the constant |
write(FVector3 vec) | Write a 3-component vector to the constant |
write(FVector4 vec) | Write a 4-component vector to the constant |
write(float f) | Write a float value to the constant |
write(float x, float y, float z, float w) | Write a 4-component vector to the constant |
write(int n) | Write a int value to the constant |
PushConstant()
public PushConstant()
Constructor of the PushConstant
commit(int stage, ICommandList commandList)
public PushConstant commit(int stage, ICommandList commandList)
Commit prepared data to graphics pipeline.
Parameters:
Parameter | Type | Description |
---|---|---|
stage | int | |
commandList | ICommandList |
Returns: PushConstant
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |
write(FMatrix4 mat)
public PushConstant write(FMatrix4 mat)
Write the matrix to the constant
Parameters:
Parameter | Type | Description |
---|---|---|
mat | FMatrix4 | The matrix to write |
Returns: PushConstant
write(FVector3 vec)
public PushConstant write(FVector3 vec)
Write a 3-component vector to the constant
Parameters:
Parameter | Type | Description |
---|---|---|
vec | FVector3 |
Returns: PushConstant
write(FVector4 vec)
public PushConstant write(FVector4 vec)
Write a 4-component vector to the constant
Parameters:
Parameter | Type | Description |
---|---|---|
vec | FVector4 |
Returns: PushConstant
write(float f)
public PushConstant write(float f)
Write a float value to the constant
Parameters:
Parameter | Type | Description |
---|---|---|
f | float |
Returns: PushConstant
write(float x, float y, float z, float w)
public PushConstant write(float x, float y, float z, float w)
Write a 4-component vector to the constant
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | |
y | float | |
z | float | |
w | float |
Returns: PushConstant
write(int n)
public PushConstant write(int n)
Write a int value to the constant
Parameters:
Parameter | Type | Description |
---|---|---|
n | int |
Returns: PushConstant