3d670506e3
This patch is the first one to descriptorze texture view. In this patch, we completely remove TextureViewBuilder and add the entry point CreateDefaultTextureView for creating a texture view on a non-array 2D texture using the same type and format. Texture view descriptors and 2D array texture views will be supported in the next patch. BUG=dawn:1, dawn:16 Change-Id: Ibd2a0bcf02cbb567a98d2faaaaa897eff2c062e5 Reviewed-on: https://dawn-review.googlesource.com/1440 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> |
||
---|---|---|
.. | ||
img | ||
Camera.inl | ||
README.md | ||
glTFViewer.cpp |
README.md
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):