Blender  V3.3
GPU_common.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 by Mike Erwin. All rights reserved. */
3 
8 #pragma once
9 
10 #define PROGRAM_NO_OPTI 0
11 //#define GPU_NO_USE_PY_REFERENCES
12 
13 #if defined(NDEBUG)
14 # define TRUST_NO_ONE 0
15 #else
16 /* strict error checking, enabled for debug builds during early development */
17 # define TRUST_NO_ONE 1
18 #endif
19 
20 #include "BLI_sys_types.h"
21 #include <stdbool.h>
22 #include <stdint.h>
23 
24 #if TRUST_NO_ONE
25 # include <assert.h>
26 #endif
27 
28 /* GPU_INLINE */
29 #if defined(_MSC_VER)
30 # define GPU_INLINE static __forceinline
31 #else
32 # define GPU_INLINE static inline __attribute__((always_inline)) __attribute__((__unused__))
33 #endif