PushConstant

Inheritance: java.lang.Object

public class PushConstant

通过推送常量向着色器提供数据的实用工具。

构造函数

构造函数描述
PushConstant()PushConstant 的构造函数

方法

方法描述
commit(int stage, ICommandList commandList)将准备好的数据提交到图形管线。
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
write(FMatrix4 mat)将矩阵写入常量
write(FVector3 vec)将 3 分量向量写入常量
write(FVector4 vec)将 4 分量向量写入常量
write(float f)将 float 值写入常量
write(float x, float y, float z, float w)将 4 分量向量写入常量
write(int n)将 int 值写入常量

PushConstant()

public PushConstant()

PushConstant 的构造函数

commit(int stage, ICommandList commandList)

public PushConstant commit(int stage, ICommandList commandList)

将准备好的数据提交到图形管线。

Parameters:

参数类型描述
阶段int
commandListICommandList

Returns: PushConstant

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int

write(FMatrix4 mat)

public PushConstant write(FMatrix4 mat)

将矩阵写入常量

Parameters:

参数类型描述
matFMatrix4要写入的矩阵

Returns: PushConstant

write(FVector3 vec)

public PushConstant write(FVector3 vec)

将 3 分量向量写入常量

Parameters:

参数类型描述
vecFVector3

Returns: PushConstant

write(FVector4 vec)

public PushConstant write(FVector4 vec)

将 4 分量向量写入常量

Parameters:

参数类型描述
vecFVector4

Returns: PushConstant

write(float f)

public PushConstant write(float f)

将 float 值写入常量

Parameters:

参数类型描述
ffloat

Returns: PushConstant

write(float x, float y, float z, float w)

public PushConstant write(float x, float y, float z, float w)

将 4 分量向量写入常量

Parameters:

参数类型描述
xfloat
yfloat
zfloat
wfloat

Returns: PushConstant

write(int n)

public PushConstant write(int n)

将 int 值写入常量

Parameters:

参数类型描述
nint

Returns: PushConstant