Fix an issue where the depth format in MVKCmdClearImage was not getting set correctly.
This commit is contained in:
parent
d5272484ac
commit
8985ab9131
@ -875,6 +875,7 @@ void MVKCmdClearImage::setContent(VkImage image,
|
||||
|
||||
if (_isDepthStencilClear) {
|
||||
_rpsKey.enable(kMVKAttachmentFormatDepthStencilIndex);
|
||||
_rpsKey.attachmentMTLPixelFormats[kMVKAttachmentFormatDepthStencilIndex] = _image->getMTLPixelFormat();
|
||||
float mtlDepthVal = mvkMTLClearDepthFromVkClearValue(clearValue);
|
||||
_clearColors[kMVKAttachmentFormatDepthStencilIndex] = { mtlDepthVal, mtlDepthVal, mtlDepthVal, mtlDepthVal };
|
||||
_mtlStencilValue = mvkMTLClearStencilFromVkClearValue(clearValue);
|
||||
|
Loading…
x
Reference in New Issue
Block a user