A raytracing pass. Dispatches rays, using hardware acceleration.
More...
A raytracing pass. Dispatches rays, using hardware acceleration.
As a result, this is only supported on RTX and 10 series GPU for the moment.
See TargetOperations::addRaytracingPass() for use.
◆ getRq()
RenderQueue* nkGraphics::RaytracingPass::getRq |
( |
| ) |
const |
- Returns
- The render queue raytraced during the pass.
◆ getRaygenMissShader()
Shader* nkGraphics::RaytracingPass::getRaygenMissShader |
( |
| ) |
const |
- Returns
- The ray generation and miss shader used.
◆ getMaxTraceRecursionDepth()
unsigned int nkGraphics::RaytracingPass::getMaxTraceRecursionDepth |
( |
| ) |
const |
- Returns
- The max recursion depth used.
◆ getWidth()
unsigned int nkGraphics::RaytracingPass::getWidth |
( |
| ) |
const |
- Returns
- The width of the dimensions of rays dispatched.
◆ getHeight()
unsigned int nkGraphics::RaytracingPass::getHeight |
( |
| ) |
const |
- Returns
- The height of the dimensions of rays dispatched.
◆ getDepth()
unsigned int nkGraphics::RaytracingPass::getDepth |
( |
| ) |
const |
- Returns
- The depth of the dimensions of rays dispatched.
◆ setRq()
virtual void nkGraphics::RaytracingPass::setRq |
( |
RenderQueue * |
value | ) |
|
|
virtual |
Sets the rendering queue to raytrace. Its acceleration structure is the one used for the dispatch.
- Parameters
-
value | The render queue to use. |
◆ setRaygenMissShader()
virtual void nkGraphics::RaytracingPass::setRaygenMissShader |
( |
Shader * |
shader | ) |
|
|
virtual |
Sets the ray generation and miss shader to use.
- Parameters
-
◆ setMaxTraceRecursionDepth()
virtual void nkGraphics::RaytracingPass::setMaxTraceRecursionDepth |
( |
unsigned int |
value | ) |
|
|
virtual |
Sets the maximum recursion depth possible within the pass. By default, this value is 1, meaning you can only call TraceRay once.
- Parameters
-
value | The maximum recursion depth. |
◆ setWidth()
void nkGraphics::RaytracingPass::setWidth |
( |
unsigned int |
value | ) |
|
Sets the width of the dimensions of rays to dispatch.
- Parameters
-
◆ setHeight()
void nkGraphics::RaytracingPass::setHeight |
( |
unsigned int |
value | ) |
|
Sets the height of the dimensions of rays to dispatch.
- Parameters
-
◆ setDepth()
void nkGraphics::RaytracingPass::setDepth |
( |
unsigned int |
value | ) |
|
Sets the depth of the dimensions of rays to dispatch.
- Parameters
-
◆ exportClassToTree()
virtual void nkGraphics::RaytracingPass::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Basic exporting capabilities.
- Parameters
-
rootNode | The tree to export to. |
Reimplemented from nkGraphics::Pass.
◆ importClassFromTree()
virtual void nkGraphics::RaytracingPass::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Basic importing capabilities.
- Parameters
-
rootNode | The tree to import from. |
Reimplemented from nkGraphics::Pass.
The documentation for this class was generated from the following file: