Skip to content

Commit

Permalink
Fix an issue where the depth format in MVKCmdClearImage was not getti…
Browse files Browse the repository at this point in the history
…ng set correctly.
  • Loading branch information
mellinoe committed May 20, 2018
1 parent d527248 commit 8985ab9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@

if (_isDepthStencilClear) {
_rpsKey.enable(kMVKAttachmentFormatDepthStencilIndex);
_rpsKey.attachmentMTLPixelFormats[kMVKAttachmentFormatDepthStencilIndex] = _image->getMTLPixelFormat();
float mtlDepthVal = mvkMTLClearDepthFromVkClearValue(clearValue);
_clearColors[kMVKAttachmentFormatDepthStencilIndex] = { mtlDepthVal, mtlDepthVal, mtlDepthVal, mtlDepthVal };
_mtlStencilValue = mvkMTLClearStencilFromVkClearValue(clearValue);
Expand Down

0 comments on commit 8985ab9

Please sign in to comment.