[
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: eliemichel\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\nlfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry\npolar: # Replace with a single Polar username\nbuy_me_a_coffee: # Replace with a single Buy Me a Coffee username\ncustom: ['https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=DNEEF8GDX2EV6&currency_code=EUR&source=url']\n"
  },
  {
    "path": ".github/workflows/cmake.yml",
    "content": "name: CMake\n\n# Controls when the workflow will run\non:\n  push:\n  pull_request:\n  workflow_dispatch:\n\nenv:\n  BUILD_TYPE: Release\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  build:\n    strategy:\n      matrix:\n        os: [ubuntu-latest, windows-latest, macos-latest]\n        include:\n        - os: ubuntu-latest\n          install-deps: |\n            sudo apt-get update -y\n            sudo apt-get install -y xorg-dev\n        \n    runs-on: ${{ matrix.os }}\n\n    steps:\n    - uses: actions/checkout@v3\n    \n    # Cancel if no CMakeLists is found\n    - name: Look for CMakeLists file\n      id: check-cmakelists\n      run: |\n        if test -f CMakeLists.txt; then\n          echo \"cmakelists-exists=true\" >> \"$GITHUB_OUTPUT\"\n        fi\n      shell: bash\n\n    - name: Install dependencies\n      if: ${{ matrix.install-deps && steps.check-cmakelists.outputs.cmakelists-exists }}\n      run: ${{ matrix.install-deps }}\n\n    - name: Configure CMake\n      if: ${{ steps.check-cmakelists.outputs.cmakelists-exists }}\n      run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}\n\n    - name: Build\n      if: ${{ steps.check-cmakelists.outputs.cmakelists-exists }}\n      run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\nCopyright (c) 2022 Elie Michel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<div align=\"center\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/eliemichel/LearnWebGPU/main/images/webgpu-dark.svg\">\n    <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/eliemichel/LearnWebGPU/main/images/webgpu-light.svg\">\n    <img alt=\"Learn WebGPU Logo\" src=\"images/webgpu-dark.svg\" width=\"200\">\n  </picture>\n\n  <a href=\"https://github.com/eliemichel/LearnWebGPU\">LearnWebGPU</a> &nbsp;|&nbsp; <a href=\"https://github.com/eliemichel/WebGPU-Cpp\">WebGPU-C++</a> &nbsp;|&nbsp; <a href=\"https://github.com/eliemichel/WebGPU-distribution\">WebGPU-distribution</a><br/>\n  <a href=\"https://github.com/eliemichel/glfw3webgpu\">glfw3webgpu</a> &nbsp;|&nbsp; <a href=\"https://github.com/eliemichel/sdl2webgpu\">sdl2webgpu</a> &nbsp;|&nbsp; <a href=\"https://github.com/eliemichel/sdl3webgpu\">sdl3webgpu</a>\n  \n  <a href=\"https://discord.gg/2Tar4Kt564\"><img src=\"https://img.shields.io/static/v1?label=Discord&message=Join%20us!&color=blue&logo=discord&logoColor=white\" alt=\"Discord | Join us!\"/></a>\n</div>\n\nLearnWebGPU - Code\n==================\n\nThis repository contains the reference code base accompanying the [Learn WebGPU](https://eliemichel.github.io/LearnWebGPU) web book.\n\nEach step of the book is stored in a different branch. You can look at them incrementally, or compare them using GitHub's branch comparator.\n\n**NB** From `step030` on, there is a *vanilla* version that only uses `webgpu.h` and the default version relies on the shallow C++ wrapper `webgpu.hpp` generated by [WebGPU-C++](https://github.com/eliemichel/WebGPU-Cpp).\n\nBuilding\n--------\n\n```\ngit checkout <the branch of your choice>\ncmake . -B build\ncmake --build build\n```\n\nThen run either `./build/App` (linux/macOS/MinGW) or `build\\Debug\\App.exe` (MSVC).\n"
  }
]