diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-11-18 02:50:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-17 10:50:40 -0800 |
| commit | 27243ce07880f65f9abb15e38f7176eea9572aac (patch) | |
| tree | c11db10cd6959cebfb198bc436f8694e404d9a9e /tools | |
| parent | 240aa243527eabcf87c30aabf9749396de47b1b2 (diff) | |
warnings (#3335)
* ignores
* Remove unused variables
* Squash out of bounds warning
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gfx/d3d12/d3d12-device.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp index 44a9faa45..cd4dfb7a3 100644 --- a/tools/gfx/d3d12/d3d12-device.cpp +++ b/tools/gfx/d3d12/d3d12-device.cpp @@ -1899,6 +1899,7 @@ Result DeviceImpl::createInputLayout(IInputLayout::Desc const& desc, IInputLayou char* textPos = layout->m_text.getBuffer(); List<D3D12_INPUT_ELEMENT_DESC>& elements = layout->m_elements; + SLANG_ASSERT(inputElementCount > 0); elements.setCount(inputElementCount); for (Int i = 0; i < inputElementCount; ++i) |
