A pipeline whose argument buffers hold texture buffers was refused with
ArgumentBufferTextures (NotImplemented, no location): the translator's heap layout
(lower/texture/slot.rs declare_heap) had no set-1 class for a texture_buffer member, so
SPIRV-Cross-shaped tier-2 argument buffers (descriptor sets as [[buffer(n)]] structs with
texture_buffer, texture2d and sampler members) could not be made, on any device.
- Set 1 gains texel-buffer heap classes: UNIFORM_TEXEL_BUFFER for read, formatless
STORAGE_TEXEL_BUFFER for read_write and write. The class follows the facts' texture type.
- DescriptorCaps gains update_after_bind_uniform_texel_buffer and
update_after_bind_storage_texel_buffer; where a device lacks them a typed needs_any_of names
the missing features. Non-uniform texel-buffer indexing and the without-format read/write
needs are checked as for images; link counts STORAGE_TEXEL_BUFFER with the images against
the update-after-bind limits.
- New public bind::heap::HeapElement::TexelBuffer(vk::Format).
- The runtime writes each live texture buffer's texel view at its resource ID, with a neutral
texel view at element 0; a gone texture buffer's Texels stay alive until its tickets clear.
A texture buffer whose bytes cannot be viewed in place (staged, tail-viewed, offset off
minTexelBufferOffsetAlignment, past maxTexelBufferElements, swizzled, or a non-direct format)
reads the neutral and is announced through the existing UnnamedTextureUnviewable. No new
Degradation kind.
- docs/REFUSALS.md and api_signatures.tsv regenerated.
Test: runtime_lane::argument_texel_buffers::a_texture_buffer_in_an_argument_buffer_is_read_in_both_stages
(an owned fixture in SPIRV-Cross's shape): vertex and fragment read a texture_buffer member of a
set-0 argument buffer, the fragment also samples a set-1 texture2d through the sampler beside it;
every pixel must equal texel[1] + texel[4]*tint + albedo.
Verified: lavapipe with the validation layer, m3-max-31658 at 6626eeaff3: pass. Control
m3-max-31636 (the fixture and test at the base, without the fix): fails with exactly the
ArgumentBufferTextures NotImplemented refusal.