| 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_EXT_shader_explicit_arithmetic_types_float16) |
| 5 |
#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require |
| 6 |
#else |
| 7 |
#error No extension available for FP16. |
| 8 |
#endif |
| 9 |
#extension GL_EXT_shader_16bit_storage : require |
| 10 |
|
| 11 |
layout(set = 0, binding = 0) uniform sampler2D uTexture; |
| 12 |
|
| 13 |
layout(location = 0) out f16vec4 FragColor; |
| 14 |
layout(location = 0) in f16vec2 UV; |
| 15 |
|
| 16 |
void main() |
| 17 |
{ |
| 18 |
FragColor = f16vec4(texture(uTexture, UV)); |
| 19 |
} |
| 20 |
|