Skip to main content

bind_buffer_memory

Function bind_buffer_memory 

Source
pub unsafe fn bind_buffer_memory(
    device: &Device,
    buffer: Buffer,
    memory: DeviceMemory,
    memory_offset: DeviceSize,
) -> Result<(), CallError>
Expand description

Bind device memory to a buffer at the given offset.

ยงSafety

memory must have been allocated with a compatible type and sufficient size. The buffer must not already have memory bound.

Khronos reference: vkBindBufferMemory