google / xrtl

Cross-platform Real-Time Rendering Library
Apache License 2.0
128 stars 26 forks source link

Add compile-time generated shader definitions. #61

Open benvanik opened 7 years ago

benvanik commented 7 years ago

Find minimal shader module definition (exported functions, push constant ranges, binding slots, etc) and add to shader_tool output. To allow the compile-time headers without requiring the use of embedded shaders a new header file (--output_spirv_layout={input}_layout.h) could contain the information.