Skip to content

Data pointer parameter for Anvil::Buffer::create was removed? #92

@Silverlan

Description

@Silverlan

Anvil::Buffer::create used to have a pointer parameter for the data that should be written into the buffer memory at initialization. With the new Anvil::BufferCreateInfo struct, which now has to be used instead, that parameter is gone.
Instead, you have to use Anvil::BufferCreateInfo::set_client_data, which I don't think is very intuitive/obvious at all (especially because that function has no description).

I think the existence and function of Anvil::BufferCreateInfo::set_client_data should be made more clear, or the data parameter for Anvil::BufferCreateInfo::create_sparse_no_alloc should be brought back.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions