nn::gr::CTR::RenderState::WBuffer Class

Syntax

class WBuffer

Description

Class for setting the w buffer.

Member Variables

wScale The scale value when the w buffer is enabled. Type is f32. If wScale is 0, the w buffer is disabled. The initial value is 0.
isEnablePolygonOffset Sets enable/disable for the polygon offset. The type is bool. Polygon offset cannot be used at the same time as the w buffer. If m_WScale is other than 0, polygon offset is dispalyed regardless of this setting.
polygonOffsetUnit The scaling value corresponding to the minimum resolvable depth value. Type is f32. The minimum resolvable depth value depends on the bit value of the depth buffer. The initial value is 0. If the w buffer is enabled, polygon offset is disabled.
depthRangeNear Sets the depth value for the near plane in the clip space. Type is f32. The initial value is 0. Set so that 0 <= depthRangeNear <= depthRangeFar <= 1. If the w buffer is enabled, this setting is ignored and 0 is set.
depthRangeFar Sets the depth value for the far plane in the clip space. Type is f32. The initial value is 1. Set so that 0 <= depthRangeNear <= depthRangeFar <= 1. If the w buffer is enabled, this setting is ignored and 1 is set.
depthRangeBit Sets the bit value of the depth buffer. Type is f32. The initial value is 24.

Member Functions

WBuffer Initializes using the initial values for w buffer settings.
MakeCommand Generates drawing commands based on previously set information.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL