Skip to main content

RigidStreams

Struct RigidStreams 

Source
pub struct RigidStreams {
Show 42 fields pub collider_aabbs: Stream, pub live_bodies: Stream, pub body_activity: Stream, pub body_motion: Stream, pub body_state_scratch: Stream, pub constraint_rows: Stream, pub joint_states: Stream, pub constraint_scratch: Stream, pub joint_filter_major: Stream, pub joint_filter_minor: Stream, pub ccd_factor: Stream, pub ccd_impact: Stream, pub contacts_raw: Stream, pub contact_valid: Stream, pub compact_ranks: Stream, pub compact_block_sums: Stream, pub compact_block_offsets: Stream, pub contacts: Stream, pub contact_target_speeds: Stream, pub contact_matched: Stream, pub contact_archive: Stream, pub resting_contacts: Stream, pub resting_live: Stream, pub resting_next: Stream, pub resting_free: Stream, pub resting_index_major: Stream, pub resting_index_minor: Stream, pub resting_index_slots: Stream, pub solver_segments: Stream, pub solver_block_counts: Stream, pub solver_blocks: Stream, pub solver_velocity_deltas: Stream, pub solver_position_deltas: Stream, pub solver_resolution: Stream, pub solver_contributions: Stream, pub island_parents: Stream, pub island_state: Stream, pub events: Stream, pub sort_scratch_major: Stream, pub sort_scratch_minor: Stream, pub sort_scratch_payload: Stream, pub sort_dummy_payload: Stream,
}

Fields§

§collider_aabbs: Stream§live_bodies: Stream§body_activity: Stream§body_motion: Stream§body_state_scratch: Stream§constraint_rows: Stream§joint_states: Stream§constraint_scratch: Stream§joint_filter_major: Stream§joint_filter_minor: Stream§ccd_factor: Stream§ccd_impact: Stream§contacts_raw: Stream§contact_valid: Stream§compact_ranks: Stream§compact_block_sums: Stream§compact_block_offsets: Stream§contacts: Stream§contact_target_speeds: Stream§contact_matched: Stream§contact_archive: Stream§resting_contacts: Stream§resting_live: Stream§resting_next: Stream§resting_free: Stream§resting_index_major: Stream§resting_index_minor: Stream§resting_index_slots: Stream§solver_segments: Stream§solver_block_counts: Stream§solver_blocks: Stream§solver_velocity_deltas: Stream§solver_position_deltas: Stream§solver_resolution: Stream§solver_contributions: Stream§island_parents: Stream§island_state: Stream§events: Stream§sort_scratch_major: Stream§sort_scratch_minor: Stream§sort_scratch_payload: Stream§sort_dummy_payload: Stream

Implementations§

Source§

impl RigidStreams

Source

pub fn slots(&self, local: u32) -> u32

Source

pub fn whole(&self, local: u32) -> GpuSlot<'_>

Source

pub fn range(&self, local: u32, offset: u64, size: u64) -> GpuSlot<'_>

Trait Implementations§

Source§

impl DomainStreams for RigidStreams

Source§

type Demand = RigidDemand

Source§

fn new(device: &Device, queue: &Queue, demand: &RigidDemand) -> Self

Source§

fn matches(&self, demand: &RigidDemand) -> bool

Source§

fn reserve( &mut self, device: &Device, encoder: &mut CommandEncoder, demand: &RigidDemand, ) -> bool

Source§

fn require<F: Fn(&'static str) -> Option<u32>>( &mut self, device: &Device, encoder: &mut CommandEncoder, floors: F, ) -> bool

Source§

fn durable(&self) -> Vec<(&'static str, &Stream)>

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,