From 156cce698093023d9e79a4ff4fb96f4e4d3019db Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 3 Mar 2010 13:03:18 -0800 Subject: Improve RS error handling. On errors RS will now store the error and a message that can be read from the app. RS will then not continue rendering frames while an unchecked error is present until new state is received. --- libs/rs/RenderScript.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/rs/RenderScript.h') diff --git a/libs/rs/RenderScript.h b/libs/rs/RenderScript.h index cd8361c..d280f50 100644 --- a/libs/rs/RenderScript.h +++ b/libs/rs/RenderScript.h @@ -202,6 +202,12 @@ enum RsPrimitive { RS_PRIMITIVE_TRIANGLE_FAN }; +enum RsError { + RS_ERROR_NONE, + RS_ERROR_BAD_SHADER, + RS_ERROR_BAD_SCRIPT +}; + #ifndef NO_RS_FUNCS #include "rsgApiFuncDecl.h" #endif -- cgit v1.1