Skip to main content

FftMsg

Enum FftMsg 

Source
pub enum FftMsg {
    Exec(Box<dyn FftDispatch>),
    Forward1dR2C {
        n: i32,
        batch: i32,
        src: GpuRef<f32>,
        dst: GpuRef<float2>,
        reply: Sender<Result<(), GpuError>>,
    },
    Inverse1dC2R {
        n: i32,
        batch: i32,
        src: GpuRef<float2>,
        dst: GpuRef<f32>,
        reply: Sender<Result<(), GpuError>>,
    },
    Exec1dC2C {
        n: i32,
        batch: i32,
        direction: FftDirection,
        src: GpuRef<float2>,
        dst: GpuRef<float2>,
        reply: Sender<Result<(), GpuError>>,
    },
    Forward2dR2C {
        nx: i32,
        ny: i32,
        src: GpuRef<f32>,
        dst: GpuRef<float2>,
        reply: Sender<Result<(), GpuError>>,
    },
}

Variants§

§

Exec(Box<dyn FftDispatch>)

Generic typed FFT — the canonical Phase-1 entry point.

§

Forward1dR2C

👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, .. }

1D real → complex forward transform (f32 → complex32).

Fields

§n: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, .. }
§batch: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, .. }
§src: GpuRef<f32>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, .. }
§dst: GpuRef<float2>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, .. }
§reply: Sender<Result<(), GpuError>>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, .. }
§

Inverse1dC2R

👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2R, .. }

1D complex → real inverse transform (complex32 → f32). Caller is responsible for 1/N normalization.

Fields

§n: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2R, .. }
§batch: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2R, .. }
§src: GpuRef<float2>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2R, .. }
§dst: GpuRef<f32>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2R, .. }
§reply: Sender<Result<(), GpuError>>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2R, .. }
§

Exec1dC2C

👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }

1D complex ↔ complex transform.

Fields

§n: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }
§batch: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }
§direction: FftDirection
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }
§src: GpuRef<float2>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }
§dst: GpuRef<float2>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }
§reply: Sender<Result<(), GpuError>>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: C2C, .. }
§

Forward2dR2C

👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, rank=2, .. }

2D R2C transform.

Fields

§nx: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, rank=2, .. }
§ny: i32
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, rank=2, .. }
§src: GpuRef<f32>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, rank=2, .. }
§dst: GpuRef<float2>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, rank=2, .. }
§reply: Sender<Result<(), GpuError>>
👎Deprecated: use FftMsg::Exec with FftRequest<f32> { kind: R2C, rank=2, .. }

Auto Trait Implementations§

§

impl Freeze for FftMsg

§

impl !RefUnwindSafe for FftMsg

§

impl Send for FftMsg

§

impl !Sync for FftMsg

§

impl Unpin for FftMsg

§

impl UnsafeUnpin for FftMsg

§

impl !UnwindSafe for FftMsg

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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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