Navigation
API > API/Runtime > API/Runtime/RenderCore
A textures resource.
| Name | FTexture |
| Type | class |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderResource.h |
| Include Path | #include "RenderResource.h" |
Syntax
class FTexture : public FRenderResource
Inheritance Hierarchy
- FRenderResource → FTexture
- FTexture
Derived Classes
FTexture derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTexture () |
RenderResource.h | ||
| RenderResource.h | |||
| RenderResource.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FTexture() |
RenderResource.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bGreyScaleFormat | bool | 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 | RenderResource.h | |
| bIgnoreGammaConversions | bool | True if the texture is in the same gamma space as the intended rendertarget (e.g. screenshots). | RenderResource.h | |
| bSRGB | bool | Is the pixel data in this texture sRGB? | RenderResource.h | |
| DeferredPassSamplerStateRHI | FSamplerStateRHIRef | Sampler state to be used in deferred passes when discontinuities in ddx / ddy would cause too blurry of a mip to be used. | RenderResource.h | |
| LastRenderTime | double | The last time the texture has been bound | RenderResource.h | |
| MipBiasFade | FMipBiasFade | Base values for fading in/out mip-levels. | RenderResource.h | |
| SamplerStateRHI | FSamplerStateRHIRef | The sampler state to use for the texture. | RenderResource.h | |
| TextureRHI | FTextureRHIRef | The texture's RHI resource. | RenderResource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual uint32 GetSizeX() |
Returns the width of the texture in pixels. | RenderResource.h | |
virtual uint32 GetSizeY() |
Returns the height of the texture in pixels. | RenderResource.h | |
virtual uint32 GetSizeZ() |
Returns the depth of the texture in pixels. | RenderResource.h | |
const FTextureRHIRef & GetTextureRHI() |
RenderResource.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetFriendlyName() |
RenderResource.h | ||
virtual void ReleaseRHI () |
Releases the RHI resources used by this resource. | RenderResource.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FRHISamplerState * GetOrCreateSamplerState
(
const FSamplerStateInitializerRHI& Initializer |
RenderResource.h |