https://github.com/jsoulier/fluid_simulation
Fluid Simulation using SDL3 GPU with compute shaders
https://github.com/jsoulier/fluid_simulation
2d 3d compute-shader compute-shaders cpp example examples fluid-simulation glsl gpu sdl sdl3 shaders
Last synced: 5 months ago
JSON representation
Fluid Simulation using SDL3 GPU with compute shaders
- Host: GitHub
- URL: https://github.com/jsoulier/fluid_simulation
- Owner: jsoulier
- License: unlicense
- Created: 2025-07-12T19:17:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T01:45:21.000Z (6 months ago)
- Last Synced: 2025-08-15T01:16:29.178Z (6 months ago)
- Topics: 2d, 3d, compute-shader, compute-shaders, cpp, example, examples, fluid-simulation, glsl, gpu, sdl, sdl3, shaders
- Language: C++
- Homepage:
- Size: 16.5 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Fluid Simulation
https://github.com/user-attachments/assets/853d471b-9394-48f2-8a3c-065d3707d43f
Implementation of [Fluid Simulation for Dummies](https://mikeash.com/pyblog/fluid-simulation-for-dummies.html) using the new SDL3 GPU API with compute shaders
### Building
#### Windows
Install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/) for glslc
```bash
git clone https://github.com/jsoulier/fluid_simulation --recurse-submodules
cd fluid_simulation
mkdir build
cd build
cmake ..
cmake --build . --parallel 8 --config Release
cd bin
./fluid_simulation.exe
```
#### Linux
```bash
git clone https://github.com/jsoulier/fluid_simulation --recurse-submodules
cd fluid_simulation
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel 8
cd bin
./fluid_simulation
```