Namevs_2_sw - Direct3D Software Shader for Model 2.0 Extended vertex profile Synopsis vs_2_sw DescriptionThis 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 DependenciesRequires 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.
SemanticsInput SemanticsBinding 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 SemanticsEight texture units are supported: Binding Semantic Name Corresponding DataTEXUNIT0 Texture unit 0TEXUNIT1 Texture unit 1...TEXUNIT7 Texture unit 7 Output SemanticsBinding 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 IssuesFunctions that compute partial derivatives arenot supported. There are no restrictions on dependent texture reads (up to theinstruction limit) for this profile. See Alsops_2_sw,vs_2_x |