Click or drag to resize

BgfxSubmit Method (UInt16, Program, OcclusionQuery, Int32, DiscardFlags)

Submits the current batch of primitives for rendering.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static int Submit(
	ushort id,
	Program program,
	OcclusionQuery query,
	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.
query
Type: Internal.SharpBgfxOcclusionQuery
An occlusion query to use as a predicate during rendering.
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: Int32
The number of draw calls.
See Also