error X3523: DX9-style intrinsics are disabled when not in dx9 compatibility mode
how to use the tex2Dgrad() function in dx10?
error X3523: DX9-style intrinsics are disabled when not in dx9 compatibility mode
how to use the tex2Dgrad() function in dx10?
Copyright © 2021 Jogjafile Inc.
You could turn on the back-compat mode (i.e. use
/Gecswitch with theFXC.EXEcommand-line or theD3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITYflag with the D3DCompile APIs).Alternatively, instead of using the DirectX 9 style
tex2Dgrad()intrinsic, use the 'Texture object' syntax that was introduced with Direct3D 10 / Shader Model 4:See MSDN