-
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.
* add brga8 format * add tests * minor fixes * cleanup * maybe fix broken quad control test * add missing xslang flag on test --------- Co-authored-by: Yong He <yonghe@outlook.com>
- Loading branch information
1 parent
92c9fff
commit 0dd9076
Showing
9 changed files
with
89 additions
and
6 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
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
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
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
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
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
19 changes: 19 additions & 0 deletions
19
tests/diagnostics/image-format-unsupported-by-backend.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,19 @@ | ||
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv | ||
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_GLSL): -target glsl | ||
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_WGSL): -target wgsl | ||
|
||
// CHECK_SPIRV: warning 31105{{.*}}bgra8 | ||
// CHECK_GLSL: warning 31105{{.*}}bgra8 | ||
[format("bgra8")] | ||
RWTexture2D<float4> outputTexture; | ||
|
||
// CHECK_WGSL: warning 31105{{.*}}rg8 | ||
[format("rg8")] | ||
RWTexture2D<float4> outputTexture2; | ||
|
||
[numthreads(8, 8, 1)] | ||
void main(uint3 threadID : SV_DispatchThreadID) | ||
{ | ||
outputTexture[threadID.xy] = float4(1.0, 1.0, 1.0, 1.0); | ||
outputTexture2[threadID.xy] = float4(1.0, 1.0, 1.0, 1.0); | ||
} |
6 changes: 5 additions & 1 deletion
6
tests/hlsl-intrinsic/quad-control/quad-control-comp-functionality.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
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