Click or drag to resize

RenderingSystemTryCreateOcclusionQuery Method

Tries to create an occlusion query. An occlusion query object cannot be created every frame, only in a specific frame (every fourth frame). Created object must used only in the current frame. If the pixels are drawn successfully, it will call callback.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static bool TryCreateOcclusionQuery(
	RenderingSystemOcclusionQueryResult callback,
	Object callbackParameter,
	out OcclusionQuery query
)

Parameters

callback
Type: NeoAxisRenderingSystemOcclusionQueryResult
callbackParameter
Type: SystemObject
query
Type: Internal.SharpBgfxOcclusionQuery

Return Value

Type: Boolean
See Also