Navigation
API > API/Runtime > API/Runtime/RHI
Inheritance Hierarchy
- FRHITextureDesc
- FRDGTextureDesc
- FRHITextureCreateDesc
- FOpenGLTextureCreateDesc
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include | #include "RHIResources.h" |
Syntax
struct FRHITextureDesc
Remarks
Descriptor used to create a texture resource
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint16 | ArraySize | The number of array elements in the texture. (Keep at 1 if dimension is 3D). | |
| FClearValueBinding | ClearValue | Clear value to use when fast-clearing the texture. | |
| uint16 | Depth | Depth of the texture if the dimension is 3D. | |
| ETextureDimension | Dimension | Texture dimension to use when creating the RHI texture. | |
| uint32 | ExtData | Platform-specific additional data. Used for offline processed textures on some platforms. | |
| FIntPoint | Extent | Extent of the texture in x and y. | |
| uint8 | FastVRAMPercentage | Resource memory percentage which should be allocated onto fast VRAM (hint-only). | |
| ETextureCreateFlags | Flags | Texture flags passed on to RHI texture. | |
| EPixelFormat | Format | Pixel format used to create RHI texture. | |
| FRHIGPUMask | GPUMask | A mask representing which GPUs to create the resource on, in a multi-GPU system. | |
| uint8 | NumMips | Number of mips in the texture mip-map chain. | |
| uint8 | NumSamples | Number of samples in the texture. >1 for MSAA. | |
| EPixelFormat | UAVFormat | Texture format used when creating the UAV. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRHITextureDesc
(
const FRHITextureDesc& Other |
|||
FRHITextureDesc
(
ETextureDimension InDimension |
|||
FRHITextureDesc
(
ETextureDimension InDimension, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint64 | CalcMemorySizeEstimate
(
uint32 FirstMipIndex, |
Returns an estimated total memory size the described texture will occupy in GPU memory. | |
| uint64 | CalcMemorySizeEstimate
(
uint32 FirstMipIndex |
||
| bool | CheckValidity
(
const FRHITextureDesc& Desc, |
Check the validity. | |
| FIntVector | GetSize () |
||
| bool | IsMipChain () |
||
| bool | |||
| bool | IsTexture2D () |
||
| bool | IsTexture3D () |
||
| bool | |||
| bool | |||
| bool | IsValid () |
Returns whether this descriptor conforms to requirements. | |
| void | Reset () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FRHITextureDesc& Other |
||
| FRHITextureDesc & | operator=
(
const FRHITextureDesc& Other |
||
| bool | operator==
(
const FRHITextureDesc& Other |