Streaming ray tracer interface Enables efficient batch processing of ray packets. More...
#include <CollisionDetection.h>
Public Member Functions | |
| void | addRays (const std::vector< RayQuery > &queries) |
| Add rays to the stream, automatically batching into packets. | |
| std::vector< HitResult > | getAllResults () const |
| Get all results from processed packets. | |
| void | clear () |
| Clear the stream. | |
| size_t | getMemoryUsage () const |
| Get total memory usage of the stream. | |
Data Fields | |
| std::vector< RayPacket > | packets |
| Collection of ray packets. | |
| size_t | current_packet = 0 |
| Current packet being processed. | |
| size_t | total_rays = 0 |
| Total rays across all packets. | |
Streaming ray tracer interface Enables efficient batch processing of ray packets.
Definition at line 221 of file CollisionDetection.h.
|
inline |
Add rays to the stream, automatically batching into packets.
Definition at line 229 of file CollisionDetection.h.
|
inline |
Clear the stream.
Definition at line 259 of file CollisionDetection.h.
|
inline |
Get all results from processed packets.
Definition at line 245 of file CollisionDetection.h.
|
inline |
Get total memory usage of the stream.
Definition at line 268 of file CollisionDetection.h.
| size_t CollisionDetection::RayStream::current_packet = 0 |
Current packet being processed.
Definition at line 223 of file CollisionDetection.h.
| std::vector<RayPacket> CollisionDetection::RayStream::packets |
Collection of ray packets.
Definition at line 222 of file CollisionDetection.h.
| size_t CollisionDetection::RayStream::total_rays = 0 |
Total rays across all packets.
Definition at line 224 of file CollisionDetection.h.