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