XII Release 0.1.0
Loading...
Searching...
No Matches
xiiShaderPermutationUtilities Class Reference

#include <ShaderPermutationUtilities.h>

Static Public Member Functions

static xiiShaderPermutationResourceHandle PreloadSinglePermutation (xiiShaderResourceHandle hShader, const xiiHashTable< xiiHashedString, xiiHashedString > &permVars, bool bAllowFallback)

Detailed Description

Process-wide shader permutation path cache.

The cache is created after Foundation startup and destroyed before allocator shutdown. Public operations are thread-safe because render pipelines can preload shader permutations concurrently.

Member Function Documentation

◆ PreloadSinglePermutation()

xiiShaderPermutationResourceHandle xiiShaderPermutationUtilities::PreloadSinglePermutation ( xiiShaderResourceHandle hShader,
const xiiHashTable< xiiHashedString, xiiHashedString > & permVars,
bool bAllowFallback )
static

Returns an invalid handle when the shader is unavailable or invalid. Validate before acquiring the permutation. Set bAllowFallback to false when constructing a required pipeline: a loading fallback does not describe the requested shader.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Shader/ShaderPermutationUtilities.h
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Shader/Implementation/ShaderPermutationUtilities.cpp