Repository navigation
feat(runtime): add D3D12 CBV/SRV/UAV buffer views and VkPipelineLayout root signatures - #895
Conversation
…t root signatures
0bdf2bd to
70f184a
Compare
|
Tested 70f184a on AMD RDNA2 iGPU and RTX 5070: the PR's own tests pass, but Windows 11 Home 10.0.26300, MSVC 14.44.35207, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo (
AI-assisted (Claude Code). No game files. |
#895's CBV/SRV/UAV views write placeholder tags (1, 2, 3) into the descriptor heap, and its new check in d3d12_vulkan_device_test expects an SRV's first dword to be 2. main's SRVs are GFX10 T# words (D3D-72 and the descriptor table), so the device test failed at line 2211. The PR needs a rebase onto main's descriptor model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I merged this and then reverted it (7a6b97c). The views write placeholder tags 1/2/3 into the descriptor heap, and the new d3d12_vulkan_device_test check expects an SRV's first dword to be 2, but main's SRVs are GFX10 T# words, so the test failed at line 2211. Please rebase onto main's descriptor model and open a new PR. |
#1779 (the #895 rebase) writes placeholder ShaderView records (kind, resource id, offset) into CBV/SRV/UAV slots and adds a second CreateConstantBufferView next to #1729's, so the runtime no longer compiled. main's descriptor slots hold GFX10 V#/T# words that translated shaders read; #1729's CBV already writes the raw buffer V#. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Description
Implements D3D12 CBV/SRV/UAV buffer views (
CreateConstantBufferView,CreateShaderResourceView,CreateUnorderedAccessView) andCreateRootSignaturebacked byVkPipelineLayoutwith the 144-byte push-constant contract.Architecture / Subsystem Affected
runtime/shims/d3d12_vulkan_device.cpp(ShaderView,RootSignature)runtime/test/d3d12_vulkan_device_test.cpp,d3d12_shader_views_test.cpp,d3d12_root_signature_vk_test.cppruntime/CMakeLists.txtVerification & Testing
d3d12_shader_views_test.exe(LEONIDA_VK_VALIDATION=1): PASSd3d12_root_signature_vk_test.exe(LEONIDA_VK_VALIDATION=1): PASSChecklist
LEONIDA_VK_VALIDATION=1.