|
Foundation
|
#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 } |
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.
| RHIDeviceHeapType Foundation::RHI::RHIResourceDesc::heap { RHIDeviceHeapType::Local } |
Which heap the resource is allocated in.
| RHIResourceHostAccess Foundation::RHI::RHIResourceDesc::hostAccess { RHIResourceHostAccess::Invisible } |
How the resource can be accessed by the host (CPU)
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.