![]() |
XII Release 0.1.0
|
#include <ShaderPermutationUtilities.h>
Static Public Member Functions | |
| static xiiShaderPermutationResourceHandle | PreloadSinglePermutation (xiiShaderResourceHandle hShader, const xiiHashTable< xiiHashedString, xiiHashedString > &permVars, bool bAllowFallback) |
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.
|
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.