Skip to content

[WARP] Test for unbounded multi-dimensional resource arrays fails #481

@hekota

Description

@hekota

Test: Feature/ResourceArrays/multi-dim-unbounded-array.test (added in #456)
https://godbolt.org/z/75oeWhWMz

HLSL:

RWStructuredBuffer<int> Buf[][2] : register(u0);

[numthreads(4,2,1)]
void main(uint3 GTI : SV_GroupThreadID, uint GI : SV_GroupIndex) {
  for (int i = 0; i < 4; i++) {
    Buf[1][0][i] = Buf[0][0][i] + Buf[0][1][i];
    Buf[1][1][i] = Buf[0][0][i] * Buf[0][1][i];
    Buf[0][0][i] += Buf[0][1][i];
  }
}

Data:

  - Name: Buf
    Format: Int32
    ArraySize: 4
    Data:
      - [ 0, 1, 2, 3 ]
      - [ 1, 2, 3, 4 ]
      - [ 0, 0, 0, 0 ]
      - [ 0, 0, 0, 0 ]

Results:

# | Test failed: Buf
# | Comparison Rule: BufferExact
# | Expected:
# | ---
# | Name:            ExpectedBuf
# | Format:          Int32
# | ArraySize:       4
# | Data:
# |   - [ 1, 3, 5, 7 ]
# |   - [ 1, 2, 3, 4 ]
# |   - [ 1, 3, 5, 7 ]
# |   - [ 0, 2, 6, 12 ]
...
# | ...
# | Got:
# | ---
# | Name:            Buf
# | Format:          Int32
# | ArraySize:       4
# | Data:
# |   - [ 2, 5, 8, 11 ]
# |   - [ 1, 2, 3, 4 ]
# |   - [ 2, 5, 8, 11 ]
# |   - [ 1, 6, 15, 28 ]
...```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions