amber icon indicating copy to clipboard operation
amber copied to clipboard

Passing compiler flags

Open ehsannas opened this issue 6 years ago • 2 comments

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.

ehsannas avatar Sep 27 '19 15:09 ehsannas

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?

ehsannas avatar Sep 27 '19 16:09 ehsannas

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.

alan-baker avatar Sep 30 '19 12:09 alan-baker