Blender  V2.93
Classes | Macros | Typedefs | Enumerations | Functions
gpu_material_library.h File Reference
#include "GPU_material.h"

Go to the source code of this file.

Classes

struct  GPUMaterialLibrary
 
struct  GPUFunction
 

Macros

#define MAX_FUNCTION_NAME   64
 
#define MAX_PARAMETER   32
 

Typedefs

typedef struct GPUMaterialLibrary GPUMaterialLibrary
 
typedef struct GPUFunction GPUFunction
 

Enumerations

enum  GPUFunctionQual { FUNCTION_QUAL_IN , FUNCTION_QUAL_OUT , FUNCTION_QUAL_INOUT }
 

Functions

void gpu_material_library_init (void)
 
void gpu_material_library_exit (void)
 
GPUFunctiongpu_material_library_use_function (struct GSet *used_libraries, const char *name)
 
char * gpu_material_library_generate_code (struct GSet *used_libraries, const char *frag_lib)
 
char * gpu_str_skip_token (char *str, char *token, int max)
 
const char * gpu_data_type_to_string (const eGPUType type)
 

Detailed Description

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

Definition in file gpu_material_library.h.

Macro Definition Documentation

◆ MAX_FUNCTION_NAME

#define MAX_FUNCTION_NAME   64

Definition at line 29 of file gpu_material_library.h.

◆ MAX_PARAMETER

#define MAX_PARAMETER   32

Definition at line 30 of file gpu_material_library.h.

Typedef Documentation

◆ GPUFunction

typedef struct GPUFunction GPUFunction

◆ GPUMaterialLibrary

Enumeration Type Documentation

◆ GPUFunctionQual

Enumerator
FUNCTION_QUAL_IN 
FUNCTION_QUAL_OUT 
FUNCTION_QUAL_INOUT 

Definition at line 39 of file gpu_material_library.h.

Function Documentation

◆ gpu_data_type_to_string()

const char* gpu_data_type_to_string ( const eGPUType  type)

◆ gpu_material_library_exit()

void gpu_material_library_exit ( void  )

Definition at line 846 of file gpu_material_library.c.

References BLI_ghash_free(), FUNCTION_HASH, MEM_freeN, and NULL.

Referenced by GPU_exit().

◆ gpu_material_library_generate_code()

char* gpu_material_library_generate_code ( struct GSet used_libraries,
const char *  frag_lib 
)

◆ gpu_material_library_init()

void gpu_material_library_init ( void  )

◆ gpu_material_library_use_function()

GPUFunction* gpu_material_library_use_function ( struct GSet used_libraries,
const char *  name 
)

◆ gpu_str_skip_token()

char* gpu_str_skip_token ( char *  str,
char *  token,
int  max 
)

Definition at line 680 of file gpu_material_library.c.

References ELEM, len, max, and str.

Referenced by count_active_texture_sampler(), and gpu_parse_material_library().