node: Implement support for depth-clip-control

Bug: None
Change-Id: If62e2963917b1f2a94e415ce2c4c22b14317779a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112601
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Corentin Wallez 2022-12-05 12:04:16 +00:00 committed by Dawn LUCI CQ
parent e2cdafbf8a
commit 0d6b1fc45f
1 changed files with 7 additions and 0 deletions

View File

@ -1042,6 +1042,13 @@ bool Converter::Convert(wgpu::BlendState& out, const interop::GPUBlendState& in)
bool Converter::Convert(wgpu::PrimitiveState& out, const interop::GPUPrimitiveState& in) {
out = {};
if (in.unclippedDepth) {
wgpu::PrimitiveDepthClipControl* depthClip = Allocate<wgpu::PrimitiveDepthClipControl>();
depthClip->unclippedDepth = true;
out.nextInChain = depthClip;
}
return Convert(out.topology, in.topology) &&
Convert(out.stripIndexFormat, in.stripIndexFormat) &&
Convert(out.frontFace, in.frontFace) && Convert(out.cullMode, in.cullMode);