30 const auto& allocator = context_mtl.GetResourceAllocator();
32 EXPECT_EQ(allocator->DebugGetHeapUsage().ConvertTo<
MebiBytes>().GetSize(),
40 desc.
size = {1024, 1024};
41 auto texture_1 = allocator->CreateTexture(desc);
45 auto texture_2 = allocator->CreateTexture(desc);
48 EXPECT_EQ(allocator->DebugGetHeapUsage().ConvertTo<
MebiBytes>().GetSize(),
51 EXPECT_EQ(allocator->DebugGetHeapUsage().ConvertTo<
MebiBytes>().GetSize(),
57 auto texture_3 = allocator->CreateTexture(desc);
60 EXPECT_EQ(allocator->DebugGetHeapUsage().ConvertTo<
MebiBytes>().GetSize(),
63 EXPECT_EQ(allocator->DebugGetHeapUsage().ConvertTo<
MebiBytes>().GetSize(),
69 EXPECT_EQ(allocator->DebugGetHeapUsage().ConvertTo<
MebiBytes>().GetSize(),
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...