-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle pointer types when getting type cast style
Closes #6025
- Loading branch information
1 parent
f7b9745
commit 651fc8b
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry vertexMain | ||
//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage vertex -entry vertexMain | ||
//TEST:SIMPLE(filecheck=WGSL): -target wgsl -stage vertex -entry vertexMain | ||
//TEST:SIMPLE(filecheck=WGSLSPIRV): -target wgsl-spirv-asm -stage vertex -entry vertexMain | ||
|
||
//METAL: position | ||
//METALLIB: @vertexMain | ||
|
||
//WGSL: @builtin(position) | ||
//WGSLSPIRV: %vertexMain = OpFunction | ||
|
||
// Vertex Shader which writes to position | ||
void vertexMain(out float4 position : SV_Position) | ||
{ | ||
position = float4(0.6, 0.1, 0.6, 0.33); | ||
} |