yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
62f5430e
16.6.0
1#version 450 core 2 3#extension GL_EXT_bfloat16 : require 4#extension GL_EXT_float_mxint8 : require 5#extension GL_KHR_cooperative_matrix : enable 6#extension GL_NV_cooperative_matrix2 : enable 7#extension GL_KHR_memory_scope_semantics : enable 8#extension GL_EXT_shader_explicit_arithmetic_types : enable 9#extension GL_EXT_scalar_block_layout : enable 10#extension GL_EXT_long_vector : enable 11 12layout ( local_size_x = 1 , local_size_y = 1 , local_size_z = 1 ) in ; 13 14const floatmxint8_t bc10 = floatmxint8_t ( 10 ) ; 15const fmxint8vec2 b2c20 = fmxint8vec2 ( 20 ) ; 16layout ( constant_id = 1 ) const floatmxint8_t bsc10 = floatmxint8_t ( 10 ) ; 17 18struct S { floatmxint8_t b ; } ; 19const S sc = S ( bc10 ) ; 20 21const floatmxint8_t bca [ 2 ] = { bc10 , bc10 } ; 22 23shared floatmxint8_t bfs [ 10 ] ; 24 25layout ( scalar ) buffer B { 26fmxint8vec3 b3 ; 27fmxint8vec2 b2 ; 28floatmxint8_t b1 ; 29} buf ; 30 31floatmxint8_t funcfmxint8 ( floatmxint8_t x ) 32{ 33return x ; 34} 35 36void main () 37{ 38float f = 2.0 ; 39floatmxint8_t b = floatmxint8_t ( 1.0f mxint8 ) ; 40 41float16_t f16 = float16_t ( 7 ) ; 42float32_t f32 = 7 ; 43float64_t f64 = 7 ; 44f16 = float16_t ( b ) ; 45f32 = float32_t ( b ) ; 46f64 = float64_t ( b ) ; 47 48b = funcfmxint8 ( b ) ; 49 50b = buf . b1 ; 51fmxint8vec2 b2 = buf . b2 ; 52fmxint8vec3 b3 = buf . b3 ; 53 54int8_t i8_1 = floatmxint8BitsToIntEXT ( b ) ; 55i8vec2 i8_2 = floatmxint8BitsToIntEXT ( b2 ) ; 56i8vec3 i8_3 = floatmxint8BitsToIntEXT ( fmxint8vec3 ( b2 , b )) ; 57i8vec4 i8_4 = floatmxint8BitsToIntEXT ( fmxint8vec4 ( b2 , b2 )) ; 58vector < int8_t , 5 > i8_5 = floatmxint8BitsToIntEXT ( vector < floatmxint8_t , 5 > ( b2 , b2 , b )) ; 59 60uint8_t u8_1 = floatmxint8BitsToUintEXT ( b ) ; 61u8vec2 u8_2 = floatmxint8BitsToUintEXT ( b2 ) ; 62u8vec3 u8_3 = floatmxint8BitsToUintEXT ( fmxint8vec3 ( b2 , b )) ; 63u8vec4 u8_4 = floatmxint8BitsToUintEXT ( fmxint8vec4 ( b2 , b2 )) ; 64vector < uint8_t , 5 > u8_5 = floatmxint8BitsToUintEXT ( vector < floatmxint8_t , 5 > ( b2 , b2 , b )) ; 65 66floatmxint8_t f8_1 = intBitsToFloatmxint8EXT ( i8_1 ) ; 67fmxint8vec2 f8_2 = intBitsToFloatmxint8EXT ( i8_2 ) ; 68fmxint8vec3 f8_3 = intBitsToFloatmxint8EXT ( i8_3 ) ; 69fmxint8vec4 f8_4 = intBitsToFloatmxint8EXT ( i8_4 ) ; 70vector < floatmxint8_t , 5 > f8_5 = intBitsToFloatmxint8EXT ( i8_5 ) ; 71 72f8_1 = uintBitsToFloatmxint8EXT ( u8_1 ) ; 73f8_2 = uintBitsToFloatmxint8EXT ( u8_2 ) ; 74f8_3 = uintBitsToFloatmxint8EXT ( u8_3 ) ; 75f8_4 = uintBitsToFloatmxint8EXT ( u8_4 ) ; 76f8_5 = uintBitsToFloatmxint8EXT ( u8_5 ) ; 77}