Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OffscreenCanvas broken #1

Closed
arhik opened this issue Sep 21, 2022 · 4 comments
Closed

OffscreenCanvas broken #1

arhik opened this issue Sep 21, 2022 · 4 comments

Comments

@arhik
Copy link
Member

arhik commented Sep 21, 2022

Running triangleOffscreen.jl runs into OffscreenCanvas not defined error.

[ Info: Setting Log level : WGPULogLevel_Off
ERROR: LoadError: UndefVarError: OffscreenCanvas not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ ~/September2022/WGPU.jl/examples/triangleOffscreen.jl:39
 [3] include(fname::String)
   @ Base.MainInclude ./client.jl:476
 [4] top-level scope
   @ REPL[1]:1
in expression starting at /Users/arhik/September2022/WGPU.jl/examples/triangleOffscreen.jl:39

OS indenpendent error. Purely api issue.

@arhik
Copy link
Member Author

arhik commented Sep 21, 2022

https://github.com/dvijaha/WGPU.jl/blob/8d3a25b2bf5aa9af4df241dc3677b67fd7613ef5/src/offscreen.jl#L180 is the issue.

Commented out for some reason i dont remember.

@arhik
Copy link
Member Author

arhik commented Oct 20, 2022

OffscreenCanvas doesn't work anymore because glfw related file is load statically loaded based on platform. We need to design around this at some point.

@arhik
Copy link
Member Author

arhik commented Oct 20, 2022

since canvas takes an argument like WGPUCanvas we can pass OfflineCanvas to render offline. Thats actually the original choice we made.

@arhik
Copy link
Member Author

arhik commented Nov 13, 2023

1c986d3 fixes this

@arhik arhik closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant