Internal documentation: control flow between different layers #4021
Labels
area: documentation
Documentation for crate items, public or private
type: enhancement
New feature or request
The big picture architecture diagram has a useful set of arrows. However, when I have contributed to
wgpu
, I've sometimes gotten lost in a maze of similarly-named functions and types in multiple libraries; particularly, #3052 involved a lot of trial and error, simply changing stuff and seeing what compile errors appeared.I'd like to request that someone familiar with the architecture create a narrower-focused diagram, which specifically lists the types (various
Context
s?) and function calls involved in a Rust-user-facing operation (wgpu::Foo::bar()
) passing throughwgpu-core
andwgpu-hal
all the way to backend-specific code, so that if, for example, someone wants to pass additional information through those layers, they can understand what all the layers that need to be changed are, and thus discover the constraints in play before they start tinkering. This document might also discuss how backend dispatch works, to make it clear what code might be not being executed on the developer's platform and thus needing additional attention.The text was updated successfully, but these errors were encountered: