RenderStateManager.ZBufferFunction Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the comparison function for the z-buffer test.

Definition

Visual Basic .NET Public Property ZBufferFunction As Compare
C# public Compare ZBufferFunction { get; set; }
Managed C++ public: __property Compare get_ZBufferFunction();
public: __property void set_ZBufferFunction(Compare);
JScript .NET public function get ZBufferFunction() : Compare
public function set ZBufferFunction(Compare);

Property Value

Microsoft.DirectX.Direct3D.Compare . Value of the Compare enumeration that represents the comparison function to set or retrieve.

This property is read/write. 

Remarks

The depth value of the pixel is compared to the depth-buffer value. If the depth value of the pixel passes the comparison function, the pixel is written.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.