Files
metal2vulkan/crates
Anees Iqbal 49eebb4d7f Validation: an argument-buffer texture buffer binds as a used texture, so the authored compile census compiles it
The authored compile census failed one case, 2631f2da (the public fragment
case reading abt_frag_texel_buffer's texture_buffer member), on every
profile with "argument-buffer texture 2 is a texture buffer, which no heap
array holds" (census job m3-max-63908 at d274b0b474). Since ed4f8976a5
retired texture_buffer_member, the case is no longer refused by a
requirement; a run draws it through the runtime
(runs_render_through_runtime), which makes texture buffers, and the Metal
oracle's observation of it is committed. Only the census still reached the
executor's own bind state: case_compile builds its request's bind shape
with graphics::render_shape -> bind_state -> argument_buffers::used_texture
(argument_buffers.rs:279-283), which refused a texture buffer untyped.

The member is now what Metal's useResource makes resident: a used texture of
Metal's TextureBuffer type and its pixel format
(resources::texture_facts, which bound_texture now uses for image
textures), with its resource id. The translator already plans such a used
resource: bind::heap's members make no heap member of a texture buffer
(heap.rs:931-934), and under the identity domains the census compiles for
(DevicePolicy::default, the runtime's) a texture-buffer member is a set-1
texel-buffer element (817463704e). The executor's own context still
refuses a case holding one, typed, before it binds
(own_context_refuses_members), since its resident-table heap holds no such
member; its docs now say why there rather than in used_texture.

No version moves: ENGINE_EXECUTOR_ABI's rule exempts a change no recorded
row can observe. The runtime route builds no bind state, the own context
refuses the case before binding, and the census never caches a failed
cell, so no recorded row or cached cell held this shape. The case's census
cells change from failed to what the compile gives when main blesses.

Tests: argument_buffer_members_are_written_into_their_owner asserts the
texture buffer member's used texture (type, format, token, resource id)
and that compute_shape plans it (it asserted the refusal before);
the_census_compiles_a_texture_buffer_an_argument_buffer_holds compiles
every committed case holding one through compile_case on lavapipe under
the identity domains, expecting one compiled cell each (the failed cell
before).
2026-11-21 08:47:55 -08:00
..