Welcome to mirror list, hosted at ThFree Co, Russian Federation.

opptrdiff-opptraccesschain-elem-offset.spv14.asm.comp « comp « asm « shaders-msl-no-opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69e76f3f38bbb4c578b94e42b9e2272a2a07c279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct _7
{
    int _m0;
    int _m1[1];
};

struct _9
{
    int2 _m0[1];
};

kernel void main0(device _7& _2 [[buffer(0)]], device _9& _3 [[buffer(1)]])
{
    int _28 = _2._m0;
    device int* _4 = &_2._m1[0];
    device int* _5 = &_2._m1[0 + _28];
    int _34;
    if (!(_28 <= 0))
    {
        _34 = 0;
        for (;;)
        {
            device int* _36 = _4;
            device int* _37 = _5;
            int _35 = _34 + 1;
            _4 = &_36[1];
            _5 = &_37[-1];
            _3._m0[_34] = int2(_36 - _37, _37 - _36);
            if (_34 >= _28)
            {
                break;
            }
            else
            {
                _34 = _35;
            }
        }
    }
}