mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 14:13:39 +00:00
The parameters about vertex attribute were encapsulated in VertexAttributeDescriptor in web idl. This change construct this descriptor accordingly. BUG=dawn:107 Change-Id: Ia1c6e53af951d8f2a0c0b69bdca09291c2661e50 Reviewed-on: https://dawn-review.googlesource.com/c/4620 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Yunchao He <yunchao.he@intel.com>
Dawn glTF Viewer
This is a barebones glTF model viewer using the Dawn API. It is intended as a proof of concept for the API and is not a robust model viewer. It can load basic mesh/texture data from a few glTF sample models, such as:
- 2CylinderEngine
- BoxWithoutIndices
- Cesium Man
- Duck
- Monster
- VC (Virtual City)
Usage
build/examples/glTFViewer/glTFViewer path/to/Duck.gltf
build/examples/glTFViewer/glTFViewer path/to/Duck.gltf --backend metal
Screenshots
Duck:
VC (Virtual City):