         let pipeline = try renderer.request_pipeline("stencil_quadratic")
         encoder.setComputePipelineState(pipeline)
         
-        encoder.setBytes([UInt32(offset_x), UInt32(offset_y), UInt32(width)], length: 12, index: 0)
+        withUnsafeBytes(of: (UInt32(offset_x), UInt32(offset_y), UInt32(width))) { encoder.setBytes($0.baseAddress!, length: $0.count, index: 0) }
         encoder.setBuffer(_buffer, offset: 0, index: 1)
         encoder.setBuffer(output, offset: 0, index: 2)
         

        let pipeline = try renderer.request_pipeline("stencil_cubic")
        encoder.setComputePipelineState(pipeline)
        
        encoder.setBytes([UInt32(offset_x), UInt32(offset_y), UInt32(width)], length: 12, index: 0)
        encoder.setBuffer(_buffer, offset: 0, index: 1)
        encoder.setBuffer(output, offset: 0, index: 2)
        

        
        encoder.setComputePipelineState(pipeline)
        
        let parameter = FillStencilParameter(offset_x: UInt32(offset_x), offset_y: UInt32(offset_y), width: UInt32(width), antialias: UInt32(antialias), color: GPColor(color))
        withUnsafeBytes(of: parameter) { encoder.setBytes($0.baseAddress!, length: $0.count, index: 0) }
        encoder.setBuffer(stencil, offset: 0, index: 1)
        encoder.setBuffer(destination, offset: 0, index: 2)
        
