add DispatchCompute to command buffer

pull/14/head
cosmonaut 2022-01-17 20:39:03 -08:00
parent d2fca3654b
commit 8022cd1011
1 changed files with 23 additions and 0 deletions

View File

@ -211,6 +211,29 @@ namespace MoonWorks.Graphics
);
}
/// <summary>
/// Dispatches compute work.
/// </summary>
/// <param name="groupCountX"></param>
/// <param name="groupCountY"></param>
/// <param name="groupCountZ"></param>
/// <param name="computeParamOffset"></param>
public void DispatchCompute(
uint groupCountX,
uint groupCountY,
uint groupCountZ,
uint computeParamOffset
) {
Refresh.Refresh_DispatchCompute(
Device.Handle,
Handle,
groupCountX,
groupCountY,
groupCountZ,
computeParamOffset
);
}
/// <summary>
/// Binds a graphics pipeline so that rendering work may be performed.
/// </summary>