mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
video_core/amdgpu: fix calculation of lod range
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user