Navigation
API > API/Runtime > API/Runtime/RHI
Inheritance Hierarchy
- FRHIResource
- FRHIViewableResource
- FRHITexture
- FNullDynamicRHI::FNullTexture
- FOpenGLTexture
- FRHITextureReference
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include | #include "RHIResources.h" |
Syntax
class FRHITexture : public FRHIViewableResource
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRHITexture
(
const FRHITextureCreateDesc& InDesc |
Initialization constructor. Should only be called by platform RHI implementations. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FLinearColor | |||
| FRHIDescriptorHandle | |||
| float | |||
| void | GetDepthStencilClearValue
(
float& OutDepth, |
||
| const FRHITextureDesc & | GetDesc () |
Get the texture description used to create the texture Still virtual because FRHITextureReference can override this function - remove virtual when FRHITextureReference is deprecated | |
| double | |||
| FIntVector | GetMipDimensions
(
uint8 MipIndex |
Returns the dimensions (i.e. the actual number of texels in each dimension) of the specified mip. | |
| void * | Returns access to the platform-specific native resource pointer. | ||
| void * | Returns access to the platform-specific native shader resource view pointer. | ||
| FIntVector | GetSizeXYZ () |
Helper getter functions - non virtual Returns the x, y & z dimensions if the texture The Z component will always be 1 for 2D/cube resources and will contain depth for volume textures & array size for array textures | |
| uint32 | |||
| void * | Returns access to the platform-specific RHI texture baseclass. | ||
| FRHITextureReference * | Virtual functions implemented per RHI | ||
| void | GetWriteMaskProperties
(
void*& OutData, |
||
| bool | |||
| bool | |||
| void | SetLastRenderTime
(
float InLastRenderTime |
RenderTime & Name functions - non virtualsets the last time this texture was cached in a resource table. | |
| void |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| const FClearValueBinding | GetClearBinding() is deprecated, please use GetDesc().ClearValue instead | ||
| ETextureCreateFlags | GetFlags () |
GetFlags() is deprecated, please use GetDesc().Flags instead | |
| EPixelFormat | GetFormat () |
GetFormat() is deprecated, please use GetDesc().Format instead | |
| uint32 | GetNumMips () |
GetNumMips() is deprecated, please use GetDesc().NumMips instead | |
| uint32 | GetNumSamples() is deprecated, please use GetDesc().NumSamples instead | ||
| uint32 | GetSize () |
GetSize() is deprecated, please use GetDesc().Extent.X instead | |
| uint32 | GetSizeX () |
GetSizeX() is deprecated, please use GetDesc().Extent.X instead | |
| FIntPoint | GetSizeXY () |
GetSizeXY() is deprecated, please use GetDesc().Extent.X or GetDesc().Extent.Y instead | |
| uint32 | GetSizeY () |
GetSizeY() is deprecated, please use GetDesc().Extent.Y instead | |
| uint32 | GetSizeZ () |
GetSizeZ() is deprecated, please use GetDesc().ArraySize instead for TextureArrays and GetDesc().Depth for 3D textures | |
| FRHITexture2D * | GetTexture2D () |
FRHITexture2D is deprecated, please use FRHITexture directly | |
| FRHITexture2DArray * | FRHITexture2DArray is deprecated, please use FRHITexture directly | ||
| FRHITexture3D * | GetTexture3D () |
FRHITexture3D is deprecated, please use FRHITexture directly | |
| FRHITextureCube * | FRHITextureCube is deprecated, please use FRHITexture directly |