mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
renderer_vulkan: Fix Framebuffer::sample_count move-operator
`sample_count` needs to be move/copied over. Also reorder the accessor order to match the declaration of variables.
This commit is contained in:
parent
fa97aaade4
commit
9d6527b3ae
1 changed files with 7 additions and 5 deletions
|
|
@ -308,7 +308,8 @@ public:
|
|||
formats(std::exchange(
|
||||
other.formats, {VideoCore::PixelFormat::Invalid, VideoCore::PixelFormat::Invalid})),
|
||||
width(std::exchange(other.width, 0)), height(std::exchange(other.height, 0)),
|
||||
res_scale(std::exchange(other.res_scale, 1)) {}
|
||||
res_scale(std::exchange(other.res_scale, 1)),
|
||||
sample_count(std::exchange(other.sample_count, 1)) {}
|
||||
|
||||
Framebuffer& operator=(Framebuffer&& other) noexcept {
|
||||
VideoCore::FramebufferParams::operator=(std::move(other));
|
||||
|
|
@ -323,6 +324,7 @@ public:
|
|||
width = std::exchange(other.width, 0);
|
||||
height = std::exchange(other.height, 0);
|
||||
res_scale = std::exchange(other.res_scale, 1);
|
||||
sample_count = std::exchange(other.sample_count, 1);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
|
@ -351,14 +353,14 @@ public:
|
|||
return render_pass;
|
||||
}
|
||||
|
||||
u8 Samples() const noexcept {
|
||||
return sample_count;
|
||||
}
|
||||
|
||||
u32 Scale() const noexcept {
|
||||
return res_scale;
|
||||
}
|
||||
|
||||
u8 Samples() const noexcept {
|
||||
return sample_count;
|
||||
}
|
||||
|
||||
private:
|
||||
const Instance& instance;
|
||||
// Color, Depth, ColorMSAA, DepthMSAA
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue