dxCreateVertexShader%(operation$,file$,entry_point$,version$)

Parameters

operation$ = string containing a HLSL or empty string if using a HLSL file
file$ = file of HLSL script to compile
entry_point$ = name of the function within the HLSL script to run on execution. Attention this is a CASE SENITIVE parameter, letter for letter. Type it wrong and the script will not compile.
version$ = verison of the HLSL script, can be one of the following...

vs_1_1 Compile to vertex shader version 1.1
vs_2_0 Compile to vertex shader version 2.0
vs_2_a Compile to vertex shader version 2.0a
vs_3_0 Compile to vertex shader version 3.0

Choose the correct vertex shader for the HLSL script in question. If in doubt use the latest vs_3_0, which has the greater amount of capabilities.

Description

Creates a vertex shader from a HLSL script and return it's handle. If you supply a string to operation$, the string will be compiled. Otherwise, the script contained in the file given in file$ will be compiled.

If the HLSL script is not found or it could not be compiled for any reason, the result of this function will be 0. In case of a compiler error, the error can be retrieved with the function dxGetLastShaderError$()