Share via


GraphicsDeviceCapabilities.RasterCaps.SupportsDepthBufferLessHsr Property

Gets a value indicating whether the device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth buffer.

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

Syntax

public bool SupportsDepthBufferLessHsr { get; }

Property Value

true if the device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth buffer; false otherwise.

Remarks

This leaves more video memory for textures. The method used to perform HSR is hardware-dependent and is transparent to the application.

Z-bufferless HSR is performed if no depth-buffer surface is associated with the rendering-target surface and the depth-buffer comparison test is enabled (that is, when the state value associated with the DepthBufferEnable is true).

See Also

Reference

GraphicsDeviceCapabilities.RasterCaps Structure
GraphicsDeviceCapabilities.RasterCaps Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista