mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-22 10:57:20 +00:00
Merge pull request #4672 from lioncash/narrowing
decoder/texture: Eliminate narrowing conversion in GetTldCode()
This commit is contained in:
commit
31461589c5
|
@ -763,7 +763,7 @@ Node4 ShaderIR::GetTld4Code(Instruction instr, TextureType texture_type, bool de
|
||||||
|
|
||||||
Node4 ShaderIR::GetTldCode(Tegra::Shader::Instruction instr) {
|
Node4 ShaderIR::GetTldCode(Tegra::Shader::Instruction instr) {
|
||||||
const auto texture_type{instr.tld.texture_type};
|
const auto texture_type{instr.tld.texture_type};
|
||||||
const bool is_array{instr.tld.is_array};
|
const bool is_array{instr.tld.is_array != 0};
|
||||||
const bool lod_enabled{instr.tld.GetTextureProcessMode() == TextureProcessMode::LL};
|
const bool lod_enabled{instr.tld.GetTextureProcessMode() == TextureProcessMode::LL};
|
||||||
const std::size_t coord_count{GetCoordCount(texture_type)};
|
const std::size_t coord_count{GetCoordCount(texture_type)};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue