Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Satterthwaite <mark.satterthwaite@epicgames.com>2019-08-14 17:46:23 +0300
committerLukas Hermanns <lukas.hermanns@epicgames.com>2019-09-06 23:58:27 +0300
commit32557e90933f5822f530970e34eef94143246cd9 (patch)
tree57ee617075c4731c4e155067c6d38038af5fa4e9 /spirv_cross.hpp
parent5e8590a23d16be2cfc486fd976f00275ffa7674b (diff)
SPIRV doesn't distinguish depth textures from regular textures, but Metal does, so if we've ever seen a depth comparison operation we must ensure that the texture is specified as a depth-texture.
Diffstat (limited to 'spirv_cross.hpp')
-rw-r--r--spirv_cross.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/spirv_cross.hpp b/spirv_cross.hpp
index 90cc9956..0d8eb817 100644
--- a/spirv_cross.hpp
+++ b/spirv_cross.hpp
@@ -681,6 +681,10 @@ protected:
bool interface_variable_exists_in_entry_point(uint32_t id) const;
SmallVector<CombinedImageSampler> combined_image_samplers;
+
+ // Returns a pointer to the combined image sampler with either image_id *or* sampler_id equal to argument 'id'.
+ // Returns null if there is no such entry.
+ const CombinedImageSampler* find_combined_image_sampler(uint32_t id);
void remap_variable_type_name(const SPIRType &type, const std::string &var_name, std::string &type_name) const
{