samizdatco / skia-canvas

A GPU-accelerated 2D graphics environment for Node.js
MIT License
1.67k stars 63 forks source link

lavapipe is not a conformant vulkan implementation #115

Open kakarot-dev opened 1 year ago

kakarot-dev commented 1 year ago

The titled warning is being shown whenever i use loadImage or Canvas Ubuntu 20 Node 18 WARNING: lavapipe is not a conformant vulkan implementation, testing use only. Is there a way i can fix it?

samizdatco commented 1 year ago

Could you try setting the canvas object's gpu property to false and let me know if that fixes the error? Something like:

let canvas = new Canvas(),
    ctx = canvas.getContext("2d")

canvas.gpu = false

// ... the rest of your drawing code
kakarot-dev commented 1 year ago

well it stopped giving multiple warnings, but it gives the warning once!

samizdatco commented 1 year ago

Ha, progress! Can you successfully generate images with saveAs, toBuffer, etc?

kakarot-dev commented 1 year ago

Ha, progress! Can you successfully generate images with saveAs, toBuffer, etc?

i dont know about saveAs, but yes im successfully able to generate images with toBuffer