Merge pull request #1118 from cdavis5e/3d-image-view-render
MVKImage: Always set the depth plane when rendering to a 3D image.
This commit is contained in:
commit
6595ac8987
@ -1537,7 +1537,7 @@ void MVKImageView::populateMTLRenderPassAttachmentDescriptor(MTLRenderPassAttach
|
|||||||
mtlAttDesc.level = plane->_useMTLTextureView ? 0 : _subresourceRange.baseMipLevel;
|
mtlAttDesc.level = plane->_useMTLTextureView ? 0 : _subresourceRange.baseMipLevel;
|
||||||
if (mtlAttDesc.texture.textureType == MTLTextureType3D) {
|
if (mtlAttDesc.texture.textureType == MTLTextureType3D) {
|
||||||
mtlAttDesc.slice = 0;
|
mtlAttDesc.slice = 0;
|
||||||
mtlAttDesc.depthPlane = plane->_useMTLTextureView ? 0 : _subresourceRange.baseArrayLayer;
|
mtlAttDesc.depthPlane = _subresourceRange.baseArrayLayer;
|
||||||
} else {
|
} else {
|
||||||
mtlAttDesc.slice = plane->_useMTLTextureView ? 0 : _subresourceRange.baseArrayLayer;
|
mtlAttDesc.slice = plane->_useMTLTextureView ? 0 : _subresourceRange.baseArrayLayer;
|
||||||
mtlAttDesc.depthPlane = 0;
|
mtlAttDesc.depthPlane = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user