3 ms·
This is very similar to what you'd write in HLSL, except maybe for `[[stage(fragment)]]` part (since this information is provided externally in HLSL) and `vec4<
by kvark 5y ago
This is very similar to what you'd write in HLSL, except maybe for `[[stage(fragment)]]` part (since this information is provided externally in HLSL) and `vec4<f32>` instead of `float4`. Are these the only things you are concerned about? If so, then I'd be happy with this, given that it's an artificial example.