A compute pass, during which a compute dispatch is launched.
More...
A compute pass, during which a compute dispatch is launched.
See TargetOperations::addComputePass() to use it.
◆ getShader()
Shader* nkGraphics::ComputePass::getShader |
( |
| ) |
const |
- Returns
- The compute shader executed.
◆ getX()
unsigned int nkGraphics::ComputePass::getX |
( |
| ) |
const |
The x component of the thread dimensions dispatched.
◆ getY()
unsigned int nkGraphics::ComputePass::getY |
( |
| ) |
const |
The y component of the thread dimensions dispatched.
◆ getZ()
unsigned int nkGraphics::ComputePass::getZ |
( |
| ) |
const |
The z component of the thread dimensions dispatched.
◆ setShader()
void nkGraphics::ComputePass::setShader |
( |
Shader * |
shader | ) |
|
Sets the shader to execute during the dispatch.
- Parameters
-
shader | The shader to execute. |
◆ setX()
void nkGraphics::ComputePass::setX |
( |
unsigned int |
value | ) |
|
Sets the x component of the thread dimension dispatched. Default upon creation is 1.
- Parameters
-
value | The dimension to dispatch. |
◆ setY()
void nkGraphics::ComputePass::setY |
( |
unsigned int |
value | ) |
|
Sets the y component of the thread dimension dispatched. Default upon creation is 1.
- Parameters
-
value | The dimension to dispatch. |
◆ setZ()
void nkGraphics::ComputePass::setZ |
( |
unsigned int |
value | ) |
|
Sets the z component of the thread dimension dispatched. Default upon creation is 1.
- Parameters
-
value | The dimension to dispatch. |
◆ exportClassToTree()
virtual void nkGraphics::ComputePass::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Exports an item into a tree describing its structure and its data.
- Parameters
-
rootNode | The node into which the object has to write its related information. |
Reimplemented from nkGraphics::Pass.
◆ importClassFromTree()
virtual void nkGraphics::ComputePass::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Imports information from a tree which is supposed to describe its structure and data.
- Parameters
-
rootNode | The root node of the tree holding the information. |
Reimplemented from nkGraphics::Pass.
The documentation for this class was generated from the following file: