Skip to content

Shaders: test typed descriptor handle reuse within a block - #1

Open
MichaelSmithAI wants to merge 1 commit into
flapwarp78:shader/typed-atomics-and-branch-threadingfrom
MichaelSmithAI:test/typed-handle-cache
Open

MichaelSmithAI wants to merge 1 commit into
flapwarp78:shader/typed-atomics-and-branch-threadingfrom
MichaelSmithAI:test/typed-handle-cache

Conversation

@MichaelSmithAI

Copy link
Copy Markdown

Adds a compiler-internal regression test to the branch behind Marvisak#48. It asks for two views of the same loaded descriptor in the same block. Both are single-component Texture2D UAVs, one float and one unsigned integer. The test checks that each request returns a distinct handle and that a second request of each type reuses its original handle.

The fixture calls the actual lowering cache without serializing a shader or starting a graphics driver. On upstream main at d2a4bae the two requests returned the same instruction. This also exercises the cache behavior addressed by Marvisak#177.

Tested on x86-64 Linux with Rust 1.99.1. At the PR head, cargo +stable test --offline --locked -p victory-shader --lib passed all 55 tests. Retail rendering and GPU execution were outside this test.

AI assistance: Codex prepared the fixture, reviewed it and ran the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant