Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <metal_stdlib>
  2. #include <simd/simd.h>
  3. using namespace metal;
  4.  
  5. struct VertexOut {
  6. vector_float4 position [[position]];
  7. vector_float4 color;
  8. }
  9.  
  10.  
  11. vertex VertexOut vertexShader(const constant vector_float2 *vertexArray [[buffer(0)]], unsigned int vid [[vertex_id]]){
  12.  
  13. }
  14.  
  15. fragment vector_float4 fragmentShader(VertexOut interpolated [[stage_in]]){
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement