Navigation
API > API/Runtime > API/Runtime/RenderCore
Collection of unique shader code Populated at cook time
| Name | FShaderCodeLibrary |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCodeLibrary.h |
| Include Path | #include "ShaderCodeLibrary.h" |
Syntax
struct FShaderCodeLibrary
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddKnownChunkIDs
(
const int32* IDs, |
Makes a number of ChunkIDs known to the library. | ShaderCodeLibrary.h | |
static bool AreShaderMapsPreloadedAtLoadTime() |
ShaderCodeLibrary.h | ||
static void CloseLibrary
(
FString const& Name |
Close a named library. | ShaderCodeLibrary.h | |
static bool ContainsShaderCode
(
const FSHAHash& Hash |
ShaderCodeLibrary.h | ||
static bool ContainsShaderCode
(
const FSHAHash& Hash, |
ShaderCodeLibrary.h | ||
static FAmplificationShaderRHIRef CreateAmplificationShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static FComputeShaderRHIRef CreateComputeShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static FGeometryShaderRHIRef CreateGeometryShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static FMeshShaderRHIRef CreateMeshShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static FPixelShaderRHIRef CreatePixelShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static FRayTracingShaderRHIRef CreateRayTracingShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static FVertexShaderRHIRef CreateVertexShader
(
EShaderPlatform Platform, |
ShaderCodeLibrary.h | ||
static void DontOpenPluginShaderLibraryOnMount
(
const FString& PluginName |
Disables opening the specified plugin's shader library on mount. | ShaderCodeLibrary.h | |
static EShaderPlatform GetRuntimeShaderPlatform() |
The shader platform that the library manages - at runtime this will only be one. | ShaderCodeLibrary.h | |
static uint32 GetShaderCount() |
Total number of shader entries in the library. | ShaderCodeLibrary.h | |
static void InitForRuntime
(
EShaderPlatform ShaderPlatform |
This is the real initialization function. | ShaderCodeLibrary.h | |
static bool IsEnabled() |
ShaderCodeLibrary.h | ||
static TRefCountPtr< FShaderMapResource > LoadResource
(
const FSHAHash& Hash, |
ShaderCodeLibrary.h | ||
| Open a named library.At runtime this will open the shader library with this name. | ShaderCodeLibrary.h | ||
static void OpenPluginShaderLibrary
(
IPlugin& Plugin, |
Open the plugin's shader library | ShaderCodeLibrary.h | |
static void PreInit() |
Adds the hooks for OnPakFileMounted, since pak opening normally happens earlier. | ShaderCodeLibrary.h | |
| ShaderCodeLibrary.h | |||
static FDelegateHandle RegisterSharedShaderCodeRequestDelegate_Handle
(
const FSharedShaderCodeRequest::FDelegate& Delegate |
Delegate called whenever shader code is requested. | ShaderCodeLibrary.h | |
static bool ReleasePreloadedShader
(
const FSHAHash& Hash |
ShaderCodeLibrary.h | ||
static void SafeAssignHash
(
FRHIShader* InShader, |
Safely assign the hash to a shader object. | ShaderCodeLibrary.h | |
static void Shutdown() |
ShaderCodeLibrary.h | ||
static void UnregisterSharedShaderCodeRequestDelegate_Handle
(
FDelegateHandle Handle |
ShaderCodeLibrary.h |