Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the name of the highest high-level shader language (HLSL) profile supported by a given device.
Syntax
LPCSTR D3DXGetVertexShaderProfile(
_In_ LPDIRECT3DDEVICE9 pDevice
);
Parameters
-
pDevice [in]
-
Type: LPDIRECT3DDEVICE9
Pointer to the device. See IDirect3DDevice9.
Return value
Type: LPCSTR
The HLSL profile name.
If the device does not support vertex shaders then the function returns NULL.
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 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:
|
vs_3_0 | Compile to vs_3_0 version. |
For more information about the differences between shader versions, see Vertex Shader Differences.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also