diff options
| author | Yong He <yonghe@outlook.com> | 2022-02-10 11:50:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-10 11:50:07 -0800 |
| commit | 0c04885da9edc3df7a1ef5cb520be1bd29eb13e4 (patch) | |
| tree | 401c9220c3dcf23e4698405e00fe3b5176e0e472 /tools/gfx-unit-test/gfx-test-util.cpp | |
| parent | 15f07d14b5f048dc355536cbdf5cf9c10291b13b (diff) | |
gfx: support d3d12 root parameters (#2122)
* Various fixes to gfx.
* Fix.
* Fixes.
* Fix.
* gfx: support root parameter via user-defined attribute.
* Fix.
* Fix.
* Skip d3d12 tests on win x86.
* Fixes.
Co-authored-by: Yong He <yhe@nvidia.com>
Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'tools/gfx-unit-test/gfx-test-util.cpp')
| -rw-r--r-- | tools/gfx-unit-test/gfx-test-util.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gfx-unit-test/gfx-test-util.cpp b/tools/gfx-unit-test/gfx-test-util.cpp index 1133e3842..ecd19f179 100644 --- a/tools/gfx-unit-test/gfx-test-util.cpp +++ b/tools/gfx-unit-test/gfx-test-util.cpp @@ -202,6 +202,14 @@ namespace gfx_test const char* searchPaths[] = { "", "../../tools/gfx-unit-test", "tools/gfx-unit-test" }; deviceDesc.slang.searchPathCount = (SlangInt)SLANG_COUNT_OF(searchPaths); deviceDesc.slang.searchPaths = searchPaths; + + gfx::D3D12DeviceExtendedDesc extDesc = {}; + extDesc.rootParameterShaderAttributeName = "root"; + + deviceDesc.extendedDescCount = 1; + void* extDescPtr = &extDesc; + deviceDesc.extendedDescs = &extDescPtr; + auto createDeviceResult = gfxCreateDevice(&deviceDesc, device.writeRef()); if (SLANG_FAILED(createDeviceResult)) { |
