yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
959ff4a0
16.6.0
1#version 450 2#extension GL_EXT_descriptor_heap : require 3 4layout ( descriptor_heap , descriptor_stride = 512 ) buffer UBO { 5mat4 projection ; 6mat4 view ; 7mat4 model [ 2 ] ; 8} ubo [] ; 9 10layout ( descriptor_heap , descriptor_stride = 1024 , rgba32f ) uniform image2D img [] ; 11 12void main () 13{ 14mat4 mvp = ubo [ 1 ] . projection * ubo [ 1 ] . view * ubo [ 1 ] . model [ 0 ] ; 15ubo [ 9 ] . model [ 1 ] = mvp ; 16vec4 texel = imageLoad ( img [ 2 ] , ivec2 ( 0 , 0 )) ; 17imageStore ( img [ 3 ] , ivec2 ( 0 , 0 ) , texel ) ; 18}