PushConstant

Inheritance: java.lang.Object

public class PushConstant

A utility to provide data to shader through push constant.

Constructors

ConstructorDescription
PushConstant()Constructor of the PushConstant

Methods

MethodDescription
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:

ParameterTypeDescription
stageint
commandListICommandList

Returns: PushConstant

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int

write(FMatrix4 mat)

public PushConstant write(FMatrix4 mat)

Write the matrix to the constant

Parameters:

ParameterTypeDescription
matFMatrix4The matrix to write

Returns: PushConstant

write(FVector3 vec)

public PushConstant write(FVector3 vec)

Write a 3-component vector to the constant

Parameters:

ParameterTypeDescription
vecFVector3

Returns: PushConstant

write(FVector4 vec)

public PushConstant write(FVector4 vec)

Write a 4-component vector to the constant

Parameters:

ParameterTypeDescription
vecFVector4

Returns: PushConstant

write(float f)

public PushConstant write(float f)

Write a float value to the constant

Parameters:

ParameterTypeDescription
ffloat

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:

ParameterTypeDescription
xfloat
yfloat
zfloat
wfloat

Returns: PushConstant

write(int n)

public PushConstant write(int n)

Write a int value to the constant

Parameters:

ParameterTypeDescription
nint

Returns: PushConstant