diff options
author | Hans-Kristian Arntzen <hans-kristian.arntzen@arm.com> | 2018-07-04 15:25:10 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <hans-kristian.arntzen@arm.com> | 2018-07-04 15:26:23 +0300 |
commit | e044732896d941d8b59e4ea954a908623a9d2e9e (patch) | |
tree | acf53ee18a232413cd83276fd1e55bdc714b700f /spirv_hlsl.hpp | |
parent | a6814a405abe81545bd3b0a50d374735001173c1 (diff) |
Support OpTypeImage with depth == 2 (unknown) properly.
Track which OpSampledImages are ever used with Dref opcodes.
Diffstat (limited to 'spirv_hlsl.hpp')
-rw-r--r-- | spirv_hlsl.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spirv_hlsl.hpp b/spirv_hlsl.hpp index 0f2acf33..bcc82b10 100644 --- a/spirv_hlsl.hpp +++ b/spirv_hlsl.hpp @@ -118,9 +118,9 @@ public: private: std::string type_to_glsl(const SPIRType &type, uint32_t id = 0) override; - std::string image_type_hlsl(const SPIRType &type); - std::string image_type_hlsl_modern(const SPIRType &type); - std::string image_type_hlsl_legacy(const SPIRType &type); + std::string image_type_hlsl(const SPIRType &type, uint32_t id); + std::string image_type_hlsl_modern(const SPIRType &type, uint32_t id); + std::string image_type_hlsl_legacy(const SPIRType &type, uint32_t id); void emit_function_prototype(SPIRFunction &func, const Bitset &return_flags) override; void emit_hlsl_entry_point(); void emit_header() override; |