yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
08d61df0
vulkan-sdk-1.4.350.0
1#version 310 es 2 3// readonly coherent uniform layout(set = 0, binding = 0) highp image2D image1; 4// readonly uniform layout(set = 0, binding = 2) highp image2D image2; 5writeonly coherent uniform layout ( set = 0 , binding = 1 , rgba32f ) highp image2D image3 ; 6writeonly uniform layout ( set = 0 , binding = 3 , rgba16f ) highp image2D image4 ; 7 8flat in layout ( location = 0 ) highp ivec2 in_coords ; 9out layout ( location = 0 ) highp vec4 out_color ; 10 11highp vec4 image_load ( readonly coherent highp image2D image , highp ivec2 coords ) 12{ 13return imageLoad ( image , in_coords ) ; 14} 15 16void image_store ( writeonly coherent highp image2D image , highp ivec2 coords , highp vec4 data ) 17{ 18imageStore ( image , in_coords , data ) ; 19} 20 21void main () 22{ 23highp vec4 read1 = vec4 ( 0.4 ) ; // = image_load(image1, in_coords); 24highp vec4 read2 = vec4 ( 0.5 ) ; // = image_load(image2, in_coords); 25 26image_store ( image3 , in_coords , read1 * 0.5 ) ; 27image_store ( image4 , in_coords , read2 * 2.0 ) ; 28 29out_color = vec4 ( 0.0 ) ; 30}