Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::WriteTLASCompactedSizeAttribs Struct Reference

This structure is used by IDeviceContext::WriteTLASCompactedSize(). More...

#include <DeviceContext.h>

Public Attributes

ITopLevelASpTLAS = nullptr
 Top-level AS.
 
IBufferpDestBuffer = nullptr
 The destination buffer into which a 64-bit value representing the acceleration structure compacted size will be written to.
 
Uint64 DestBufferOffset = 0
 Offset from the beginning of the buffer to the location of the AS compacted size.
 
RESOURCE_STATE_TRANSITION_MODE TLASTransitionMode = RESOURCE_STATE_TRANSITION_MODE_NONE
 Top-level AS state transition mode (see Diligent::RESOURCE_STATE_TRANSITION_MODE).
 
RESOURCE_STATE_TRANSITION_MODE BufferTransitionMode = RESOURCE_STATE_TRANSITION_MODE_NONE
 Destination buffer state transition mode (see Diligent::RESOURCE_STATE_TRANSITION_MODE).
 

Detailed Description

This structure is used by IDeviceContext::WriteTLASCompactedSize().

Member Data Documentation

◆ pDestBuffer

IBuffer* Diligent::WriteTLASCompactedSizeAttribs::pDestBuffer = nullptr

The destination buffer into which a 64-bit value representing the acceleration structure compacted size will be written to.

Remarks
Metal backend writes a 32-bit value.