Blender  V3.3
GPU_shader_shared.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2022 Blender Foundation. All rights reserved. */
3 
8 #ifndef USE_GPU_SHADER_CREATE_INFO
10 #endif
11 
12 struct NodeLinkData {
14  /* bezierPts Is actually a float2, but due to std140 each element needs to be aligned to 16
15  * bytes. */
19  float dim_factor;
20  float thickness;
21  float dash_factor;
22  float dash_alpha;
23  float expandSize;
24  float arrowSize;
25 };
27 
29  float4 colors[6];
30  float expandSize;
31  float arrowSize;
33 };
35 
38  float pixsize;
39  float objscale;
40  float pixfactor;
41  int xraymode;
43  int caps_end;
47 };
49 
50 struct GPUClipPlanes {
53 };
55 
59  float _pad;
60 };
62 
63 #define MAX_CALLS 16
64 
67 };
#define BLI_STATIC_ASSERT_ALIGN(st, align)
Definition: BLI_assert.h:86
#define MAX_CALLS
float float4x4[4][4]
float float4[4]
World world
float4x4 ModelMatrix
float4 calls_data[MAX_CALLS *3]
float4 colors[3]
float4 bezierPts[4]