forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPIRV] Add support vk::ext_execution_mode
[[vk::ext_storage_class(uint storage_class)]] this is part of PRs for the microsoft#3919
- Loading branch information
Showing
11 changed files
with
92 additions
and
9 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
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
14 changes: 14 additions & 0 deletions
14
tools/clang/test/CodeGenSPIRV/spv.intrinsicExecutionMode.hlsl
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,14 @@ | ||
// RUN: %dxc -T ps_6_0 -E main -spirv | ||
|
||
|
||
// CHECK: OpExecutionMode {{%\w+}} StencilRefReplacingEXT | ||
// CHECK: OpExecutionMode {{%\w+}} SubgroupSize 32 | ||
// CHECK: OpDecorate {{%\w+}} BuiltIn FragStencilRefEXT | ||
|
||
[[vk::ext_decorate(11, 5014)]] | ||
int main() : SV_Target0 { | ||
|
||
vk::ext_execution_mode(/*StencilRefReplacingEXT*/5027); | ||
vk::ext_execution_mode(/*SubgroupSize*/35, 32); | ||
return 3; | ||
} |
13 changes: 13 additions & 0 deletions
13
tools/clang/test/CodeGenSPIRV/spv.intrinsicStorageClass.hlsl
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 @@ | ||
// RUN: %dxc -T ps_6_0 -E main -spirv -Vd | ||
|
||
//CHECK: {{%\w+}} = OpVariable {{%\w+}} RayPayloadNV | ||
//CHECK: {{%\w+}} = OpVariable {{%\w+}} CrossWorkgroup | ||
|
||
[[vk::ext_storage_class(/*RayPayloadNV*/5338)]] | ||
float4 payload; | ||
|
||
int main() : SV_Target0 { | ||
|
||
[[vk::ext_storage_class(/* CrossWorkgroup */ 5)]] int foo = 3; | ||
return foo; | ||
} |
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