55 id<MTLDevice> device_;
56 std::string allocator_label_;
57 bool supports_memoryless_targets_ =
false;
58 bool supports_uma_ =
false;
59 bool is_valid_ =
false;
62 std::shared_ptr<DebugAllocatorStats> debug_allocater_ =
63 std::make_shared<DebugAllocatorStats>();
66 ISize max_texture_supported_;
72 std::shared_ptr<DeviceBuffer> OnCreateBuffer(
77 bool threadsafe)
override;
80 uint16_t MinimumBytesPerRow(
PixelFormat format)
const override;
83 ISize GetMaxTextureSizeSupported()
const override;
86 void DebugTraceMemoryStatistics()
const override;
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...