Skip to content

Instantly share code, notes, and snippets.


Peter Tretyakov petertretyakov

View GitHub Profile
View gradient.metal
// Gradient Shader for arbitrary gradient stops, three gradient types and rotation
// For the details please visit:
// MARK: - Gradient Texture
struct GradientTextureVertex {
float4 position [[ position ]];
float4 color;
petertretyakov /
Last active June 18, 2022 16:07
Build Metal Library from Shell
# This is a gist from
# If you want to know what the hell is happening here check
# Create intermediate representation from Metal files