Skip to content

Runtime: remaining depth-stencil view dimensions (D3D-79) - #703

Closed
lordnyx0 wants to merge 1 commit into
ItsNotRexed:mainfrom
lordnyx0:d3d-79-dsv-dimensions
Closed

lordnyx0 wants to merge 1 commit into
ItsNotRexed:mainfrom
lordnyx0:d3d-79-dsv-dimensions

Conversation

@lordnyx0

Copy link
Copy Markdown

D3D-79: depth-stencil view dimensions that the Vulkan device refused.

CreateDepthStencilView now maps Texture1D, Texture1DArray and Texture2DMSArray into TargetView (mip, first layer, layer count), alongside the existing 2D, 2DMS and 2DARRAY paths.

Added runtime/test/dsv_dimensions_test.cpp, registered as the dsv_dimensions ctest. It checks the encoded TargetView for all three new dimensions from a synthetic 2D depth resource. Real 1D resources are still refused by the layer (D3D-63, #561), so this verifies descriptor encoding; end-to-end 1D coverage can follow when that lands.

Tested: MSVC 19.51 (VS 18 Community), Vulkan SDK 1.4.357, NVIDIA GeForce RTX 3060 (12 GB, subgroup 32..32), driver 616.56, Windows 11 Pro 10.0.26100. ctest --test-dir runtime/build-cmake -C RelWithDebInfo --output-on-failure: 28/28 pass, including the new test. The new test also passes with LEONIDA_VK_VALIDATION=1; the only extra output is loader noise from a stale Epic overlay layer JSON. No game files were used.

Claimed in #634: #634 (comment)

AI-assisted (opencode): it wrote the implementation and the test; I reviewed the diff and the results.

@lordnyx0

Copy link
Copy Markdown
Author

Closing this in favour of #683, which already implements the TEXTURE2DMSARRAY part of D3D-79 (thanks to @tylerstraub for pointing it out on the claim). The remaining TEXTURE1D/TEXTURE1DARRAY dimensions wait on #561 for 1D resource creation, as the coordinator marked in #313. The local branch and test will be removed; I'll release the claim in #634. Thanks for the review.

AI-assisted (opencode).

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