mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 14:43:31 +00:00
node: Add support for GPURenderPassDescriptor.maxDrawCount
Bug: None Change-Id: I5e2ff510ceaa09becf0f5f760d0d0f7bc1d0cb49 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112423 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
15e7f94b76
commit
25c0bdf2a9
@ -39,11 +39,15 @@ interop::Interface<interop::GPURenderPassEncoder> GPUCommandEncoder::beginRender
|
|||||||
Converter conv(env);
|
Converter conv(env);
|
||||||
|
|
||||||
wgpu::RenderPassDescriptor desc{};
|
wgpu::RenderPassDescriptor desc{};
|
||||||
|
wgpu::RenderPassDescriptorMaxDrawCount maxDrawCountDesc{};
|
||||||
|
desc.nextInChain = &maxDrawCountDesc;
|
||||||
|
|
||||||
// TODO(dawn:1250) handle timestampWrites
|
// TODO(dawn:1250) handle timestampWrites
|
||||||
if (!conv(desc.colorAttachments, desc.colorAttachmentCount, descriptor.colorAttachments) ||
|
if (!conv(desc.colorAttachments, desc.colorAttachmentCount, descriptor.colorAttachments) ||
|
||||||
!conv(desc.depthStencilAttachment, descriptor.depthStencilAttachment) ||
|
!conv(desc.depthStencilAttachment, descriptor.depthStencilAttachment) ||
|
||||||
!conv(desc.label, descriptor.label) ||
|
!conv(desc.label, descriptor.label) ||
|
||||||
!conv(desc.occlusionQuerySet, descriptor.occlusionQuerySet)) {
|
!conv(desc.occlusionQuerySet, descriptor.occlusionQuerySet) ||
|
||||||
|
!conv(maxDrawCountDesc.maxDrawCount, descriptor.maxDrawCount)) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user