本文整理汇总了C++中Allocation::read方法的典型用法代码示例。如果您正苦于以下问题:C++ Allocation::read方法的具体用法?C++ Allocation::read怎么用?C++ Allocation::read使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Allocation
的用法示例。
在下文中一共展示了Allocation::read方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: rsi_AllocationRead
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);
}
}
示例2: rsi_Allocation3DRead
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);
}
示例3: rsi_Allocation2DRead
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);
}
示例4: rsi_AllocationRead
void rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t data_length) {
Allocation *a = static_cast<Allocation *>(va);
a->read(data);
}