| #include <metal_stdlib> | |
| // Add baseInstance to the instanceID for path draws. | |
| #define ENABLE_INSTANCE_INDEX | |
| #define FRAGMENT | |
| #define VERTEX | |
| #include "metal.minified.glsl" | |
| #include "constants.minified.glsl" | |
| #define DRAW_IMAGE | |
| #include "flush_uniforms.minified.glsl" | |
| #include "common.minified.glsl" | |
| #undef DRAW_IMAGE | |
| #define DRAW_PATH | |
| #define DRAW_INTERIOR_TRIANGLES | |
| #define ENABLE_FEATHER | |
| #define ATLAS_BLIT | |
| #include "draw_path_common.minified.glsl" | |
| #define ATLAS_FEATHERED_FILL | |
| #define ATLAS_FEATHERED_STROKE | |
| #include "render_atlas.minified.glsl" | |
| #undef ATLAS_FEATHERED_FILL | |
| #undef ATLAS_FEATHERED_STROKE | |
| #undef ATLAS_BLIT | |
| #undef ENABLE_FEATHER | |
| #undef DRAW_INTERIOR_TRIANGLES | |
| #undef DRAW_PATH | |
| #undef VERTEX | |
| #define ENABLE_ADVANCED_BLEND 1 | |
| #define ENABLE_HSL_BLEND_MODES 1 | |
| #include "advanced_blend.minified.glsl" | |
| #undef ENABLE_HSL_BLEND_MODES | |
| #undef ENABLE_ADVANCED_BLEND | |
| #undef FRAGMENT | |
| #include "draw_combinations.metal" |