ShaderLoader.GetVertexShaderProfile(Device) Method (Microsoft.DirectX.Direct3D)
Returns the name of the high-level shader language (HLSL) profile that is best suited to a given device.
Definition
Visual Basic Public Shared Function GetVertexShaderProfile( _
ByVal device As Device _
) As StringC# public static string GetVertexShaderProfile(
Device device
);C++ public:
static String^ GetVertexShaderProfile(
Device^ device
);JScript 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.