GPUShader: Add name for debugging & identifying shaders.

This commit is contained in:
2018-08-02 18:31:38 +02:00
parent 3578212e46
commit 8f6ff3adfa
9 changed files with 55 additions and 21 deletions

View File

@@ -247,7 +247,7 @@ GPUMaterial *GPU_material_from_nodetree_find(
struct ListBase *gpumaterials, const void *engine_type, int options);
GPUMaterial *GPU_material_from_nodetree(
struct Scene *scene, struct bNodeTree *ntree, struct ListBase *gpumaterials, const void *engine_type, int options,
const char *vert_code, const char *geom_code, const char *frag_lib, const char *defines);
const char *vert_code, const char *geom_code, const char *frag_lib, const char *defines, const char *name);
void GPU_material_compile(GPUMaterial *mat);
void GPU_material_free(struct ListBase *gpumaterial);