bool GenerateMipmap(id< MTLBlitCommandEncoder > encoder)
const TextureDescriptor & GetTextureDescriptor() const
TextureMTL(TextureDescriptor desc, id< MTLTexture > texture, bool wrapped=false)
id< MTLTexture > GetMTLTexture() const
constexpr bool IsValid() const
static std::shared_ptr< TextureMTL > Wrapper(TextureDescriptor desc, id< MTLTexture > texture, std::function< void()> deletion_proc=nullptr)
constexpr size_t GetByteSizeOfBaseMipLevel() const
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...
constexpr size_t GetBytesPerRow() const