dawn-cmake/examples
Corentin Wallez 6f7749cce9 Change render passes from multi to single pass.
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.
2018-05-16 11:18:14 -04:00
..
glTFViewer Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
Animometer.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
CHelloTriangle.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
CMakeLists.txt clang/gcc: enable a bunch more warnings (#91) 2017-07-21 17:00:22 -07:00
ComputeBoids.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloCompute.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloDepthStencil.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloIndices.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloInstancing.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloTriangle.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloUBO.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
HelloVertices.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
RenderToTexture.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
SampleUtils.cpp Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00
SampleUtils.h Change render passes from multi to single pass. 2018-05-16 11:18:14 -04:00