diff options
| author | Darren Wihandi <65404740+fairywreath@users.noreply.github.com> | 2025-01-28 20:21:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 17:21:57 -0800 |
| commit | 1f99c2086cab3a259c786373ba8d5608e0e1f430 (patch) | |
| tree | d0a2404c83265afa98115a177773072bd51425d2 /tests/language-feature | |
| parent | f4e3692dbea505a93424c8414778620d52817fdd (diff) | |
Fix UIntSet calcSubtract to handle mismatched buffer sizes (#6205)
* fix calcSubtract on UIntSet
* add test
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/language-feature')
| -rw-r--r-- | tests/language-feature/capability/profile-implicitly-upgraded.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/language-feature/capability/profile-implicitly-upgraded.slang b/tests/language-feature/capability/profile-implicitly-upgraded.slang new file mode 100644 index 000000000..b88723182 --- /dev/null +++ b/tests/language-feature/capability/profile-implicitly-upgraded.slang @@ -0,0 +1,13 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SPIRV): -stage fragment -entry fragmentMain -target spirv -profile spirv_1_3 + +// We currently do not have GLSL profiles, pass in SPIRV profile instead. We need +// to pass in a profile parameter to emit the warning. +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_GLSL): -stage fragment -entry fragmentMain -target glsl -profile spirv_1_3 + +// CHECK_SPIRV: warning 41012{{.*}}'spvImageGatherExtended' +// CHECK_GLSL: warning 41012{{.*}}'GLSL_150 + GL_ARB_texture_gather' +float4 fragmentMain(float2 pos : SV_Position, Sampler2D<float> foo) : SV_Target +{ + return foo.Gather(uint2(pos)); +} + |
