mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Fix RenderPassDescriptor to be extensible.
BUG=dawn:22 Change-Id: Ib9c2cd3259db0e07fa02134ce6d0d5d75a24546c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11901 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
720988d878
commit
5f53d5302f
@ -951,6 +951,7 @@
|
|||||||
|
|
||||||
"render pass descriptor": {
|
"render pass descriptor": {
|
||||||
"category": "structure",
|
"category": "structure",
|
||||||
|
"extensible": true,
|
||||||
"members": [
|
"members": [
|
||||||
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
||||||
{"name": "color attachment count", "type": "uint32_t"},
|
{"name": "color attachment count", "type": "uint32_t"},
|
||||||
|
@ -129,6 +129,7 @@ void frame() {
|
|||||||
DawnTexture backbuffer = dawnSwapChainGetNextTexture(swapchain);
|
DawnTexture backbuffer = dawnSwapChainGetNextTexture(swapchain);
|
||||||
DawnTextureView backbufferView = dawnTextureCreateView(backbuffer, nullptr);
|
DawnTextureView backbufferView = dawnTextureCreateView(backbuffer, nullptr);
|
||||||
DawnRenderPassDescriptor renderpassInfo;
|
DawnRenderPassDescriptor renderpassInfo;
|
||||||
|
renderpassInfo.nextInChain = nullptr;
|
||||||
renderpassInfo.label = nullptr;
|
renderpassInfo.label = nullptr;
|
||||||
DawnRenderPassColorAttachmentDescriptor colorAttachment;
|
DawnRenderPassColorAttachmentDescriptor colorAttachment;
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user