OcclusionQuery Constructor
Collapse the table of content
Expand the table of content

OcclusionQuery Constructor

Initializes a new instance of OcclusionQuery with the specified device.

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

public OcclusionQuery (
         GraphicsDevice graphicsDevice


Type: GraphicsDevice
The graphics device to associate with this query.

Exception typeCondition
ArgumentNullException graphicsDevice is null.
NotSupportedException The profile does not support occlusion queries.
OutOfMemoryExceptionThere is not enough memory to create this resource.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2016 Microsoft