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,7 +37,8 @@ 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} {
if (!signalled)
device.resetFences(fence); device.resetFences(fence);
} }