ShaderLoader.GetVertexShaderProfile Method |
Language: |
Returns the name of the high-level shader language (HLSL) profile that is best suited to a given device.
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;
device Microsoft.DirectX.Direct3D.Device
Reference to the Device.
System.String
String that contains the HLSL profile name.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center