Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-08-02 19:31:38 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-02 19:33:49 +0300
commit8f6ff3adfae7b7f14e0bab293efd0c8231982c89 (patch)
treed37d2abd17a8b324cc5bbc6a1c73cb5c81a4aa3d /source/blender/gpu/intern/gpu_shader_private.h
parent3578212e462d2a67f49d64ce5fb64df43200654f (diff)
GPUShader: Add name for debugging & identifying shaders.
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader_private.h')
-rw-r--r--source/blender/gpu/intern/gpu_shader_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_private.h b/source/blender/gpu/intern/gpu_shader_private.h
index d16aae79aae..69c0c41cef4 100644
--- a/source/blender/gpu/intern/gpu_shader_private.h
+++ b/source/blender/gpu/intern/gpu_shader_private.h
@@ -38,6 +38,9 @@ struct GPUShader {
GPUShaderInterface *interface; /* cached uniform & attrib interface for shader */
int feedback_transform_type;
+#ifndef NDEBUG
+ char name[64];
+#endif
};
#endif /* __GPU_SHADER_PRIVATE_H__ */