File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
<div align =" center " >
2
- <h1 >
3
- <img src="crabslab.png" /><br />
4
- </h1 >
5
-
6
- <blockquote >
7
- Slabcraft for crabs.
8
- </blockquote >
2
+ <img src="crabslab.png" alt="slabcraft for crabs" width="512" />
9
3
</div >
10
4
11
5
## what
12
- ` crabslab ` is a slab implementation focused on CPUs and GPUs.
6
+ ` crabslab ` is a slab implementation focused on marshalling data from CPUs to GPUs.
13
7
14
8
## why
15
9
### Opinion
16
10
Working with shaders is much easier using a slab.
17
11
18
12
## how
19
13
` crabslab ` includes:
20
- * a few traits - ` Slab ` , ` GrowableSlab ` and ` SlabItem `
14
+ * a few traits:
15
+ - ` Slab `
16
+ - ` GrowableSlab `
17
+ - ` SlabItem `
21
18
* a derive macro for ` SlabItem `
22
- * a few structs for working with various slabs - ` Id ` ` Array ` and ` Offset `
19
+ * a few structs for working with various slabs
20
+ - ` Id `
21
+ - ` Array `
22
+ - ` Offset `
23
23
* a helper struct ` CpuSlab `
24
24
* a feature-gated helper for using slabs with ` wgpu ` - ` WgpuBuffer `
25
+ - [ example] ( src/wgpu_slab.rs#L344 )
You can’t perform that action at this time.
0 commit comments