mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-02 11:42:47 +01:00
shader/texture: Remove unnecesary parenthesis
This commit is contained in:
parent
eac075692b
commit
3d9fff82c0
1 changed files with 2 additions and 2 deletions
|
@ -367,7 +367,7 @@ const Sampler* ShaderIR::GetSampler(const Tegra::Shader::Sampler& sampler,
|
||||||
if (it != used_samplers.end()) {
|
if (it != used_samplers.end()) {
|
||||||
ASSERT(!it->IsBindless() && it->GetType() == info.type && it->IsArray() == info.is_array &&
|
ASSERT(!it->IsBindless() && it->GetType() == info.type && it->IsArray() == info.is_array &&
|
||||||
it->IsShadow() == info.is_shadow && it->IsBuffer() == info.is_buffer);
|
it->IsShadow() == info.is_shadow && it->IsBuffer() == info.is_buffer);
|
||||||
return &(*it);
|
return &*it;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise create a new mapping for this sampler
|
// Otherwise create a new mapping for this sampler
|
||||||
|
@ -397,7 +397,7 @@ const Sampler* ShaderIR::GetBindlessSampler(Tegra::Shader::Register reg,
|
||||||
if (it != used_samplers.end()) {
|
if (it != used_samplers.end()) {
|
||||||
ASSERT(it->IsBindless() && it->GetType() == info.type && it->IsArray() == info.is_array &&
|
ASSERT(it->IsBindless() && it->GetType() == info.type && it->IsArray() == info.is_array &&
|
||||||
it->IsShadow() == info.is_shadow);
|
it->IsShadow() == info.is_shadow);
|
||||||
return &(*it);
|
return &*it;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise create a new mapping for this sampler
|
// Otherwise create a new mapping for this sampler
|
||||||
|
|
Loading…
Reference in a new issue