void rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) { Allocation *a = static_cast<Allocation *>(va); const Type * t = a->getType(); if(t->getDimY()) { a->read(rsc, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X, t->getDimX(), t->getDimY(), data, sizeBytes, 0); } else { a->read(rsc, 0, 0, t->getDimX(), data, sizeBytes); } }
void rsi_Allocation3DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) { Allocation *a = static_cast<Allocation *>(va); a->read(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); }
void rsi_Allocation2DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) { Allocation *a = static_cast<Allocation *>(va); a->read(rsc, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); }
void rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t data_length) { Allocation *a = static_cast<Allocation *>(va); a->read(data); }