Skip to content

Commit

Permalink
add more Release functions on js
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Sep 6, 2024
1 parent ec49236 commit d7ffa75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgpu/compute_pass_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ func (g ComputePassEncoder) DispatchWorkgroups(workgroupCountX, workgroupCountY,
func (g ComputePassEncoder) End() {
g.jsValue.Call("end")
}

func (g ComputePassEncoder) Release() {} // no-op
2 changes: 2 additions & 0 deletions wgpu/compute_pipeline_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ type ComputePipeline struct {
func (g ComputePipeline) toJS() any {
return g.jsValue
}

func (g ComputePipeline) Release() {} // no-op

0 comments on commit d7ffa75

Please sign in to comment.