Browse Source

Add `void' type to table of available types

This will make void-01.glsl test fail, so I may regret this later.
However, this will make supporting functions that return void or
functions that have a void parameter list easier to handle.
tags/mesa-7.9-rc1
Ian Romanick 15 years ago
parent
commit
7563b50075
2 changed files with 4 additions and 0 deletions
  1. 3
    0
      builtin_types.sh
  2. 1
    0
      glsl_types.cpp

+ 3
- 0
builtin_types.sh View File

@@ -122,6 +122,9 @@ cat <<EOF
static const struct glsl_type error_type =
glsl_type(GLSL_TYPE_ERROR, 0, 0, "");

static const struct glsl_type void_type =
glsl_type(GLSL_TYPE_VOID, 0, 0, "void");

const struct glsl_type *const glsl_error_type = & error_type;

EOF

+ 1
- 0
glsl_types.cpp View File

@@ -50,6 +50,7 @@ generate_110_types(glsl_symbol_table *symtab)
Elements(builtin_structure_types));
add_types_to_symbol_table(symtab, builtin_110_deprecated_structure_types,
Elements(builtin_110_deprecated_structure_types));
add_types_to_symbol_table(symtab, & void_type, 1);
}



Loading…
Cancel
Save