Quick answer: Vulkan validation reporting aspect bit mismatch when binding a depth+stencil image as stencil-only? Aspect mask must match the format - use VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT.

Depth+stencil format image; trying to bind as VK_IMAGE_ASPECT_STENCIL_BIT only.

Match aspect to format

Format determines available aspects. D32_S8 has both; bind both unless using format with stencil-only support.

Or use stencil-only format

VK_FORMAT_S8_UINT if available. Pure stencil; aspect bit is correct.

Verify with validation

Validation layer reports the mismatch explicitly. Fix; move on.

“Image aspects are format-driven. Subset selection rules differ.”

Build a small helper that maps format to allowed aspects. Stops the manual lookup; aspect mismatches disappear.

Related reading