rrCmdIntersect
Intersects ray buffer.
RRError rrCmdIntersect( |
RRContext context, |
RRDevicePtr scene_buffer, |
|
RRIntersectQuery query, |
|
RRDevicePtr rays, |
|
uint32_t ray_count, |
|
RRDevicePtr indirect_ray_count, |
|
RRIntersectQueryOutput query_output, |
|
RRDevicePtr hits, |
|
RRDevicePtr scratch, |
|
RRCommandStream command_stream); |
Applies to
All supported backends
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
context |
input |
RR API context. |
scene |
input |
Scene to raycast against. |
query |
input |
Query type (clsosest or first). |
rays |
input |
Buffer of rays. |
ray_count |
input |
Number of rays in the buffer (or max number of rays if |
indirect_ray_count |
input |
Optional actual number of rays in the buffer. |
query_output |
input |
Type of the information to output. |
hits |
output |
Output hits buffer. |
scratch |
input |
Auxilliary buffer for trace. |
command_stream |
input |
Command stream to write command to. |
Return
Returns an error in case of a failure, or RR_Success otherwise.