diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2021-02-15 06:26:28 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2021-02-15 06:26:28 +0100 |
commit | 9d8f793969b8d13e5312f92ff96fd80f142688a3 (patch) | |
tree | 67a08cf71135028e3b2eda4a6fa8785aa263ac15 | |
parent | Implement texture offset support for TexelFetch and TextureGather and add offsets for Tlds (diff) | |
download | yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.tar yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.tar.gz yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.tar.bz2 yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.tar.lz yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.tar.xz yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.tar.zst yuzu-9d8f793969b8d13e5312f92ff96fd80f142688a3.zip |
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 4 | ||||
-rw-r--r-- | src/video_core/shader/decode/texture.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index dd6996735..c6846d886 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -1849,7 +1849,7 @@ private: const Id coords = GetCoordinates(operation, Type::Float); spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone; - std::vector<Id> operands{}; + std::vector<Id> operands; Id texture{}; if (!meta.aoffi.empty()) { @@ -1938,7 +1938,7 @@ private: const Id coords = GetCoordinates(operation, Type::Int); spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone; - std::vector<Id> operands{}; + std::vector<Id> operands; Id fetch; if (meta.lod && !meta.sampler.is_buffer) { diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp index 43087304d..c69681e8d 100644 --- a/src/video_core/shader/decode/texture.cpp +++ b/src/video_core/shader/decode/texture.cpp @@ -829,7 +829,7 @@ Node4 ShaderIR::GetTldsCode(Instruction instr, TextureType texture_type, bool is // When lod is used always is in gpr20 const Node lod = lod_enabled ? GetRegister(instr.gpr20) : Immediate(0); - std::vector<Node> aoffi{}; + std::vector<Node> aoffi; if (aoffi_enabled) { aoffi = GetAoffiCoordinates(GetRegister(instr.gpr20), type_coord_count, false); } |