19 bool data_uploaded_ =
false;
31 uint source_first_index,
32 uint dest_first_index,
33 uint index_len)
override;
37 return buffer_get().vk_handle();
41 return buffer_get().resource();
45 return buffer_get().has_device_address();
49 return buffer_get().device_address_get();
58 return buffer_get().allocated_size_in_bytes();
64 void strip_restart_indices()
override;
GPUIndexBufType index_type_
void read(uint32_t *data) const override
VkIndexType vk_index_type() const
void update_sub(uint start, uint len, const void *data) override
VkDeviceAddress device_address_get() const
void copy_sub(IndexBuf &source_buf, uint source_first_index, uint dest_first_index, uint index_len) override
Copy part of source index buffer into this index buffer.
VkBuffer vk_handle() const
const VKResourceWithHandle< VkBuffer > & resource() const
bool has_device_address() const
void upload_data() override
VkDeviceSize allocated_size_get() const
Return the allocated size of the buffer in bytes.
void bind_as_ssbo(uint binding) override
#define buffer_get(create_info, _res)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
static Context * unwrap(GPUContext *ctx)
VkIndexType to_vk_index_type(const GPUIndexBufType index_type)
BMesh const char void * data