diff options
author | Miao Wang <miaowang@google.com> | 2015-02-19 18:14:46 -0800 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2015-02-23 16:33:07 -0800 |
commit | cc8cea7477352898921044483a6c803e25d02665 (patch) | |
tree | a45084bbf8be9f8f591e4512bdef7cd55abefbdf /cpp/rsDispatch.h | |
parent | e9c79f66478170e4e45e49c71f5e9324842916cf (diff) | |
download | rs-cc8cea7477352898921044483a6c803e25d02665.tar.gz |
Fix the bug for AllocationRead() that cannot handle 3d Allocation
correctly.
Add the following functions to make it symmetric for read and write.
- AllocationElementData
- AllocationElementRead
- Allocation3DRead
Change-Id: I8c89b5e3474c4c3c70e9795843a76e61f1f90f6a
Diffstat (limited to 'cpp/rsDispatch.h')
-rw-r--r-- | cpp/rsDispatch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/rsDispatch.h b/cpp/rsDispatch.h index c1c8d77f..5bda7c01 100644 --- a/cpp/rsDispatch.h +++ b/cpp/rsDispatch.h @@ -55,12 +55,15 @@ typedef RsElement (*ElementCreate2FnPtr) (RsContext, const RsElement*, size_t, c typedef void (*AllocationCopyToBitmapFnPtr) (RsContext, RsAllocation, void*, size_t); typedef void (*Allocation1DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, const void*, size_t); typedef void (*Allocation1DElementDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, const void*, size_t, size_t); +typedef void (*AllocationElementDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, const void*, size_t, size_t); typedef void (*Allocation2DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, RsAllocationCubemapFace, uint32_t, uint32_t, const void*, size_t, size_t); 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); typedef void (*AllocationGenerateMipmapsFnPtr) (RsContext, RsAllocation); typedef void (*AllocationReadFnPtr) (RsContext, RsAllocation, void*, size_t); typedef void (*Allocation1DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, void*, size_t); +typedef void (*AllocationElementReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, void*, size_t, size_t); typedef void (*Allocation2DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, RsAllocationCubemapFace, uint32_t, uint32_t, void*, size_t, size_t); +typedef void (*Allocation3DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, size_t, size_t); typedef void (*AllocationSyncAllFnPtr) (RsContext, RsAllocation, RsAllocationUsageType); typedef void (*AllocationResize1DFnPtr) (RsContext, RsAllocation, uint32_t); 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); @@ -134,12 +137,15 @@ struct dispatchTable { AllocationCopyToBitmapFnPtr AllocationCopyToBitmap; Allocation1DDataFnPtr Allocation1DData; Allocation1DElementDataFnPtr Allocation1DElementData; + AllocationElementDataFnPtr AllocationElementData; Allocation2DDataFnPtr Allocation2DData; Allocation3DDataFnPtr Allocation3DData; AllocationGenerateMipmapsFnPtr AllocationGenerateMipmaps; AllocationReadFnPtr AllocationRead; Allocation1DReadFnPtr Allocation1DRead; + AllocationElementReadFnPtr AllocationElementRead; Allocation2DReadFnPtr Allocation2DRead; + Allocation3DReadFnPtr Allocation3DRead; AllocationSyncAllFnPtr AllocationSyncAll; AllocationResize1DFnPtr AllocationResize1D; AllocationCopy2DRangeFnPtr AllocationCopy2DRange; |