6f7749cce9
This as an API change to get closer to the direction in which WebGPU is headed. The API change in next.json caused a ton of files to be changed in the same commit to keep things compiling. API: the Framebuffer and RenderPass objects are now merged in a single RenderPassInfo that contains the attachments, loadOps and clear values for a BeginRenderPass command. The concept of subpass is removed. The RenderPass creation argument to RenderPipelines is replaced by explicitly setting the format of attachments for RenderPipeline. Validation: SetPipeline checks are changed to check that the attachments info set on a RenderPipeline matches the attachments of the render pass. Backends: Most changes are simplifications of the backends that no longer require and indirection to query the current subpass out of the render pass in BeginSubpass, and don't need to get the attachment info from a RenderPass when creating RenderPipelines. In the Vulkan backend, a VkRenderPass cache is added to reuse VkRenderPasses between RenderPassInfos and RenderPipelines. Tests and examples: they are updated with the simplified API. Tests specific to the Framebuffer and RenderPass objects were removed and validation tests for RenderPassInfo were added. Tested by running CppHelloTriangle on all backends, end2end tests on all platforms and all examples on the GL backend. |
||
---|---|---|
.. | ||
img | ||
Camera.inl | ||
README.md | ||
glTFViewer.cpp |
README.md
NXT glTF Viewer
This is a barebones glTF model viewer using the NXT 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):