1 /* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef ANDROID_RSDISPATCH_H 18 #define ANDROID_RSDISPATCH_H 19 20 #include "rsInternalDefines.h" 21 #include "jni.h" 22 23 typedef void (*SetNativeLibDirFnPtr)(RsContext con, const char *nativeLibDir, size_t length); 24 typedef const void* (*AllocationGetTypeFnPtr)(RsContext con, RsAllocation va); 25 typedef void (*TypeGetNativeDataFnPtr)(RsContext, RsType, uintptr_t *typeData, uint32_t typeDataSize); 26 typedef void (*ElementGetNativeDataFnPtr)(RsContext, RsElement, uint32_t *elemData, uint32_t elemDataSize); 27 typedef void (*ElementGetSubElementsFnPtr)(RsContext, RsElement, uintptr_t *ids, const char **names, size_t *arraySizes, uint32_t dataSize); 28 typedef RsDevice (*DeviceCreateFnPtr) (); 29 typedef void (*DeviceDestroyFnPtr) (RsDevice dev); 30 typedef void (*DeviceSetConfigFnPtr) (RsDevice dev, RsDeviceParam p, int32_t value); 31 typedef RsContext (*ContextCreateFnPtr)(RsDevice vdev, uint32_t version, uint32_t sdkVersion, RsContextType ct, uint32_t flags); 32 typedef RsContext (*ContextCreateVendorFnPtr)(RsDevice vdev, uint32_t version, uint32_t sdkVersion, RsContextType ct, uint32_t flags, const char* vendorDriverName); 33 typedef void (*GetNameFnPtr)(RsContext, void * obj, const char **name); 34 typedef RsClosure (*ClosureCreateFnPtr)(RsContext, RsScriptKernelID, RsAllocation, RsScriptFieldID*, size_t, int64_t*, size_t, int*, size_t, RsClosure*, size_t, RsScriptFieldID*, size_t); 35 typedef RsClosure (*InvokeClosureCreateFnPtr)(RsContext, RsScriptInvokeID, const void*, const size_t, const RsScriptFieldID*, const size_t, const int64_t*, const size_t, const int*, const size_t); 36 typedef void (*ClosureSetArgFnPtr)(RsContext, RsClosure, uint32_t, uintptr_t, int); 37 typedef void (*ClosureSetGlobalFnPtr)(RsContext, RsClosure, RsScriptFieldID, int64_t, int); 38 typedef void (*ContextDestroyFnPtr) (RsContext); 39 typedef RsMessageToClientType (*ContextGetMessageFnPtr) (RsContext, void*, size_t, size_t*, size_t, uint32_t*, size_t); 40 typedef RsMessageToClientType (*ContextPeekMessageFnPtr) (RsContext, size_t*, size_t, uint32_t*, size_t); 41 typedef void (*ContextSendMessageFnPtr) (RsContext, uint32_t, const uint8_t*, size_t); 42 typedef void (*ContextInitToClientFnPtr) (RsContext); 43 typedef void (*ContextDeinitToClientFnPtr) (RsContext); 44 typedef void (*ContextSetCacheDirFnPtr) (RsContext rsc, const char *cacheDir, size_t cacheDir_length); 45 typedef RsType (*TypeCreateFnPtr) (RsContext, RsElement, uint32_t, uint32_t, uint32_t, bool, bool, uint32_t); 46 typedef RsAllocation (*AllocationCreateTypedFnPtr) (RsContext, RsType, RsAllocationMipmapControl, uint32_t, uintptr_t); 47 typedef RsAllocation (*AllocationCreateStridedFnPtr) (RsContext, RsType, RsAllocationMipmapControl, uint32_t, uintptr_t, size_t); 48 typedef RsAllocation (*AllocationCreateFromBitmapFnPtr) (RsContext, RsType, RsAllocationMipmapControl, const void*, size_t, uint32_t); 49 typedef RsAllocation (*AllocationCubeCreateFromBitmapFnPtr) (RsContext, RsType, RsAllocationMipmapControl, const void*, size_t, uint32_t); 50 typedef RsNativeWindow (*AllocationGetSurfaceFnPtr) (RsContext, RsAllocation); 51 typedef void (*AllocationSetSurfaceFnPtr) (RsContext, RsAllocation, RsNativeWindow); 52 typedef void (*ContextFinishFnPtr) (RsContext); 53 typedef void (*ContextDumpFnPtr) (RsContext, int32_t); 54 typedef void (*ContextSetPriorityFnPtr) (RsContext, int32_t); 55 typedef void (*AssignNameFnPtr) (RsContext, RsObjectBase, const char*, size_t); 56 typedef void (*ObjDestroyFnPtr) (RsContext, RsAsyncVoidPtr); 57 typedef RsElement (*ElementCreateFnPtr) (RsContext, RsDataType, RsDataKind, bool, uint32_t); 58 typedef RsElement (*ElementCreate2FnPtr) (RsContext, const RsElement*, size_t, const char**, size_t, const size_t*, const uint32_t*, size_t); 59 typedef void (*AllocationCopyToBitmapFnPtr) (RsContext, RsAllocation, void*, size_t); 60 typedef void (*Allocation1DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, const void*, size_t); 61 typedef void (*Allocation1DElementDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, const void*, size_t, size_t); 62 typedef void (*AllocationElementDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, const void*, size_t, size_t); 63 typedef void (*Allocation2DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, RsAllocationCubemapFace, uint32_t, uint32_t, const void*, size_t, size_t); 64 typedef void (*Allocation3DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, const void*, size_t, size_t); 65 typedef void (*AllocationGenerateMipmapsFnPtr) (RsContext, RsAllocation); 66 typedef void (*AllocationReadFnPtr) (RsContext, RsAllocation, void*, size_t); 67 typedef void (*Allocation1DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, void*, size_t); 68 typedef void (*AllocationElementReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, void*, size_t, size_t); 69 typedef void (*Allocation2DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, RsAllocationCubemapFace, uint32_t, uint32_t, void*, size_t, size_t); 70 typedef void (*Allocation3DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, size_t, size_t); 71 typedef void (*AllocationSyncAllFnPtr) (RsContext, RsAllocation, RsAllocationUsageType); 72 typedef void (*AllocationResize1DFnPtr) (RsContext, RsAllocation, uint32_t); 73 typedef void (*AllocationCopy2DRangeFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t); 74 typedef void (*AllocationCopy3DRangeFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t); 75 typedef void (*AllocationSetupBufferQueueFnPtr) (RsContext context, RsAllocation valloc, uint32_t numAlloc); 76 typedef void (*AllocationShareBufferQueueFnPtr) (RsContext context, RsAllocation valloc1, RsAllocation valloc2); 77 typedef RsSampler (*SamplerCreateFnPtr) (RsContext, RsSamplerValue, RsSamplerValue, RsSamplerValue, RsSamplerValue, RsSamplerValue, float); 78 typedef void (*ScriptBindAllocationFnPtr) (RsContext, RsScript, RsAllocation, uint32_t); 79 typedef void (*ScriptSetTimeZoneFnPtr) (RsContext, RsScript, const char*, size_t); 80 typedef void (*ScriptInvokeFnPtr) (RsContext, RsScript, uint32_t); 81 typedef void (*ScriptInvokeVFnPtr) (RsContext, RsScript, uint32_t, const void*, size_t); 82 typedef void (*ScriptForEachFnPtr) (RsContext, RsScript, uint32_t, RsAllocation, RsAllocation, const void*, size_t, const RsScriptCall*, size_t); 83 typedef void (*ScriptForEachMultiFnPtr) (RsContext, RsScript, uint32_t, RsAllocation*, size_t, RsAllocation, const void*, size_t, const RsScriptCall*, size_t); 84 typedef void (*ScriptReduceFnPtr) (RsContext, RsScript, uint32_t, RsAllocation*, size_t, RsAllocation, const RsScriptCall*, size_t); 85 typedef void (*ScriptSetVarIFnPtr) (RsContext, RsScript, uint32_t, int); 86 typedef void (*ScriptSetVarObjFnPtr) (RsContext, RsScript, uint32_t, RsObjectBase); 87 typedef void (*ScriptSetVarJFnPtr) (RsContext, RsScript, uint32_t, int64_t); 88 typedef void (*ScriptSetVarFFnPtr) (RsContext, RsScript, uint32_t, float); 89 typedef void (*ScriptSetVarDFnPtr) (RsContext, RsScript, uint32_t, double); 90 typedef void (*ScriptSetVarVFnPtr) (RsContext, RsScript, uint32_t, const void*, size_t); 91 typedef void (*ScriptGetVarVFnPtr) (RsContext, RsScript, uint32_t, void*, size_t); 92 typedef void (*ScriptSetVarVEFnPtr) (RsContext, RsScript, uint32_t, const void*, size_t, RsElement, const uint32_t*, size_t); 93 typedef RsScript (*ScriptCCreateFnPtr) (RsContext, const char*, size_t, const char*, size_t, const char*, size_t); 94 typedef RsScript (*ScriptIntrinsicCreateFnPtr) (RsContext, uint32_t id, RsElement); 95 typedef RsScriptKernelID (*ScriptKernelIDCreateFnPtr) (RsContext, RsScript, int, int); 96 typedef RsScriptInvokeID (*ScriptInvokeIDCreateFnPtr) (RsContext, RsScript, int); 97 typedef RsScriptFieldID (*ScriptFieldIDCreateFnPtr) (RsContext, RsScript, int); 98 typedef RsScriptGroup (*ScriptGroupCreateFnPtr) (RsContext, RsScriptKernelID*, size_t, RsScriptKernelID*, size_t, RsScriptKernelID*, size_t, RsScriptFieldID*, size_t, const RsType*, size_t); 99 typedef RsScriptGroup2 (*ScriptGroup2CreateFnPtr)(RsContext, const char*, size_t, const char*, size_t, RsClosure*, size_t); 100 typedef void (*ScriptGroupSetOutputFnPtr) (RsContext, RsScriptGroup, RsScriptKernelID, RsAllocation); 101 typedef void (*ScriptGroupSetInputFnPtr) (RsContext, RsScriptGroup, RsScriptKernelID, RsAllocation); 102 typedef void (*ScriptGroupExecuteFnPtr) (RsContext, RsScriptGroup); 103 typedef void (*AllocationIoSendFnPtr) (RsContext, RsAllocation); 104 typedef int64_t (*AllocationIoReceiveFnPtr) (RsContext, RsAllocation); 105 typedef void * (*AllocationGetPointerFnPtr) (RsContext, RsAllocation, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t stride_len); 106 typedef RsAllocation (*AllocationAdapterCreateFnPtr) (RsContext rsc, RsType vtype, RsAllocation baseAlloc); 107 typedef void (*AllocationAdapterOffsetFnPtr) (RsContext rsc, RsAllocation alloc, const uint32_t * offsets, size_t offsets_length); 108 109 // Graphics APIs 110 typedef RsContext (*ContextCreateGLFnPtr) (RsDevice vdev, uint32_t version, uint32_t sdkVersion, RsSurfaceConfig sc, uint32_t dpi); 111 typedef RsProgramStore (*ProgramStoreCreateFnPtr) (RsContext rsc, bool colorMaskR, bool colorMaskG, bool colorMaskB, bool colorMaskA, bool depthMask, bool ditherEnable, RsBlendSrcFunc srcFunc, RsBlendDstFunc destFunc, RsDepthFunc depthFunc); 112 typedef RsProgramRaster (*ProgramRasterCreateFnPtr) (RsContext rsc, bool pointSprite, RsCullMode cull); 113 typedef void (*ProgramBindConstantsFnPtr) (RsContext rsc, RsProgram vp, uint32_t slot, RsAllocation constants); 114 typedef void (*ProgramBindTextureFnPtr) (RsContext rsc, RsProgramFragment pf, uint32_t slot, RsAllocation a); 115 typedef void (*ProgramBindSamplerFnPtr) (RsContext rsc, RsProgramFragment pf, uint32_t slot, RsSampler s); 116 typedef RsProgramFragment (*ProgramFragmentCreateFnPtr) (RsContext rsc, const char * shaderText, size_t shaderText_length, const char ** textureNames, size_t textureNames_length_length, const size_t * textureNames_length, const uintptr_t * params, size_t params_length); 117 typedef RsProgramVertex (*ProgramVertexCreateFnPtr) (RsContext rsc, const char * shaderText, size_t shaderText_length, const char ** textureNames, size_t textureNames_length_length, const size_t * textureNames_length, const uintptr_t * params, size_t params_length); 118 typedef RsFont (*FontCreateFromFileFnPtr) (RsContext rsc, const char * name, size_t name_length, float fontSize, uint32_t dpi); 119 typedef RsFont (*FontCreateFromMemoryFnPtr) (RsContext rsc, const char * name, size_t name_length, float fontSize, uint32_t dpi, const void * data, size_t data_length); 120 typedef RsMesh (*MeshCreateFnPtr) (RsContext rsc, RsAllocation * vtx, size_t vtx_length, RsAllocation * idx, size_t idx_length, uint32_t * primType, size_t primType_length); 121 typedef void (*ContextBindProgramStoreFnPtr) (RsContext rsc, RsProgramStore pgm); 122 typedef void (*ContextBindProgramFragmentFnPtr) (RsContext rsc, RsProgramFragment pgm); 123 typedef void (*ContextBindProgramVertexFnPtr) (RsContext rsc, RsProgramVertex pgm); 124 typedef void (*ContextBindProgramRasterFnPtr) (RsContext rsc, RsProgramRaster pgm); 125 typedef void (*ContextBindFontFnPtr) (RsContext rsc, RsFont pgm); 126 typedef void (*ContextSetSurfaceFnPtr) (RsContext rsc, uint32_t width, uint32_t height, RsNativeWindow sur); 127 typedef void (*ContextBindRootScriptFnPtr) (RsContext rsc, RsScript sampler); 128 typedef void (*ContextPauseFnPtr) (RsContext rsc); 129 typedef void (*ContextResumeFnPtr) (RsContext rsc); 130 typedef void (*MeshGetVertexBufferCountFnPtr) (RsContext con, RsMesh mv, int32_t *numVtx); 131 typedef void (*MeshGetIndexCountFnPtr) (RsContext con, RsMesh mv, int32_t *numIdx); 132 typedef void (*MeshGetVerticesFnPtr) (RsContext con, RsMesh mv, RsAllocation *vtxData, uint32_t vtxDataCount); 133 typedef void (*MeshGetIndicesFnPtr) (RsContext con, RsMesh mv, RsAllocation *va, uint32_t *primType, uint32_t idxDataCount); 134 typedef RsObjectBase (*FileA3DGetEntryByIndexFnPtr) (RsContext con, uint32_t index, RsFile file); 135 typedef void (*FileA3DGetNumIndexEntriesFnPtr) (RsContext con, int32_t *numEntries, RsFile file); 136 typedef void (*FileA3DGetIndexEntriesFnPtr) (RsContext con, RsFileIndexEntry *fileEntries, uint32_t numEntries, RsFile file); 137 typedef RsFile (*FileA3DCreateFromMemoryFnPtr) (RsContext con, const void *data, uint32_t len); 138 typedef RsFile (*FileA3DCreateFromAssetFnPtr) (RsContext con, void *_asset); 139 typedef RsFile (*FileA3DCreateFromFileFnPtr) (RsContext con, const char *path); 140 141 142 struct dispatchTable { 143 SetNativeLibDirFnPtr SetNativeLibDir; 144 145 // Inserted by hand based on rs.spec and rs.h 146 Allocation1DDataFnPtr Allocation1DData; 147 Allocation1DElementDataFnPtr Allocation1DElementData; 148 Allocation1DReadFnPtr Allocation1DRead; 149 Allocation2DDataFnPtr Allocation2DData; 150 Allocation2DReadFnPtr Allocation2DRead; 151 Allocation3DDataFnPtr Allocation3DData; 152 Allocation3DReadFnPtr Allocation3DRead; 153 AllocationAdapterCreateFnPtr AllocationAdapterCreate; 154 AllocationAdapterOffsetFnPtr AllocationAdapterOffset; 155 AllocationCopy2DRangeFnPtr AllocationCopy2DRange; 156 AllocationCopy3DRangeFnPtr AllocationCopy3DRange; 157 AllocationCopyToBitmapFnPtr AllocationCopyToBitmap; 158 AllocationCreateFromBitmapFnPtr AllocationCreateFromBitmap; 159 AllocationCreateStridedFnPtr AllocationCreateStrided; 160 AllocationCreateTypedFnPtr AllocationCreateTyped; 161 AllocationCubeCreateFromBitmapFnPtr AllocationCubeCreateFromBitmap; 162 AllocationElementDataFnPtr AllocationElementData; 163 AllocationElementReadFnPtr AllocationElementRead; 164 AllocationGenerateMipmapsFnPtr AllocationGenerateMipmaps; 165 AllocationGetPointerFnPtr AllocationGetPointer; 166 AllocationGetSurfaceFnPtr AllocationGetSurface; 167 AllocationGetTypeFnPtr AllocationGetType; 168 AllocationIoReceiveFnPtr AllocationIoReceive; 169 AllocationIoSendFnPtr AllocationIoSend; 170 AllocationReadFnPtr AllocationRead; 171 AllocationResize1DFnPtr AllocationResize1D; 172 AllocationSetSurfaceFnPtr AllocationSetSurface; 173 AllocationSyncAllFnPtr AllocationSyncAll; 174 AllocationSetupBufferQueueFnPtr AllocationSetupBufferQueue; 175 AllocationShareBufferQueueFnPtr AllocationShareBufferQueue; 176 AssignNameFnPtr AssignName; 177 ClosureCreateFnPtr ClosureCreate; 178 ClosureSetArgFnPtr ClosureSetArg; 179 ClosureSetGlobalFnPtr ClosureSetGlobal; 180 ContextCreateFnPtr ContextCreate; 181 ContextCreateVendorFnPtr ContextCreateVendor; 182 ContextDeinitToClientFnPtr ContextDeinitToClient; 183 ContextDestroyFnPtr ContextDestroy; 184 ContextDumpFnPtr ContextDump; 185 ContextFinishFnPtr ContextFinish; 186 ContextGetMessageFnPtr ContextGetMessage; 187 ContextInitToClientFnPtr ContextInitToClient; 188 ContextPeekMessageFnPtr ContextPeekMessage; 189 ContextSendMessageFnPtr ContextSendMessage; 190 ContextSetPriorityFnPtr ContextSetPriority; 191 ContextSetCacheDirFnPtr ContextSetCacheDir; 192 DeviceCreateFnPtr DeviceCreate; 193 DeviceDestroyFnPtr DeviceDestroy; 194 DeviceSetConfigFnPtr DeviceSetConfig; 195 ElementCreate2FnPtr ElementCreate2; 196 ElementCreateFnPtr ElementCreate; 197 ElementGetNativeDataFnPtr ElementGetNativeData; 198 ElementGetSubElementsFnPtr ElementGetSubElements; 199 GetNameFnPtr GetName; 200 InvokeClosureCreateFnPtr InvokeClosureCreate; 201 ObjDestroyFnPtr ObjDestroy; 202 SamplerCreateFnPtr SamplerCreate; 203 ScriptBindAllocationFnPtr ScriptBindAllocation; 204 ScriptCCreateFnPtr ScriptCCreate; 205 ScriptFieldIDCreateFnPtr ScriptFieldIDCreate; 206 ScriptForEachFnPtr ScriptForEach; 207 ScriptForEachMultiFnPtr ScriptForEachMulti; 208 ScriptGetVarVFnPtr ScriptGetVarV; 209 ScriptGroup2CreateFnPtr ScriptGroup2Create; 210 ScriptGroupCreateFnPtr ScriptGroupCreate; 211 ScriptGroupExecuteFnPtr ScriptGroupExecute; 212 ScriptGroupSetInputFnPtr ScriptGroupSetInput; 213 ScriptGroupSetOutputFnPtr ScriptGroupSetOutput; 214 ScriptIntrinsicCreateFnPtr ScriptIntrinsicCreate; 215 ScriptInvokeFnPtr ScriptInvoke; 216 ScriptInvokeIDCreateFnPtr ScriptInvokeIDCreate; 217 ScriptInvokeVFnPtr ScriptInvokeV; 218 ScriptKernelIDCreateFnPtr ScriptKernelIDCreate; 219 ScriptReduceFnPtr ScriptReduce; 220 ScriptSetTimeZoneFnPtr ScriptSetTimeZone; 221 ScriptSetVarDFnPtr ScriptSetVarD; 222 ScriptSetVarFFnPtr ScriptSetVarF; 223 ScriptSetVarIFnPtr ScriptSetVarI; 224 ScriptSetVarJFnPtr ScriptSetVarJ; 225 ScriptSetVarObjFnPtr ScriptSetVarObj; 226 ScriptSetVarVEFnPtr ScriptSetVarVE; 227 ScriptSetVarVFnPtr ScriptSetVarV; 228 TypeCreateFnPtr TypeCreate; 229 TypeGetNativeDataFnPtr TypeGetNativeData; 230 231 // Graphics API entries 232 ContextCreateGLFnPtr ContextCreateGL; 233 ContextPauseFnPtr ContextPause; 234 ContextResumeFnPtr ContextResume; 235 ContextBindProgramStoreFnPtr ContextBindProgramStore; 236 ContextBindProgramFragmentFnPtr ContextBindProgramFragment; 237 ContextBindProgramVertexFnPtr ContextBindProgramVertex; 238 ContextBindProgramRasterFnPtr ContextBindProgramRaster; 239 ContextBindFontFnPtr ContextBindFont; 240 ContextSetSurfaceFnPtr ContextSetSurface; 241 ContextBindRootScriptFnPtr ContextBindRootScript; 242 ProgramStoreCreateFnPtr ProgramStoreCreate; 243 ProgramRasterCreateFnPtr ProgramRasterCreate; 244 ProgramBindConstantsFnPtr ProgramBindConstants; 245 ProgramBindTextureFnPtr ProgramBindTexture; 246 ProgramBindSamplerFnPtr ProgramBindSampler; 247 ProgramFragmentCreateFnPtr ProgramFragmentCreate; 248 ProgramVertexCreateFnPtr ProgramVertexCreate; 249 FontCreateFromFileFnPtr FontCreateFromFile; 250 FontCreateFromMemoryFnPtr FontCreateFromMemory; 251 MeshCreateFnPtr MeshCreate; 252 MeshGetVertexBufferCountFnPtr MeshGetVertexBufferCount; 253 MeshGetIndexCountFnPtr MeshGetIndexCount; 254 MeshGetVerticesFnPtr MeshGetVertices; 255 MeshGetIndicesFnPtr MeshGetIndices; 256 FileA3DGetEntryByIndexFnPtr FileA3DGetEntryByIndex; 257 FileA3DGetNumIndexEntriesFnPtr FileA3DGetNumIndexEntries; 258 FileA3DGetIndexEntriesFnPtr FileA3DGetIndexEntries; 259 FileA3DCreateFromMemoryFnPtr FileA3DCreateFromMemory; 260 FileA3DCreateFromAssetFnPtr FileA3DCreateFromAsset; 261 FileA3DCreateFromFileFnPtr FileA3DCreateFromFile; 262 }; 263 264 bool loadSymbols(void* handle, dispatchTable& dispatchTab, int device_api = 0); 265 266 // USAGE_IO for RS Support lib 267 typedef void (*sAllocationSetSurfaceFnPtr) (JNIEnv *, jobject, RsContext, RsAllocation, RsNativeWindow, dispatchTable); 268 struct ioSuppDT { 269 // USAGE_IO_OUTPUT 270 sAllocationSetSurfaceFnPtr sAllocationSetSurface; 271 }; 272 273 bool loadIOSuppSyms(void* handleIO, ioSuppDT& ioDispatch); 274 #endif