Movatterモバイル変換


[0]ホーム

URL:


 
Cg ToolkitCg 3.1 Toolkit Documentation
Cg /Profiles / vs_2_sw

Name

vs_2_sw - Direct3D Software Shader for Model 2.0 Extended vertex profile

Synopsis

  vs_2_sw

Description

This Direct3D profile corresponds to the per-vertex functionalityintroduced by GeForce FX (NV3x) for DirectX 9.

The compiler output for this profile conforms to the textual assemblydefined by the software version of DirectX 9's Vertex Shader 2.0 Extendedshader format. See:

  http://msdn.microsoft.com/en-us/library/bb172925.aspx

This profile is useful for debugging and prototyping.

3D Api Dependencies

Requires support for software vertex processing and a reference device.

This profile generates code assuming the following Direct3D 9 Vertex shadercapability bits are set:

D3DD3DPSHADERCAPS2_0_ARBITRARYSWIZZLED3DD3DPSHADERCAPS2_0_GRADIENTINSTRUCTIONSD3DD3DPSHADERCAPS2_0_PREDICATIOND3DD3DPSHADERCAPS2_0_NODEPENDENTREADLIMITD3DD3DPSHADERCAPS2_0_NOTEXINSTRUCTIONLIMIT

Profile Options

NumTemps=val
Number of 4-component vector temporaries the target implementation supports.
NumInstructionSlots=val
Number of instructions the target implementation supports.
MaxDrawBuffers=val
Number of draw buffers or Multiple Render Targets (MRT) the targetimplementation supports.

Data Types

half
Thehalf data type makes use of the Partial Precision instruction modifierto request less precision.
NVIDIA GPUs may use half-precision floating-point when the PartialPrecision instruction modifier is specified. Half-precisionfloating-point is encoded with a sign bit, 10 mantissa bits, and 5exponent bits (biased by 16), sometimes calleds10e5.
float
Thefloat data type corresponds to a floating-point representationwith at least 24 bits.
NVIDIA GPUs supportingvs_2_sw use standard IEEE 754 single-precisionfloating-point encoding with a sign bit, 23 mantissa bits, and 8 exponentbits (biased by 128), sometimes calleds10e5.
Older ATI GPUs use 24-bit floating-point.
fixed
Thefixed data type is treated likehalf.

Semantics

Input Semantics

Binding Semantics Name           Corresponding DataCOLOR                            Input primary colorCOLOR0COLCOL0COLOR1                           Input secondary colorCOL1TEX0                             Input texture coordinate sets 0TEXCOORD0TEX1                             Input texture coordinate sets 1TEXCOORD1TEX2                             Input texture coordinate sets 2TEXCOORD2TEX3                             Input texture coordinate sets 3TEXCOORD3TEX4                             Input texture coordinate sets 4TEXCOORD4TEX5                             Input texture coordinate sets 5TEXCOORD5TEX6                             Input texture coordinate sets 6TEXCOORD6TEX7                             Input texture coordinate sets 7TEXCOORD7FOGP                             Input fog color (XYZ) and factor (W)FOG

Uniform Input Semantics

Eight texture units are supported:

Binding Semantic Name            Corresponding DataTEXUNIT0                         Texture unit 0TEXUNIT1                         Texture unit 1...TEXUNIT7                         Texture unit 7

Output Semantics

Binding Semantics Name        Corresponding DataPOSITION, HPOS                Output positionPSIZE, PSIZ                   Output point sizeFOG, FOGC                     Output fog coordinateCOLOR0, COL0                  Output primary colorCOLOR1, COL1                  Output secondary colorBCOL0                         Output backface primary colorBCOL1                         Output backface secondary colorTEXCOORD0-TEXCOORD7,          Output texture coordinatesTEX0-TEX7CLP0-CL5                      Output Clip distances

Standard Library Issues

Functions that compute partial derivatives arenot supported.

There are no restrictions on dependent texture reads (up to theinstruction limit) for this profile.

See Also

ps_2_sw,vs_2_x


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


Cg Profiles

arbfp1
arbvp1
ds_5_0
fp20
fp30
fp40
glslf
glslg
glsl
glslv
gp4fp
gp4gp
gp4
gp4vp
gp5fp
gp5gp
gp5
gp5tcp
gp5tep
gp5vp
gs_4_0
gs_5_0
hlsl10
hlsl11
hlslf
hlslv
hs_5_0
ps_1_1
ps_1_2
ps_1_3
ps_2_0
ps_2_sw
ps_2_x
ps_3_0
ps_4_0
ps_5_0
vp20
vp30
vp40
vs_1_1
vs_2_0
vs_2_sw
vs_2_x
vs_3_0
vs_4_0
vs_5_0





[8]ページ先頭

©2009-2025 Movatter.jp