Lines Matching refs:allocation
40 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P() local
43 ASSERT_NE(Allocation(0), allocation); in TEST_P()
49 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data); in TEST_P()
50 context->allocation1DRead(allocation, 0, 0, (uint32_t)dataOut.size(), (Ptr)dataOut.data(), in TEST_P()
76 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P() local
79 ASSERT_NE(Allocation(0), allocation); in TEST_P()
85 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128, in TEST_P()
87 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128, in TEST_P()
113 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P() local
116 ASSERT_NE(Allocation(0), allocation); in TEST_P()
122 context->allocation3DWrite(allocation, 0, 0, 0, 0, 32, 32, 32, _data, 0); in TEST_P()
123 context->allocation3DRead(allocation, 0, 0, 0, 0, 32, 32, 32, (Ptr)dataOut.data(), in TEST_P()
154 Allocation allocation = context->allocationCreateFromBitmap(type, in TEST_P() local
158 ASSERT_NE(Allocation(0), allocation); in TEST_P()
160 context->allocationCopyToBitmap(allocation, (Ptr)dataOut1.data(), in TEST_P()
164 context->allocationRead(allocation, (Ptr)dataOut2.data(), (Size)dataOut2.size()*sizeof(float)); in TEST_P()
299 Allocation allocation = context->allocationCreateFromBitmap(type, in TEST_P() local
303 ASSERT_NE(Allocation(0), allocation); in TEST_P()
310 AllocationAdapter allocationAdapter = context->allocationAdapterCreate(subType, allocation); in TEST_P()
357 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::FULL, in TEST_P() local
360 ASSERT_NE(Allocation(0), allocation); in TEST_P()
362 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 64, 64, in TEST_P()
364 context->allocationGenerateMipmaps(allocation); in TEST_P()
365 context->allocationSyncAll(allocation, AllocationUsageType::SCRIPT); in TEST_P()
366 context->allocation2DRead(allocation, 0, 0, 1, AllocationCubemapFace::POSITIVE_X, 32, 32, in TEST_P()
403 Allocation allocation = context->allocationCubeCreateFromBitmap( in TEST_P() local
405 ASSERT_NE(Allocation(0), allocation); in TEST_P()
407 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::NEGATIVE_Z, 128, in TEST_P()
464 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P() local
467 ASSERT_NE(Allocation(0), allocation); in TEST_P()
473 context->allocationElementWrite(allocation, 0, 0, 0, 0, _data, 1); in TEST_P()
474 context->allocationElementRead(allocation, 0, 0, 0, 0, (Ptr)dataOut.data(), in TEST_P()