1#version 450 2#extension GL_EXT_shader_explicit_arithmetic_types_int16 : require 3 4// Produce an OpSpecConstantOp with 16 bit integer type 5 6layout(constant_id = 0) const int c = 8; 7 8layout(binding=0) writeonly restrict buffer S { 9 uint16_t p_out[]; 10}; 11 12void main() 13{ 14 p_out[0] = uint16_t(c); 15} 16 17