Navigation
API > API/Runtime > API/Runtime/RenderCore
Inheritance Hierarchy
- FRenderResource
- FTexture
- FPlanarReflectionRenderTarget
- FSkyTextureCubeResource
- FStaticShadowDepthMap
- FTextureResource
- FStreamableTextureResource
- FTexture2DResource
- FTexture2DDynamicResource
- FTextureRenderTargetResource
- FSlateTextureRenderTarget2DResource
- FTextureRenderTarget2DArrayResource
- FTextureRenderTarget2DResource
- FTextureRenderTargetCubeResource
- FTextureRenderTargetVolumeResource
- FVirtualTexture2DResource
- FTextureWithSRV
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/RenderResource.h |
| Include | #include "RenderResource.h" |
Syntax
class FTexture : public FRenderResource
Remarks
A textures resource.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bGreyScaleFormat | BGreyScaleFormat indicates the texture is actually in R channel but should be read as Grey (replicate R to RGBA) this is set from CompressionSettings, not PixelFormat this is only used by Editor/Debug shaders, not real game materials, which use SamplerType from MaterialExpressions | |
| bool | bIgnoreGammaConversions | True if the texture is in the same gamma space as the intended rendertarget (e.g. screenshots). | |
| bool | bSRGB | Is the pixel data in this texture sRGB? | |
| FSamplerStateRHIRef | DeferredPassSamplerStateRHI | Sampler state to be used in deferred passes when discontinuities in ddx / ddy would cause too blurry of a mip to be used. | |
| double | LastRenderTime | The last time the texture has been bound | |
| FMipBiasFade | MipBiasFade | Base values for fading in/out mip-levels. | |
| FSamplerStateRHIRef | SamplerStateRHI | The sampler state to use for the texture. | |
| FTextureRHIRef | TextureRHI | The texture's RHI resource. |
Constructors
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FTexture () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FRHISamplerState * | GetOrCreateSamplerState
(
const FSamplerStateInitializerRHI& Initializer |
||
| uint32 | GetSizeX () |
Returns the width of the texture in pixels. | |
| uint32 | GetSizeY () |
Returns the height of the texture in pixels. | |
| uint32 | GetSizeZ () |
Returns the depth of the texture in pixels. | |
| const FTextureRHIRef & |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| FString | |||
| void | ReleaseRHI () |
Releases the RHI resources used by this resource. |