Skip to content

Commit

Permalink
Merge pull request #74 from 01Pollux/d3d12-nri-buffer-desc
Browse files Browse the repository at this point in the history
Fix incorrect check when converting D3D12 buffer desc to NRI buffer desc
  • Loading branch information
dzhdanNV authored Jun 24, 2024
2 parents 749f869 + 7b2f0e0 commit b73c998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/D3D12/SharedD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ bool nri::GetBufferDesc(const BufferD3D12Desc& bufferD3D12Desc, BufferDesc& buff
return false;

D3D12_RESOURCE_DESC desc = resource->GetDesc();
if (desc.Dimension < D3D12_RESOURCE_DIMENSION_TEXTURE1D)
if (desc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER)
return false;

bufferDesc.size = desc.Width;
Expand Down

0 comments on commit b73c998

Please sign in to comment.