Skip to content

Commit

Permalink
parted out slab into crabslab
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 23, 2023
1 parent b24ca95 commit 4627101
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions crates/crabslab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div align="center">
<h1>
<img src="crabslab.png" /><br />
</h1>

<blockquote>
Slabcraft for crabs.
</blockquote>
</div>

## what
`crabslab` is a slab implementation focused on CPUs and GPUs.

## why
### Opinion
Working with shaders is much easier using a slab.

## how
`crabslab` includes:
* a few traits - `Slab`, `GrowableSlab` and `SlabItem`
* a derive macro for `SlabItem`
* a few structs for working with various slabs - `Id` `Array` and `Offset`
* a helper struct `CpuSlab`
* a feature-gated helper for using slabs with `wgpu` - `WgpuBuffer`
Binary file added crates/crabslab/crabslab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4627101

Please sign in to comment.