Blender  V3.3
gpu_material_library.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2005 Blender Foundation. All rights reserved. */
3 
9 #pragma once
10 
11 #include "GPU_material.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #define MAX_FUNCTION_NAME 64
18 #define MAX_PARAMETER 36
19 
20 struct GSet;
21 
22 typedef enum {
27 
28 typedef struct GPUFunction {
32  int totparam;
33  /* TODO(@fclem): Clean that void pointer. */
34  void *source; /* GPUSource */
36 
37 GPUFunction *gpu_material_library_use_function(struct GSet *used_libraries, const char *name);
38 
39 #ifdef __cplusplus
40 }
41 #endif
struct GSet GSet
Definition: BLI_ghash.h:340
eGPUType
Definition: GPU_material.h:45
struct GPUFunction GPUFunction
GPUFunction * gpu_material_library_use_function(struct GSet *used_libraries, const char *name)
GPUFunctionQual
@ FUNCTION_QUAL_IN
@ FUNCTION_QUAL_OUT
@ FUNCTION_QUAL_INOUT
#define MAX_FUNCTION_NAME
#define MAX_PARAMETER
eGPUType paramtype[MAX_PARAMETER]
char name[MAX_FUNCTION_NAME]
GPUFunctionQual paramqual[MAX_PARAMETER]