4ef51331b2
GL_NV_gpu_shader5 doesn't support "hf", so to avoid lots of complicated workarounds, just value-cast the half literals.
22 lines
311 B
GLSL
22 lines
311 B
GLSL
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct main0_out
|
|
{
|
|
half foo [[color(0)]];
|
|
short bar [[color(1)]];
|
|
ushort baz [[color(2)]];
|
|
};
|
|
|
|
fragment main0_out main0()
|
|
{
|
|
main0_out out = {};
|
|
out.foo = half(1.0);
|
|
out.bar = 2;
|
|
out.baz = 3u;
|
|
return out;
|
|
}
|
|
|