Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/frag/fp16-packing.frag

raw
1 #version 450
2
3 layout(location = 0) flat in uint FP16;
4 layout(location = 1) flat in vec2 FP32;
5 layout(location = 0) out vec2 FP32Out;
6 layout(location = 1) out uint FP16Out;
7
8 void main()
9 {
10 FP32Out = unpackHalf2x16(FP16);
11 FP16Out = packHalf2x16(FP32);
12 }