Blender V5.0
gpu_material_library.hh File Reference
#include "BLI_set.hh"
#include "GPU_material.hh"

Go to the source code of this file.

Classes

struct  GPUFunction

Macros

#define MAX_FUNCTION_NAME   64
#define MAX_PARAMETER   36

Enumerations

enum  GPUFunctionQual { FUNCTION_QUAL_IN , FUNCTION_QUAL_OUT , FUNCTION_QUAL_INOUT }

Functions

GPUFunctiongpu_material_library_get_function (const char *name)
void gpu_material_library_use_function (blender::Set< blender::StringRefNull > &used_libraries, const char *name)

Detailed Description

Parsing of and code generation using GLSL shaders in gpu/shaders/material.

Definition in file gpu_material_library.hh.

Macro Definition Documentation

◆ MAX_FUNCTION_NAME

#define MAX_FUNCTION_NAME   64

Definition at line 15 of file gpu_material_library.hh.

◆ MAX_PARAMETER

#define MAX_PARAMETER   36

Definition at line 16 of file gpu_material_library.hh.

Enumeration Type Documentation

◆ GPUFunctionQual

Enumerator
FUNCTION_QUAL_IN 
FUNCTION_QUAL_OUT 
FUNCTION_QUAL_INOUT 

Definition at line 18 of file gpu_material_library.hh.

Function Documentation

◆ gpu_material_library_get_function()

GPUFunction * gpu_material_library_get_function ( const char * name)

Definition at line 545 of file gpu_shader_dependency.cc.

References BLI_assert_msg, g_functions, and name.

Referenced by GPU_link(), and gpu_stack_link_v().

◆ gpu_material_library_use_function()