Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/DRW_render.h
| Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | struct GPUMaterial *DRW_shader_from_world(struct World *wo, | ||||
| void *thunk); | void *thunk); | ||||
| struct GPUMaterial *DRW_shader_from_material(struct Material *ma, | struct GPUMaterial *DRW_shader_from_material(struct Material *ma, | ||||
| struct bNodeTree *ntree, | struct bNodeTree *ntree, | ||||
| const uint64_t shader_id, | const uint64_t shader_id, | ||||
| const bool is_volume_shader, | const bool is_volume_shader, | ||||
| bool deferred, | bool deferred, | ||||
| GPUCodegenCallbackFn callback, | GPUCodegenCallbackFn callback, | ||||
| void *thunk); | void *thunk); | ||||
| void DRW_shader_queue_optimize_material(struct GPUMaterial *mat); | |||||
| void DRW_shader_free(struct GPUShader *shader); | void DRW_shader_free(struct GPUShader *shader); | ||||
| #define DRW_SHADER_FREE_SAFE(shader) \ | #define DRW_SHADER_FREE_SAFE(shader) \ | ||||
| do { \ | do { \ | ||||
| if (shader != NULL) { \ | if (shader != NULL) { \ | ||||
| DRW_shader_free(shader); \ | DRW_shader_free(shader); \ | ||||
| shader = NULL; \ | shader = NULL; \ | ||||
| } \ | } \ | ||||
| } while (0) | } while (0) | ||||
| ▲ Show 20 Lines • Show All 678 Lines • Show Last 20 Lines | |||||