Skip to content

Instantly share code, notes, and snippets.

MSL Vertex shader:
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 gl_Position [[position]];
struct InnerVertexOut {
float4 extra : attribute(0);
}
Struct VertexOut {
float4 position : SV_Position;
InnerVertexOut innerVertexOut;
}
struct VertexInput {