//META: generated=true
//META: model=claude-opus-4-7
//META: generated_at=2026-05-20T18:00:00+00:00
//META: source_commit=019ec0e5ddac1c14fbad141a3f03d50cf8a5e022
//META: doc_ref=docs/generated/design/target-pipelines/spirv.md#phase-d-ir-to-spir-v-emit-simplification-loop-downstream-tools
//META: doc_section_digest=a11b0c6012622aa65eafd1deea44aaeb117d13faf8de8cf2fe2778e1dd206d36
//META: purpose=A StructuredBuffer of a 3-float4 struct emits ArrayStride 48 on the runtime array (16 bytes per float4 * 3 fields).
//META: intent=boundary
//META: pipeline_stage=emit
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

// Boundary: larger stride than the int(4) baseline. A struct
// with three float4 members is 48 bytes; the runtime-array
// inside the block carries ArrayStride 48.

//TEST:SIMPLE(filecheck=CHECK):-target spirv-asm -entry main -stage compute

struct Big { float4 a; float4 b; float4 c; }
RWStructuredBuffer<Big> outBuf;

[shader("compute")]
[numthreads(1, 1, 1)]
void main(uint3 tid : SV_DispatchThreadID)
{
    Big v;
    v.a = float4(1, 2, 3, 4);
    v.b = float4(5, 6, 7, 8);
    v.c = float4(9, 10, 11, 12);
    outBuf[tid.x] = v;
}

// CHECK: OpDecorate %_runtimearr_Big{{[a-zA-Z_0-9]*}} ArrayStride 48
