Skip to main content

create_dedicated_buffer

Function create_dedicated_buffer 

Source
pub unsafe fn create_dedicated_buffer<'a>(
    allocator: &mut Allocator<'_>,
    info: &BufferCreateInfo<'_>,
    options: &AllocationCreateInfo<'a>,
    chain: Option<AllocationChain<'a>>,
) -> Result<(Buffer, Allocation), AllocError>
Expand description

Create, separately allocate and bind a buffer, optionally importing/exporting memory.

§Errors

Same transaction/rollback errors as create_buffer_with_options and chain conflicts.

§Safety

All resource and allocation chain payloads, external compatibility, callback and completion requirements must hold. Successful import handle transfer survives later setup failure; resource/native storage rollback does not undo it.