Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

does the hlsl compiler optimize for specific gpus

$
0
0
I have a set of shaders that i want to compile to run on different machines, and I want to precompile them. does the compiler optimize the code for the current graphics driver of the machine it is being compiled on? say i have an nvidia 750m and precompile my shaders with D3DXSHADER_OPTIMIZATION_LEVEL3 set. and then i move those shaders to run on an intel integrated gpu. Are they as efficient on the intel gpu when precompiled on the nvidia vs compiled directly on the intel at runtime?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>