Function TRAP::Graphics::RenderCommand::Dispatch#

Function Documentation#

void TRAP::Graphics::RenderCommand::Dispatch(const std::array<u32, 3> &workGroupElementSizes, const Window &window = *TRAP::Application::GetWindow())#

Dispatch compute work on the given window.

Remark

Headless mode: This function is not available in headless mode.

Parameters:
  • workGroupElementSizes – Number of elements to dispatch for each dimension. The elements are automatically divided by the number of threads in the work group and rounded up.

  • windowWindow to draw for. Default: Main Window.