mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 02:24:38 +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 {
|
||||
return static_cast<float>(min_lod);
|
||||
return static_cast<float>(min_lod.Value()) / 256.0f;
|
||||
}
|
||||
|
||||
float MaxLod() const noexcept {
|
||||
return static_cast<float>(max_lod);
|
||||
return static_cast<float>(max_lod.Value()) / 256.0f;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user