diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 04:26:05 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 04:26:05 +0200 |
commit | 1f43e5296fcd2debaea672fd9740d2f07223406b (patch) | |
tree | 382d7a0f82949a825755c38363c8aaf33bc47e98 /src/video_core/shader/shader_ir.h | |
parent | texture_cache: Minor changes (diff) | |
download | yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.gz yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.bz2 yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.lz yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.xz yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.zst yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index bcc9b79b6..0f891eace 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -95,7 +95,7 @@ public: return used_samplers; } - const std::set<Image>& GetImages() const { + const std::map<u64, Image>& GetImages() const { return used_images; } @@ -272,10 +272,10 @@ private: bool is_shadow); /// Accesses an image. - const Image& GetImage(Tegra::Shader::Image image, Tegra::Shader::ImageType type); + Image& GetImage(Tegra::Shader::Image image, Tegra::Shader::ImageType type); /// Access a bindless image sampler. - const Image& GetBindlessImage(Tegra::Shader::Register reg, Tegra::Shader::ImageType type); + Image& GetBindlessImage(Tegra::Shader::Register reg, Tegra::Shader::ImageType type); /// Extracts a sequence of bits from a node Node BitfieldExtract(Node value, u32 offset, u32 bits); @@ -356,7 +356,7 @@ private: std::set<Tegra::Shader::Attribute::Index> used_output_attributes; std::map<u32, ConstBuffer> used_cbufs; std::set<Sampler> used_samplers; - std::set<Image> used_images; + std::map<u64, Image> used_images; std::array<bool, Tegra::Engines::Maxwell3D::Regs::NumClipDistances> used_clip_distances{}; std::map<GlobalMemoryBase, GlobalMemoryUsage> used_global_memory; bool uses_layer{}; |