diff options
| author | Helena Kotas <hekotas@microsoft.com> | 2025-09-02 10:10:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-02 10:10:40 -0700 |
| commit | abb62b6ede461ac384d169fa9d9122328dc11809 (patch) | |
| tree | 85f287b026551cd51f85f587d76ec76b9c8ee48f /lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py | |
| parent | 772cb84b9f03e1f630d237183acf37ba4c7a3bcf (diff) | |
[HLSL] Codegen for indexing of sub-arrays of multi-dimensional resource arrays (#154248)
Adds support for accessing sub-arrays from fixed-size multi-dimensional global resource arrays.
Enables indexing into globally scoped, fixed-size resource arrays that have multiple dimensions when the result is a smaller resource array.
For example:
```
RWBuffer<float> GlobalArray[4][2];
void main() {
RWBuffer<float> SubArray[2] = GlobalArray[3];
...
}
```
The initialization logic is handled during codegen when the ArraySubscriptExpr AST node is processed. When a global resource array is indexed and the result type is a sub-array of the larger array, a local array of the resource type is created and all elements in the array are initialized with a constructor call for the corresponding resource record type and binding.
Closes #145426
Diffstat (limited to 'lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions
