You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sets _info.format to VK_FORMAT_UNDEFINED The MTLPixelFormat is MTLPixelFormatX32_Stencil8. I expected the vkFormat to be filled by MVKPixelFormats::buildVkFormatMaps But it isn't as there is only a one to one mapping from Vulkan to Metal and Depth32Float_Stencil8 is already mapping.
It then prints errors in MVKAttachmentDescription::linkToSubpasses as no format is known. The render pass configuration error is set to VK_ERROR_FORMAT_NOT_SUPPORTED. This might lead to not any further commands for this rendering context.
Expectation
I would expect that the MTLPixelFormatX32_Stencil8 would have a valid vkFormat assigned.
When attaching a depth/stencil image I would not expect MTLPixelFormatX32_Stencil8 to be used but MTLPixelFormatDepth32Float_Stencil8 as we are writing to the image.
Reproducable
This was detected when running Blender using MoltenVK. The UI draws, but solid view doesn't draw at all.
Note that there is temporarily no working Blender on MoltenVK I hope to patch it later this week.
The text was updated successfully, but these errors were encountered:
If you need any information, please ask. It is quite easy to reproduce with Blender, although it is quite complex example. I could spent some time to narrow it down to the least amount of steps to reproduce.
It seems like when using a
D32_SFLOAT_S8_UINT
as depth attachment it getsVK_FORMAT_UNDEFINED
and fails to create a valid render pass.sets
_info.format
toVK_FORMAT_UNDEFINED
The MTLPixelFormat isMTLPixelFormatX32_Stencil8
. I expected the vkFormat to be filled byMVKPixelFormats::buildVkFormatMaps
But it isn't as there is only a one to one mapping from Vulkan to Metal andDepth32Float_Stencil8
is already mapping.It then prints errors in
MVKAttachmentDescription::linkToSubpasses
as no format is known. The render pass configuration error is set toVK_ERROR_FORMAT_NOT_SUPPORTED
. This might lead to not any further commands for this rendering context.Expectation
I would expect that the
MTLPixelFormatX32_Stencil8
would have a validvkFormat
assigned.When attaching a depth/stencil image I would not expect
MTLPixelFormatX32_Stencil8
to be used butMTLPixelFormatDepth32Float_Stencil8
as we are writing to the image.Reproducable
This was detected when running Blender using MoltenVK. The UI draws, but solid view doesn't draw at all.
Note that there is temporarily no working Blender on MoltenVK I hope to patch it later this week.
The text was updated successfully, but these errors were encountered: