diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-10-27 14:10:07 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-10-27 14:10:07 -0700 |
commit | 581cc64028e8b8f66cec8105bf530b16d5fb34eb (patch) | |
tree | 82d5b43ecb850ffa7b0dede58c86032fcc066d54 /libs/rs/RenderScript.h | |
parent | 0424d69d484dfc25c73f6557199cfbb7aaaeb043 (diff) | |
download | frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.zip frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.tar.gz frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.tar.bz2 |
Adding nvidia extension for limited npot support.
Updating a3d loading to be async.
Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
Diffstat (limited to 'libs/rs/RenderScript.h')
-rw-r--r-- | libs/rs/RenderScript.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/libs/rs/RenderScript.h b/libs/rs/RenderScript.h index 1d67329..8c2081d 100644 --- a/libs/rs/RenderScript.h +++ b/libs/rs/RenderScript.h @@ -286,6 +286,25 @@ typedef struct { } RsScriptCall; +// A3D loading and object update code. +// Should only be called at object creation, not thread safe +RsObjectBase rsaFileA3DGetEntryByIndex(RsContext, uint32_t idx, RsFile); +RsFile rsaFileA3DCreateFromAssetStream(RsContext, const void *data, uint32_t len); +void rsaFileA3DGetNumIndexEntries(RsContext, int32_t *numEntries, RsFile); +void rsaFileA3DGetIndexEntries(RsContext, RsFileIndexEntry *fileEntries,uint32_t numEntries, RsFile); +void rsaGetName(RsContext, void * obj, const char **name); +// Mesh update functions +void rsaMeshGetVertexBufferCount(RsContext, RsMesh, int32_t *vtxCount); +void rsaMeshGetIndexCount(RsContext, RsMesh, int32_t *idxCount); +void rsaMeshGetVertices(RsContext, RsMesh, RsAllocation *vtxData, uint32_t vtxDataCount); +void rsaMeshGetIndices(RsContext, RsMesh, RsAllocation *va, uint32_t *primType, uint32_t idxDataCount); +// Allocation update +const void* rsaAllocationGetType(RsContext con, RsAllocation va); +// Type update +void rsaTypeGetNativeData(RsContext, RsType, uint32_t *typeData, uint32_t typeDataSize); +// Element update +void rsaElementGetNativeData(RsContext, RsElement, uint32_t *elemData, uint32_t elemDataSize); +void rsaElementGetSubElements(RsContext, RsElement, uint32_t *ids, const char **names, uint32_t dataSize); // Async commands for returning new IDS RsType rsaTypeCreate(RsContext, RsElement, uint32_t dimCount, @@ -293,7 +312,6 @@ RsType rsaTypeCreate(RsContext, RsElement, uint32_t dimCount, RsAllocation rsaAllocationCreateTyped(RsContext rsc, RsType vtype); RsAllocation rsaAllocationCreateFromBitmap(RsContext con, uint32_t w, uint32_t h, RsElement _dst, RsElement _src, bool genMips, const void *data); - #ifndef NO_RS_FUNCS #include "rsgApiFuncDecl.h" #endif |