blob: b071ab85f3aa66613073fa804c9c623b1dda95e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2005 Blender Foundation. All rights reserved. */
/** \file
* \ingroup gpu
*
* Parsing of and code generation using GLSL shaders in gpu/shaders/material. */
#pragma once
#include "GPU_material.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_FUNCTION_NAME 64
#define MAX_PARAMETER 36
struct GSet;
typedef enum {
FUNCTION_QUAL_IN,
FUNCTION_QUAL_OUT,
FUNCTION_QUAL_INOUT,
} GPUFunctionQual;
typedef struct GPUFunction {
char name[MAX_FUNCTION_NAME];
eGPUType paramtype[MAX_PARAMETER];
GPUFunctionQual paramqual[MAX_PARAMETER];
int totparam;
/* TODO(@fclem): Clean that void pointer. */
void *source; /* GPUSource */
} GPUFunction;
GPUFunction *gpu_material_library_use_function(struct GSet *used_libraries, const char *name);
#ifdef __cplusplus
}
#endif
|