Repository navigation
Runtime: the 1/2/3 method variants on the Vulkan device (D3D-28, part 1) - #472
Merged
Merged
Conversation
1 of 2 tasks
Contributor
|
Tested
No game files were used. |
Contributor
|
Tested 659ad51 on an NVIDIA RTX 4090 (621.24) and an AMD Radeon iGPU (2.0.353), Windows 11 (build 26300), MSVC 14.44, Vulkan SDK 1.4.363.0, clean Ninja build of
(AI-assisted test run.) |
Contributor
|
Tested 659ad51 on RTX 5070 (Blackwell, subgroup 32..32), NVIDIA 616.56, Windows 11 Pro 26200: pass.
|
1 of 2 tasks
MrCheese5
force-pushed
the
d3d-28-method-variants
branch
from
November 22, 2026 00:38
659ad51 to
8c5d274
Compare
CreateCommittedResource1/2/3, CreateCommandQueue1 and GetCopyableFootprints1 as thin wrappers over the existing methods. D3D12_RESOURCE_DESC1 drops to D3D12_RESOURCE_DESC; the initial state or barrier layout is unused, because new textures start UNDEFINED and move on first use. The newer arguments are answered as the PC runtime answers them (measured on an RTX 4090, driver 621.14): - a protected resource session: E_INVALIDARG (no session support reported); - a sampler-feedback mip region: E_INVALIDARG on textures, ignored on buffers; GetCopyableFootprints1 returns its failure answer for such a texture; - a buffer's initial layout other than UNDEFINED: E_INVALIDARG; - a castable count with a null list: no list; - a castable list: E_INVALIDARG, since it needs RelaxedFormatCastingSupported, which the layer does not report (D3D12_OPTIONS12 is unanswered); - CreateCommandQueue1's creator ID: ignored. d3d12_method_variants_test compares each variant with its base method, runs the edge cases and, when the host has a D3D12 device, compares each answer with the PC runtime live. Thanks to ezwinxdlmao for the probe notes in ItsNotRexed#156. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MrCheese5
force-pushed
the
d3d-28-method-variants
branch
from
November 22, 2026 01:04
8c5d274 to
382daba
Compare
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item: D3D-28, part 1 (#313; claimed in #156, where ezwinxdlmao released an overlapping claim)
CreateCommittedResource1/2/3,CreateCommandQueue1andGetCopyableFootprints1on the Vulkan-backed device, as thin wrappers over the methods already onmain.D3D12_RESOURCE_DESC1drops toD3D12_RESOURCE_DESC. The initial state or barrier layout is not used, because new textures are trackedUNDEFINEDand moved on first use, as with the older methods. The newer arguments are answered as the PC runtime answers them, measured on an RTX 4090 (driver 621.14):E_INVALIDARG(the layer reports no protected-session support)SamplerFeedbackMipRegionon a textureE_INVALIDARGfromCreateCommittedResource2/3;GetCopyableFootprints1returns its failure answer (all ones)SamplerFeedbackMipRegionon a bufferUNDEFINEDE_INVALIDARGS_OK)E_INVALIDARG: it needsRelaxedFormatCastingSupported, which the layer doesn't report (D3D12_OPTIONS12is unanswered). A device without relaxed casting refuses every list (ezwinxdlmao's 680M probe in #156)CreateCommandQueue1creator IDThe table is also in
docs/d3d12_vulkan.md§3.2. Thanks to ezwinxdlmao for releasing the claim and for the probe notes (slot 76, the null-list and footprint answers); this PR checks those answers live against the host runtime.Not in this PR:
CreateHeap1andCreatePlacedResource1/2wait for #286 (D3D-16).CreateSampler2can now build onCreateSampleronmain, but it comes separately, since its border-colour and non-normalized-coordinate flags need their own measured answers.Tests: a new
d3d12_method_variants_test(GPU). It calls the device directly, because the proxy's slot 76 is the Xbox texture method, notCreateCommittedResource3.CreateCommittedResourceand each of1/2/3: buffers on all three heap types, a render target, depth-stencil, a full mip chain, a BC7 array, a volume, 4x MSAA, and three shapes the base refuses. Results, null-output results, descriptions, heap properties, image-vs-buffer andMapmust all match.GetCopyableFootprints1vsGetCopyableFootprintsfield by field: 8 cases × 2 base offsets plus a null description.CreateCommittedResource3is uploaded, copied back and compared, on a queue fromCreateCommandQueue1.Results, on
mainat4abd545:d3d12_method_variants_testandd3d12_vulkan_device_testpass withLEONIDA_VK_VALIDATION=1and no validation errors; every edge case matches the host runtimectest --test-dir runtime/build: 19/19 passedruntimebuild (RelWithDebInfo, Ninja) with no warnings at/W4Tested on an NVIDIA RTX 4090, driver 621.14, Windows 11 build 26200, MSVC 19.44, Vulkan SDK 1.4.363.0. No game files used.
AI-assisted (Claude Code).
🤖 Generated with Claude Code