21 VkBufferView vk_buffer_view_ = VK_NULL_HANDLE;
23 bool data_uploaded_ =
false;
34 uint source_first_vertex,
35 uint dest_first_vertex,
38 void read(
void *
data)
const override;
42 return buffer_.vk_handle();
46 return buffer_.resource();
51 return buffer_.has_device_address();
56 return buffer_.device_address_get();
62 return vk_buffer_view_;
82 void upload_data_direct(
const VKBuffer &host_buffer);
83 void upload_data_via_staging_buffer(
VKContext &context);
VkDeviceAddress device_address_get() const
void release_data() override
void acquire_data() override
void copy_sub(VertBuf &source_buf, uint source_first_vertex, uint dest_first_vertex, uint vertex_len) override
Copy from part of source vertex buffer into the vertex buffer.
const VKResourceWithHandle< VkBuffer > & resource() const
VkBufferView vk_buffer_view_get() const
void upload_data() override
bool has_device_address() const
VkBuffer vk_handle() const
void wrap_handle(uint64_t handle) override
void bind_as_ssbo(uint binding) override
void ensure_buffer_view()
void bind_as_texture(uint binding) override
void update_sub(uint start_offset, uint data_size_in_bytes, const void *data) override
void read(void *data) const override
void resize_data() override
static Context * unwrap(GPUContext *ctx)
VkFormat to_vk_format(const TextureFormat format)
constexpr TextureFormat to_texture_format(TextureTargetFormat format)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t