yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
08f27157
16.6.0
1#version 450 2 3#extension GL_EXT_abort : require 4 5layout ( local_size_x = 1 ) in ; 6 7layout ( set = 0 , binding = 0 ) buffer Output { 8uint value ; 9} outputBuffer ; 10 11 12uint abortOne () 13{ 14outputBuffer . value = 1 ; 15abortEXT ( "abortOne:%d" , outputBuffer . value ) ; 16return outputBuffer . value ; 17} 18 19void abortTwo () 20{ 21outputBuffer . value = 2 ; 22if ( gl_GlobalInvocationID . x == 1 ) 23{ 24abortEXT ( "abortTwo" ) ; 25outputBuffer . value = 3 ; 26} 27return ; 28} 29 30void abortThree () 31{ 32abortEXT () ; 33outputBuffer . value = 4 ; 34return ; 35} 36 37void abortFour () 38{ 39for ( int i = 0 ; i < 3 ; i ++ ) 40abortEXT ( "Iteration exceeded limit: in invocation %i %u" , i , gl_GlobalInvocationID . x ) ; 41return ; 42} 43 44void abortFive () 45{ 46abortEXT ( "" , outputBuffer . value ) ; 47return ; 48} 49 50void main () { 51outputBuffer . value = 0 ; 52 53abortEXT () ; 54 55abortOne () ; 56abortTwo () ; 57abortThree () ; 58abortFour () ; 59abortFive () ; 60 61abortEXT () ; 62}