CrossGL / crosstl

Translates native shader languages into CrossGL universal shader language and vice versa.
https://crossgl.net
Apache License 2.0
36 stars 39 forks source link

Fixes MetalCrossGL codegen removing @ #199

Closed Thirulogeswaren closed 1 month ago

Thirulogeswaren commented 1 month ago

changes removes the @ from variable names when converting metal to crossgl

    // Structs
    struct VertexInput {
        vec3 position @Position;
    }

    // Structs
    struct VertexOutput {
        vec4 position @gl_Position;
        vec2 uv ;
    }

after changes:

    // Structs
    struct VertexInput {
        vec3 position Position;
    }

    // Structs
    struct VertexOutput {
        vec4 position gl_Position;
        vec2 uv ;
    }