Blender V5.0
gpu_material_library.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2005 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9
10#pragma once
11
12#include "BLI_set.hh"
13#include "GPU_material.hh"
14
15#define MAX_FUNCTION_NAME 64
16#define MAX_PARAMETER 36
17
23
29 /* TODO(@fclem): Clean that void pointer. */
30 void *source; /* GPUSource */
31};
32
35 const char *name);
GPUType
void gpu_material_library_use_function(blender::Set< blender::StringRefNull > &used_libraries, const char *name)
@ FUNCTION_QUAL_IN
@ FUNCTION_QUAL_OUT
@ FUNCTION_QUAL_INOUT
GPUFunction * gpu_material_library_get_function(const char *name)
#define MAX_FUNCTION_NAME
#define MAX_PARAMETER
const char * name
char name[MAX_FUNCTION_NAME]
GPUType paramtype[MAX_PARAMETER]
GPUFunctionQual paramqual[MAX_PARAMETER]