Allow for creating signalled fence cycles

This commit is contained in:
Billy Laws 2022-09-19 14:36:44 +01:00
parent 542651232b
commit a197dd2b28

View File

@ -37,8 +37,9 @@ namespace skyline::gpu {
}
public:
FenceCycle(const vk::raii::Device &device, vk::Fence fence) : signalled{false}, device{device}, fence{fence} {
device.resetFences(fence);
FenceCycle(const vk::raii::Device &device, vk::Fence fence, bool signalled = false) : signalled{signalled}, device{device}, fence{fence} {
if (!signalled)
device.resetFences(fence);
}
~FenceCycle() {