diff options
author | Jason Sams <rjsams@android.com> | 2010-03-03 13:03:18 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-03-03 14:14:37 -0800 |
commit | a2cf755a28a1e7ffff2955df656d714f40e4d715 (patch) | |
tree | f95205908caee236ace7f0ecaf3874a261844201 /rsProgram.h | |
parent | 779729718eab8ab5d1a3cd4b755a735acc241e6c (diff) | |
download | rs-a2cf755a28a1e7ffff2955df656d714f40e4d715.tar.gz |
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.
Diffstat (limited to 'rsProgram.h')
-rw-r--r-- | rsProgram.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rsProgram.h b/rsProgram.h index a34e89fa..86f85fb7 100644 --- a/rsProgram.h +++ b/rsProgram.h @@ -59,6 +59,8 @@ public: String8 getGLSLOutputString() const; String8 getGLSLConstantString() const; + bool isValid() const {return mIsValid;} + protected: // Components not listed in "in" will be passed though // unless overwritten by components in out. @@ -68,6 +70,7 @@ protected: uint32_t mInputCount; uint32_t mOutputCount; uint32_t mConstantCount; + bool mIsValid; ObjectBaseRef<Allocation> mConstants[MAX_UNIFORMS]; |