UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TSlateTexture< ResourceType > Class Template Reference

#include <SlateShaderResource.h>

+ Inheritance diagram for TSlateTexture< ResourceType >:

Public Member Functions

 TSlateTexture ()
 
 TSlateTexture (ResourceType &InShaderResource)
 
virtual ~TSlateTexture ()
 
ResourceType & GetTypedResource ()
 
virtual ESlateShaderResource::Type GetType () const override
 
- Public Member Functions inherited from FSlateShaderResource
virtual uint32 GetWidth () const =0
 
virtual uint32 GetHeight () const =0
 
virtual bool IsResourceValid () const
 
virtual ESlatePostRT GetUsedSlatePostBuffers () const
 
virtual bool RequiresVirtualTextureFeedback () const
 
void CheckForStaleResources () const
 
bool Debug_IsDestroyed () const
 
virtual ~FSlateShaderResource ()=default
 

Protected Attributes

ResourceType ShaderResource
 

Detailed Description

template<typename ResourceType>
class TSlateTexture< ResourceType >

Abstract base class for platform independent texture resource accessible by the shader.

Constructor & Destructor Documentation

◆ TSlateTexture() [1/2]

template<typename ResourceType >
TSlateTexture< ResourceType >::TSlateTexture ( )
inline

Default constructor.

◆ TSlateTexture() [2/2]

template<typename ResourceType >
TSlateTexture< ResourceType >::TSlateTexture ( ResourceType &  InShaderResource)
inline

Creates and initializes a new instance.

Parameters
InShaderResourceThe resource to use.

◆ ~TSlateTexture()

template<typename ResourceType >
virtual TSlateTexture< ResourceType >::~TSlateTexture ( )
inlinevirtual

Member Function Documentation

◆ GetType()

template<typename ResourceType >
virtual ESlateShaderResource::Type TSlateTexture< ResourceType >::GetType ( ) const
inlineoverridevirtual

Gets the type of the resource.

Returns
Resource type.

Implements FSlateShaderResource.

◆ GetTypedResource()

template<typename ResourceType >
ResourceType & TSlateTexture< ResourceType >::GetTypedResource ( )
inline

Gets the resource used by the shader.

Returns
The resource.

Member Data Documentation

◆ ShaderResource

template<typename ResourceType >
ResourceType TSlateTexture< ResourceType >::ShaderResource
protected

The documentation for this class was generated from the following file: