runtime: bind 1D, 2D-array, 3D and cube texture SRVs in native compute #3777
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3777
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3775"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@R0D4X on GitHub · 2026-12-01 18:28 UTC · original
R0D4X:runtime/native-compute-tex-dims→main· +152 −39 · 5 files · 2 commits · merged 2026-12-02 01:56 UTCRefs #3226
Summary
Enables live in-process native compute translation (
translate_compute_nativelyinsrc/startup_stubs/d3d12_compute_dispatch.inl) to bind 1D, 2D-array, 3D, and cube texture SRVs (plusd16_sample_srvand 2D-arraycomparison_texture_srv), matching the dimensions already published byformat_compute_runtime_manifestand already supported bylist_dispatch:src/startup_stubs/d3d12_compute_dispatch.inl(translate_compute_natively):texture_srv/d16_sample_srv: mapsimage_dimension0->TEXTURE1D,1->TEXTURE2D,2->TEXTURE3D,5->TEXTURE2DARRAY.comparison_texture_srv: mapsimage_dimension1->TEXTURE2D,5->TEXTURE2DARRAY(1D/3D comparisons remain refused, matchingformat_compute_runtime_manifest).cube_sample_srv(image_dimension == 3): maps toTEXTURECUBE(bound as a one-cubeTextureCubeArraybylist_dispatch).tests/startup_compute_dispatch_cube_check.py,tests/startup_compute_dispatch_texture_dims_check.py,tests/cmake/startup_compute_native_tex_dims.cmake):nativemode (X2W_NATIVE_SHADERS+X2W_NATIVE_SHADERS_ONLY=1, no published.txtmanifest) exercising1d,2da,3d, andcubetexture SRVs end-to-end on hardware, including view-dimension mismatch, undescribed view, and out-of-bounds/clamped view refusal controls with D3D12 debug layer enabled.Verification
Environment: Windows 11 x64 (
10.0.26300.9974), MSVC19.44.35230, Windows SDK / DXC10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver32.0.16.2140), D3D12 debug layer enabled.Commit under test:
7f9ee63d.dev: 4/4 passed (0 skipped), RTX 5080, debug layer enabled, 0 debug errors.release: 4/4 passed (0 skipped), RTX 5080, debug layer enabled, 0 debug errors.cube_sample_srvbranch intranslate_compute_nativelycausedstartup_compute_dispatch_cube_native_hardwareto fail (cube samples: word 0 expected 42c80000, read c5c5c5c5 (288 words differ)); after revertingsrc/, the test passed again.No game files, dumps, or private paths included.
7f9ee63d19to4be65468a6