Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Sampler States / AddressW

Name

AddressW - 3D API W texture addressing mode

Usage

AddressW = int(mode)

WrapR = int(mode)

Valid Enumerants

mode: Repeat, Wrap, Clamp, ClampToEdge, ClampToBorder, Border, MirroredRepeat, Mirror, MirrorClamp, MirrorClampToEdge, MirrorClampToBorder, MirrorOnce

Description

Set the Direct3D w-direction texture wrapping mode. See the D3DSAMP_ADDRESSW sampler state description for DirectX 9.

Set the wrap parameter for texture coordinate R. See the GL_TEXTURE_WRAP_R description on the OpenGL glTexParameter manual page for details.

The standard reset callback sets the AddressW or WrapR state to int(Wrap).

Opengl Functionality Requirements

Clamp, Repeat, Wrap: OpenGL 1.0

ClampToEdge: OpenGL 1.2

Border, ClampToBorder: OpenGL 1.3

Mirror, MirroredRepeat: OpenGL 1.4

MirrorClamp, MirrorClampToEdge, MirrorClampToBorder, MirrorOnce: support for extension EXT_mirror_clamp.

Direct3D Functionality Requirements

DirectX 9

See Also

AddressWi, AddressU, AddressV, WrapS, WrapT, WrapR


Cg Toolkit | Cg Toolkit | Download | Release Archive | Profiles | Reference | Books | Discussions |


Cg Sampler States

AddressU
AddressV
AddressW
BorderColor
CompareFunc
CompareMode
DepthMode
GenerateMipmap
LODBias
MagFilter
MaxAnisotropy
MaxMipLevel
MinFilter
MinMipLevel
MipFilter
MipMapLodBias
SRGBTexture
Texture
WrapR
WrapS
WrapT