PushConstant
Contents
[
Hide
]PushConstant class
A utility to provide data to shader through push constant.
Methods
constructor
| Name | Description |
|---|---|
| constructor() | Constructor of the PushConstant |
Result:
write
| Name | Description |
|---|---|
| write(mat) | Write the matrix to the constant |
Parameters:
| Name | Type | Description |
|---|---|---|
| mat | FMatrix4 | The matrix to write |
Result:
write
| Name | Description |
|---|---|
| write(n) | Write a int value to the constant |
Parameters:
| Name | Type | Description |
|---|---|---|
| Number | null |
Result:
write
| Name | Description |
|---|---|
| write(f) | Write a float value to the constant |
Parameters:
| Name | Type | Description |
|---|---|---|
| Number | null |
Result:
write
| Name | Description |
|---|---|
| write(vec) | Write a 4-component vector to the constant |
Parameters:
| Name | Type | Description |
|---|---|---|
| ve | FVector4 | null |
Result:
write
| Name | Description |
|---|---|
| write(vec) | Write a 3-component vector to the constant |
Parameters:
| Name | Type | Description |
|---|---|---|
| ve | FVector3 | null |
Result:
write
| Name | Description |
|---|---|
| write(x, y, z, w) | Write a 4-component vector to the constant |
Parameters:
| Name | Type | Description |
|---|---|---|
| Number | null | |
| Number | null | |
| Number | null | |
| Number | null |
Result:
commit
| Name | Description |
|---|---|
| commit(stage, commandList) | Commit prepared data to graphics pipeline. |
Parameters:
| Name | Type | Description |
|---|---|---|
| stage | Number | ShaderStage |
| commandLis | ICommandList | null |
Result: