diff options
author | Jarrett Johnson <jarrett.johnson> | 2021-11-08 17:43:21 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-11-08 17:43:50 +0300 |
commit | 495e60c0dae16a906de5d87e12f9caa8f437a728 (patch) | |
tree | 858370ea2506c72d9b738ea569202b2890ea2a68 /source/blender/draw/engines/basic/basic_private.h | |
parent | bb6547cb5fe61b231b2cd62f5ea41b0c2cb74c30 (diff) |
Basic engine shaders test
This patch adds shader compilation tests for the basic engine in `shaders_test.cc`
Addresses T92701
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D13066
Diffstat (limited to 'source/blender/draw/engines/basic/basic_private.h')
-rw-r--r-- | source/blender/draw/engines/basic/basic_private.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/source/blender/draw/engines/basic/basic_private.h b/source/blender/draw/engines/basic/basic_private.h new file mode 100644 index 00000000000..e5f494bf0e7 --- /dev/null +++ b/source/blender/draw/engines/basic/basic_private.h @@ -0,0 +1,35 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Copyright 2020, Blender Foundation. + */ + +/** \file + * \ingroup draw_engine + */ + +#ifdef __cplusplus +extern "C" { +#endif + +GPUShader *BASIC_shaders_depth_sh_get(eGPUShaderConfig config); +GPUShader *BASIC_shaders_pointcloud_depth_sh_get(eGPUShaderConfig config); +GPUShader *BASIC_shaders_depth_conservative_sh_get(eGPUShaderConfig config); +GPUShader *BASIC_shaders_pointcloud_depth_conservative_sh_get(eGPUShaderConfig config); +void BASIC_shaders_free(void); + +#ifdef __cplusplus +} +#endif |