forked from blender/blender
GPU: GLSL-C++ compilation stubs #4
@ -28,7 +28,9 @@
|
|||||||
* NOTE: You can use bool type using bool32_t a int boolean type matching the GLSL type.
|
* NOTE: You can use bool type using bool32_t a int boolean type matching the GLSL type.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef GPU_SHADER
|
#ifdef GLSL_CPP_STUBS
|
||||||
|
/* Do nothing. */
|
||||||
|
#elif defined(GPU_SHADER)
|
||||||
/* Silence macros when compiling for shaders. */
|
/* Silence macros when compiling for shaders. */
|
||||||
# define BLI_STATIC_ASSERT(cond, msg)
|
# define BLI_STATIC_ASSERT(cond, msg)
|
||||||
# define BLI_STATIC_ASSERT_ALIGN(type_, align_)
|
# define BLI_STATIC_ASSERT_ALIGN(type_, align_)
|
||||||
|
@ -759,8 +759,10 @@ void groupMemoryBarrier() {}
|
|||||||
|
|
||||||
/** \} */
|
/** \} */
|
||||||
|
|
||||||
|
#define GLSL_CPP_STUBS
|
||||||
|
|
||||||
/* Include all shader shared files to that custom type definitions are available when create infos
|
/* Include all shader shared files to that custom type definitions are available when create infos
|
||||||
* macros are included. */
|
* macros are included. Include them here so that only including this file is needed. */
|
||||||
#include "GPU_shader_shared.hh"
|
#include "GPU_shader_shared.hh"
|
||||||
#include "draw_common_shader_shared.hh"
|
#include "draw_common_shader_shared.hh"
|
||||||
#include "draw_shader_shared.hh"
|
#include "draw_shader_shared.hh"
|
||||||
@ -768,3 +770,6 @@ void groupMemoryBarrier() {}
|
|||||||
#include "overlay_shader_shared.h"
|
#include "overlay_shader_shared.h"
|
||||||
#include "select_shader_shared.hh"
|
#include "select_shader_shared.hh"
|
||||||
#include "workbench_shader_shared.h"
|
#include "workbench_shader_shared.h"
|
||||||
|
|
||||||
|
/* TODO(fclem): Include all create infos here so that they don't need to be individually included
|
||||||
|
* inside shaders. */
|
||||||
|
Loading…
Reference in New Issue
Block a user