From e139434d4477c2c8fb5f59ebf3b3b9a97238684c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 24 Jun 2009 16:36:24 -0600 Subject: [PATCH] glsl: add comments --- src/mesa/shader/slang/slang_compile_operation.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/shader/slang/slang_compile_operation.h b/src/mesa/shader/slang/slang_compile_operation.h index d75965c2355..17c6c3e3498 100644 --- a/src/mesa/shader/slang/slang_compile_operation.h +++ b/src/mesa/shader/slang/slang_compile_operation.h @@ -171,12 +171,14 @@ extern void slang_operation_add_children(slang_operation *oper, GLuint num_children); +/** Return number of children of given node */ static INLINE GLuint slang_oper_num_children(const slang_operation *oper) { return oper->num_children; } +/** Return child of given operation node */ static INLINE slang_operation * slang_oper_child(slang_operation *oper, GLuint child) { @@ -185,6 +187,7 @@ slang_oper_child(slang_operation *oper, GLuint child) } +/** Return child of given operation node, const version */ static INLINE const slang_operation * slang_oper_child_const(const slang_operation *oper, GLuint child) { -- 2.30.2