s3d_backend.h (1374B)
1 /* Copyright (C) 2015-2023 |Méso|Star> (contact@meso-star.com) 2 * 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 3 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 15 16 #ifndef S3D_BACKEND_H 17 #define S3D_BACKEND_H 18 19 #include <rsys/rsys.h> /* COMPILER_<CL|GCC> */ 20 21 #ifdef COMPILER_CL 22 /* Structure was padded due to alignment specifier */ 23 #pragma warning(push) 24 #pragma warning(disable: 4324) 25 #elif defined COMPILER_GCC 26 /* Disable the "ISO C restricts enumerator values to range of 'int'" compiler 27 * warning in rtcore_common.h, line 293 (RTC_FEATURE_FLAG_ALL = 0xffffffff) */ 28 #pragma GCC diagnostic push 29 #pragma GCC diagnostic ignored "-Wpedantic" 30 #endif 31 32 #include <embree4/rtcore.h> 33 34 #ifdef COMPILER_CL 35 #pragma warning(pop) 36 #elif defined COMPILER_GCC 37 #pragma GCC diagnostic pop 38 #endif 39 40 #endif /* S3D_BACKEND_H */