Cleanup: move clipping shader lib & define into struct
[blender.git] / source / blender / gpu / GPU_shader.h
index bae8c3c7b53005278e2c0153186a7ab80afc8424..2a00c505cb39e61365936acc3e70a44a50e8a59e 100644 (file)
@@ -365,6 +365,13 @@ typedef enum eGPUShaderConfig {
 } eGPUShaderConfig;
 #define GPU_SHADER_CFG_LEN (GPU_SHADER_CFG_CLIPPED + 1)
 
+typedef struct GPUShaderConfigData {
+       const char *lib;
+       const char *def;
+} GPUShaderConfigData;
+/* shader.c */
+extern const GPUShaderConfigData GPU_shader_cfg_data[GPU_SHADER_CFG_LEN];
+
 /** Keep these in sync with:
  * - `gpu_shader_image_interlace_frag.glsl`
  * - `gpu_shader_image_rect_interlace_frag.glsl`