src/sysgpu: move mach-sysgpu@d6ed118f54c4784f7ce01b70fc1b94f887fae1a8 package to here
Helps hexops/mach#1165 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e38a441b69
commit
e7b2ebef70
97 changed files with 51261 additions and 0 deletions
30
src/sysgpu/conventions.md
Normal file
30
src/sysgpu/conventions.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
### Object ordering
|
||||
|
||||
Backends should be a single file with object in the following order:
|
||||
|
||||
- Instance
|
||||
- Adapter
|
||||
- Surface
|
||||
- SurfaceCapabilities
|
||||
- Device
|
||||
- SwapChain
|
||||
- Buffer
|
||||
- Texture
|
||||
- TextureView
|
||||
- Sampler
|
||||
- BindGroupLayout
|
||||
- BindGroup
|
||||
- PipelineLayout
|
||||
- ShaderModule
|
||||
- ComputePipeline
|
||||
- RenderPipeline
|
||||
- CommandBuffer
|
||||
- CommandEncoder
|
||||
- ComputePassEncoder
|
||||
- RenderPassEncoder
|
||||
- RenderBundle
|
||||
- RenderBundleEncoder
|
||||
- Queue
|
||||
- QuerySet
|
||||
|
||||
Utility objects (e.g. StateTracker should come after the closest object that "owns" them.
|
||||
Loading…
Add table
Add a link
Reference in a new issue