diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:15:23 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:15:23 -0500 |
| commit | 7cf7fa7c4d1e27d76aef420c4d9f5528dae7d9bb (patch) | |
| tree | 092cad98ca17fa49214c3206470a1dedaff09b99 /runtime/test/d3d12_vulkan_device_test.cpp | |
| parent | 8338cc4ba9e39f5380282f02f55138316e439f4e (diff) | |
| parent | b1fffe8357643fd5845b133e43df45e8dbdee6f3 (diff) | |
Merge pull request #4508 from SHAURYASANYAL3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/d3d12_vulkan_device_test.cpp')
| -rw-r--r-- | runtime/test/d3d12_vulkan_device_test.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/runtime/test/d3d12_vulkan_device_test.cpp b/runtime/test/d3d12_vulkan_device_test.cpp index a1b22494c..68410808c 100644 --- a/runtime/test/d3d12_vulkan_device_test.cpp +++ b/runtime/test/d3d12_vulkan_device_test.cpp | |||
| @@ -627,6 +627,56 @@ int compare_allocation_info(ID3D12Device* ours) { | |||
| 627 | {"buffer width 0", buffer_desc(0), 0}, | 627 | {"buffer width 0", buffer_desc(0), 0}, |
| 628 | {"buffer height 2", bad_buffer, 0}, | 628 | {"buffer height 2", bad_buffer, 0}, |
| 629 | {"buffer with a format", typed_buffer, 0}, | 629 | {"buffer with a format", typed_buffer, 0}, |
| 630 | // Resource flag handling (D3D-467). | ||
| 631 | {"buffer render target", [&] { | ||
| 632 | auto d = buffer_desc(256); | ||
| 633 | d.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET; | ||
| 634 | return d; | ||
| 635 | }(), 0}, | ||
| 636 | {"buffer render target UAV", [&] { | ||
| 637 | auto d = buffer_desc(256); | ||
| 638 | d.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET | D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS; | ||
| 639 | return d; | ||
| 640 | }(), 0}, | ||
| 641 | {"buffer cross adapter", [&] { | ||
| 642 | auto d = buffer_desc(256); | ||
| 643 | d.Flags = D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER; | ||
| 644 | return d; | ||
| 645 | }(), 0}, | ||
| 646 | {"buffer depth stencil (invalid)", [&] { | ||
| 647 | auto d = buffer_desc(256); | ||
| 648 | d.Flags = D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL; | ||
| 649 | return d; | ||
| 650 | }(), 0}, | ||
| 651 | {"buffer simultaneous access (invalid)", [&] { | ||
| 652 | auto d = buffer_desc(256); | ||
| 653 | d.Flags = D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS; | ||
| 654 | return d; | ||
| 655 | }(), 0}, | ||
| 656 | {"buffer video decode reference only (invalid)", [&] { | ||
| 657 | auto d = buffer_desc(256); | ||
| 658 | d.Flags = D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY; | ||
| 659 | return d; | ||
| 660 | }(), 0}, | ||
| 661 | {"buffer flag 0x1000 (invalid)", [&] { | ||
| 662 | auto d = buffer_desc(256); | ||
| 663 | d.Flags = D3D12_RESOURCE_FLAGS(0x1000); | ||
| 664 | return d; | ||
| 665 | }(), 0}, | ||
| 666 | {"tex2d deny shader resource alone (invalid)", [&] { | ||
| 667 | auto d = texture_desc(16, 16, rgba8, D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE); | ||
| 668 | return d; | ||
| 669 | }(), 0}, | ||
| 670 | {"tex2d single sample quality 1", [&] { | ||
| 671 | auto d = texture_desc(16, 16, rgba8, none); | ||
| 672 | d.SampleDesc.Quality = 1; | ||
| 673 | return d; | ||
| 674 | }(), 16 * 16 * 4}, | ||
| 675 | {"tex2d single sample quality center pattern", [&] { | ||
| 676 | auto d = texture_desc(16, 16, rgba8, none); | ||
| 677 | d.SampleDesc.Quality = 0xffffffff; | ||
| 678 | return d; | ||
| 679 | }(), 16 * 16 * 4}, | ||
| 630 | {"256x256 full chain", texture_desc(256, 256, rgba8, none, 0), 256 * 256 * 4}, | 680 | {"256x256 full chain", texture_desc(256, 256, rgba8, none, 0), 256 * 256 * 4}, |
| 631 | {"16x16 small", with(texture_desc(16, 16, rgba8, none), k4), 16 * 16 * 4}, | 681 | {"16x16 small", with(texture_desc(16, 16, rgba8, none), k4), 16 * 16 * 4}, |
| 632 | {"16x16 small render target", with(texture_desc(16, 16, rgba8, rt), k4), 16 * 16 * 4}, | 682 | {"16x16 small render target", with(texture_desc(16, 16, rgba8, rt), k4), 16 * 16 * 4}, |