diff options
| author | Yong He <yonghe@outlook.com> | 2022-01-19 11:14:38 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-19 11:14:38 -0800 |
| commit | b40cd149c2038b0a429e46d60ddee5610e08b0ba (patch) | |
| tree | 914f8661a7f7dd3566772536cab609bfbc592413 /tools/gfx/d3d12/resource-d3d12.cpp | |
| parent | 3b41c818a46cb7761e5a5f2878ceb76d9aef1a20 (diff) | |
More fixes to GFX d3d12. (#2084)
* Fixes to GFX.
* Fix binding null resource views in d3d12.
* Fix array render target view creation.
* Add support for more primitive topologies.
* More gfx fixes.
* D3D12 feature report on conservative raster, programmable sample position, barycentrics and ROV.
* Add QueryPool::reset.
* Fix resource setDebugName.
* Dynamically expanding GPU descriptor heap.
* Render passes without render targets (null frame buffer).
* Fix.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/d3d12/resource-d3d12.cpp')
| -rw-r--r-- | tools/gfx/d3d12/resource-d3d12.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/gfx/d3d12/resource-d3d12.cpp b/tools/gfx/d3d12/resource-d3d12.cpp index 3f91a12be..7329b28fd 100644 --- a/tools/gfx/d3d12/resource-d3d12.cpp +++ b/tools/gfx/d3d12/resource-d3d12.cpp @@ -76,15 +76,10 @@ void D3D12ResourceBase::transition( /* static */void D3D12Resource::setDebugName(ID3D12Resource* resource, const char* name) { - if (resource) - { - size_t len = ::strlen(name); - List<wchar_t> buf; - buf.setCount(len + 1); - - D3DUtil::appendWideChars(name, buf); - resource->SetName(buf.begin()); - } + if (resource) + { + resource->SetName(String(name).toWString().begin()); + } } void D3D12Resource::setDebugName(const char* name) |
