LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::DrawPatchIndirectArguments Struct Reference

Structure for the arguments of an indirect draw/indexed-draw command for tessellation on Metal renderer. More...

#include <IndirectArguments.h>

Public Attributes

std::uint32_t numPatches
 Specifies the number of patches per instance.
std::uint32_t numInstances
 Specifies the number of instances to draw.
std::uint32_t firstPatch
 Specifies the patch start index.
std::uint32_t firstInstance
 Specifies the first instance to draw.

Detailed Description

Structure for the arguments of an indirect draw/indexed-draw command for tessellation on Metal renderer.

Remarks
This is a plain-old-data (POD) structure aligned with no default constructor to make it compatible between CPU and GPU memory space.
The Metal API treats the arguments for rendering tessellated patches differently, so this structure is required to fill the buffer that is used for the arguments of an indirect draw command on the Metal backend.
Note
Only supported with: Metal.
See also
CommandBuffer::DrawIndirect
CommandBuffer::DrawIndexedIndirect
Metal counterpart MTLDrawPatchIndirectArguments: https://developer.apple.com/documentation/metal/mtldrawpatchindirectarguments?language=objc

Member Data Documentation

◆ firstInstance

std::uint32_t LLGL::DrawPatchIndirectArguments::firstInstance

Specifies the first instance to draw.

◆ firstPatch

std::uint32_t LLGL::DrawPatchIndirectArguments::firstPatch

Specifies the patch start index.

◆ numInstances

std::uint32_t LLGL::DrawPatchIndirectArguments::numInstances

Specifies the number of instances to draw.

◆ numPatches

std::uint32_t LLGL::DrawPatchIndirectArguments::numPatches

Specifies the number of patches per instance.


The documentation for this struct was generated from the following file: