shaders.metal.vs_shape.bin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glx Show documentation
Show all versions of glx Show documentation
UI harness for the LX framework based upon LWJGL + bgfx.
The newest version!
VSH u_modelViewProj ? #include
#include
using namespace metal;
struct _Global
{
float4x4 u_modelViewProj;
};
struct xlatMtlMain_out
{
float4 gl_Position [[position]];
};
struct xlatMtlMain_in
{
float3 a_position [[attribute(0)]];
};
vertex xlatMtlMain_out xlatMtlMain(xlatMtlMain_in in [[stage_in]], constant _Global& _mtl_u [[buffer(0)]])
{
xlatMtlMain_out out = {};
out.gl_Position = _mtl_u.u_modelViewProj * float4(in.a_position, 1.0);
return out;
}
@