343c6f4ff4
Fix fallout from changes. There's a bug in glslang that prevents `float16_t`, `[u]int16_t`, and `[u]int8_t` constants from adding the corresponding SPIR-V capabilities. SPIRV-Tools, meanwhile, tightened validation so that these constants are only valid if the corresponding `Float16`, `Int16`, and `Int8` caps are on. This affects the `16bit-constants.frag` test for GLSL and MSL.
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;
|
|
}
|