UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMetalPixelShader Class Reference

#include <MetalPixelShader.h>

+ Inheritance diagram for FMetalPixelShader:

Public Member Functions

 FMetalPixelShader (FMetalDevice &Device, TArrayView< const uint8 > InCode)
 
 FMetalPixelShader (FMetalDevice &Device, TArrayView< const uint8 > InCode, MTLLibraryPtr InLibrary)
 
MTLFunctionPtr GetFunction ()
 
- Public Member Functions inherited from TMetalBaseShader< FRHIPixelShader, SF_Pixel >
 TMetalBaseShader (FMetalDevice &MetalDevice)
 
virtual ~TMetalBaseShader ()
 
void Init (TArrayView< const uint8 > InCode, FMetalCodeHeader &Header, MTLLibraryPtr InLibrary)
 
void Destroy ()
 
NS::String * GetSourceCode ()
 
- Public Member Functions inherited from FRHIPixelShader
 FRHIPixelShader ()
 
- Public Member Functions inherited from FRHIGraphicsShader
 FRHIGraphicsShader (ERHIResourceType InResourceType, EShaderFrequency InFrequency)
 
- Public Member Functions inherited from FRHIShader
void SetHash (const FSHAHash &InHash)
 
const FSHAHashGetHash () const
 
bool HasShaderName () const
 
const TCHARGetShaderName () const
 
FString GetUniformBufferName (uint32 Index) const
 
 FRHIShader ()=delete
 
 FRHIShader (ERHIResourceType InResourceType, EShaderFrequency InFrequency)
 
EShaderFrequency GetFrequency () const
 
void SetNoDerivativeOps (bool bValue)
 
bool HasNoDerivativeOps () const
 
void SetShaderBundleUsage (bool bValue)
 
bool HasShaderBundleUsage () const
 
- Public Member Functions inherited from FRHIResource
RHI_API FRHIResource (ERHIResourceType InResourceType)
 
uint32 AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 
bool IsValid () const
 
void DisableLifetimeExtension ()
 
ERHIResourceType GetType () const
 
FName GetOwnerName () const
 
void SetOwnerName (FName InOwnerName)
 
- Public Member Functions inherited from FRHIShaderData
const FShaderResourceTableGetShaderResourceTable () const
 
const TArray< FUniformBufferStaticSlot > & GetStaticSlots () const
 
void SerializeShaderResourceTable (FArchive &Ar)
 

Additional Inherited Members

- Public Types inherited from TMetalBaseShader< FRHIPixelShader, SF_Pixel >
enum  
 
- Public Attributes inherited from FRHIShader
struct { 
 
   FString   ShaderName 
 
   TArray< FName >   UniformBufferNames 
 
Debug 
 
TArray< FShaderCodeValidationStrideDebugStrideValidationData
 
TArray< FShaderCodeValidationTypeDebugSRVTypeValidationData
 
TArray< FShaderCodeValidationTypeDebugUAVTypeValidationData
 
TArray< FShaderCodeValidationUBSizeDebugUBSizeValidationData
 
- Public Attributes inherited from FMetalShaderData
FMetalShaderBindings Bindings
 
TMap< uint32, MTL::ArgumentEncoder * > ArgumentEncoders
 
TMap< uint32, TBitArray<> > ArgumentBitmasks
 
TArray< FUniformBufferStaticSlotStaticSlots
 
int32 SideTableBinding = -1
 
uint32 SourceLen = 0
 
uint32 SourceCRC = 0
 
uint32 ConstantValueHash = 0
 
MTLFunctionPtr Function
 
MTLLibraryPtr Library
 
NS::String * GlslCodeNSString = nullptr
 
TArray< uint8CompressedSource
 
uint32 CodeSize = 0
 
bool bHasFunctionConstants = false
 
bool bDeviceFunctionConstants = false
 
uint32 LibraryFunctionIndex = -1
 
- Protected Member Functions inherited from TMetalBaseShader< FRHIPixelShader, SF_Pixel >
MTLFunctionPtr GetCompiledFunction (bool const bAsync=false, const int32 FunctionIndex=-1)
 
- Protected Member Functions inherited from FRHIResource
virtual RHI_API ~FRHIResource ()
 
- Protected Attributes inherited from TMetalBaseShader< FRHIPixelShader, SF_Pixel >
FMetalDeviceDevice
 
- Protected Attributes inherited from FRHIShaderData
FShaderResourceTable ShaderResourceTable
 
TArray< FUniformBufferStaticSlotStaticSlots
 

Constructor & Destructor Documentation

◆ FMetalPixelShader() [1/2]

FMetalPixelShader::FMetalPixelShader ( FMetalDevice Device,
TArrayView< const uint8 InCode 
)

◆ FMetalPixelShader() [2/2]

FMetalPixelShader::FMetalPixelShader ( FMetalDevice Device,
TArrayView< const uint8 InCode,
MTLLibraryPtr  InLibrary 
)

Member Function Documentation

◆ GetFunction()

MTLFunctionPtr FMetalPixelShader::GetFunction ( )

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