pub unsafe fn create_buffer_with_options(
allocator: &mut Allocator<'_>,
info: &BufferCreateInfo,
options: &AllocationCreateInfo,
) -> Result<(Buffer, Allocation), AllocError>Expand description
Create, allocate, optionally map and bind an ordinary buffer transactionally.
Only recoverable native allocation OOM retries another compatible memory type. Required/preferred dedication and regions larger than the explicit block use separate storage. Empty blocks are released immediately, without caching.
§Errors
Returns checked policy/identity/limit errors or the preserved native failure.
§Safety
Info and queue-family pointers must satisfy native valid usage. Complete uses before release. Sparse, external, protected, BDA and arbitrary chains are excluded.