Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/asm/frag/texture-sampling-fp16.asm.vk.frag

raw
1 #version 450
2 #if defined(GL_AMD_gpu_shader_half_float)
3 #extension GL_AMD_gpu_shader_half_float : require
4 #elif defined(GL_NV_gpu_shader5)
5 #extension GL_NV_gpu_shader5 : require
6 #else
7 #error No extension available for FP16.
8 #endif
9
10 layout(binding = 0) uniform sampler2D uTexture;
11
12 layout(location = 0) out f16vec4 FragColor;
13 layout(location = 0) in f16vec2 UV;
14
15 void main()
16 {
17 FragColor = f16vec4(texture(uTexture, UV));
18 }
19