nit: use consistent syntax in material docs
This commit is contained in:
parent
859a7f8b18
commit
bcefd46105
|
@ -225,7 +225,7 @@ pub trait Material<R: Real>: Sized {
|
|||
|
||||
to add a new material:
|
||||
- for `CpuBackend` simulations: just implement this trait on your own type and instantiate a `SpirvSim` specialized over that material instead of `GenericMaterial`.
|
||||
- for `WgpuBackend` simulations, do the above and add a spirv entry-point specialized to your material. scroll to the bottom of `crates/spirv_backend/src/lib.rs` and follow the examples.
|
||||
- for `WgpuBackend` simulations: do the above and add a spirv entry-point specialized to your material. scroll to the bottom of `crates/spirv_backend/src/lib.rs` and follow the examples.
|
||||
|
||||
as can be seen, the Material trait is fairly restrictive. its methods are immutable, and it doesn't even have access to the entire cell state (only the cell's M value, during `move_b_vec`). i'd be receptive to a PR or request that exposes more cell state or mutability: this is just an artifact of me tailoring this specifically to the class of materials i intended to use it for.
|
||||
|
||||
|
|
Loading…
Reference in New Issue