mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-19 01:44:53 +00:00
video_core: Implement guest buffer manager (#373)
* video_core: Introduce buffer cache * video_core: Use multi level page table for caches * renderer_vulkan: Remove unused stream buffer * fix build * oops forgot optimize off
This commit is contained in:
parent
159be2c7f4
commit
381ba8c7a5
55 changed files with 2697 additions and 1039 deletions
|
@ -363,6 +363,10 @@ struct Sampler {
|
|||
return raw0 != 0 || raw1 != 0;
|
||||
}
|
||||
|
||||
bool operator==(const Sampler& other) const noexcept {
|
||||
return std::memcmp(this, &other, sizeof(Sampler)) == 0;
|
||||
}
|
||||
|
||||
float LodBias() const noexcept {
|
||||
return static_cast<float>(static_cast<int16_t>((lod_bias.Value() ^ 0x2000u) - 0x2000u)) /
|
||||
256.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue