mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Add missing optional label member to descriptors
This CL adds missing optional label members to all descriptors. It is not used yet but needed from the WebGPU side. Bug: dawn:22 Change-Id: I103870f9207eed8168bc2245294888af4e1edd9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11720 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
3fd022ef60
commit
277d2e15d5
@@ -31,6 +31,7 @@ void init() {
|
||||
{
|
||||
DawnSwapChainDescriptor descriptor;
|
||||
descriptor.nextInChain = nullptr;
|
||||
descriptor.label = nullptr;
|
||||
descriptor.implementation = GetSwapChainImplementation();
|
||||
swapchain = dawnDeviceCreateSwapChain(device, &descriptor);
|
||||
}
|
||||
@@ -59,6 +60,7 @@ void init() {
|
||||
|
||||
{
|
||||
DawnRenderPipelineDescriptor descriptor;
|
||||
descriptor.label = nullptr;
|
||||
descriptor.nextInChain = nullptr;
|
||||
|
||||
descriptor.vertexStage.nextInChain = nullptr;
|
||||
@@ -89,6 +91,7 @@ void init() {
|
||||
|
||||
DawnPipelineLayoutDescriptor pl;
|
||||
pl.nextInChain = nullptr;
|
||||
pl.label = nullptr;
|
||||
pl.bindGroupLayoutCount = 0;
|
||||
pl.bindGroupLayouts = nullptr;
|
||||
descriptor.layout = dawnDeviceCreatePipelineLayout(device, &pl);
|
||||
@@ -126,6 +129,7 @@ void frame() {
|
||||
DawnTexture backbuffer = dawnSwapChainGetNextTexture(swapchain);
|
||||
DawnTextureView backbufferView = dawnTextureCreateView(backbuffer, nullptr);
|
||||
DawnRenderPassDescriptor renderpassInfo;
|
||||
renderpassInfo.label = nullptr;
|
||||
DawnRenderPassColorAttachmentDescriptor colorAttachment;
|
||||
{
|
||||
colorAttachment.attachment = backbufferView;
|
||||
|
||||
Reference in New Issue
Block a user