Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/frag/bit-conversions.frag

raw
1 #version 310 es
2 precision mediump float;
3
4 layout(location = 0) in vec2 value;
5
6 layout(location = 0) out vec4 FragColor;
7
8 void main()
9 {
10 int i = floatBitsToInt(value.x);
11 FragColor = vec4(1.0, 0.0, intBitsToFloat(i), 1.0);
12 }