Bagikan melalui


OcclusionQuery.IsComplete Property

Gets a value that indicates if the occlusion query has completed.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

Syntax

public bool IsComplete { get; }

Property Value

true if the query completed; otherwise false.

Remarks

If predicated tiling has been triggered for an Xbox 360 game, calls to IsComplete from within the tiling bracket always fail. Access this data by switching to a different render target or end the frame. This condition does not apply to games targeting the Windows platform.

See Also

Reference

OcclusionQuery Class
OcclusionQuery Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP