blob: 5f0192529897e94900e84a447c082a7fdb21095b [file] [log] [blame]
* Copyright 2017 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef GrVkBufferView_DEFINED
#define GrVkBufferView_DEFINED
#include "GrTypes.h"
#include "GrVkResource.h"
#include "vk/GrVkDefines.h"
class GrVkBufferView : public GrVkResource {
static const GrVkBufferView* Create(const GrVkGpu* gpu, VkBuffer buffer, VkFormat format,
VkDeviceSize offset, VkDeviceSize range);
VkBufferView bufferView() const { return fBufferView; }
void dumpInfo() const override {
SkDebugf("GrVkBufferView: %d (%d refs)\n", fBufferView, this->getRefCnt());
GrVkBufferView(VkBufferView bufferView) : INHERITED(), fBufferView(bufferView) {}
void freeGPUData(const GrVkGpu* gpu) const override;
VkBufferView fBufferView;
typedef GrVkResource INHERITED;