pub enum HuygensDevice {
Auto,
Cpu,
Gpu,
}Expand description
Huygens の和(光源 × 像の点)を計算する場所。GPU は単精度(位相を小さく保つ書き方で、強度の差は照合の系で
収差のない中心の値の 5e-7 倍ほど。CPU の既定の展開と同じ程度)。GPU は gpu 機能を付けて組んだときだけ
Variants§
Auto
GPU があれば GPU(CPU で動くアダプタ(WARP・llvmpipe)と macOS 以外の内蔵 GPU は使わない)、無ければ CPU の既定の展開
Cpu
いつも CPU
Gpu
CPU で動くアダプタ・内蔵 GPU でも GPU の経路を使う(試験・照合用)。アダプタが無い・誤りなら CPU で計算して注意を出す
Trait Implementations§
Source§impl Clone for HuygensDevice
impl Clone for HuygensDevice
impl Copy for HuygensDevice
Source§impl Debug for HuygensDevice
impl Debug for HuygensDevice
Source§impl Default for HuygensDevice
impl Default for HuygensDevice
Source§impl<'de> Deserialize<'de> for HuygensDevice
impl<'de> Deserialize<'de> for HuygensDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HuygensDevice
Source§impl JsonSchema for HuygensDevice
impl JsonSchema for HuygensDevice
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HuygensDevice
impl PartialEq for HuygensDevice
Source§impl Serialize for HuygensDevice
impl Serialize for HuygensDevice
impl StructuralPartialEq for HuygensDevice
Auto Trait Implementations§
impl Freeze for HuygensDevice
impl RefUnwindSafe for HuygensDevice
impl Send for HuygensDevice
impl Sync for HuygensDevice
impl Unpin for HuygensDevice
impl UnsafeUnpin for HuygensDevice
impl UnwindSafe for HuygensDevice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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