-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPIR-V] Handle vk::ext_capability and vk::ext_extension on entry poi…
…nt (#6145) `ext_capability` and `ext_extension` were previously only handled when translating a CallExpr. Since the entry point is never called, they were ignored when attached to it.
- Loading branch information
1 parent
2f00209
commit 414acd5
Showing
3 changed files
with
17 additions
and
2 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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// RUN: %dxc -T ps_6_0 -E main -fcgl -Vd %s -spirv | FileCheck %s | ||
|
||
// CHECK: OpCapability Int8 | ||
// CHECK: OpCapability SampleMaskPostDepthCoverage | ||
|
||
[[vk::ext_capability(/* SampleMaskPostDepthCoverageCapability */ 4447)]] | ||
int val; | ||
|
||
[[vk::ext_capability(/* Int8 */ 39)]] | ||
void main() { | ||
int local = val; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
// RUN: %dxc -T ps_6_0 -E main -fcgl %s -spirv | FileCheck %s | ||
|
||
// CHECK: OpExtension "entry_point_extension" | ||
// CHECK: OpExtension "another_extension" | ||
// CHECK: OpExtension "some_extension" | ||
|
||
[[vk::ext_extension("some_extension"), vk::ext_extension("another_extension")]] | ||
int val; | ||
|
||
[[vk::ext_extension("entry_point_extension")]] | ||
void main() { | ||
int local = val; | ||
} |