ソースを参照

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年前
コミット
7563b50075
2個のファイルの変更4行の追加0行の削除
  1. 3
    0
      builtin_types.sh
  2. 1
    0
      glsl_types.cpp

+ 3
- 0
builtin_types.sh ファイルの表示

@@ -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 ファイルの表示

@@ -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);
}



読み込み中…
キャンセル
保存