Crates.io | kiyo |
lib.rs | kiyo |
version | 0.0.5 |
source | src |
created_at | 2024-08-03 21:25:28.748755 |
updated_at | 2024-10-19 12:02:01.989964 |
description | Lightweight compute shader playground |
homepage | |
repository | https://github.com/angelocarly/kiyo |
max_upload_size | |
id | 1324550 |
size | 139,196 |
A lightweight compute shader engine using ash.
Kiyo provides a simple configuration interface to run compute shaders. The following features are implemented:
For any feedback or requests you are very welcome to create issues or contact me directly!
You can find examples in ./examples/ and in my toy project repository.
These variables are accessible in the shader and provided by Kiyo itself, do not overwrite these as bugs will be introduced.
NUM_IMAGES
- The amount of accessible storage images.WORKGROUP_SIZE
- The workgroup size at which the shaders should run.Make sure you have the Vulkan SDK installed.
Then build and run kiyo
:
git clone https://github.com/angelocarly/kiyo.git
cd kiyo
cargo run --example simple-render
Renderdoc!
Mac only has XCode's Metal debugger. In order to use it you need to provide the following environment variables:
VULKAN_SDK=$HOME/VulkanSDK/<version>/macOS
DYLD_FALLBACK_LIBRARY_PATH=$VULKAN_SDK/lib
VK_ICD_FILENAMES=$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json
VK_LAYER_PATH=$VULKAN_SDK/share/vulkan/explicit_layer.d
Then you should be able to launch your kiyo application and capture a frame.
This video does a nice job explaining the process.