mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
decode/texture: Eliminate trivial missing field initializer warnings
We can just specify the initializers.
This commit is contained in:
parent
337f2dc11f
commit
7e2d60de26
1 changed files with 4 additions and 3 deletions
|
@ -139,7 +139,7 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) {
|
||||||
}
|
}
|
||||||
const Node component = Immediate(static_cast<u32>(instr.tld4s.component));
|
const Node component = Immediate(static_cast<u32>(instr.tld4s.component));
|
||||||
|
|
||||||
const SamplerInfo info{TextureType::Texture2D, false, is_depth_compare};
|
const SamplerInfo info{TextureType::Texture2D, false, is_depth_compare, false};
|
||||||
const Sampler& sampler = *GetSampler(instr.sampler, info);
|
const Sampler& sampler = *GetSampler(instr.sampler, info);
|
||||||
|
|
||||||
Node4 values;
|
Node4 values;
|
||||||
|
@ -171,8 +171,9 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) {
|
||||||
const auto coord_count = GetCoordCount(texture_type);
|
const auto coord_count = GetCoordCount(texture_type);
|
||||||
Node index_var{};
|
Node index_var{};
|
||||||
const Sampler* sampler =
|
const Sampler* sampler =
|
||||||
is_bindless ? GetBindlessSampler(base_reg, index_var, {{texture_type, is_array, false}})
|
is_bindless
|
||||||
: GetSampler(instr.sampler, {{texture_type, is_array, false}});
|
? GetBindlessSampler(base_reg, index_var, {{texture_type, is_array, false, false}})
|
||||||
|
: GetSampler(instr.sampler, {{texture_type, is_array, false, false}});
|
||||||
Node4 values;
|
Node4 values;
|
||||||
if (sampler == nullptr) {
|
if (sampler == nullptr) {
|
||||||
for (u32 element = 0; element < values.size(); ++element) {
|
for (u32 element = 0; element < values.size(); ++element) {
|
||||||
|
|
Loading…
Reference in a new issue