diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-12 19:31:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 19:31:25 -0700 |
| commit | 6f7c8271710b43349d34b8f7569ceb6957400548 (patch) | |
| tree | 288c18bb4b9a2cf32de7e400c1fe8b56385b727e /tests/spirv/pointer.slang | |
| parent | eef7e208bf7436a4f111a9290f37204e3220d82b (diff) | |
Fix `sessionDesc.defaultMatrixLayoutMode` being ineffective. (#3753)
* Fix `sessionDesc.defaultMatrixLayoutMode` being ineffective.
* Fix matrix layout in buffer pointer.
* Attempt to fix.
* Fix buffer element type lowering for buffer pointers.
* Add comment.
* Fix test.
* Fix member lookup in `Ref<T>`.
* Fix validation error.
* Enhance test.
Diffstat (limited to 'tests/spirv/pointer.slang')
| -rw-r--r-- | tests/spirv/pointer.slang | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/spirv/pointer.slang b/tests/spirv/pointer.slang index cb2d56f66..cd4845e4d 100644 --- a/tests/spirv/pointer.slang +++ b/tests/spirv/pointer.slang @@ -21,6 +21,11 @@ int* funcThatReturnsPointer(PP* p) return &p.data; } +void funcWithInOutParam(inout PP p) +{ + p.data = 0; +} + // CHECK: OpEntryPoint StructuredBuffer<Data> buffer; @@ -44,5 +49,7 @@ void main(int id : SV_DispatchThreadID) if (pData1 > pData) { funcThatTakesPointer(buffer[0].pNext); + output[1] = (*buffer[0].pNext).data; } + funcWithInOutParam(*buffer[0].pNext); } |
