09f7c8acb9
spirv_backend: support: remove unused helpers
2022-07-26 13:36:42 -07:00
6e4133db4d
spirv backend: simplify the adapt.rs indexing by using the constructors previously created
2022-07-26 13:29:39 -07:00
68d8cdde42
move some of the VolumeSample instantiation into step.rs, out of cpu.rs
...
we can go further: the IndexDim type itself can be moved into step.rs -- maybe?
if it were to wrap a generic flat-indexable thing -- either a slice, or
an array ref.
2022-07-26 01:15:53 -07:00
92ab220110
spirv: test: remove legacy cpu-only tests
...
these tests are all covered by the backend-agnostic tests
2022-07-26 00:54:33 -07:00
972e0ba4fb
spirv: test: add TODO for moving the cpu tests to be backend-agnostic
2022-07-25 22:38:10 -07:00
d68c1b20be
spirv: test: port the last rgpu test to be backend-agnostic
2022-07-25 22:37:05 -07:00
a969969449
spirv: test: port mh_ferromagnet tests to backend-agnostic
2022-07-25 22:36:46 -07:00
04c6d05ab0
spirv: test: port mb_ferromagnet tests to be backend-agnostic
2022-07-25 22:28:43 -07:00
dc49cddc97
spirv: test: port conductor tests to backend_agnostic
2022-07-25 22:23:56 -07:00
3fa2c22438
spirv: test: port RngStimulus tests to both backends
2022-07-25 22:19:44 -07:00
a8be7279b3
spirv sim: port rgpu smoke tests to test both Gpu and Cpu backend generically
2022-07-25 21:52:08 -07:00
fee9a1c216
implement a CpuBackend for running the "spirv" simulations
...
UNTESTED
2022-07-25 17:58:22 -07:00
47e11474d2
parameterize SpirvSim over R: Real
2022-07-25 14:49:32 -07:00
a1784da1cf
spirv: parameterize over the SimBackend
2022-07-25 14:27:09 -07:00
b4ee42cfdf
spirv: rename WgpuData -> WgpuBackend
2022-07-25 14:11:58 -07:00
cf42ec2dd1
spirv: SimBackend: remove the Array3 use
2022-07-25 14:11:01 -07:00
567f088f98
spirv: hide the gpu ops behind a SimBackend trait
2022-07-25 13:59:28 -07:00
ff1d9867ab
parameterize WgpuData over the M type
2022-07-25 13:15:41 -07:00
0801a0dca3
spirv: remove bindings.rs
...
the one function which was in here previously is just inlined into
gpu.rs
2022-07-25 13:07:35 -07:00
7cf8ed9a7b
spirv: gpu.rs no longer references the super SpirvSim type
2022-07-25 13:06:00 -07:00
8c8e707407
spirv: move the stimulus application out of gpu.rs
2022-07-25 12:52:35 -07:00
5b8978f0ec
spirv: instantiate the backend in mod.rs, not gpu.rs
2022-07-25 12:47:39 -07:00
bd066331de
spirv: fix indendation
2022-07-25 12:45:07 -07:00
cfbd5547cb
spirv: move indexable check into the gpu.rs backend
2022-07-25 12:44:02 -07:00
d1765554fc
spirv/gpu.rs: don't hard-code Vec3<f32> size
...
in the future this may become parameterized
2022-07-25 12:36:50 -07:00
38a47a0054
split most of the GPU spirv sim stuff into its own file
2022-07-25 12:29:45 -07:00
2032e90688
spirv_bindings: remove the IntoFfi/FromFfi stuff
2022-07-25 00:55:43 -07:00
8a16a5ce30
lift SimMeta from spirv_backend -> coremem_types
2022-07-25 00:52:11 -07:00
15aaa3e893
move spirv_backend/sim.rs -> coremem_types/step.rs
2022-07-25 00:40:27 -07:00
5fec965549
Optional: derive fmt and serde traits based on feature flag
2022-07-25 00:35:57 -07:00
5490634fe7
move Optional
out of spirv_backend and into coremem_types
2022-07-25 00:35:04 -07:00
9c7ef7ec88
spirv_backend: split the array operations out of sim.rs -> adapt.rs
2022-07-25 00:28:03 -07:00
8ab89640f2
spirv_backend: split out some of the spirv entry point adapters into adapt.rs
2022-07-25 00:21:20 -07:00
ebd2762d7a
spirv: sim: adjust so Step{E,H}Context
does not use ArrayHandle
...
the specific way to accomplish this is touchy.
see <https://github.com/EmbarkStudios/rust-gpu/issues/312#issuecomment-738824131 >:
> So I'd say placing any of the spirv_std::storage_class types into an aggregate (including capturing it in a closure) is unsupported for now
in our specific case, we can't return a tuple where one element is a `&`
to a spirv Input, and another element is a `&mut` to a spirv Output.
when we have a struct, it can enclose either ONLY inputs,
or ONLY outputs -- not a mix.
i'm not 100% on how the Serialized stuff works, since it appears to
violate that. i guess that's exactly what this ArrayHandle stuff
achieves though.
2022-07-24 22:57:41 -07:00
05f5f75dd3
spirv: remove the ArrayHandleMut artifacts in Step{H,E}Context
...
this will make it easier to reuse these blocks on the CPU side.
2022-07-24 22:17:44 -07:00
b70cafa205
spirv support: fix an overly-constrained lifetime parameter in the array index fn
2022-07-24 21:51:20 -07:00
7286d272b9
move coremem/mat -> coremem/sim/legacy/mat
2022-07-24 18:31:11 -07:00
d0fcd9b657
hide legacy.rs behind a legacy/ dir
2022-07-24 18:20:58 -07:00
2f0e52a09b
split SimState out of sim/mod.rs
-> sim/legacy.rs
2022-07-24 18:19:26 -07:00
c8a082d2a1
wavefront: port to spirv driver
2022-07-24 17:45:13 -07:00
e62dc495f1
spirv: remove most of the IntoFfi/IntoLib stuff
2022-07-24 01:04:31 -07:00
193df5415f
spirv: remove the last nontrivial Material IntoFfi/FromLib
2022-07-24 00:35:47 -07:00
4bd081ca7a
spirv bindings: remove From<Static>
conversion
2022-07-24 00:14:38 -07:00
940d86d86e
remove unnecessary Ffi impls for AdaptStateless
2022-07-24 00:02:00 -07:00
ce00281c09
fix typo: 'electic' -> 'electric'
2022-07-23 23:58:24 -07:00
048eb7dbef
geom: don't re-export coremem_types::vec
2022-07-23 18:57:17 -07:00
d813405cb1
spirv bindings: make compatible with more than just strictly f32
2022-07-23 18:24:09 -07:00
3f5160a8ea
replace the CPU MBFerromagnet
with a generic wrapper around any stateless coremem_types type
2022-07-23 18:10:49 -07:00
d246b97b5e
coremem: remove unused SpirvMBFerromagnet
2022-07-23 17:12:30 -07:00
67872de16f
clean up some unused code/imports
2022-07-23 16:27:43 -07:00