<commit_before>//
//  engineShaders.metal
//  low_poly_engine
//
//  Created by DEV on 8/18/17.
//  Copyright © 2017 DEV. All rights reserved.
//

#include <metal_stdlib>
using namespace metal;


struct Vertex {
    float4 position [[position]];
    float4 color;
};

vertex Vertex vertex_func(constant Vertex *vertices [[buffer(0)]], uint vid [[vertex_id]]) {
    return vertices[vid];
}

fragment float4 fragment_func(Vertex vert [[stage_in]]) {
//    return {1.0, 0.0, 0.0, 1.0};
    return vert.color;
}
<commit_msg>Add code for potential later use if I try to draw with points rather than triangles<commit_after>//
//  engineShaders.metal
//  low_poly_engine
//
//  Created by DEV on 8/18/17.
//  Copyright © 2017 DEV. All rights reserved.
//

#include <metal_stdlib>
using namespace metal;


struct Vertex {
    float4 position [[position]];
    float4 color;
};

//struct VertexOut{
//    float pointsize[[point_size]];
//};
//
//const VertexOut.pointsize = 10.0;

vertex Vertex vertex_func(constant Vertex *vertices [[buffer(0)]], uint vid [[vertex_id]]) {
    return vertices[vid];
}

fragment float4 fragment_func(Vertex vert [[stage_in]]) {
//    return {1.0, 0.0, 0.0, 1.0};
    return vert.color;
}

{'fraction_non_alphanumeric': 0.14686468646864687, 'fraction_numerical': 0.03712871287128713, 'mean_word_length': 3.347670250896057, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3813090', 'n_tokens_mistral': 444, 'n_tokens_neox': 409, 'n_words': 122}