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

bda-restrict-pointer-variable.msl2.comp « comp « shaders-msl-no-opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf26b3b280b3ffbd85557661734800d0c7f1d929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct Ref;

struct Ref
{
    float4 v;
};

struct Registers
{
    device Ref* foo;
};

kernel void main0(constant Registers& _14 [[buffer(0)]])
{
    device Ref* __restrict ref = _14.foo;
    ref->v = float4(1.0);
}