I'm a bit confused about the graphite dawn backend. After building skia with graphite and dawn build option on, it seems that there's already a dawn_native packed in skia.lib. The question is how can I use the dawn_native in it to create a context associated with glfw window?
Currently I've tried to use the dawn's headers and directly link with skia.lib(without linking to libdawn_native) and with webgpu_glfw for the glfw functionalities. However, things went wrong. I got a text validation failure which says:
[graphite] ** ERROR ** validate_backend_texture failed: backendTex.info = Dawn(format=0x00000017,usage=0x00000010,sampleCount=1,mipmapped=0,protected=0); colorType = 4
Besides, when building Debug builds, constructing skgpu::graphite::BackendTexture with WGPUTexture clears the whole stack, making everything 0, which is supreme weird.
Is there any simple example projects that's constructed with skia graphite, dawn and glfw that I can learn from? Any help'll be appreciated.