mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
39
brutal.vulkan/Brutal.Vulkan.Abstractions/SyncObjects.cs
Normal file
39
brutal.vulkan/Brutal.Vulkan.Abstractions/SyncObjects.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
namespace Brutal.VulkanApi.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
/// Structure to hold synchronization objects for the Renderer
|
||||
/// </summary>
|
||||
public class SyncObjects(Device inDevice) : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public required VkSemaphore ImageReadySemaphore;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public required VkSemaphore RenderingFinishedSemaphore;
|
||||
|
||||
/// <summary>
|
||||
/// Signaled Fence
|
||||
/// </summary>
|
||||
public required VkFence Fence;
|
||||
|
||||
/// <summary>
|
||||
/// A CommandBuffer from the Graphics pool which can be used for rendering commands.
|
||||
/// </summary>
|
||||
public required CommandBuffer CommandBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// The allocator the sync objects were created with
|
||||
/// </summary>
|
||||
public required VkAllocator? Allocator;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
inDevice.DestroyFence(Fence, Allocator);
|
||||
inDevice.DestroySemaphore(ImageReadySemaphore, Allocator);
|
||||
inDevice.DestroySemaphore(RenderingFinishedSemaphore, Allocator);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue