Skip to content

Commit

Permalink
wgpu: Specify cube face when writing cube textures (#110)
Browse files Browse the repository at this point in the history
This helps to address shader-slang/slang#4943
  • Loading branch information
aleino-nv authored Nov 20, 2024
1 parent e6329ef commit 3bb34bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wgpu/wgpu-texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Result DeviceImpl::createTexture(const TextureDesc& desc_, const SubresourceData
WGPUImageCopyTexture imageCopyTexture = {};
imageCopyTexture.texture = texture->m_texture;
imageCopyTexture.mipLevel = mipLevel;
imageCopyTexture.origin = {0, 0, 0};
imageCopyTexture.origin = {0, 0, desc.type == TextureType::TextureCube ? arrayLayer : 0U};
imageCopyTexture.aspect = WGPUTextureAspect_All;

WGPUExtent3D writeSize = {};
Expand Down

0 comments on commit 3bb34bb

Please sign in to comment.