pub struct ComputeDemo { /* private fields */ }Expand description
WebGPU compute demonstration module.
This struct demonstrates WebGPU compute shader concepts for physics. In a full implementation, this would interface with actual WebGPU bindings.
Implementations§
Source§impl ComputeDemo
impl ComputeDemo
Sourcepub const fn capability(&self) -> &ComputeCapability
pub const fn capability(&self) -> &ComputeCapability
Returns the detected compute capability.
Sourcepub const fn state(&self) -> ComputeDemoState
pub const fn state(&self) -> ComputeDemoState
Returns the current demo state.
Sourcepub fn run_benchmark(&mut self, particle_count: usize) -> ComputeBenchmarkResult
pub fn run_benchmark(&mut self, particle_count: usize) -> ComputeBenchmarkResult
Runs a compute benchmark and returns the result.
This demonstrates the physics compute capability by running a batch particle update operation.
Trait Implementations§
Source§impl Clone for ComputeDemo
impl Clone for ComputeDemo
Source§fn clone(&self) -> ComputeDemo
fn clone(&self) -> ComputeDemo
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 ComputeDemo
impl Debug for ComputeDemo
Auto Trait Implementations§
impl Freeze for ComputeDemo
impl RefUnwindSafe for ComputeDemo
impl Send for ComputeDemo
impl Sync for ComputeDemo
impl Unpin for ComputeDemo
impl UnwindSafe for ComputeDemo
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> 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