Navigation
API > API/Runtime > API/Runtime/RenderCore
Stores information about a shader library name. This splits the filename into names for chunk, shader format, and platform format. For example, "Global-SF_VULKAN_SM6-VULKAN_SM6" is split into chunk "Global", shader format "SF_VULKAN_SM6", and platform format "VULKAN_SM6". Note that some platforms only have a single string for the format-platform combination, in which case ShaderFormatName can be empty.
| Name | FShaderLibraryNameInfo |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCodeArchive.h |
| Include Path | #include "ShaderCodeArchive.h" |
Syntax
struct FShaderLibraryNameInfo
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChunkName | FString | Shader library chunk name, e.g. "Global", "Lyra_Chunk0", "MyPlugin" etc. | ShaderCodeArchive.h | |
| ShaderFormatName | FName | Shader format nane, e.g, "SF_VULKAN_SM6". | ShaderCodeArchive.h | |
| ShaderPlatformName | FName | Shader platform format name, e.g. "VULKAN_SM6". | ShaderCodeArchive.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString GetAssetInfoFilename() |
Returns the shader asset info filename (*.assetinfo.json) that belongs to the respective *.ushaderbytecode file. | ShaderCodeArchive.h | |
| Returns the combined format and platform names. | ShaderCodeArchive.h | ||
FString GetFullName() |
Returns the full name with chunk, shader format, and platform format names. | ShaderCodeArchive.h | |
| Returns the name for this shader library, which is a combination of chunk and format names, e.g. "Global-SF_VULKAN_SM6". | ShaderCodeArchive.h | ||
FString GetTypeInfoFilename() |
Returns the shader type info filename (*.stinfo) that belongs to the respective *.ushaderbytecode file. | ShaderCodeArchive.h | |
bool ParseFromFilename
(
const TCHAR* Filename |
Initializes all name sections from the specified filename (usually a *.ushaderbytecode file). | ShaderCodeArchive.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ParsePakChunkId
(
const FStringView& PakChunkName, |
Helper function to parse the ID and optional suffix from a pakchunk name, e.g. "pakchunk100iad-Windows" -> 100 and "iad" | ShaderCodeArchive.h |