We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad0c7c4 commit a22de2eCopy full SHA for a22de2e
1 file changed
wgpu/to_js.go
@@ -175,14 +175,13 @@ func (g *RenderPassColorAttachment) toJS() any {
175
176
func (g *RenderPassDepthStencilAttachment) toJS() any {
177
return map[string]any{
178
- "view": pointerToJS(g.View),
179
- "depthLoadOp": enumToJS(g.DepthLoadOp),
180
- "depthStoreOp": enumToJS(g.DepthStoreOp),
181
- "depthClearValue": g.DepthClearValue,
182
- "depthReadOnly": g.DepthReadOnly,
183
- // TODO(kai): these cause errors if passed
184
- // "stencilLoadOp": enumToJS(g.StencilLoadOp),
185
- // "stencilStoreOp": enumToJS(g.StencilStoreOp),
+ "view": pointerToJS(g.View),
+ "depthLoadOp": enumToJS(g.DepthLoadOp),
+ "depthStoreOp": enumToJS(g.DepthStoreOp),
+ "depthClearValue": g.DepthClearValue,
+ "depthReadOnly": g.DepthReadOnly,
+ "stencilLoadOp": enumToJS(g.StencilLoadOp),
+ "stencilStoreOp": enumToJS(g.StencilStoreOp),
186
"stencilClearValue": g.StencilClearValue,
187
"stencilReadOnly": g.StencilReadOnly,
188
}
0 commit comments