mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
video_core/amdgpu: fix calculation of lod range
This commit is contained in:
parent
0b672a08ac
commit
a88850fec6
1 changed files with 2 additions and 2 deletions
|
@ -420,11 +420,11 @@ struct Sampler {
|
||||||
}
|
}
|
||||||
|
|
||||||
float MinLod() const noexcept {
|
float MinLod() const noexcept {
|
||||||
return static_cast<float>(min_lod);
|
return static_cast<float>(min_lod.Value()) / 256.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
float MaxLod() const noexcept {
|
float MaxLod() const noexcept {
|
||||||
return static_cast<float>(max_lod);
|
return static_cast<float>(max_lod.Value()) / 256.0f;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue