Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <metal_stdlib>
- #include <simd/simd.h>
- using namespace metal;
- struct VertexOut {
- vector_float4 position [[position]];
- vector_float4 color;
- }
- vertex VertexOut vertexShader(const constant vector_float2 *vertexArray [[buffer(0)]], unsigned int vid [[vertex_id]]){
- }
- fragment vector_float4 fragmentShader(VertexOut interpolated [[stage_in]]){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement