diff options
Diffstat (limited to 'runtime/test/d3d12_method_variants_test.cpp')
| -rw-r--r-- | runtime/test/d3d12_method_variants_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/test/d3d12_method_variants_test.cpp b/runtime/test/d3d12_method_variants_test.cpp index d1b8edf4a..fcb19ec80 100644 --- a/runtime/test/d3d12_method_variants_test.cpp +++ b/runtime/test/d3d12_method_variants_test.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | // a D3D12 device. A texture from CreateCommittedResource3 goes through an upload, a copy and a readback on a queue | 7 | // a D3D12 device. A texture from CreateCommittedResource3 goes through an upload, a copy and a readback on a queue |
| 8 | // from CreateCommandQueue1. No shaders or game data. Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation; any validation error fails. | 8 | // from CreateCommandQueue1. No shaders or game data. Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation; any validation error fails. |
| 9 | #include "vk_test_device.h" | 9 | #include "vk_test_device.h" |
| 10 | #include "host_wine.h" | ||
| 10 | #include "../shims/d3d12_com.h" | 11 | #include "../shims/d3d12_com.h" |
| 11 | 12 | ||
| 12 | #include <cstdint> | 13 | #include <cstdint> |
| @@ -533,8 +534,8 @@ int main() { | |||
| 533 | reinterpret_cast<void*>(GetProcAddress(d3d12, "D3D12CreateDevice"))) | 534 | reinterpret_cast<void*>(GetProcAddress(d3d12, "D3D12CreateDevice"))) |
| 534 | : nullptr; | 535 | : nullptr; |
| 535 | Ref<ID3D12Device10> host; | 536 | Ref<ID3D12Device10> host; |
| 536 | const bool have_host = | 537 | const bool have_host = create_host && !hostwine::host_is_wine() && |
| 537 | create_host && SUCCEEDED(create_host(nullptr, D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS(&host.p))); | 538 | SUCCEEDED(create_host(nullptr, D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS(&host.p))); |
| 538 | Ref<ID3D12Device> standalone_base; | 539 | Ref<ID3D12Device> standalone_base; |
| 539 | Ref<ID3D12Device10> standalone_device; | 540 | Ref<ID3D12Device10> standalone_device; |
| 540 | EXPECT(SUCCEEDED(rt::d3d12::create_vulkan_device_standalone(IID_PPV_ARGS(&standalone_base.p)))); | 541 | EXPECT(SUCCEEDED(rt::d3d12::create_vulkan_device_standalone(IID_PPV_ARGS(&standalone_base.p)))); |