UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RHIStaticShaderPlatformNames.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "RHIShaderPlatform.h"
6#include "UObject/NameTypes.h"
7
9{
10private:
11 static const uint32 NumPlatforms = DDPI_NUM_STATIC_SHADER_PLATFORMS;
12
13 struct FPlatform
14 {
15 FName Name;
16 FName ShaderPlatform;
17 FName ShaderFormat;
18 } Platforms[NumPlatforms];
19
21
22public:
24
29
31 {
32 return Platforms[GetStaticPlatformIndex(Platform)].ShaderPlatform;
33 }
34
36 {
37 return Platforms[GetStaticPlatformIndex(Platform)].ShaderFormat;
38 }
39
41 {
42 return Platforms[GetStaticPlatformIndex(Platform)].Name;
43 }
44
45private:
46 static inline uint32 GetStaticPlatformIndex(EShaderPlatform Platform)
47 {
50 }
51};
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EShaderPlatform
Definition RHIShaderPlatform.h:11
@ SP_StaticPlatform_First
Definition RHIShaderPlatform.h:37
@ SP_StaticPlatform_Last
Definition RHIShaderPlatform.h:42
#define DDPI_NUM_STATIC_SHADER_PLATFORMS
Definition RHIShaderPlatform.h:36
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition RHIStaticShaderPlatformNames.h:9
const FName & GetShaderPlatform(EShaderPlatform Platform) const
Definition RHIStaticShaderPlatformNames.h:30
const FName & GetShaderFormat(EShaderPlatform Platform) const
Definition RHIStaticShaderPlatformNames.h:35
const FName & GetPlatformName(EShaderPlatform Platform) const
Definition RHIStaticShaderPlatformNames.h:40
static bool IsStaticPlatform(EShaderPlatform Platform)
Definition RHIStaticShaderPlatformNames.h:25
static RHI_API const FStaticShaderPlatformNames & Get()
Definition RHIStaticShaderPlatformNames.cpp:22