#[repr(C)]pub struct MTL4BufferRange {
pub bufferAddress: MTLGPUAddress,
pub length: u64,
}Available on crate features
MTL4BufferRange and MTLGPUAddress only.Expand description
A struct representing a range of a Metal buffer. The offset into the buffer is included in the address. The length is generally optional, which a value of (uint64_t)-1 representing the range from the given address to the end of the buffer. However, providing the length can enable more accurate API validation, especially when sub-allocating ranges of a buffer.
See also Apple’s documentation
Fields§
§bufferAddress: MTLGPUAddressBuffer address returned by the gpuAddress property of an MTLBuffer plus any offset into the buffer
length: u64Length of the region which begins at the given address. If the length is not known, a value of (uint64_t)-1 represents the range from the given address to the end of the buffer.
Trait Implementations§
Source§impl Clone for MTL4BufferRange
impl Clone for MTL4BufferRange
Source§fn clone(&self) -> MTL4BufferRange
fn clone(&self) -> MTL4BufferRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MTL4BufferRange
impl Debug for MTL4BufferRange
Source§impl Encode for MTL4BufferRange
impl Encode for MTL4BufferRange
Source§impl PartialEq for MTL4BufferRange
impl PartialEq for MTL4BufferRange
Source§impl RefEncode for MTL4BufferRange
impl RefEncode for MTL4BufferRange
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MTL4BufferRange
impl StructuralPartialEq for MTL4BufferRange
Auto Trait Implementations§
impl Freeze for MTL4BufferRange
impl RefUnwindSafe for MTL4BufferRange
impl Send for MTL4BufferRange
impl Sync for MTL4BufferRange
impl Unpin for MTL4BufferRange
impl UnwindSafe for MTL4BufferRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.