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 | |
| commandList | ICommandList |
Returns: PushConstant
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.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:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |
write(FMatrix4 mat)
public PushConstant write(FMatrix4 mat)
将矩阵写入常量
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| mat | FMatrix4 | 要写入的矩阵 |
Returns: PushConstant
write(FVector3 vec)
public PushConstant write(FVector3 vec)
将 3 分量向量写入常量
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| vec | FVector3 |
Returns: PushConstant
write(FVector4 vec)
public PushConstant write(FVector4 vec)
将 4 分量向量写入常量
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| vec | FVector4 |
Returns: PushConstant
write(float f)
public PushConstant write(float f)
将 float 值写入常量
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| f | float |
Returns: PushConstant
write(float x, float y, float z, float w)
public PushConstant write(float x, float y, float z, float w)
将 4 分量向量写入常量
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| x | float | |
| y | float | |
| z | float | |
| w | float |
Returns: PushConstant
write(int n)
public PushConstant write(int n)
将 int 值写入常量
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| n | int |
Returns: PushConstant