OcclusionQuery Constructor
Initializes a new instance of OcclusionQuery with the specified device.
Syntax
'Declaration
Public Sub New ( _
graphicsDevice As GraphicsDevice _
)
public OcclusionQuery (
GraphicsDevice graphicsDevice
)
public:
OcclusionQuery(
GraphicsDevice graphicsDevice
)
Parameters
- graphicsDevice
Type: GraphicsDevice
The graphics device to associate with this query.
Exceptions
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. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
OcclusionQuery Class
OcclusionQuery Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone