BgfxSubmit Method (UInt16, Program, IndirectBuffer, Int32, Int32, Int32, DiscardFlags) |
Submits an indirect batch of drawing commands to be used for rendering.
Namespace:
Internal.SharpBgfx
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax public static int Submit(
ushort id,
Program program,
IndirectBuffer indirectBuffer,
int startIndex,
int count,
int depth,
DiscardFlags flags
)
Parameters
- id
- Type: SystemUInt16
The index of the view to submit. - program
- Type: Internal.SharpBgfxProgram
The program with which to render. - indirectBuffer
- Type: Internal.SharpBgfxIndirectBuffer
The buffer containing drawing commands. - startIndex
- Type: SystemInt32
The index of the first command to process. - count
- Type: SystemInt32
The number of commands to process from the buffer. - depth
- Type: SystemInt32
A depth value to use for sorting the batch. - flags
- Type: Internal.SharpBgfxDiscardFlags
Which states to discard for next draw.
Return Value
Type:
Int32The number of draw calls.
See Also