diff options
| author | 2021-05-28 01:36:25 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:34 -0400 | |
| commit | 457dda69ccdec4002e794ad1a810b577af66f79f (patch) | |
| tree | 9e9b9afe2eb5e024174f7a45d7948288daaea5d2 /src/shader_recompiler | |
| parent | shader: Fix secondary textures (diff) | |
| download | yuzu-457dda69ccdec4002e794ad1a810b577af66f79f.tar.gz yuzu-457dda69ccdec4002e794ad1a810b577af66f79f.tar.xz yuzu-457dda69ccdec4002e794ad1a810b577af66f79f.zip | |
shader: Clang-format secondary textures
Diffstat (limited to 'src/shader_recompiler')
| -rw-r--r-- | src/shader_recompiler/ir_opt/texture_pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index 76cab04c2..e9098239d 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp | |||
| @@ -283,8 +283,8 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) { | |||
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | TextureType ReadTextureType(Environment& env, const ConstBufferAddr& cbuf) { | 285 | TextureType ReadTextureType(Environment& env, const ConstBufferAddr& cbuf) { |
| 286 | const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index }; | 286 | const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index}; |
| 287 | const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset }; | 287 | const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset}; |
| 288 | const u32 lhs_raw{env.ReadCbufValue(cbuf.index, cbuf.offset)}; | 288 | const u32 lhs_raw{env.ReadCbufValue(cbuf.index, cbuf.offset)}; |
| 289 | const u32 rhs_raw{env.ReadCbufValue(secondary_index, secondary_offset)}; | 289 | const u32 rhs_raw{env.ReadCbufValue(secondary_index, secondary_offset)}; |
| 290 | return env.ReadTextureType(lhs_raw | rhs_raw); | 290 | return env.ReadTextureType(lhs_raw | rhs_raw); |