{"id":26364779,"url":"https://github.com/lightandlight/wgpu-mandelbrot","last_synced_at":"2026-07-02T17:09:05.469Z","repository":{"id":78647984,"uuid":"555757406","full_name":"LightAndLight/wgpu-mandelbrot","owner":"LightAndLight","description":"Rendering the Mandelbrot set using wgpu","archived":false,"fork":false,"pushed_at":"2024-08-10T00:30:35.000Z","size":6074,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T04:56:22.402Z","etag":null,"topics":["fractals","graphics","wgpu"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LightAndLight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-22T08:54:33.000Z","updated_at":"2024-08-10T00:30:38.000Z","dependencies_parsed_at":"2023-07-26T09:12:20.370Z","dependency_job_id":null,"html_url":"https://github.com/LightAndLight/wgpu-mandelbrot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LightAndLight/wgpu-mandelbrot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightAndLight%2Fwgpu-mandelbrot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightAndLight%2Fwgpu-mandelbrot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightAndLight%2Fwgpu-mandelbrot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightAndLight%2Fwgpu-mandelbrot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LightAndLight","download_url":"https://codeload.github.com/LightAndLight/wgpu-mandelbrot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightAndLight%2Fwgpu-mandelbrot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35055656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fractals","graphics","wgpu"],"created_at":"2025-03-16T19:28:19.396Z","updated_at":"2026-07-02T17:09:05.429Z","avatar_url":"https://github.com/LightAndLight.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- omit in toc --\u003e\n# `wgpu-mandelbrot`\n\nA realtime mandelbrot renderer using [wgpu](https://github.com/gfx-rs/wgpu).\n\nI used this as a practise project to learn some modern graphics fundamentals via `wgpu`.\n\n\u003c!-- omit in toc --\u003e\n## Contents\n\n* [Screenshots](#screenshots)\n* [Usage](#usage)\n  * [Running](#running)\n  * [Controls](#controls)\n* [Architecture](#architecture)\n\n## Screenshots\n\n\u003cimg src=\"images/screenshot-1.png\" alt=\"A section of the Mandelbrot set, with a green-to-white\ncolour palette.\"/\u003e\n\n\u003cimg src=\"images/screenshot-2.png\" alt=\"A section of the Mandelbrot set, with a green-to-white\ncolour palette.\"/\u003e\n\n## Usage\n\n### Running\n\n`nix develop -c cargo run --release`\n\n### Controls\n\n| Input             | Action                        |\n| ----------------- | ----------------------------- |\n| Left click        | Center image on clicked point |\n| Scroll wheel up   | Zoom in                       |\n| Scroll wheel down | Zoom out                      |\n\n## Architecture\n\nPixel [iterations](https://en.wikipedia.org/wiki/Plotting_algorithms_for_the_Mandelbrot_set#Unoptimized_na%C3%AFve_escape_time_algorithm)\nand colours are stored in host memory (RAM).\n\nRough per-frame breakdown:\n\n1. The remaining unescaped pixels are sent to the GPU\n1. A compute shader iterates each pixel\n1. The results are copied to host-available memory\n1. The CPU partitions the results into newly-escaped and unescaped pixels\n1. The newly-escaped pixels are used to re-compute the pixel colours\n1. The new pixel colours are sent to the GPU\n1. A fragment shader colours each pixel","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightandlight%2Fwgpu-mandelbrot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightandlight%2Fwgpu-mandelbrot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightandlight%2Fwgpu-mandelbrot/lists"}