Skip to content

Commit

Permalink
Fix UAV access for 3d texture mips (#5363)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccummingsNV authored Oct 21, 2024
1 parent 3b8efef commit 563258c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gfx/d3d12/d3d12-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ Result DeviceImpl::createTextureView(
d3d12desc.ViewDimension = D3D12_UAV_DIMENSION_TEXTURE3D;
d3d12desc.Texture3D.MipSlice = desc.subresourceRange.mipLevel;
d3d12desc.Texture3D.FirstWSlice = desc.subresourceRange.baseArrayLayer;
d3d12desc.Texture3D.WSize = resourceDesc.size.depth;
d3d12desc.Texture3D.WSize = resourceDesc.size.depth >> desc.subresourceRange.mipLevel;
break;
default:
return SLANG_FAIL;
Expand Down

0 comments on commit 563258c

Please sign in to comment.