WgSvd3

Struct WgSvd3 

Source
pub struct WgSvd3;
Expand description

Shader for computing the Singular Value Decomposition of 3x3 matrices.

Trait Implementations§

Source§

impl Shader for WgSvd3

Source§

const FILE_PATH: &'static str = "svd3.wgsl"

Path of the shader’s .wgsl file.
Source§

fn from_device(device: &Device) -> Result<Self, ComposerError>

Instantiates this Shader from a gpu device. Read more
Source§

fn src() -> String

This shader’s sources (before dependency and macro resolution).
Source§

fn naga_module() -> Result<Module, ComposerError>

The naga module built from this shader.
Source§

fn absolute_path() -> Option<PathBuf>

The absolute path of this wgsl shader source file. Read more
Source§

fn compose(composer: &mut Composer) -> Result<(), ComposerError>

Add to composer the composable module definition of Self (if there are any) and all its shader dependencies .
Source§

fn watch_sources(state: &mut HotReloadState) -> Result<()>

Registers all the source files, for Self and all its shader dependencies, for change detection.
Source§

fn needs_reload(state: &HotReloadState) -> bool

Checks if this shader (or any of its dependencies) need to be reloaded due to a change from disk.
Source§

fn flat_wgsl() -> Result<String, ComposerError>

This shader’s WGSL sources as a single file (after dependency and macro resolution).
Source§

fn composer() -> Result<Composer, ComposerError>

A composer filled with the module definition of Self (if there is any) and all its shader dependencies.
Source§

fn set_absolute_path(path: PathBuf)

Registers in the global ShaderRegistry known absolute path for this shader. Read more
Source§

fn reload_if_changed( &mut self, device: &Device, state: &HotReloadState, ) -> Result<bool, ComposerError>

Reloads this shader if it on any of its dependencies have been changed from disk.

Auto Trait Implementations§

§

impl Freeze for WgSvd3

§

impl RefUnwindSafe for WgSvd3

§

impl Send for WgSvd3

§

impl Sync for WgSvd3

§

impl Unpin for WgSvd3

§

impl UnwindSafe for WgSvd3

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> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

Source§

const WITNESS: W = W::MAKE

A constant of the type witness
Source§

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

Source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
Source§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> WasmNotSendSync for T

Source§

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