chore: add conditional check for GL_NV_gpu_shader5 extension

- Wrapped `GL_NV_gpu_shader5` extension with `#ifdef` to ensure it is only enabled if available
This commit is contained in:
Phoenix 2024-09-10 15:56:17 +10:00
parent e360070de4
commit e57d30616e

View File

@ -10,7 +10,10 @@
#ifdef UZUY_USE_FP16
#extension GL_AMD_gpu_shader_half_float : enable
#ifdef GL_NV_gpu_shader5
#extension GL_NV_gpu_shader5 : enable
#endif
#define lfloat float16_t
#define lvec2 f16vec2