mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 16:30:08 +00:00
ca4744ab72
Constants of 8-bit type aren't supported in GLSL, since there's no extension letting you use them.
15 lines
286 B
GLSL
15 lines
286 B
GLSL
#version 450 core
|
|
|
|
#extension GL_AMD_gpu_shader_int16 : require
|
|
#extension GL_AMD_gpu_shader_half_float : require
|
|
|
|
layout(location = 0) out float16_t foo;
|
|
layout(location = 1) out int16_t bar;
|
|
layout(location = 2) out uint16_t baz;
|
|
|
|
void main() {
|
|
foo = 1.0hf;
|
|
bar = 2s;
|
|
baz = 3us;
|
|
}
|