From 4550af5d0700520cb911ae92c4bab31b88c9268b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 15 Mar 2011 01:40:04 -0700 Subject: [PATCH] Added a FIXME. --- mojoshader_compiler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mojoshader_compiler.c b/mojoshader_compiler.c index 8d9afd66..16298760 100644 --- a/mojoshader_compiler.c +++ b/mojoshader_compiler.c @@ -2609,9 +2609,15 @@ static const MOJOSHADER_astDataType *type_check_ast(Context *ctx, void *_ast) datatype = reduce_datatype(ctx, datatype); if (datatype->type == MOJOSHADER_AST_DATATYPE_VECTOR) + { + // !!! FIXME: if constant int, fail if not 0 >= value <= vecsize. ast->binary.datatype = datatype->vector.base; + } // if else if (datatype->type == MOJOSHADER_AST_DATATYPE_MATRIX) + { + // !!! FIXME: if constant int, fail if not 0 >= value <= rowsize (colsize?). ast->binary.datatype = vectype_from_base(ctx, datatype->matrix.base, datatype->matrix.columns); // !!! FIXME: rows? + } else { require_array_datatype(ctx, datatype);