Flutter Impeller
impeller::DeviceBufferVK Class Referencefinal

#include <device_buffer_vk.h>

Inheritance diagram for impeller::DeviceBufferVK:
impeller::DeviceBuffer impeller::BackendCast< DeviceBufferVK, Buffer > impeller::Buffer

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< TextureAsTexture (Allocator &allocator, const TextureDescriptor &descriptor, uint16_t row_bytes) const
 
std::shared_ptr< const DeviceBufferGetDeviceBuffer (Allocator &allocator) const
 
const DeviceBufferDescriptorGetDeviceBufferDescriptor () 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 DeviceBufferVKCast (Buffer &base)
 
static const DeviceBufferVKCast (const Buffer &base)
 
static DeviceBufferVKCast (Buffer *base)
 
static const DeviceBufferVKCast (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 19 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 12 of file device_buffer_vk.cc.

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

◆ ~DeviceBufferVK()

impeller::DeviceBufferVK::~DeviceBufferVK ( )
overridedefault

Member Function Documentation

◆ GetBuffer()

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

Definition at line 71 of file device_buffer_vk.cc.

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

Referenced by impeller::AllocateAndBindDescriptorSets().

Friends And Related Function Documentation

◆ AllocatorVK

friend class AllocatorVK
friend

Definition at line 33 of file device_buffer_vk.h.


The documentation for this class was generated from the following files:
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:14
impeller::ContextVK::GetResourceManager
std::shared_ptr< ResourceManagerVK > GetResourceManager() const
Definition: context_vk.cc:521
impeller::BufferResource
Resource< BufferView > BufferResource
Definition: command.h:60