Skip to main content

EncodeParams

Struct EncodeParams 

Source
#[repr(C)]
pub struct EncodeParams { pub object_count: u32, pub region_count: u32, pub region_mask: u32, pub skinned_base: u32, pub bucket_count: u32, pub draw_status: u32, pub _pad: [u32; 2], }
Expand description

Parameters of the Metal ICB encode kernel, pushed inline at buffer(7) after the decision dispatch. Layout (32 bytes) must match EncodeParams in cull_encode.metal.

Fields§

§object_count: u32

Records per region: the slot grid is region_count * object_count.

§region_count: u32

Regions in the target ICB: 1 for the main, phase-2 and mirror culls, one per cascade for the shadow cull.

§region_mask: u32

Bit r set means region r is encoded this dispatch; a clear bit leaves that region’s commands untouched.

§skinned_base: u32

Record index where the folded skinned tail begins; those records draw through the skinned index buffer.

§bucket_count: u32

How many shader-bucket ICBs the argument buffer carries.

§draw_status: u32

The cull_status value that encodes a draw (CullStatus::DRAWN for every dispatch but phase 2, which encodes CullStatus::REDRAW).

§_pad: [u32; 2]

Padding to a 16-byte multiple.

Trait Implementations§

Source§

impl Clone for EncodeParams

Source§

fn clone(&self) -> EncodeParams

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EncodeParams

Source§

impl NoUninit for EncodeParams

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.