ATI SDK

ATI Product Information

Support for Alternate OS's

Hardware partners

Software partners

RenderMonkey

Drivers


 
 

Highlights


GPU MeshMapper (V1.0)

GPU PerfStudio (V1.2)

Samples: CrossFire Detect (update)

Samples: PostTonemapResolve

The Compressonator (version 1.41)

GPU Shader Analyzer (V1.42)

RenderMonkey™
(version 1.81) (New)


ATI Compress (version 1.6)

AMD Tootle 2.0 (New)

AMD OpenGL ES 2.0 Emulator (V1.1) (New)

HLSL2GLSL (V0.9)

AMD at GDC 2007

ATI SDK


 
 
ATI Developer - Source Code
 
ATI Radeon® and SetTextureStageState() on DirectX® 8


The ATI Radeon® multitexture programming model has three fully-orthogonal texture stages which are programmed as a cascade. All three stages can introduce diffuse, specular, constant and texture data.

Three Fully-Orthogonal Multitexture Units
The following render states are valid as arguments to IDirect3DDevice8::SetTextureStageState() for all three texture stages:
  • D3DTSS_COLORARG0, D3DTSS_COLORARG1 and D3DTSS_COLORARG2
    • Color arguments 0, 1 and 2 can be set to any combinations of D3DTA_DIFFUSE, D3DTA_SPECULAR, D3DTA_TFACTOR, D3DTA_TEXTURE, D3DTA_CURRENT or D3DTA_TEMP.
    • One or both of the D3DTA_ALPHAREPLICATE and D3DTA_COMPLEMENT modifier flags may be bitwise or'ed in to alpha-replicate and/or invert the argument.
  • D3DTSS_COLOROP
    • The valid color operations are:
      • D3DTOP_DISABLE
      • D3DTOP_SELECTARG1
      • D3DTOP_SELECTARG2
      • D3DTOP_MODULATE
      • D3DTOP_MODULATE2X
      • D3DTOP_MODULATE4X
      • D3DTOP_ADD
      • D3DTOP_ADDSIGNED
      • D3DTOP_ADDSIGNED2X
      • D3DTOP_SUBTRACT
      • D3DTOP_BLENDDIFFUSEALPHA
      • D3DTOP_BLENDTEXTUREALPHA
      • D3DTOP_BLENDFACTORALPHA
      • D3DTOP_BLENDTEXTUREALPHAPM
      • D3DTOP_BLENDCURRENTALPHA
      • D3DTOP_MODULATEALPHA_ADDCOLOR
      • D3DTOP_MODULATEINVALPHA_ADDCOLOR
      • D3DTOP_BUMPENVMAP
      • D3DTOP_DOTPRODUCT3
      • D3DTOP_MULTIPLYADD
      • D3DTOP_LERP
  • D3DTSS_ALPHAARG0, D3DTSS_ALPHAARG1 and D3DTSS_ALPHAARG2
    • Alpha arguments 0, 1 and 2 can be set to any combinations of D3DTA_DIFFUSE, D3DTA_SPECULAR, D3DTA_TFACTOR, D3DTA_TEXTURE, D3DTA_CURRENT or D3DTA_TEMP.
    • The D3DTA_COMPLEMENT modifier flag may be bitwise or'ed in to invert the argument.
  • D3DTSS_ALPHAOP
    • The valid alpha operations are:
      • D3DTOP_DISABLE
      • D3DTOP_SELECTARG1
      • D3DTOP_SELECTARG2
      • D3DTOP_MODULATE
      • D3DTOP_MODULATE2X
      • D3DTOP_MODULATE4X
      • D3DTOP_ADD
      • D3DTOP_ADDSIGNED
      • D3DTOP_ADDSIGNED2X
      • D3DTOP_SUBTRACT
      • D3DTOP_MULTIPLYADD
      • D3DTOP_LERP
  • The D3DTSS_RESULTARG
    • This state can be set to D3DTA_TEMP or D3DTA_CURRENT.
  • The D3DTSS_BUMPENVMATxy
    • These states can be set to floats in the range [-8.0 to 8.0)
  • D3DTSS_TEXCOORDINDEX
    • Any value 0..7
    • D3DTSS_TCI_CAMERASPACENORMAL
    • D3DTSS_TCI_CAMERASPACEPOSITION
    • D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR
  • D3DTSS_ADDRESSU, D3DTSS_ADDRESSV and D3DTSS_ADDRESSW
    • Support for all five Direct3D® texture addressing modes:
      • D3DTADDRESS_WRAP
      • D3DTADDRESS_MIRROR
      • D3DTADDRESS_MIRRORONCE
      • D3DTADDRESS_CLAMP
      • D3DTADDRESS_BORDER
  • D3DTSS_BORDERCOLOR
    • Color to be used for rasterizing texture coordinates outside the [0.0, 1.0] range.
  • D3DTSS_MAGFILTER
    • Support for the following magnification filter modes:
      • D3DTFG_POINT
      • D3DTFG_LINEAR
      • D3DTFG_ANISOTROPIC
  • D3DTSS_MINFILTER
    • Support for the following minification filter modes:
      • D3DTFN_POINT
      • D3DTFN_LINEAR
      • D3DTFN_ANISOTROPIC
  • D3DTSS_MIPFILTER
    • Support for the following mip-map filter modes:
      • D3DTFP_NONE
      • D3DTFP_POINT
      • D3DTFP_LINEAR
  • D3DTSS_MIPMAPLODBIAS
    • Level of detail bias for mipmaps. Floating-point values in the range of -1.0 to 1.0 are meaningful
  • D3DTSS_MAXMIPLEVEL
    • Maximum mipmap level-of-detail that the application will allow, expressed as an index from the top of the mipmap chain.
  • D3DTSS_MAXANISOTROPY
    • Maximum degree of anisotropy for anisotropic filter kernel.
  • D3DTSS_TEXTURETRANSFORMFLAGS
    • D3DTTFF_DISABLE, D3DTTFF_COUNT1, D3DTTFF_COUNT2 or D3DTTFF_COUNT3. D3DTTFF_PROJECTED can be bitwise OR'ed in.

 
 


 



©2008 Advanced Micro Devices, Inc.    |    Contact AMD    |    Terms and Conditions    |    Privacy    |    Trademark information    |    Site Map