RenderStateManager.ZBufferFunction Property

Language:

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

Definition

Visual Basic Public Property ZBufferFunction As Compare
C# public Compare ZBufferFunction { get; set; }
C++ public:
property Compare ZBufferFunction {
        Compare get();
        void set(Compare value);
}
JScript 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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