Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndsol/volcanosamples
Volcano sample code to get started with Vulkan. Keep it simple, short and sweet.
https://github.com/ndsol/volcanosamples
android cplusplus-11 gplv3 graphics-library linux macos tutorial vulkan windows
Last synced: about 16 hours ago
JSON representation
Volcano sample code to get started with Vulkan. Keep it simple, short and sweet.
- Host: GitHub
- URL: https://github.com/ndsol/volcanosamples
- Owner: ndsol
- License: gpl-3.0
- Created: 2017-04-06T20:23:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-25T02:50:52.000Z (about 4 years ago)
- Last Synced: 2024-09-24T21:05:43.821Z (about 21 hours ago)
- Topics: android, cplusplus-11, gplv3, graphics-library, linux, macos, tutorial, vulkan, windows
- Language: C++
- Homepage:
- Size: 9.84 MB
- Stars: 36
- Watchers: 5
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Volcano](https://github.com/ndsol/volcano) Samples
Volcano Samples are an intermediate Vulkan tutorial. Click on Sample 1 for
an introduction.1. [![Screenshot](01glfw/screenshot.png) GLFW Vulkan application](01glfw/README.md)
1. ~~SDL Vulkan application~~ (Work in Progress)
1. [![Screenshot](01glfw/screenshot.png) Render To Disk](03rendertodisk/README.md)
1. [![Screenshot](04android/screenshot.png) Android Vulkan application](04android/README.md)
1. [![Screenshot](05indexbuffer/screenshot.png) The Index Buffer](05indexbuffer/README.md)
1. [![Screenshot](06threepipelines/screenshot.png) Pipelines](06threepipelines/README.md)
1. [![Screenshot](07mipmaps/screenshot.png) Mipmaps](07mipmaps/README.md)
1. [![Screenshot](08specialization/screenshot.png) Specialization Constants](08specialization/README.md)
1. [![Screenshot](05indexbuffer/screenshot.png) Full Screen](09fullscreen/README.md)
1. [![Screenshot](10cubemap/screenshot.png) Cube Map](10cubemap/README.md)
1. [![Screenshot](13instancing/screenshot.png) Instancing](13instancing/README.md)# Build Instructions
**VolcanoSamples pulls in [Volcano](https://github.com/ndsol/volcano)**
**for you.**To build samples 1-5, type:
```
git clone https://github.com/ndsol/VolcanoSamples
VolcanoSamples/build.cmd
```
> On Windows, first install [git](https://git-scm.org), python 3 and
> [Visual C++](01glfw/visual-studio-cli.png). then type:
> `VolcanoSamples\build.cmd`*Note: samples 6+ are built on demand. Each sample's README.md has instructions.*
### Toolkit
Lots of great tools offer an alternative view into how your app performs.
If you know of another great tool, please suggest it.* **Vulkan Validation layers:** generally you want the validation layers
enabled all the time. To set the environment variables, be sure to launch the
app from the same command prompt as the `set` or `export` that enabled
validation:Windows log is in volcano.log or Visual Studio's debug output:
```
set VK_LAYER_PATH=%~dp0\out\Debug\vulkan\explicit_layer.d
set VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_standard_validation
out/Debug/01glfw
```Mac and Linux log to the console:
```
export VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_standard_validation
out/Debug/01glfw
```On linux, be sure to set LD_LIBRARY_PATH first:
```
./build.cmd && export LD_LIBRARY_PATH=$PWD/out/Debug
```* [**AMD Radeon GPU Profiler**](https://gpuopen.com/rgp/)
If you have an AMD GPU, inspect each part of the GPU's operations.
* [**NVIDIA Nsight Graphics**](https://developer.nvidia.com/nsight-graphics)
If you have an NVIDIA GPU, you may be able to inspect each part of the GPU's
operations.On linux, a C++ frame capture may fail to build with this error:
`xcb/xcb_icccm.h: no such file or directory`.
**Resolution:** you need to "apt install libxcb-icccm4-dev".Copyright (c) 2017-2018 the Volcano Authors. All rights reserved.