An OpTypeImage with Sampled 2 and Dim SubpassData is a subpassInput, not a
storage image, so a pixel shader reading an input attachment no longer
needs fragmentStoresAndAtomics. NonWritable applied through
OpDecorationGroup / OpGroupDecorate / OpGroupMemberDecorate is resolved like
a direct decoration. spirv_stores_test covers both. Found in review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A malformed module whose array type names itself made the element walk spin
inside CreateGraphicsPipelineState; it now stops after 16 levels, with a case in
spirv_stores_test. d3d12_stores_atomics_test turns the validation layer on for
itself only when the variable is unset. The docs say how the 1,018 of 1,038
figure is counted.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
create_vulkan_device_standalone never enabled fragmentStoresAndAtomics or
vertexPipelineStoresAndAtomics, so a pixel shader with a writable storage
image (an image atomic: 1,018 corpus pixel shaders) broke
VUID-RuntimeSpirv-NonWritable-06340 while CreateGraphicsPipelineState
answered S_OK.
The device enables both where the GPU has them. A graphics PSO whose stage
declares writable storage (src/spirv_stores.h reads the declarations) on a
device without the feature is refused with E_NOTIMPL and a log line.
spirv_stores_test checks the rule on hand-built SPIR-V; d3d12_stores_atomics_test
checks the refusal and the standalone device under the validation layer.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>