Navigation
API > API/Runtime > API/Runtime/RHI
| |
|
| Name |
ERHIAccess |
| Type |
enum |
| Header File |
/Engine/Source/Runtime/RHI/Public/RHIAccess.h |
| Include Path |
#include "RHIAccess.h" |
Syntax
enum ERHIAccess
{
Unknown = 0,
CPURead = 1 << 0,
Present = 1 << 1,
IndirectArgs = 1 << 2,
VertexOrIndexBuffer = 1 << 3,
SRVCompute = 1 << 4,
SRVGraphicsPixel = 1 << 5,
SRVGraphicsNonPixel = 1 << 6,
CopySrc = 1 << 7,
ResolveSrc = 1 << 8,
DSVRead = 1 << 9,
UAVCompute = 1 << 10,
UAVGraphics = 1 << 11,
RTV = 1 << 12,
CopyDest = 1 << 13,
ResolveDst = 1 << 14,
DSVWrite = 1 << 15,
BVHRead = 1 << 16,
BVHWrite = 1 << 17,
Discard = 1 << 18,
ShadingRateSource = 1 << 19,
Last = ShadingRateSource,
None = Unknown,
Mask = (Last << 1) - 1,
SRVGraphics = SRVGraphicsPixel | SRVGraphicsNonPixel,
SRVMask = SRVCompute | SRVGraphics,
UAVMask = UAVCompute | UAVGraphics,
ReadOnlyExclusiveMask = CPURead | Present | IndirectArgs | VertexOrIndexBuffer | SRVGraphics | SRVCompute | CopySrc | ResolveSrc | BVHRead | ShadingRateSource,
ReadOnlyExclusiveComputeMask = CPURead | IndirectArgs | SRVCompute | CopySrc | BVHRead,
ReadOnlyMask = ReadOnlyExclusiveMask | DSVRead | ShadingRateSource,
ReadableMask = ReadOnlyMask | UAVMask,
WriteOnlyExclusiveMask = RTV | CopyDest | ResolveDst,
WriteOnlyMask = WriteOnlyExclusiveMask | DSVWrite,
WritableMask = WriteOnlyMask | UAVMask | BVHWrite,
}
Values
| Name |
Remarks |
| Unknown |
Used when the previous state of a resource is not known, which implies we have to flush all GPU caches etc. |
| CPURead |
Read states. |
| Present |
|
| IndirectArgs |
|
| VertexOrIndexBuffer |
|
| SRVCompute |
|
| SRVGraphicsPixel |
|
| SRVGraphicsNonPixel |
|
| CopySrc |
|
| ResolveSrc |
|
| DSVRead |
|
| UAVCompute |
Read-write states. |
| UAVGraphics |
|
| RTV |
|
| CopyDest |
|
| ResolveDst |
|
| DSVWrite |
|
| BVHRead |
Ray tracing acceleration structure states. |
| BVHWrite |
|
| Discard |
Invalid released state (transient resources) |
| ShadingRateSource |
Shading Rate Source. |
| Last |
|
| None |
|
| Mask |
|
| SRVGraphics |
Graphics is a combination of pixel and non-pixel. |
| SRVMask |
A mask of the two possible SRV states. |
| UAVMask |
A mask of the two possible UAV states. |
| ReadOnlyExclusiveMask |
A mask of all bits representing read-only states which cannot be combined with other write states. |
| ReadOnlyExclusiveComputeMask |
A mask of all bits representing read-only states on the compute pipe which cannot be combined with other write states. |
| ReadOnlyMask |
A mask of all bits representing read-only states which may be combined with other write states. |
| ReadableMask |
A mask of all bits representing readable states which may also include writable states. |
| WriteOnlyExclusiveMask |
A mask of all bits representing write-only states which cannot be combined with other read states. |
| WriteOnlyMask |
A mask of all bits representing write-only states which may be combined with other read states. |
| WritableMask |
A mask of all bits representing writable states which may also include readable states. |