src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/shaders/MetalShaderTypes.h
author aghaisas
Wed, 20 Feb 2019 17:00:40 +0530
branchmetal-prototype-branch
changeset 57196 a95707a39ff5
permissions -rw-r--r--
Description : Metal Rendering Pipeline - initial implementation of line and quad rendering Contributed-by: jdv, aghaisas

// Header for types and enum constants shared between Metal shaders and Objective C source

#ifndef MetalShaderTypes_h
#define MetalShaderTypes_h

//#import <metal_stdlib>
//using namespace metal;


#import <simd/simd.h>
//#import <Metal/Metal.h>


typedef struct
{
    // Positions in pixel space
    vector_float4 position;

    // Floating-point RGBA colors
    vector_float4 color;
} MetalVertex;


#endif /* MetalShaderTypes_h */