Photon Engine C API 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph Namespace Reference

Functions

PictureMeta make_picture_meta (const PhFrameSaveInfo &saveInfo)
 
bool is_reversing_bytes_needed (PhEndian desiredEndianness)
 
PhFrameRegionStatus to_frame_region_status (ERegionStatus regionStatus)
 
void to_frame_region_info (const RenderRegionStatus &regionStatus, PhFrameRegionInfo *out_regionInfo)
 
template<typename T >
TSpan< T > make_array_from_buffer (std::size_t numArrayElements, ByteBuffer &buffer, bool allowBufferGrowth=false)
 Make an array of default constructed objects of type T.
 

Function Documentation

◆ is_reversing_bytes_needed()

bool ph::is_reversing_bytes_needed ( PhEndian desiredEndianness)
inline

◆ make_array_from_buffer()

template<typename T >
TSpan< T > ph::make_array_from_buffer ( std::size_t numArrayElements,
ByteBuffer & buffer,
bool allowBufferGrowth = false )
inline

Make an array of default constructed objects of type T.

Template Parameters
TType for the objects created. Must be default constructible and trivially destructible.
Parameters
arraySizeNumber of array elements.
bufferThe buffer object to back the array. The write head will move past the region for the array.
allowBufferGrowthMaking an array from the buffer may invalidate any previously returned pointers if the buffer is allowed to grow. If false, no previously returned pointers are invalidated.
Returns
Span of the created objects. Empty if not enough storage is left.

◆ make_picture_meta()

PictureMeta ph::make_picture_meta ( const PhFrameSaveInfo & saveInfo)

◆ to_frame_region_info()

void ph::to_frame_region_info ( const RenderRegionStatus & regionStatus,
PhFrameRegionInfo * out_regionInfo )
inline

◆ to_frame_region_status()

PhFrameRegionStatus ph::to_frame_region_status ( ERegionStatus regionStatus)
inline