             return commandBuffer
         }()
         
-        cmGrayScale.commit()
-        cmGaussian.commit()
+        cmCompute.commit()
         cmRender.commit()
     }
 }

            print("VSS:draw texture not updated")
            return
        }
        let cmGrayScale:MTLCommandBuffer = {
            let commandBuffer = commandQueue.makeCommandBuffer()
            let encoder = commandBuffer.makeComputeCommandEncoder()
            encoder.setComputePipelineState(psGrayScale!)

            encoder.setTexture(textureOut0, at: 1)
            encoder.dispatchThreadgroups(threadGroupCount, threadsPerThreadgroup: threadGroupSize)
            encoder.endEncoding()

            guassian?.encode(commandBuffer: commandBuffer, sourceTexture: textureOut0!, destinationTexture: textureOut1!)
            return commandBuffer
        }()
