commit | 628a1eb2a720bef3dd25bf352094c76a74514efe | [log] [tgz] |
---|---|---|
author | Kai Ninomiya <kainino@chromium.org> | Sat Jan 06 05:11:37 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Jan 06 05:11:37 2024 +0000 |
tree | 9344c2dc788fa26062c131575d25f94ff517c7c7 | |
parent | da63ac900e108f1eccbb031e03536a7df6899153 [diff] |
webgpu.h: Re-number enums, with defaulting: RenderPipelineDescriptor Part 3 implements the following sub-structures of RenderPipelineDescriptor. Defaulting is done in the constructor, which (in most cases) is called by a bounce through the backend. - PrimitiveState.topology: PrimitiveTopology = TriangleList - PrimitiveState.frontFace: FrontFace = CCW - PrimitiveState.cullMode: CullMode = None - StencilFaceState.compare: CompareFunction = Always - StencilFaceState.{fail,depthFail,pass}Op: StencilOperation = Keep - BlendComponent.operation: BlendOperation = Add - BlendComponent.srcFactor: BlendFactor = One - BlendComponent.dstFactor: BlendFactor = Zero - VertexBufferLayout.stepMode: VertexStepMode = Vertex Spot tests are added for all of these. They won't necessarily catch if the defaulting is _wrong_, but should crash if it is _missing_. Bug: dawn:2224 Change-Id: I0e3029af0646ffcd58f8b8c99f7050206916ca36 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/166822 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.