Navigation
API > API/Runtime > API/Runtime/RHI
The unified RHI view descriptor. These are stored in the base FRHIView type, and packed to minimize memory usage. Platform RHI implementations use the GetViewInfo() functions to convert an FRHIViewDesc into the required info to make a view / descriptor for the GPU.
| Name | FRHIViewDesc |
| Type | struct |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
Syntax
struct FRHIViewDesc
Derived Classes
- FRHIViewDesc::FBufferSRV::FInitializer
- FRHIViewDesc::FBufferUAV::FInitializer
- FRHIViewDesc::FTextureSRV::FInitializer
- FRHIViewDesc::FTextureUAV::FInitializer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRHIViewDesc () |
RHIResources.h | ||
FRHIViewDesc
(
EViewType ViewType |
RHIResources.h |
Structs
| Name | Remarks |
|---|---|
| FBuffer | Properties shared by buffer views. Some fields are SRV or UAV specific. |
| FBufferSRV | |
| FBufferUAV | |
| FCommon | Properties that apply to all views. |
| FTexture | Properties shared by texture views. Some fields are SRV or UAV specific. |
| FTextureSRV | |
| FTextureUAV |
Enums
Public
| Name | Remarks |
|---|---|
| EBufferType | |
| EDimension | |
| EViewType |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Buffer | union FRHIViewDesc | RHIResources.h | ||
| Common | FCommon | RHIResources.h | ||
| FRHIViewDesc | union FRHIViewDesc | RHIResources.h | ||
| SRV | FTextureSRV | RHIResources.h | ||
| SRV | FBufferSRV | RHIResources.h | ||
| Texture | union FRHIViewDesc | RHIResources.h | ||
| UAV | FBufferUAV | RHIResources.h | ||
| UAV | FTextureUAV | RHIResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsBuffer() |
RHIResources.h | ||
bool IsSRV() |
RHIResources.h | ||
bool IsTexture() |
RHIResources.h | ||
bool IsUAV() |
RHIResources.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FBufferSRV::FInitializer CreateBufferSRV() |
RHIResources.h | ||
static FBufferUAV::FInitializer CreateBufferUAV() |
RHIResources.h | ||
static FTextureSRV::FInitializer CreateTextureSRV() |
RHIResources.h | ||
static FTextureUAV::FInitializer CreateTextureUAV() |
RHIResources.h | ||
static const TCHAR * GetBufferTypeString
(
EBufferType BufferType |
RHIResources.h | ||
static const TCHAR * GetTextureDimensionString
(
EDimension Dimension |
RHIResources.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
FRHIViewDesc const& RHS |
RHIResources.h | ||
bool operator==
(
FRHIViewDesc const& RHS |
RHIResources.h |