Rise
The Vieneo Province
Loading...
Searching...
No Matches
Native Shader Cache11 tests

Checks cold/warm shader-cache behavior, dependency and compiler invalidation, concurrent cache sharing, corrupt entries, generated-source rejection and failure recovery without stale-bytecode fallback.

Subsystem: Diagnostics, profiling, packaging and runtime integrity
Fixture/harness: nativeshadercache11tests
Setup: The script owns its temporary inputs and validation state; arguments and prerequisites are documented in the source.

Build/entry point: Tests/NativeShaderCache11Tests.ps1; inspect its arguments before invoking. Documentation generation does not execute it.

NativeShaderCache11Tests.ps1

Source: Tests/NativeShaderCache11Tests.ps1

Script checks

Fixture: Native Shader Cache11 tests
Case symbol: script
Source: Tests/NativeShaderCache11Tests.ps1:1

Test
Checks cold/warm shader-cache behavior, dependency and compiler invalidation, concurrent cache sharing, corrupt entries, generated-source rejection and failure recovery without stale-bytecode fallback.
Source check messages (including original failure wording)

  • $name unexpectedly succeeded
  • $name failed: $output
  • $name expected $hits hits/$compiled compilations, got $values
  • $name exceeded the worker limit
  • Cold build did not overlap FXC workers
  • Clean must not delete the shared cache
  • Clean must track staged dependency and resource files
  • Wrong active transitive dependency graph
  • Resource file escaped the staging directory
  • Direct FXC comparison failed
  • Preprocessing changed bytecode
  • Unrelated shader was rewritten
  • Include resolution was not refreshed
  • Missing packed resource was not restored
  • Direct FXC undef comparison failed
  • Snapshot compilation reapplied a removed define
  • Concurrent build failed: $output
  • Concurrent builds duplicated compilation or missed cache entries
  • Failed compiler overwrote good staged bytecode
  • Expected FXC preprocessor zero-exit error was not exercised
  • Cache ran before stale generated source rejection