73 uint16_t MinimumBytesPerRow(
PixelFormat format)
const override {
return 0; }
75 ISize GetMaxTextureSizeSupported()
const override {
76 return ISize{2048, 2048};
79 std::shared_ptr<DeviceBuffer> OnCreateBuffer(
80 const DeviceBufferDescriptor& desc)
override {
81 return std::make_shared<TestImpellerDeviceBuffer>(desc);
84 std::shared_ptr<Texture> OnCreateTexture(
const TextureDescriptor& desc,
85 bool threadsafe)
override {
86 return std::make_shared<TestImpellerTexture>(desc);
bool OnSetContents(const uint8_t *contents, size_t length, size_t slice)
bool OnSetContents(std::shared_ptr< const fml::Mapping > mapping, size_t slice)
bool IsValid() const override
void SetLabel(std::string_view label) override
Label this resource for inspection in GPU debugging tools.
void SetLabel(std::string_view label, std::string_view trailing) override
Label this resource for inspection in GPU debugging tools, with label and trailing will be concatenat...
TestImpellerTexture(TextureDescriptor desc)
const TextureDescriptor & GetTextureDescriptor() const
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...