Skip to content

Commit

Permalink
drawable in Compute
Browse files Browse the repository at this point in the history
  • Loading branch information
gadirom committed Jul 26, 2022
1 parent acafede commit c77484e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/MetalBuilder/MetalPasses/ComputePass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ final class ComputePass: MetalPass{
}
computeCommandEncoder.setTexture(texture, index: tex.index)
}
if let index = component.drawableTextureIndex{
computeCommandEncoder.setTexture(drawable?.texture, index: index)
}
//Set threads configuration
try setGrid(drawable)
//Dispatch
Expand Down

0 comments on commit c77484e

Please sign in to comment.