Is there any way to set HLSL (for example) vertex shader constant from c++ code in opengl-style?
I mean - no d3dx, no constant-table. Shader is already compiled with fxc.exe and set. Have only LPDIRECT3DVERTEXSHADER9 and LPDIRECT3DDEVICE9. I planned to use SetVertexShaderConstant
*, but found no way to translate constant name (for example "u_mvpMatrix") to "Register number that will contain the first constant value.".
You need to bind your constants to registers in your shader file. Eg.
float4 sample_constant : register(c12);
This binds the sample_constant to register 12. You can then use SetVertexShaderConstant() to set the constant using 12 for the register.