KhronosGroup / KhronosGroup/Vulkan-ValidationLayers

LOAD_OP_CLEAR does not validate depth-stencil layout

Open
#11,299 0 comments 1 reaction 1 assignee Claimed by @artem-lunarg View on GitHub
ImageLayout
Dominant language
C++
Stars
1k
Forks
504
Avg merge
11h 35m
Merged PRs (30d)
224

Description

**Environment:**
- OS: Arch Linux
- GPU and driver version: 9070xt, mesa main
- SDK or header version if building from repo: main
- Options enabled (synchronization, best practices, etc.):

**Describe the Issue**

Attempting to use imageLayout = DEPTH_STENCIL_READ_ONLY_OPTIMAL, with loadOp = CLEAR should trip validation, but it doesn't.

Image

This is a normal D32S8 image, 2 layers, 1 mip. The VkImageView covers the first layer only if that matters.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.