operation$ =
string containing a HLSL or empty string if using a HLSL file
Choose the correct pixel shader for the HLSL script in question. If in doubt use the latest ps_3_0, which has the greater amount of capabilities.
|
Creates a pixel 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$() |