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
)
Parameters
- graphicsDevice
- Type: GraphicsDevice
The graphics device to associate with this query.
| Exception type | Condition |
|---|---|
| ArgumentNullException | graphicsDevice is null. |
| NotSupportedException | The profile does not support occlusion queries. |
| OutOfMemoryException | There is not enough memory to create this resource. |