Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHIViewDesc > API/Runtime/RHI/FRHIViewDesc/FBuffer
Inheritance Hierarchy
- FRHIViewDesc::FBuffer::FViewInfo
- FRHIViewDesc::FBufferSRV::FViewInfo
- FRHIViewDesc::FBufferUAV::FViewInfo
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include | #include "RHIResources.h" |
Syntax
struct FViewInfo
Remarks
Used by platform RHIs to create views of buffers. The data in this structure is computed in GetViewInfo(), and is specific to a particular buffer resource. It is not intended to be stored in a view instance.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bNullView | When true, the view is refering to a BUF_NullResource, so a null descriptor should be created. | |
| EBufferType | BufferType | Whether this is a typed / structured / raw view etc. | |
| EPixelFormat | Format | The format of the data exposed by this view. PF_Unknown for all buffer types except typed buffer views. | |
| uint32 | NumElements | The number of elements visible in the view. | |
| uint32 | OffsetInBytes | The offset in bytes from the beginning of the viewed buffer resource. | |
| uint32 | SizeInBytes | The total number of bytes the data visible in the view covers (i.e. stride * numelements). | |
| uint32 | StrideInBytes | The size in bytes of a single element in the view. |