yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wint3rNightAllow sampler and image assignment under GL_ARB_bindless_texture2ff6f609

main
7.2 KiB167 linesraw
1GL_ARB_bindless_texture.lvalue.frag
2Shader version: 460
3Requested GL_ARB_bindless_texture
40:? Sequence
50:7  Function Definition: setSampler(s21;vu2; ( global void)
60:7    Function Parameters: 
70:7      's' ( out sampler2D)
80:7      'handle' ( in 2-component vector of uint)
90:9    Sequence
100:9      move second child to first child ( temp sampler2D)
110:9        's' ( out sampler2D)
120:9        packUint2x32 ( temp sampler2D)
130:9          'handle' ( in 2-component vector of uint)
140:12  Function Definition: copyBuffers(sB1[2];sB1; ( global void)
150:12    Function Parameters: 
160:12      'bufs' ( inout 2-element array of samplerBuffer)
170:12      'src' ( in samplerBuffer)
180:14    Sequence
190:14      move second child to first child ( temp samplerBuffer)
200:14        direct index ( temp samplerBuffer)
210:14          'bufs' ( inout 2-element array of samplerBuffer)
220:14          Constant:
230:14            0 (const int)
240:14        'src' ( in samplerBuffer)
250:15      move second child to first child ( temp samplerBuffer)
260:15        direct index ( temp samplerBuffer)
270:15          'bufs' ( inout 2-element array of samplerBuffer)
280:15          Constant:
290:15            1 (const int)
300:15        'src' ( in samplerBuffer)
310:28  Function Definition: main( ( global void)
320:28    Function Parameters: 
330:30    Sequence
340:30      Sequence
350:30        move second child to first child ( temp sampler2D)
360:30          'local' ( temp sampler2D)
370:30          'tex' ( uniform sampler2D)
380:31      Function Call: setSampler(s21;vu2; ( global void)
390:31        'local' ( temp sampler2D)
400:31        'handle' ( uniform 2-component vector of uint)
410:32      move second child to first child ( temp 4-component vector of float)
420:32        'color0' ( out 4-component vector of float)
430:32        texture ( global 4-component vector of float)
440:32          'local' ( temp sampler2D)
450:32          'coord' ( uniform 2-component vector of float)
460:35      Function Call: copyBuffers(sB1[2];sB1; ( global void)
470:35        'bufs' ( temp 2-element array of samplerBuffer)
480:35        'buf' ( uniform samplerBuffer)
490:36      move second child to first child ( temp 4-component vector of float)
500:36        'color1' ( out 4-component vector of float)
510:36        textureFetch ( global 4-component vector of float)
520:36          direct index ( temp samplerBuffer)
530:36            'bufs' ( temp 2-element array of samplerBuffer)
540:36            Constant:
550:36              1 (const int)
560:36          Constant:
570:36            0 (const int)
580:38      Sequence
590:38        move second child to first child ( temp image2D)
600:38          'localImage' ( temp image2D)
610:38          'img' (layout( rgba8) uniform image2D)
620:39      add second child into first child ( temp 4-component vector of float)
630:39        'color1' ( out 4-component vector of float)
640:39        imageLoad ( global 4-component vector of float)
650:39          'localImage' ( temp image2D)
660:39          Constant:
670:39            0 (const int)
680:39            0 (const int)
690:41      move second child to first child ( temp 2-component vector of uint)
700:41        'handleOut' ( out 2-component vector of uint)
710:41        unpackUint2x32 ( temp 2-component vector of uint)
720:41          'tex' ( uniform sampler2D)
730:?   Linker Objects
740:?     'tex' ( uniform sampler2D)
750:?     'buf' ( uniform samplerBuffer)
760:?     'handle' ( uniform 2-component vector of uint)
770:?     'coord' ( uniform 2-component vector of float)
780:?     'img' (layout( rgba8) uniform image2D)
790:?     'color0' ( out 4-component vector of float)
800:?     'color1' ( out 4-component vector of float)
810:?     'handleOut' ( out 2-component vector of uint)
82
83
84Linked fragment stage:
85
86
87Shader version: 460
88Requested GL_ARB_bindless_texture
890:? Sequence
900:7  Function Definition: setSampler(s21;vu2; ( global void)
910:7    Function Parameters: 
920:7      's' ( out sampler2D)
930:7      'handle' ( in 2-component vector of uint)
940:9    Sequence
950:9      move second child to first child ( temp sampler2D)
960:9        's' ( out sampler2D)
970:9        packUint2x32 ( temp sampler2D)
980:9          'handle' ( in 2-component vector of uint)
990:12  Function Definition: copyBuffers(sB1[2];sB1; ( global void)
1000:12    Function Parameters: 
1010:12      'bufs' ( inout 2-element array of samplerBuffer)
1020:12      'src' ( in samplerBuffer)
1030:14    Sequence
1040:14      move second child to first child ( temp samplerBuffer)
1050:14        direct index ( temp samplerBuffer)
1060:14          'bufs' ( inout 2-element array of samplerBuffer)
1070:14          Constant:
1080:14            0 (const int)
1090:14        'src' ( in samplerBuffer)
1100:15      move second child to first child ( temp samplerBuffer)
1110:15        direct index ( temp samplerBuffer)
1120:15          'bufs' ( inout 2-element array of samplerBuffer)
1130:15          Constant:
1140:15            1 (const int)
1150:15        'src' ( in samplerBuffer)
1160:28  Function Definition: main( ( global void)
1170:28    Function Parameters: 
1180:30    Sequence
1190:30      Sequence
1200:30        move second child to first child ( temp sampler2D)
1210:30          'local' ( temp sampler2D)
1220:30          'tex' ( uniform sampler2D)
1230:31      Function Call: setSampler(s21;vu2; ( global void)
1240:31        'local' ( temp sampler2D)
1250:31        'handle' ( uniform 2-component vector of uint)
1260:32      move second child to first child ( temp 4-component vector of float)
1270:32        'color0' ( out 4-component vector of float)
1280:32        texture ( global 4-component vector of float)
1290:32          'local' ( temp sampler2D)
1300:32          'coord' ( uniform 2-component vector of float)
1310:35      Function Call: copyBuffers(sB1[2];sB1; ( global void)
1320:35        'bufs' ( temp 2-element array of samplerBuffer)
1330:35        'buf' ( uniform samplerBuffer)
1340:36      move second child to first child ( temp 4-component vector of float)
1350:36        'color1' ( out 4-component vector of float)
1360:36        textureFetch ( global 4-component vector of float)
1370:36          direct index ( temp samplerBuffer)
1380:36            'bufs' ( temp 2-element array of samplerBuffer)
1390:36            Constant:
1400:36              1 (const int)
1410:36          Constant:
1420:36            0 (const int)
1430:38      Sequence
1440:38        move second child to first child ( temp image2D)
1450:38          'localImage' ( temp image2D)
1460:38          'img' (layout( rgba8) uniform image2D)
1470:39      add second child into first child ( temp 4-component vector of float)
1480:39        'color1' ( out 4-component vector of float)
1490:39        imageLoad ( global 4-component vector of float)
1500:39          'localImage' ( temp image2D)
1510:39          Constant:
1520:39            0 (const int)
1530:39            0 (const int)
1540:41      move second child to first child ( temp 2-component vector of uint)
1550:41        'handleOut' ( out 2-component vector of uint)
1560:41        unpackUint2x32 ( temp 2-component vector of uint)
1570:41          'tex' ( uniform sampler2D)
1580:?   Linker Objects
1590:?     'tex' ( uniform sampler2D)
1600:?     'buf' ( uniform samplerBuffer)
1610:?     'handle' ( uniform 2-component vector of uint)
1620:?     'coord' ( uniform 2-component vector of float)
1630:?     'img' (layout( rgba8) uniform image2D)
1640:?     'color0' ( out 4-component vector of float)
1650:?     'color1' ( out 4-component vector of float)
1660:?     'handleOut' ( out 2-component vector of uint)
167