Repository navigation
Runtime: depth-stencil views of 1D and 1D-array textures (D3D-79) - #684
ismailchaka1 wants to merge 2 commits into
Conversation
… textures (D3D-79)
CreateDepthStencilView refused TEXTURE1D, TEXTURE1DARRAY and
TEXTURE2DMSARRAY ("depth-stencil view dimension not supported") and wrote
an empty view. They now record the same TargetView ranges as their 2D
forms: mip and layer 0 for 1D, mip and layers for 1D arrays (a 1D texture
is a one-row 2D image), layers for multisample arrays.
d3d12_vulkan_device_test creates a 4x D32_FLOAT array of three layers,
checks a TEXTURE2DMSARRAY view of layers 1-2 in the DSV slot, and clears
it through the replay. 1D views are not tested here: 1D textures are
refused on main until D3D-63 (ItsNotRexed#561).
…rs it D3D-79 was split: multisample arrays are D3D-83 in ItsNotRexed#683. This PR keeps the TEXTURE1D and TEXTURE1DARRAY views, which wait for 1D textures (ItsNotRexed#561).
|
Reviewed 8bc3b54 and tested it with #561 (0067da5) merged locally on an NVIDIA GeForce RTX 4090 (driver 617.14), Windows 10 22H2, MSVC 19.39, Vulkan SDK 1.4.363.0,
For this PR to do something, I think it needs (a) #561 or a follow-up to accept AI-assisted (Claude Code); repository tests and a small |
|
Closing as superseded: |
Item: D3D-79 (claimed in #374), the 1D part. The 2D multisample-array part became D3D-83 and is in #683 (@rafaelpssz), so it was dropped from this PR.
Depends on: #561 (1D textures)
CreateDepthStencilViewhandledTEXTURE2D,TEXTURE2DMSandTEXTURE2DARRAYonly;TEXTURE1DandTEXTURE1DARRAYlogged "depth-stencil view dimension not supported" and wrote an empty view. They now record the sameTargetViewranges as their 2D forms, since a 1D texture is a one-row 2D image (#561's model):TEXTURE1D:MipSlice, layer 0, one layer;TEXTURE1DARRAY:MipSlice,FirstArraySlice,ArraySize.Only
runtime/shims/d3d12_vulkan_device.cppchanges (six lines).Not tested yet:
CreateCommittedResourcerefuses 1D textures onmainuntil #561 lands, so there is no 1D depth texture to view. Draft until then; I'll add a test that creates a 1D depth array and clears a slice through these views once #561 merges.Tested on an NVIDIA GeForce RTX 4070 SUPER, driver 32.0.16.1088, Windows 11, MSVC 2022: the runtime builds;
ctestpasses (27/27);d3d12_vulkan_device_testpasses withLEONIDA_VK_VALIDATION=1, no validation errors. No game files used.AI-assisted.