diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-26 02:46:34 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-25 15:01:31 +0200 |
commit | ec85648af3316d5e43c7b57fca55d0dad3d03f96 (patch) | |
tree | b5cc21e8b027a27e69c8197202f98d0c36706978 /src/video_core/shader/const_buffer_locker.cpp | |
parent | const_buffer_locker: Minor style changes (diff) | |
download | yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.gz yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.bz2 yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.lz yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.xz yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.zst yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/const_buffer_locker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/const_buffer_locker.cpp b/src/video_core/shader/const_buffer_locker.cpp index ebeba102d..fda9e3c38 100644 --- a/src/video_core/shader/const_buffer_locker.cpp +++ b/src/video_core/shader/const_buffer_locker.cpp @@ -90,14 +90,14 @@ bool ConstBufferLocker::IsConsistent() const { [this](const auto& sampler) { const auto [key, value] = sampler; const auto other_value = engine->AccessBoundSampler(stage, key); - return value.raw == other_value.raw; + return value == other_value; }) && std::all_of( bindless_samplers.begin(), bindless_samplers.end(), [this](const auto& sampler) { const auto [cbuf, offset] = sampler.first; const auto value = sampler.second; const auto other_value = engine->AccessBindlessSampler(stage, cbuf, offset); - return value.raw == other_value.raw; + return value == other_value; }); } |