Home | History | Annotate | Download | only in functional

Lines Matching refs:Allocation

20  * This test creates a 1D Allocation with 128 Float Elements, and two float
22 * the Allocation using allocation1DWrite. Then the Allocation is copied into
40 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
43 ASSERT_NE(Allocation(0), allocation);
49 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data);
50 context->allocation1DRead(allocation, 0, 0, (uint32_t)dataOut.size(), (Ptr)dataOut.data(),
56 * This test creates a 2D Allocation with 128 * 128 Float Elements, and two
58 * into the Allocation using allocation2DWrite. Then the Allocation is copied
76 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
79 ASSERT_NE(Allocation(0), allocation);
85 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128,
87 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128,
93 * This test creates a 3D Allocation with 32 * 32 * 32 Float Elements, and two
95 * into the Allocation using allocation3DWrite. Then the Allocation is copied
113 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
116 ASSERT_NE(Allocation(0), allocation);
122 context->allocation3DWrite(allocation, 0, 0, 0, 0, 32, 32, 32, _data, 0);
123 context->allocation3DRead(allocation, 0, 0, 0, 0, 32, 32, 32, (Ptr)dataOut.data(),
129 * This test creates a 2D Allocation with 512 * 512 Float Elements with
131 * pre-populated with data, and copied into the Allocation using
132 * allocationCopyToBitmap. Then the Allocation is copied into dataOut with
154 Allocation allocation = context->allocationCreateFromBitmap(type,
158 ASSERT_NE(Allocation(0), allocation);
160 context->allocationCopyToBitmap(allocation, (Ptr)dataOut1.data(),
164 context->allocationRead(allocation, (Ptr)dataOut2.data(), (Size)dataOut2.size()*sizeof(float));
170 * other with 256 * 256 Float Elements. The larger Allocation is pre-populated
171 * with dataIn, and copied into the smaller Allocation using
172 * allocationCopy2DRange. Then the Allocation is copied into dataOut with
198 Allocation allocSrc = context->allocationCreateFromBitmap(typeSrc,
201 ASSERT_NE(Allocation(0), allocSrc);
204 Allocation allocDst = context->allocationCreateTyped(typeDst, AllocationMipmapControl::NONE,
207 ASSERT_NE(Allocation(0), allocDst);
222 * Elements, the other with 64 * 64 * 64 Float Elements. The larger Allocation
223 * is pre-populated with dataIn, and copied into the smaller Allocation using
224 * allocationCopy3DRange. Then the Allocation is copied into dataOut with
250 Allocation allocSrc = context->allocationCreateTyped(typeSrc, AllocationMipmapControl::NONE,
253 ASSERT_NE(Allocation(0), allocSrc);
256 Allocation allocDst = context->allocationCreateTyped(typeDst, AllocationMipmapControl::NONE,
259 ASSERT_NE(Allocation(0), allocDst);
276 * one 2D AllocationAdapter with a window of 256 * 256 based on the Allocation.
277 * The Allocation is pre-populated with dataIn. Then the Allocation is copied
299 Allocation allocation = context->allocationCreateFromBitmap(type,
303 ASSERT_NE(Allocation(0), allocation);
310 AllocationAdapter allocationAdapter = context->allocationAdapterCreate(subType, allocation);
333 * and with AllocationMipmapControl::FULL. The Allocation is pre-populated with
357 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::FULL,
360 Allocation(0), allocation);
362 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 64, 64,
364 context->allocationGenerateMipmaps(allocation);
365 context->allocationSyncAll(allocation, AllocationUsageType::SCRIPT);
366 context->allocation2DRead(allocation, 0, 0, 1, AllocationCubemapFace::POSITIVE_X, 32, 32,
380 * allocationCubeCreateFromBitmap. The Allocation is pre-populated with dataIn
403 Allocation allocation = context->allocationCubeCreateFromBitmap(
405 ASSERT_NE(Allocation(0), allocation);
407 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::NEGATIVE_Z, 128,
421 * Finally, the test creates a 1-wide, 1-dimension allocation of this type
422 * and transfers memory to and from a single cell of this Allocation.
464 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE,
467 ASSERT_NE(Allocation(0), allocation);
473 context->allocationElementWrite(allocation, 0, 0, 0, 0, _data, 1);
474 context->allocationElementRead(allocation, 0, 0, 0, 0, (Ptr)dataOut.data(),