mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-27 03:44:14 +01:00
Allow for creating signalled fence cycles
This commit is contained in:
parent
542651232b
commit
a197dd2b28
@ -37,8 +37,9 @@ namespace skyline::gpu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FenceCycle(const vk::raii::Device &device, vk::Fence fence) : signalled{false}, device{device}, fence{fence} {
|
FenceCycle(const vk::raii::Device &device, vk::Fence fence, bool signalled = false) : signalled{signalled}, device{device}, fence{fence} {
|
||||||
device.resetFences(fence);
|
if (!signalled)
|
||||||
|
device.resetFences(fence);
|
||||||
}
|
}
|
||||||
|
|
||||||
~FenceCycle() {
|
~FenceCycle() {
|
||||||
|
Loading…
Reference in New Issue
Block a user