diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hlsl-intrinsic/const-buffer-pointer.slang | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hlsl-intrinsic/const-buffer-pointer.slang b/tests/hlsl-intrinsic/const-buffer-pointer.slang index ec242fa07..060871307 100644 --- a/tests/hlsl-intrinsic/const-buffer-pointer.slang +++ b/tests/hlsl-intrinsic/const-buffer-pointer.slang @@ -5,6 +5,10 @@ // SPV: OpEntryPoint GLCompute {{.*}} "main" {{.*}} // SPV: OpTypePointer PhysicalStorageBuffer // SPV: OpINotEqual +// SPV: OpConvertPtrToU +// SPV: OpIAdd +// SPV: OpConvertUToPtr +// SPV: OpLoad struct MyStruct { float4 position; @@ -40,5 +44,7 @@ void main(int3 tid: SV_DispatchThreadID) { MyStruct s = gGlobals.pStruct.get(); outputBuffer[tid.x] = uint(s.position.x); + MyStruct s1 = gGlobals.pStruct[3]; + outputBuffer[tid.x + 1] = uint(s1.position.x); } } |
