diff options
author | Jason Sams <rjsams@android.com> | 2011-05-26 17:05:51 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-05-26 17:05:51 -0700 |
commit | a614ae175bbf97201b5e18984d814a1d3e86faa8 (patch) | |
tree | 0754ab7f705f1cb00912dd64905bc9d986ed2529 /driver/rsdAllocation.h | |
parent | eb4fe18dd88634330f9566cbb9e785d8c7ec5813 (diff) | |
download | rs-a614ae175bbf97201b5e18984d814a1d3e86faa8.tar.gz |
Cleaup of rsComponent to remove GL types.
Change-Id: I9f82bafe42f5fb30335b15f38eb251dc1ec62e80
Diffstat (limited to 'driver/rsdAllocation.h')
-rw-r--r-- | driver/rsdAllocation.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/driver/rsdAllocation.h b/driver/rsdAllocation.h index 45a538b5..d7385cee 100644 --- a/driver/rsdAllocation.h +++ b/driver/rsdAllocation.h @@ -39,10 +39,17 @@ struct DrvAllocation { uint8_t * mallocPtr; GLenum glTarget; + GLenum glType; + GLenum glFormat; + bool uploadDeferred; }; +GLenum rsdTypeToGLType(RsDataType t); +GLenum rsdKindToGLFormat(RsDataKind k); + + bool rsdAllocationInit(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc, bool forceZero); |