| Flutter Impeller |

Classes | Public Member Functions | Friends | List of all members
impeller::DeviceBufferVK Class Referencefinal

`#include <device_buffer_vk.h>`

Inheritance diagram for impeller::DeviceBufferVK:

## Public Member Functions
| DeviceBufferVK (DeviceBufferDescriptor desc, std::weak_ptr< Context > context, UniqueBufferVMA buffer, VmaAllocationInfo info)
| ~DeviceBufferVK () override
vk::Buffer | GetBuffer () const
Public Member Functions inherited from impeller::DeviceBuffer
virtual | ~DeviceBuffer ()
bool | CopyHostBuffer (const uint8_t *source, Range source_range, size_t offset=0u)
BufferView | AsBufferView () const
virtual std::shared_ptr< Texture > | AsTexture (Allocator &allocator, const TextureDescriptor &descriptor, uint16_t row_bytes) const
std::shared_ptr< const DeviceBuffer > | GetDeviceBuffer (Allocator &allocator) const
const DeviceBufferDescriptor & | GetDeviceBufferDescriptor () const
Public Member Functions inherited from impeller::Buffer
virtual | ~Buffer ()

## Friends
class | AllocatorVK

## Additional Inherited Members
Static Public Member Functions inherited from impeller::BackendCast< DeviceBufferVK, Buffer >
static DeviceBufferVK & | Cast (Buffer &base)
static const DeviceBufferVK & | Cast (const Buffer &base)
static DeviceBufferVK * | Cast (Buffer *base)
static const DeviceBufferVK * | Cast (const Buffer *base)
Protected Member Functions inherited from impeller::DeviceBuffer
| DeviceBuffer (DeviceBufferDescriptor desc)
Protected Attributes inherited from impeller::DeviceBuffer
const DeviceBufferDescriptor | desc_

## Detailed Description

Definition at line 20 of file device_buffer_vk.h.

## Constructor & Destructor Documentation

## ◆ DeviceBufferVK()

impeller::DeviceBufferVK::DeviceBufferVK | ( | DeviceBufferDescriptor | desc,
|  | std::weak_ptr< Context > | context,
|  | UniqueBufferVMA | buffer,
|  | VmaAllocationInfo | info
| ) |  |

Definition at line 11 of file device_buffer_vk.cc.

15 : DeviceBuffer(desc),
16 context_(std::move(context)),
17 resource_(ContextVK::Cast(*context_.lock().get()).GetResourceManager(),
18 BufferResource{
19 std::move(buffer), //
20 info //
21 }) {}

## ◆ ~DeviceBufferVK()

impeller::DeviceBufferVK::~DeviceBufferVK | ( |  | ) |
| override default

## Member Function Documentation

## ◆ GetBuffer()

vk::Buffer impeller::DeviceBufferVK::GetBuffer | ( |  | ) | const

Definition at line 70 of file device_buffer_vk.cc.

70 {
71 return resource_->buffer.get().buffer;
72 }

Referenced by impeller::BindBuffers().

## Friends And Related Function Documentation

## ◆ AllocatorVK

friend class AllocatorVK
| friend

Definition at line 34 of file device_buffer_vk.h.

The documentation for this class was generated from the following files:

- impeller/renderer/backend/vulkan/device_buffer_vk.h
- impeller/renderer/backend/vulkan/device_buffer_vk.cc

impeller::DeviceBuffer::DeviceBuffer
DeviceBuffer(DeviceBufferDescriptor desc)
Definition: device_buffer.cc:9
impeller::BackendCast< ContextVK, Context >::Cast
static ContextVK & Cast(Context &base)
Definition: backend_cast.h:15
impeller::ContextVK::GetResourceManager
std::shared_ptr< ResourceManagerVK > GetResourceManager() const
Definition: context_vk.cc:547
impeller::BufferResource
Resource< BufferView > BufferResource
Definition: command.h:57