|
Blender
V2.93
|
#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) |
| GPUFunction * | gpu_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) |
Parsing of and code generation using GLSL shaders in gpu/shaders/material.
Definition in file gpu_material_library.h.
| #define MAX_FUNCTION_NAME 64 |
Definition at line 29 of file gpu_material_library.h.
| #define MAX_PARAMETER 32 |
Definition at line 30 of file gpu_material_library.h.
| typedef struct GPUFunction GPUFunction |
| typedef struct GPUMaterialLibrary GPUMaterialLibrary |
| enum GPUFunctionQual |
| Enumerator | |
|---|---|
| FUNCTION_QUAL_IN | |
| FUNCTION_QUAL_OUT | |
| FUNCTION_QUAL_INOUT | |
Definition at line 39 of file gpu_material_library.h.
| const char* gpu_data_type_to_string | ( | const eGPUType | type | ) |
Definition at line 737 of file gpu_material_library.c.
References GPU_DATATYPE_STR, and type.
Referenced by code_generate_interface(), code_generate_vertex(), codegen_declare_tmps(), codegen_print_datatype(), and codegen_process_uniforms_functions().
| 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().
| char* gpu_material_library_generate_code | ( | struct GSet * | used_libraries, |
| const char * | frag_lib | ||
| ) |
Definition at line 875 of file gpu_material_library.c.
References BLI_dynstr_append(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), BLI_gset_haskey(), gpu_material_libraries, gpu_material_use_library_with_dependencies(), gpu_shader_material_world_normals_library, library, and result.
Referenced by GPU_generate_pass().
| void gpu_material_library_init | ( | void | ) |
Definition at line 833 of file gpu_material_library.c.
References BLI_ghash_str_new(), FUNCTION_HASH, gpu_material_libraries, and gpu_parse_material_library().
Referenced by GPU_init().
| GPUFunction* gpu_material_library_use_function | ( | struct GSet * | used_libraries, |
| const char * | name | ||
| ) |
Definition at line 866 of file gpu_material_library.c.
References BLI_ghash_lookup(), FUNCTION_HASH, and gpu_material_use_library_with_dependencies().
Referenced by GPU_link(), and GPU_stack_link().
| 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().