forked from ShuriZma/suyu
1
0
Fork 0

shader: Clang-format secondary textures

This commit is contained in:
ReinUsesLisp 2021-05-28 01:36:25 -03:00 committed by ameerj
parent 627161c38e
commit 457dda69cc
1 changed files with 2 additions and 2 deletions

View File

@ -283,8 +283,8 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) {
}
TextureType ReadTextureType(Environment& env, const ConstBufferAddr& cbuf) {
const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index };
const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset };
const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index};
const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset};
const u32 lhs_raw{env.ReadCbufValue(cbuf.index, cbuf.offset)};
const u32 rhs_raw{env.ReadCbufValue(secondary_index, secondary_offset)};
return env.ReadTextureType(lhs_raw | rhs_raw);