JuliaWGPU / WGPUCore.jl

julia wgpu-native core abstraction library
MIT License
6 stars 2 forks source link

Error running the triangle example #15

Closed VarLad closed 7 months ago

VarLad commented 8 months ago

Hey! There seem to be some issues in the examples/triangle.jl file

ERROR: LoadError: MethodError: no method matching getCanvas(::Symbol)

Closest candidates are:
  getCanvas(::Val{:FallbackCanvas})
   @ WGPUCore ~/.julia/packages/WGPUCore/RwBiz/src/canvas.jl:57
  getCanvas()
   @ WGPUCore ~/.julia/packages/WGPUCore/RwBiz/src/canvas.jl:53

Stacktrace:
 [1] top-level scope
   @ /tmp/triangle.jl:36
in expression starting at /tmp/triangle.jl:36
arhik commented 7 months ago

platform and other details of julia and WGPUCanvas versions you are using will help. Will look into as soon as I get those information.

arhik commented 7 months ago

@VarLad Found the issue. You will have to include WGPUCanvas library for this to work.

arhik commented 7 months ago

@VarLad You can close this if its solved.

VarLad commented 7 months ago

Works now!