microsoft / ShaderConductor

ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add options to Compiler()

gongminmin opened this issue · comments

Enable to have options for compiling shader.

Consider adding some options like these:

  • Zpc: Packs matrices in column-major order by deafult
  • Zpr: Packs matrices in row-major order by deafult
  • enable-16bit-types: Half, int16_t, etc
  • O{|0|1|2|3}: Optmization levels
  • Zi: Debug info
  • ShaderModel: Assign a shader model