blob: 5fac2ce93980c0b7d83c747a4f07f56378e2c976 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "flutter/fml/macros.h"
#include "impeller/renderer/backend/vulkan/vk.h"
#include "impeller/renderer/texture_descriptor.h"
namespace impeller {
class TextureSourceVK {
public:
virtual ~TextureSourceVK() = default;
virtual bool SetContents(const TextureDescriptor& desc,
const uint8_t* contents,
size_t length,
size_t slice);
virtual vk::Image GetVKImage() const = 0;
virtual vk::ImageView GetVKImageView() const = 0;
};
} // namespace impeller