yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
8e12361e
vulkan-sdk-1.4.363.0
1#version 450 core 2#extension GL_KHR_memory_scope_semantics : enable 3#extension GL_NV_cooperative_matrix : enable 4#extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable 5 6layout ( local_size_x = 64 , local_size_y = 1 , local_size_z = 1 ) in ; 7 8float < 16 > ftemplate16 ; 9 10fcoopmatNV fnoparams ; 11 12fcoopmatNV < 8 , gl_ScopeSubgroup , 8 , 8 > fbadbits ; 13 14fcoopmatNV < 16 , gl_ScopeSubgroup , 8 > fbadnumparams ; 15 16int X = 8 ; 17 18fcoopmatNV < 16 , gl_ScopeSubgroup , 8 , X > fbadparam ; 19 20layout ( constant_id = 0 ) int Y = 1 ; 21 22shared fcoopmatNV < 16 , gl_ScopeSubgroup , 16 , 16 > sharedmat ; 23 24layout ( set = 0 , binding = 0 ) buffer InvBlock { 25fcoopmatNV < 16 , gl_ScopeSubgroup , 16 , 16 > bufmat ; 26} invblock ; 27 28void main () 29{ 30fcoopmatNV < 32 , gl_ScopeSubgroup , 16 , 8 > f32_16_8 ; 31fcoopmatNV < 16 , gl_ScopeSubgroup , 16 , 8 > f16_16_8 ; 32 33// invalid implicit conversions 34f32_16_8 = f16_16_8 ; 35f32_16_8 = f16_16_8 + f16_16_8 ; 36 37fcoopmatNV < 16 , gl_ScopeSubgroup , 8 , 8 > f16_8_8 ; 38 39// mismatching dimensions 40f16_16_8 = f16_8_8 ; 41 42fcoopmatNV < 16 , gl_ScopeSubgroup , 8 , Y > f16_8_Y ; 43fcoopmatNV < 16 , gl_ScopeSubgroup , 8 , ( Y + 1 ) > f16_8_Y1 ; 44 45// mismatching dimensions with specialization constants 46f16_8_Y = f16_8_Y1 ; 47 48// wrong arguments for constructor 49f16_8_8 = fcoopmatNV < 16 , gl_ScopeSubgroup , 8 , 8 > ( 1 , 1 ) ; 50 51// can't construct from a builtin type 52mat4 m4 ; 53fcoopmatNV < 32 , gl_ScopeSubgroup , 4 , 4 > f32_4_4 = fcoopmatNV < 32 , gl_ScopeSubgroup , 4 , 4 > ( m4 ) ; 54 55// only support a single array subscript 56f16_16_8 [ 0 ][ 0 ] ; 57 58// don't support scalar component selection 59f16_16_8 . x ; 60 61f16_16_8 * f16_16_8 ; 62 63f16_16_8 + 1.0 ; 64f16_16_8 - 1.0 ; 65f16_16_8 / 1.0 ; 66f16_16_8 += 1.0 ; 67f16_16_8 -= 1.0 ; 68f16_16_8 /= 1.0 ; 69 70f16_16_8 * 2.0 ; 712.0 * f16_16_8 ; 72f32_16_8 * float16_t ( 2.0 ) ; 73float16_t ( 2.0 ) * f32_16_8 ; 74 75transpose ( f16_8_8 ) ; 76 77//Buf[] argument needs be in Shared/StorageBuffer storage classes 78float16_t larr [ 16 ] ; 79fcoopmatNV < 16 , gl_ScopeSubgroup , 16 , 8 > lvar ; 80coopMatLoadNV ( lvar , larr , 1 , 2 , false ) ; 81coopMatStoreNV ( lvar , larr , 1 , 2 , false ) ; 82 83}