mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 18:46:06 +00:00
video_core/amdgpu: fix calculation of lod range
This commit is contained in:
parent
0b672a08ac
commit
a88850fec6
|
@ -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…
Reference in a new issue