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