From 2859d034f653e0635008fac69305ce5bf8ebdadf Mon Sep 17 00:00:00 2001 From: Christian Reichlin Date: Mon, 22 Jun 2026 16:19:04 +0200 Subject: [PATCH 1/2] TryBeginRenderPass, stencilReadOnly is set correctly --- wgpu/command_encoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/command_encoder.go b/wgpu/command_encoder.go index 638b107..97fcfed 100644 --- a/wgpu/command_encoder.go +++ b/wgpu/command_encoder.go @@ -90,7 +90,7 @@ func (p *CommandEncoder) TryBeginRenderPass(descriptor *RenderPassDescriptor) (* depthStencilAttachment.stencilLoadOp = C.WGPULoadOp(descriptor.DepthStencilAttachment.StencilLoadOp) depthStencilAttachment.stencilStoreOp = C.WGPUStoreOp(descriptor.DepthStencilAttachment.StencilStoreOp) depthStencilAttachment.stencilClearValue = C.uint32_t(descriptor.DepthStencilAttachment.StencilClearValue) - depthStencilAttachment.stencilReadOnly = cBool(descriptor.DepthStencilAttachment.DepthReadOnly) + depthStencilAttachment.stencilReadOnly = cBool(descriptor.DepthStencilAttachment.StencilReadOnly) desc.depthStencilAttachment = depthStencilAttachment } From 40c208be1025090642e72b8b5540f82d92318d09 Mon Sep 17 00:00:00 2001 From: Christian Reichlin Date: Mon, 22 Jun 2026 16:34:49 +0200 Subject: [PATCH 2/2] Surface.Configure desiredMaximumFrameLatency was hardcoded to 1 if not 0 --- wgpu/surface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/surface.go b/wgpu/surface.go index 8786052..7067f32 100644 --- a/wgpu/surface.go +++ b/wgpu/surface.go @@ -75,7 +75,7 @@ func (g *Surface) Configure(device *Device, config *SurfaceConfiguration) { chain: C.WGPUChainedStruct{ sType: C.WGPUSType_SurfaceConfigurationExtras, }, - desiredMaximumFrameLatency: 1, + desiredMaximumFrameLatency: C.uint32_t(config.DesiredMaximumFrameLatency), } pinner.Pin(nextInChain)