#version 450 core #extension GL_KHR_memory_scope_semantics : enable #extension GL_KHR_cooperative_matrix : enable #extension GL_EXT_shader_explicit_arithmetic_types : enable layout (local_size_x = 64, local_size_y = 1, local_size_z = 1) in; float<16> ftemplate16; coopmat fnoparams; struct S { int s; }; coopmat fbadtype; coopmat fbadtype2; coopmat<16, gl_ScopeSubgroup, 8, 8, gl_MatrixUseA> fbadtype3; coopmat fbadnumparams; int X = 8; coopmat fbadparam; layout(constant_id = 0) const int Y = 1; shared coopmat sharedmat; layout(set = 0, binding = 0) buffer InvBlock { coopmat bufmat; } invblock; void main() { coopmat f32_16_8; coopmat f16_16_8; // invalid implicit conversions f32_16_8 = f16_16_8; f32_16_8 = f16_16_8 + f16_16_8; coopmat f16_8_8; // mismatching dimensions f16_16_8 = f16_8_8; coopmat f16_8_Y; coopmat f16_8_Y1; // mismatching dimensions with specialization constants f16_8_Y = f16_8_Y1; // wrong arguments for constructor f16_8_8 = coopmat(1, 1); // can't construct from a builtin type mat4 m4; coopmat f32_4_4 = coopmat(m4); // only support a single array subscript f16_16_8[0][0]; // don't support scalar component selection f16_16_8.x; transpose(f16_8_8); }