blob: 674f42903147f94714a51999bd3c8596496f76fd [file] [log] [blame] [edit]
#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 "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"