Code Monkey home page Code Monkey logo

glfw3webgpu's Issues

Merge Emscripten glfw surface logic into glfw3webgpu

Following the excellent tutorial series, in particular the Emscripten build walk-through:

Building for the web

It appears the branch for this specific step has its own version of glfw3webgpu which has logic (here) for getting a WGPUSurface when compiling with Emscripten. This extra code appears to be missing from this repository's glfw3webgpu.c.

When following the steps, with a setup that pulls the dependency from this repository, I naturally get an error at build time:

[  8%] Building C object _deps/glfw3webgpu-build/CMakeFiles/glfw3webgpu.dir/glfw3webgpu.c.o
/Users/.../build-web/_deps/glfw3webgpu-src/glfw3webgpu.c:65:10: fatal error: 'GLFW/glfw3native.h' file not found
   65 | #include <GLFW/glfw3native.h>
      |          ^~~~~~~~~~~~~~~~~~~~
1 error generated.

This issue is essentially just an ask to get this newer code merged into here for consistency!

Many thanks.

Harmonize naming with glfw PR

This whole repo is meant to eventually be merged into GLFW imho, through this PR. When pushing there, I realized that calling the function glfwCreateWindowWGPUSurface instead of glfwGetWGPUSurface is more in sync with its Vulkan counterpart.

This repo will eventually undergo this renaming, but I want to make sure whenever I do this that the guide gets undated accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.