Repository navigation
Shaders: lower MSAA image_load and image_get_resinfo - #328
tarcisioads wants to merge 1 commit into
Conversation
|
Tested PR #328 at head
Behavior covered: Checks MSAA image_load and image_get_resinfo lowering in the shader emitter. |
6d7602d to
91e7742
Compare
|
Rebased onto |
91e7742 to
1192e48
Compare
|
Automated triage for the maintainers. Needs work. The resource kinds are right (dim 6 → Texture2DMS, dim 7 → Texture2DMSArray) and the
The test only checks that CI: no check runs on the head commit. Generated by Claude Code |
|
Addressed the triage feedback:
|
1192e48 to
62baee7
Compare
Support
2DMS(dim = 6) and2DMSArray(dim = 7) image dimensions forimage_loadandimage_get_resinfoincrates/victory-shader/src/emit/lower.rs:dim = 6 => (3, 2)anddim = 7 => (8, 3)inimage()forimage_loadandimage_get_resinfo.image_get_resinfo(op 72), passundefas themipargument ofdx.op.getDimensionsfor MSAA (kind3 | 8) and treat2DMS(kind = 3) as[true, true, false, true](width, height, -, sample count).image_load(op 66), forwardsample_index(addr_val(self, coords)) into themipLevelOrSampleparameter ofdx.op.textureLoad.msaa_image_load_and_get_resinfo_lowercoveringimage_loadandimage_get_resinfofor bothdim = 6anddim = 7.Verification
cargo test -p victory-shader(57/57 passed on macOS; Windowsdxil.dllvalidation not run)rustfmt --edition 2024 --check crates/victory-shader/src/emit/lower.rs(ok)cargo xtask policy(ok)