spirv_backend: remove UVec3Std in favor of Vec3u
This commit is contained in:
@@ -17,18 +17,20 @@ pub mod sim;
|
||||
pub mod support;
|
||||
|
||||
pub use sim::{SerializedSimMeta, SerializedStepE, SerializedStepH};
|
||||
pub use support::{Optional, UnsizedArray, UVec3Std, Vec3Std};
|
||||
pub use support::{Optional, UnsizedArray, Vec3Std};
|
||||
|
||||
use mat::{IsoConductorOr, Ferroxcube3R1MH, FullyGenericMaterial, Material};
|
||||
|
||||
use coremem_types::vecu::Vec3u;
|
||||
|
||||
type Iso3R1 = IsoConductorOr<Ferroxcube3R1MH>;
|
||||
|
||||
fn glam_vec_to_internal(v: UVec3) -> UVec3Std {
|
||||
UVec3Std::new(v.x, v.y, v.z)
|
||||
fn glam_vec_to_internal(v: UVec3) -> Vec3u {
|
||||
Vec3u::new(v.x, v.y, v.z)
|
||||
}
|
||||
|
||||
fn step_h<M: Material>(
|
||||
id: UVec3Std,
|
||||
id: Vec3u,
|
||||
meta: &SerializedSimMeta,
|
||||
stimulus_h: &UnsizedArray<Vec3Std>,
|
||||
material: &UnsizedArray<M>,
|
||||
@@ -44,7 +46,7 @@ fn step_h<M: Material>(
|
||||
}
|
||||
|
||||
fn step_e<M: Material>(
|
||||
id: UVec3Std,
|
||||
id: Vec3u,
|
||||
meta: &SerializedSimMeta,
|
||||
stimulus_e: &UnsizedArray<Vec3Std>,
|
||||
material: &UnsizedArray<M>,
|
||||
|
Reference in New Issue
Block a user