mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 07:59:18 +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:
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user