I was used D3DXCompileShaderFromFile()
and it didn’t works, When I search about this, I found (I think) Microsoft recommends using D3DCompile()
instead of D3DXCompileShaderFromFile()
on this page, But I see their parameters are different, So how?
This is the code that I want to convert from D3DXCompileShaderFromFile()
to D3DCompile()
:
ID3DXBuffer* pShaderData, pErrors;
ID3DXConstantTable* pConstants;
D3DXCompileShaderFromFile("Fill2d.shd", NULL, NULL, "VS", "vs_2_0", &pShaderData, &pErrors, &pConstants);