Foundation
Loading...
Searching...
No Matches
Public Attributes | List of all members
Foundation::RHI::RHIResourceDesc Struct Reference

#include <Resource.hpp>

Public Attributes

bool isAlias { false }
 
RHIDeviceHeapType heap { RHIDeviceHeapType::Local }
 Which heap the resource is allocated in.
 
RHIResourceHostAccess hostAccess { RHIResourceHostAccess::Invisible }
 How the resource can be accessed by the host (CPU)
 
bool shared { false }
 Can be shared with other devices.
 
bool coherent { false }
 
bool staging { false }
 

Member Data Documentation

◆ coherent

bool Foundation::RHI::RHIResourceDesc::coherent { false }

Guarantees that the host can see the latest data written by the device without explicit flush On implementations that do not support this, exceptions will be thrown when trying to create such resources.

◆ heap

RHIDeviceHeapType Foundation::RHI::RHIResourceDesc::heap { RHIDeviceHeapType::Local }

Which heap the resource is allocated in.

◆ hostAccess

RHIResourceHostAccess Foundation::RHI::RHIResourceDesc::hostAccess { RHIResourceHostAccess::Invisible }

How the resource can be accessed by the host (CPU)

◆ isAlias

bool Foundation::RHI::RHIResourceDesc::isAlias { false }

◆ shared

bool Foundation::RHI::RHIResourceDesc::shared { false }

Can be shared with other devices.

◆ staging

bool Foundation::RHI::RHIResourceDesc::staging { false }

Hint that the resource will be used for staging With this flag - the resource may be not host-visible regardless of the host_access flag. This is a performance hint, and may be ignored by implementations.


The documentation for this struct was generated from the following file: