D3DXGetVertexShaderProfile
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXGetVertexShaderProfile Function


Returns the name of the highest high-level shader language (HLSL) profile supported by a given device.

Syntax

LPCSTR WINAPI D3DXGetVertexShaderProfile(      

    LPDIRECT3DDEVICE9 pDevice );

Parameters

pDevice
[in] Pointer to the device. See IDirect3DDevice9.

Return Value

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 vertex shader profiles that are supported.

Shader ProfileDescription
vs_1_1Compile to vs_1_1 version.
vs_2_0Compile to vs_2_0 version.
vs_2_aSame 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.

For more information about the differences between shader versions, see Vertex Shader Differences.

Function Information

Headerd3dx9shader.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.