-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPIR-V] Allow SamplerComparisonState in combinedImageSampler (#6338)
Previously, only `SamplerState` was allowed to be used as the sampler type with `[[vk::combinedImageSampler]]`, but I don't see any reason that `SamplerComparisonState` shouldn't also be permitted. Since `SamplerComparisonState` is a sampler state plus a comparison state, `SampleCmp` calls are translated to an `OpImageSampleDrefImplicitLod` (sampling with depth-comparison) in Vulkan SPIR-V, which does accept an `OpTypeSampledImage` (combined image sampler) as an operand. Fixes #4696
- Loading branch information
1 parent
5e658ac
commit d9266c7
Showing
3 changed files
with
14 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
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