pub struct BruteForce<'a> {
pub resources: &'a mut GpuResources,
pub device: &'a Device,
pub queue: &'a Queue,
}Expand description
Same as BruteForceSoftened, but with no softening.
Fields§
§resources: &'a mut GpuResourcesInstanced resources used for the computation. It should not be recreated for every iteration. Doing so can result in significantly reduced performance.
device: &'a Devicewgpu::Device used for the computation.
queue: &'a Queuewgpu::Queue used for the computation.
Implementations§
Source§impl<'a> BruteForce<'a>
impl<'a> BruteForce<'a>
Sourcepub fn new(
resources: &'a mut GpuResources,
device: &'a Device,
queue: &'a Queue,
) -> Self
pub fn new( resources: &'a mut GpuResources, device: &'a Device, queue: &'a Queue, ) -> Self
Creates a new BruteForce instance.
Trait Implementations§
Source§impl ComputeMethod<ParticleSystem<'_, Vec3, f32, [PointMass<Vec3, f32>]>> for BruteForce<'_>
impl ComputeMethod<ParticleSystem<'_, Vec3, f32, [PointMass<Vec3, f32>]>> for BruteForce<'_>
Auto Trait Implementations§
impl<'a> Freeze for BruteForce<'a>
impl<'a> !RefUnwindSafe for BruteForce<'a>
impl<'a> Send for BruteForce<'a>
impl<'a> Sync for BruteForce<'a>
impl<'a> Unpin for BruteForce<'a>
impl<'a> !UnwindSafe for BruteForce<'a>
Blanket Implementations§
Source§impl<U> AsPrimitive for U
impl<U> AsPrimitive for U
Source§fn as_<F: FromPrimitive<Self>>(self) -> F
fn as_<F: FromPrimitive<Self>>(self) -> F
Converts this primitive into the input primitive.
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<V, S, C, O> ComputeMethod<&[PointMass<V, S>]> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
impl<V, S, C, O> ComputeMethod<&[PointMass<V, S>]> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
Source§impl<V, S, C, O> ComputeMethod<&ParticleOrdered<V, S>> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
impl<V, S, C, O> ComputeMethod<&ParticleOrdered<V, S>> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
Source§fn compute(
&mut self,
ordered: &ParticleOrdered<V, S>,
) -> <C as ComputeMethod<&ParticleOrdered<V, S>>>::Output
fn compute( &mut self, ordered: &ParticleOrdered<V, S>, ) -> <C as ComputeMethod<&ParticleOrdered<V, S>>>::Output
Performs the computation between objects contained in the storage.
Source§impl<V, S, C, O> ComputeMethod<&ParticleReordered<'_, V, S>> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
impl<V, S, C, O> ComputeMethod<&ParticleReordered<'_, V, S>> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
Source§fn compute(
&mut self,
reordered: &ParticleReordered<'_, V, S>,
) -> <C as ComputeMethod<&ParticleReordered<'_, V, S>>>::Output
fn compute( &mut self, reordered: &ParticleReordered<'_, V, S>, ) -> <C as ComputeMethod<&ParticleReordered<'_, V, S>>>::Output
Performs the computation between objects contained in the storage.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more