#[repr(C)]pub struct MTLIntersectionFunctionBufferArguments {
pub intersectionFunctionBuffer: u64,
pub intersectionFunctionBufferSize: u64,
pub intersectionFunctionStride: u64,
}Available on crate feature
MTLIntersectionFunctionTable only.Expand description
struct containing arguments for intersection function buffers.
See also Apple’s documentation
Fields§
§intersectionFunctionBuffer: u64The GPU resource ID of the buffer containing intersection-function handles. Required to be aligned to 8 bytes.
intersectionFunctionBufferSize: u64The maximum range in bytes of intersectionFunctionBuffer that can be used for ray tracing.
intersectionFunctionStride: u64The stride between intersection function entries in intersectionFunctionBuffer. The stride needs to be either 0 or aligned to 8 bytes. Note that only the first 12 bits of this value are used by Metal.
Trait Implementations§
Source§impl Clone for MTLIntersectionFunctionBufferArguments
impl Clone for MTLIntersectionFunctionBufferArguments
Source§fn clone(&self) -> MTLIntersectionFunctionBufferArguments
fn clone(&self) -> MTLIntersectionFunctionBufferArguments
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 PartialEq for MTLIntersectionFunctionBufferArguments
impl PartialEq for MTLIntersectionFunctionBufferArguments
Source§fn eq(&self, other: &MTLIntersectionFunctionBufferArguments) -> bool
fn eq(&self, other: &MTLIntersectionFunctionBufferArguments) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for MTLIntersectionFunctionBufferArguments
impl RefEncode for MTLIntersectionFunctionBufferArguments
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 MTLIntersectionFunctionBufferArguments
impl StructuralPartialEq for MTLIntersectionFunctionBufferArguments
Auto Trait Implementations§
impl Freeze for MTLIntersectionFunctionBufferArguments
impl RefUnwindSafe for MTLIntersectionFunctionBufferArguments
impl Send for MTLIntersectionFunctionBufferArguments
impl Sync for MTLIntersectionFunctionBufferArguments
impl Unpin for MTLIntersectionFunctionBufferArguments
impl UnwindSafe for MTLIntersectionFunctionBufferArguments
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.