amber
amber copied to clipboard
Passing compiler flags
Today we encountered a case where we needed to write an Amber script and we needed to pass a certain flag to DXC to generate additional SPIR-V Decorations. It would be great if we can pass flags to the compiler.
In this case were trying to add -fspv-reflect flag in order to see how the hardware reacts to SPV_GOOGLE_user_type.
But is there a good reason not to allow any flag to be passed to the compiler?
Clspv support added compiler options to pipelines. I've plumbed it to the clspv compile function so it should be easy enough to pick up one level above that in shader_compiler.cc.