mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Remove indirection for colorAttachments
This is to match the work in progress webgpu.h header. BUG=dawn:22 Change-Id: I1371cda1b7666de8eb8283fa7e5da935d17e1d52 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9381 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
0c4d75931a
commit
a838c7d497
@@ -128,7 +128,6 @@ void frame() {
|
||||
DawnTextureView backbufferView = dawnTextureCreateView(backbuffer, nullptr);
|
||||
DawnRenderPassDescriptor renderpassInfo;
|
||||
DawnRenderPassColorAttachmentDescriptor colorAttachment;
|
||||
DawnRenderPassColorAttachmentDescriptor* colorAttachments = {&colorAttachment};
|
||||
{
|
||||
colorAttachment.attachment = backbufferView;
|
||||
colorAttachment.resolveTarget = nullptr;
|
||||
@@ -136,7 +135,7 @@ void frame() {
|
||||
colorAttachment.loadOp = DAWN_LOAD_OP_CLEAR;
|
||||
colorAttachment.storeOp = DAWN_STORE_OP_STORE;
|
||||
renderpassInfo.colorAttachmentCount = 1;
|
||||
renderpassInfo.colorAttachments = &colorAttachments;
|
||||
renderpassInfo.colorAttachments = &colorAttachment;
|
||||
renderpassInfo.depthStencilAttachment = nullptr;
|
||||
}
|
||||
DawnCommandBuffer commands;
|
||||
|
||||
Reference in New Issue
Block a user