2

In Ogre, when loading HLSL shaders you specify a target PS/VS e.g SM2.0, SM 3.0. Are there tools for HLSL (and I guess other shader languages) which will tell me what shader-model versions a given HLSL function/file is valid as? For instance we wrote shaders for SM3.0 by default but for all I know they are valid as SM2.0.

Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
  • Here's a question that may be relevant: http://stackoverflow.com/questions/2863575/hlsl-enforce-constant-register-limit-at-compile-time – Andrew Russell Feb 08 '11 at 11:04

1 Answers1

2

Start with a low shader version and work your way up until it compiles. Its not elegant but it works.

Goz
  • 61,365
  • 24
  • 124
  • 204