[][src]Trait bedrock::resources::MemoryBound

pub trait MemoryBound {
    fn requirements(&self) -> VkMemoryRequirements;
fn bind(&self, memory: &DeviceMemory, offset: usize) -> Result<()>; }

[feature = "Implements"] Common operations for memory bound objects

Required methods

fn requirements(&self) -> VkMemoryRequirements

Returns the memory requirements for specified Vulkan object

fn bind(&self, memory: &DeviceMemory, offset: usize) -> Result<()>

Bind device memory to the object

Failure

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
Loading content...

Implementors

impl MemoryBound for Buffer[src]

impl MemoryBound for Image[src]

Loading content...