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

#include <device_buffer_vk.h>

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

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)
 
virtual bool SetLabel (const std::string &label)=0
 
virtual bool SetLabel (const std::string &label, Range range)=0
 
const DeviceBufferDescriptorGetDeviceBufferDescriptor () const
 
virtual uint8_t * OnGetContents () const =0
 
virtual void Flush (std::optional< Range > range=std::nullopt) const
 
virtual void Invalidate (std::optional< Range > range=std::nullopt) const
 

Friends

class AllocatorVK
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::DeviceBuffer
static BufferView AsBufferView (std::shared_ptr< DeviceBuffer > buffer)
 Create a buffer view of this entire buffer. More...
 
- Static Public Member Functions inherited from impeller::BackendCast< DeviceBufferVK, DeviceBuffer >
static DeviceBufferVKCast (DeviceBuffer &base)
 
static const DeviceBufferVKCast (const DeviceBuffer &base)
 
static DeviceBufferVKCast (DeviceBuffer *base)
 
static const DeviceBufferVKCast (const DeviceBuffer *base)
 
- Protected Member Functions inherited from impeller::DeviceBuffer
 DeviceBuffer (DeviceBufferDescriptor desc)
 
virtual bool OnCopyHostBuffer (const uint8_t *source, Range source_range, size_t offset)=0
 
- Protected Attributes inherited from impeller::DeviceBuffer
const DeviceBufferDescriptor desc_
 

Detailed Description

Definition at line 17 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 14 of file device_buffer_vk.cc.

19 context_(std::move(context)),
20 resource_(ContextVK::Cast(*context_.lock().get()).GetResourceManager(),
22 std::move(buffer), //
23 info //
24 }) {}
static ContextVK & Cast(Context &base)
Definition: backend_cast.h:13
std::shared_ptr< ResourceManagerVK > GetResourceManager() const
Definition: context_vk.cc:554
DeviceBuffer(DeviceBufferDescriptor desc)
Definition: device_buffer.cc:9
Resource< BufferView > BufferResource
Definition: command.h:57

◆ ~DeviceBufferVK()

impeller::DeviceBufferVK::~DeviceBufferVK ( )
overridedefault

Member Function Documentation

◆ GetBuffer()

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

Definition at line 86 of file device_buffer_vk.cc.

86 {
87 return resource_->buffer.get().buffer;
88}

Friends And Related Function Documentation

◆ AllocatorVK

friend class AllocatorVK
friend

Definition at line 31 of file device_buffer_vk.h.


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