Microsoft DirectX 9.0 SDK Update (October 2004)

ShaderLoader.GetVertexShaderProfile Method

Language:

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

Returns the name of the high-level shader language (HLSL) profile that is best suited to a given device.

Definition

Visual Basic .NET Public Shared Function GetVertexShaderProfile( _
    ByVal device As Device _
) As String
C# public static string GetVertexShaderProfile(
    Device device
);
Managed C++ public: static String* GetVertexShaderProfile(
    Device *device
);
JScript .NET public static function GetVertexShaderProfile(
    device : Device
) : String;

Parameters

device Microsoft.DirectX.Direct3D.Device. Reference to the Device.

Return Value

System.String . String that contains the HLSL profile name.

Remarks

A shader profile specifies the assembly shader version to use and the capabilities available to the HLSL compiler when compiling a shader. The following table lists the supported vertex shader profiles.

Shader Profile Description
vs_1_1 Compile to vs_1_1 version.
vs_2_0 Compile to vs_2_0 version.
vs_2_a Same as the vs_2_0 profile, with the following additional capabilities available for the compiler to target:
  • Number of temporary registers (r#) is greater than or equal to 13.
  • Dynamic flow control instruction.
  • Predication.
vs_2_sw Compile to vs_2_sw version.


© 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