diff options
Diffstat (limited to 'tests/spirv/aligned-load-store.slang')
| -rw-r--r-- | tests/spirv/aligned-load-store.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/spirv/aligned-load-store.slang b/tests/spirv/aligned-load-store.slang index c6b958dc2..e8bee779e 100644 --- a/tests/spirv/aligned-load-store.slang +++ b/tests/spirv/aligned-load-store.slang @@ -3,11 +3,23 @@ // CHECK: OpLoad {{.*}} Aligned 8 // CHECK: OpStore {{.*}} Aligned 16 +// CHECK: OpLoad {{.*}} Aligned 8 +// CHECK: OpLoad {{.*}} Aligned 8 +// CHECK: OpStore {{.*}} Aligned 16 +// CHECK: OpStore {{.*}} Aligned 16 + uniform float4* data; +struct C { float4 v0; float4 v1; } +uniform C* data2; + + [numthreads(1,1,1)] void computeMain() { var v = loadAligned<8>((float2x4*)data); storeAligned<16>((float2x4*)data+1, v); + + var v1 = loadAligned<8>(data2); + storeAligned<16>(data2, v1); }
\ No newline at end of file |
