summaryrefslogtreecommitdiffstats
path: root/tests/spirv/aligned-load-store.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-03-06 14:26:34 -0800
committerGitHub <noreply@github.com>2025-03-06 14:26:34 -0800
commit4485cf3eaf142cfd5f8470e86739acc67d4e12ea (patch)
treec6ce220dfe5f3ab25ea558f2512f3761c9565c69 /tests/spirv/aligned-load-store.slang
parent55dd2deaff82bbdb72e125ba4b350030b7e5f427 (diff)
Update SPIRV-Tools and fix new validation errors. (#6511)
* Update SPIRV-Tools and fix new validation errors. * Implement pointers for glsl target. * Reworked packStorage/unpackStorage code gen to operate on pointers rather than values.
Diffstat (limited to 'tests/spirv/aligned-load-store.slang')
-rw-r--r--tests/spirv/aligned-load-store.slang12
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