Allow compilation of shaders using C++ for linting and IDE support. Related #127983 Pull Request: https://projects.blender.org/blender/blender/pulls/128724
25 lines
501 B
C++
25 lines
501 B
C++
/* SPDX-FileCopyrightText: 2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#ifdef GPU_SHADER
|
|
# pragma once
|
|
# include "gpu_glsl_cpp_stubs.hh"
|
|
|
|
# include "GPU_shader_shared.hh"
|
|
|
|
# define USE_WORLD_CLIP_PLANES
|
|
#endif
|
|
|
|
#include "gpu_shader_create_info.hh"
|
|
|
|
GPU_SHADER_CREATE_INFO(gpu_clip_planes)
|
|
UNIFORM_BUF_FREQ(1, GPUClipPlanes, clipPlanes, PASS)
|
|
TYPEDEF_SOURCE("GPU_shader_shared.hh")
|
|
DEFINE("USE_WORLD_CLIP_PLANES")
|
|
GPU_SHADER_CREATE_END()
|