forked from Misaki/GhostEngine
Refactoring Rendering backend
This commit is contained in:
@@ -8,7 +8,7 @@ public interface ICommandQueue : IDisposable
|
||||
/// <summary>
|
||||
/// Type of commands this queue can execute
|
||||
/// </summary>
|
||||
CommandQueueType Type
|
||||
public CommandQueueType Type
|
||||
{
|
||||
get;
|
||||
}
|
||||
@@ -17,32 +17,37 @@ public interface ICommandQueue : IDisposable
|
||||
/// Submits a single command buffer for execution
|
||||
/// </summary>
|
||||
/// <param name="commandBuffer">Command buffer to submit</param>
|
||||
void Submit(ICommandBuffer commandBuffer);
|
||||
public void Submit(ICommandBuffer commandBuffer);
|
||||
|
||||
/// <summary>
|
||||
/// Submits multiple command buffers for execution
|
||||
/// </summary>
|
||||
/// <param name="commandBuffers">Command buffers to submit</param>
|
||||
void Submit(params ReadOnlySpan<ICommandBuffer> commandBuffers);
|
||||
public void Submit(params ReadOnlySpan<ICommandBuffer> commandBuffers);
|
||||
|
||||
/// <summary>
|
||||
/// Signals a fence with the specified value
|
||||
/// </summary>
|
||||
/// <param name="value">Value to signal</param>
|
||||
/// <returns>The fence value that was signaled</returns>
|
||||
ulong Signal(ulong value);
|
||||
public ulong Signal(ulong value);
|
||||
|
||||
/// <summary>
|
||||
/// Waits for the fence to reach the specified value
|
||||
/// </summary>
|
||||
/// <param name="value">Value to wait for</param>
|
||||
void WaitForValue(ulong value);
|
||||
public void WaitForValue(ulong value);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the last completed fence value
|
||||
/// </summary>
|
||||
/// <returns>Last completed fence value</returns>
|
||||
ulong GetCompletedValue();
|
||||
public ulong GetCompletedValue();
|
||||
|
||||
/// <summary>
|
||||
/// Waits until all submitted commands have finished executing
|
||||
/// </summary>
|
||||
public void WaitIdle();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user