Description Moves a ray from one buffer to another. Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long. Please see Multi-threaded Raytracing for more information.
Syntax MoveRayBufferToBuffer iRay, bufSrc, bufDst
Parameters iRay As Long (or Huge_) The identifier of the ray.
bufSrc As Long The identifier of the source ray buffer.
bufDst As Long The identifier of the destination ray buffer.
Remarks This subroutine moves a ray from one buffer to another. If there is a problem the subroutine returns without modifying the ray buffers.
In the current architecture, the ray is moved but its slot remains in the source buffer. Therefore, the value returned from the source buffer by GetRayBufferRayCount after a MoveRayBufferToBuffer will not change. The actual number of rays in the source buffer is returned by GetRayBufferLiveRayCount.
See Also Examples
|