/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_MtlTexture_DEFINED #define skgpu_MtlTexture_DEFINED #include "experimental/graphite/src/Texture.h" #import namespace skgpu::mtl { class Gpu; class Texture : public skgpu::Texture { public: static sk_sp Make(const Gpu* gpu, SkISize dimensions, const skgpu::TextureInfo&); ~Texture() override {} id mtlTexture() const { return fTexture.get(); } private: Texture(SkISize dimensions, const skgpu::TextureInfo& info, sk_cfp> texture); sk_cfp> fTexture; }; } // namepsace skgpu::mtl #endif // skgpu_MtlTexture_DEFINED