Microsoft DirectX 9.0 SDK Update (October 2004)

TextureCaps.SupportsNonPower2Conditional Property

Language:

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

Specifies whether the device conditionally supports the use of 2-D textures with dimensions that are not powers of two.

Definition

Visual Basic .NET Public ReadOnly Property SupportsNonPower2Conditional As Boolean
C# public bool SupportsNonPower2Conditional { get; }
Managed C++ public: __property bool get_SupportsNonPower2Conditional();
JScript .NET public function get SupportsNonPower2Conditional() : boolean

Property Value

System.Boolean . Value that is true if the device conditionally supports dimensions that are not powers of two, or false if it does not.

This property is read-only. 

Remarks

A device that exposes this capability can use a texture whose dimensions are not powers of two, provided all of the following requirements are met.

A texture that is not a power of two cannot be set at a stage that will be read based on a shader computation (such as the bem, beml, or texm3x3 instructions in pixel shaders versions 1_0 to 1_3). For example, these textures can be used to store bumps that are fed into texture reads, but not the environment maps that are used in texbem, texbeml, or texm3x3spec. This means that a texture with dimensions that are not powers of two cannot be addressed or sampled using texture coordinates computed within the shader. This type of operation is known as a dependent read, and cannot be performed on these types of textures.


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

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center