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 device queues.
 
RHIDeviceQueueFlags sharedQueues
 
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, this will cause a CHECK.

◆ 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 device queues.

◆ sharedQueues

RHIDeviceQueueFlags Foundation::RHI::RHIResourceDesc::sharedQueues
Initial value:
{RHIDeviceQueueFlagsBits::Graphics | RHIDeviceQueueFlagsBits::Compute |
RHIDeviceQueueFlagsBits::Transfer}

With shared=true, the types of queues that are allowed access indexed by RHIDeviceQueueType values

◆ 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: