Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayBufferRayCount

 

GetRayBufferRayCount

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the number of rays in a particular ray buffer.  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

count = GetRayBufferRayCount ( id )

 

Parameters

count (Long or Huge_)

The number of rays in the ray buffer.

 

id As Long

The identifier of the ray buffer.

 

Remarks

GetRayBufferRayCount retrieves the number of rays in a particular ray buffer. If there is a problem the function returns 0 and sets no error.

 

See Also

GetRayBufferCount

AddRayBuffer

DeleteRayBuffer

SetActiveRayBufferIndex

 

Examples

Ray Buffer Handling

 

 

 

 

 

Copyright © Photon Engineering, LLC