diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-09 12:18:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-09 12:18:19 -0700 |
| commit | b8aab84e2c4c3e6d91d75ffcebfcc2f6e84da01c (patch) | |
| tree | 79207c563a1142bad97547c873d73d084f8748b6 /tests | |
| parent | 1bbc421a663bd494cc1a4dd097852553049cc1d5 (diff) | |
Use user defined type name in glsl buffer declarations. (#5242)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bindings/hlsl-to-vulkan-global-binding.hlsl | 2 | ||||
| -rw-r--r-- | tests/cross-compile/texture-load.slang | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/bindings/hlsl-to-vulkan-global-binding.hlsl b/tests/bindings/hlsl-to-vulkan-global-binding.hlsl index ebccaab18..ef9995e8f 100644 --- a/tests/bindings/hlsl-to-vulkan-global-binding.hlsl +++ b/tests/bindings/hlsl-to-vulkan-global-binding.hlsl @@ -5,7 +5,7 @@ // CHECK: layout(binding = 1) // CHECK: uniform sampler sampler_0; // CHECK: layout(binding = 5, set = 9) -// CHECK: layout(std140) uniform _S1 +// CHECK: layout(std140) uniform block_ uniform int a; uniform float b; diff --git a/tests/cross-compile/texture-load.slang b/tests/cross-compile/texture-load.slang index 71f22b13a..167db7831 100644 --- a/tests/cross-compile/texture-load.slang +++ b/tests/cross-compile/texture-load.slang @@ -3,7 +3,7 @@ // Confirm that texture `Load` operations yield the // expected type when compiled to SPIR-V. -//TEST:CROSS_COMPILE:-target spirv-assembly -entry main -stage compute +//TEST:SIMPLE(filecheck=CHECK):-target spirv-assembly -entry main -stage compute -emit-spirv-via-glsl Texture2D<float2> inputTexture; RWTexture2D<float2> outputTexture; @@ -13,6 +13,8 @@ cbuffer C int2 pos; } +// CHECK: OpImageWrite + [numthreads(16, 16, 1)] void main(uint2 pixelIndex : SV_DispatchThreadID) { |
