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 } 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)