split real
out into its own crate
this is a move toward reusing some of the coremem helper types in the spirv backend.
This commit is contained in:
10
Cargo.lock
generated
10
Cargo.lock
generated
@@ -320,11 +320,11 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"bincode",
|
"bincode",
|
||||||
"common_macros",
|
"common_macros",
|
||||||
|
"coremem_types",
|
||||||
"criterion",
|
"criterion",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
"csv",
|
"csv",
|
||||||
"dashmap",
|
"dashmap",
|
||||||
"decorum",
|
|
||||||
"dyn-clone",
|
"dyn-clone",
|
||||||
"enum_dispatch",
|
"enum_dispatch",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
@@ -367,6 +367,14 @@ dependencies = [
|
|||||||
"structopt",
|
"structopt",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "coremem_types"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"decorum",
|
||||||
|
"num",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crc32fast"
|
name = "crc32fast"
|
||||||
version = "1.3.2"
|
version = "1.3.2"
|
||||||
|
@@ -5,6 +5,7 @@ members = [
|
|||||||
"crates/spirv_backend",
|
"crates/spirv_backend",
|
||||||
"crates/spirv_backend_builder",
|
"crates/spirv_backend_builder",
|
||||||
"crates/spirv_backend_runner",
|
"crates/spirv_backend_runner",
|
||||||
|
"crates/types",
|
||||||
"crates/post",
|
"crates/post",
|
||||||
|
|
||||||
"crates/applications/buffer_proto5",
|
"crates/applications/buffer_proto5",
|
||||||
|
@@ -15,7 +15,6 @@ common_macros = "0.1" # MIT or Apache 2.0
|
|||||||
crossterm = "0.24" # MIT
|
crossterm = "0.24" # MIT
|
||||||
csv = "1.1" # MIT or Unlicense
|
csv = "1.1" # MIT or Unlicense
|
||||||
dashmap = "5.3" # MIT
|
dashmap = "5.3" # MIT
|
||||||
decorum = "0.3" # MIT
|
|
||||||
dyn-clone = "1.0" # MIT or Apache 2.0
|
dyn-clone = "1.0" # MIT or Apache 2.0
|
||||||
enum_dispatch = "0.3" # MIT or Apache 2.0
|
enum_dispatch = "0.3" # MIT or Apache 2.0
|
||||||
env_logger = "0.9" # MIT or Apache 2.0
|
env_logger = "0.9" # MIT or Apache 2.0
|
||||||
@@ -48,6 +47,7 @@ spirv-std = { git = "https://github.com/EmbarkStudios/rust-gpu" }
|
|||||||
spirv-std-macros = { git = "https://github.com/EmbarkStudios/rust-gpu" }
|
spirv-std-macros = { git = "https://github.com/EmbarkStudios/rust-gpu" }
|
||||||
spirv_backend = { path = "../spirv_backend" }
|
spirv_backend = { path = "../spirv_backend" }
|
||||||
spirv_backend_runner = { path = "../spirv_backend_runner" }
|
spirv_backend_runner = { path = "../spirv_backend_runner" }
|
||||||
|
coremem_types = { path = "../types" }
|
||||||
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@@ -11,7 +11,6 @@ pub mod driver;
|
|||||||
pub mod geom;
|
pub mod geom;
|
||||||
pub mod mat;
|
pub mod mat;
|
||||||
pub mod meas;
|
pub mod meas;
|
||||||
pub mod real;
|
|
||||||
pub mod render;
|
pub mod render;
|
||||||
pub mod sim;
|
pub mod sim;
|
||||||
pub mod stim;
|
pub mod stim;
|
||||||
@@ -20,6 +19,7 @@ pub mod util;
|
|||||||
pub use driver::*;
|
pub use driver::*;
|
||||||
pub use mat::*;
|
pub use mat::*;
|
||||||
pub use sim::*;
|
pub use sim::*;
|
||||||
|
pub use coremem_types::real;
|
||||||
|
|
||||||
// Some things to keep in mind:
|
// Some things to keep in mind:
|
||||||
// B = mu_r*H + M
|
// B = mu_r*H + M
|
||||||
|
@@ -6,7 +6,7 @@ use crossterm::{cursor, QueueableCommand as _};
|
|||||||
use crossterm::style::{style, Color, PrintStyledContent, Stylize as _};
|
use crossterm::style::{style, Color, PrintStyledContent, Stylize as _};
|
||||||
use font8x8::{BASIC_FONTS, GREEK_FONTS, UnicodeFonts as _};
|
use font8x8::{BASIC_FONTS, GREEK_FONTS, UnicodeFonts as _};
|
||||||
use log::trace;
|
use log::trace;
|
||||||
use num::integer::Integer;
|
use num::integer::Integer; // TODO: remove?
|
||||||
use image::{RgbImage, Rgb};
|
use image::{RgbImage, Rgb};
|
||||||
use imageproc::{pixelops, drawing};
|
use imageproc::{pixelops, drawing};
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
|
9
crates/types/Cargo.toml
Normal file
9
crates/types/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[package]
|
||||||
|
name = "coremem_types"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Colin <colin@uninsane.org>"]
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
num = "0.4" # MIT or Apache 2.0
|
||||||
|
decorum = "0.3" # MIT
|
1
crates/types/src/lib.rs
Normal file
1
crates/types/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub mod real;
|
Reference in New Issue
Block a user