forked from blender/blender
GPU: Shader Create Info GLSL-C++ stubs #3
@ -51,19 +51,26 @@ namespace blender::gpu::shader {
|
||||
# define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name) namespace _interface {
|
||||
# define GPU_SHADER_INTERFACE_END() }
|
||||
|
||||
# define GPU_SHADER_CREATE_INFO(_info) namespace _info {
|
||||
# define GPU_SHADER_CREATE_INFO(_info) \
|
||||
namespace _info { \
|
||||
namespace gl_VertexShader { \
|
||||
} \
|
||||
namespace gl_FragmentShader { \
|
||||
} \
|
||||
namespace gl_ComputeShader { \
|
||||
}
|
||||
# define GPU_SHADER_CREATE_END() }
|
||||
|
||||
# define VERTEX_SHADER_CREATE_INFO(_info) \
|
||||
using namespace gl_VertexShader; \
|
||||
using namespace ::gl_VertexShader; \
|
||||
using namespace _info::gl_VertexShader; \
|
||||
using namespace _info;
|
||||
# define FRAGMENT_SHADER_CREATE_INFO(_info) \
|
||||
using namespace gl_FragmentShader; \
|
||||
using namespace ::gl_FragmentShader; \
|
||||
using namespace _info::gl_FragmentShader; \
|
||||
using namespace _info;
|
||||
# define COMPUTE_SHADER_CREATE_INFO(_info) \
|
||||
using namespace gl_ComputeShader; \
|
||||
using namespace ::gl_ComputeShader; \
|
||||
using namespace _info::gl_ComputeShader; \
|
||||
using namespace _info;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user