mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
Document coordinate systems in README
I had to do a bit of digging to find information about coordinate systems in wgpu (asking on Matrix). This commit adds a table of coordinate systems to help clarify the issue. The table comes from the DX12 backend documentation of gfx-rs: https://github.com/gfx-rs/gfx/tree/master/src/backend/dx12 Remove trailing newlines from README Host coordinate images locally
This commit is contained in:
parent
d5a477fe60
commit
fd33ac36d4
@ -61,3 +61,11 @@ cargo test -p wgpu -- <name-of-test>
|
|||||||
```
|
```
|
||||||
|
|
||||||
If you are a user and want a way to help contribute to wgpu, we always need more help writing test cases.
|
If you are a user and want a way to help contribute to wgpu, we always need more help writing test cases.
|
||||||
|
|
||||||
|
## Coordinate Systems
|
||||||
|
|
||||||
|
wgpu uses the coordinate systems of DX and Metal:
|
||||||
|
|
||||||
|
Render | Depth | Texture
|
||||||
|
-------|-------|--------
|
||||||
|
![render_coordinates](./etc/render_coordinates.png) | ![depth_coordinates](./etc/depth_coordinates.png) | ![texture_coordinates](./etc/texture_coordinates.png)
|
||||||
|
BIN
etc/depth_coordinates.png
Normal file
BIN
etc/depth_coordinates.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
etc/render_coordinates.png
Normal file
BIN
etc/render_coordinates.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
etc/texture_coordinates.png
Normal file
BIN
etc/texture_coordinates.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue
Block a user