-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UIntSet calcSubtract to handle mismatched buffer sizes (#6205)
* fix calcSubtract on UIntSet * add test --------- Co-authored-by: Yong He <yonghe@outlook.com>
- Loading branch information
1 parent
f4e3692
commit 1f99c20
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/language-feature/capability/profile-implicitly-upgraded.slang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
|