Realm

vk::mem · Structs · C1

One allocation-relative cache range. Each allocation must own a mapping hold.

StRustExperimental

Stvk::mem::CacheRange

Contract

One allocation-relative cache range. Each allocation must own a mapping hold.

Fields

allocation

Field
allocation: &'a Allocation
No public source comment is attached to this declaration.

offset

Field
offset: u64
No public source comment is attached to this declaration.

size

Field
size: u64
No public source comment is attached to this declaration.

Methods and associated items

new

Method
pub fn new(allocation: &'a Allocation) -> Self

Describe the whole allocation from byte zero without acquiring a mapping hold.

set_allocation

Method
pub fn set_allocation(self, value: &'a Allocation) -> Self

Set allocation and return the updated record.

set_offset

Method
pub fn set_offset(self, value: u64) -> Self

Set offset and return the updated record.

set_size

Method
pub fn set_size(self, value: u64) -> Self

Set size and return the updated record.