7a69d764b0
Verifies that Component decoration is honored for vertex outputs and fragment inputs.
24 lines
361 B
GLSL
24 lines
361 B
GLSL
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct main0_out
|
|
{
|
|
float4 FragColor [[color(0)]];
|
|
};
|
|
|
|
struct main0_in
|
|
{
|
|
float3 Foo3 [[user(locn0)]];
|
|
float Foo1 [[user(locn0_3)]];
|
|
};
|
|
|
|
fragment main0_out main0(main0_in in [[stage_in]])
|
|
{
|
|
main0_out out = {};
|
|
out.FragColor = float4(in.Foo3, in.Foo1);
|
|
return out;
|
|
}
|
|
|