diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-25 12:25:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-25 12:25:13 -0700 |
| commit | 5c88619c2b8bf357fb727b4ceb781968adc23408 (patch) | |
| tree | 0a3312e880b576e0b03fa1520457fc1bb6d4367c /tests | |
| parent | cbe55261ce07c9f737b5117dd1f703950190d843 (diff) | |
Fix default space assignment. (#3833)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bindings/entrypoint-parameter-block.slang | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bindings/entrypoint-parameter-block.slang b/tests/bindings/entrypoint-parameter-block.slang new file mode 100644 index 000000000..edd40e7ac --- /dev/null +++ b/tests/bindings/entrypoint-parameter-block.slang @@ -0,0 +1,10 @@ +//TEST:SIMPLE(filecheck=CHECK): -target glsl -entry main -stage fragment + +// CHECK: layout(binding = 0) +struct Params { + Sampler2D<float4> tex; +} +[shader("pixel")] +float4 main(float2 uv, ParameterBlock<Params> params) { + return params.tex.Sample(uv); +}
\ No newline at end of file |
