#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; void main() { #define TESTCONST(T, BASE) \ coopmat(coopmat(BASE+1.0)); \ coopmat(coopmat(BASE+2.0)); \ coopmat(coopmat(BASE+3)); \ coopmat(coopmat(BASE+4)); \ coopmat(coopmat(BASE+5)); \ coopmat(coopmat(BASE+6)); \ coopmat(coopmat(BASE+7)); \ coopmat(coopmat(BASE+8)); TESTCONST(float, 0) TESTCONST(float16_t, 10) TESTCONST(uint32_t, 20) TESTCONST(uint16_t, 30) TESTCONST(uint8_t, 40) TESTCONST(int32_t, 50) TESTCONST(int16_t, 60) TESTCONST(int8_t, 70) #define TESTVAR(T, BASE) \ { coopmat v = coopmat(BASE+1.0); coopmat(v); } \ { coopmat v = coopmat(BASE+2.0); coopmat(v); } \ { coopmat v = coopmat(BASE+3); coopmat(v); } \ { coopmat v = coopmat(BASE+4); coopmat(v); } \ { coopmat v = coopmat(BASE+5); coopmat(v); } \ { coopmat v = coopmat(BASE+6); coopmat(v); } \ { coopmat v = coopmat(BASE+7); coopmat(v); } \ { coopmat v = coopmat(BASE+8); coopmat(v); } TESTVAR(float, 100) TESTVAR(float16_t, 110) TESTVAR(uint32_t, 120) TESTVAR(uint16_t, 130) TESTVAR(uint8_t, 140) TESTVAR(int32_t, 150) TESTVAR(int16_t, 160) TESTVAR(int8_t, 170) }