| Crates.io | supasim |
| lib.rs | supasim |
| version | 0.0.2 |
| created_at | 2025-08-16 23:37:14.980966+00 |
| updated_at | 2025-08-16 23:37:14.980966+00 |
| description | A compute-oriented GPU usage library |
| homepage | https://supasim.github.io/ |
| repository | https://github.com/supasim/supasim |
| max_upload_size | |
| id | 1798992 |
| size | 244,677 |
Compiling is a somewhat involved process.
All requirements are part of the vulkan sdk. The only dynamically linked component is DXC for compiling DirectX shaders.
This is required to use the wgpu backend, or to compile DXIL code for the shader library. Therefore, users seeking this
functionality should plan to ship a copy of dxc.dll and dxil.dll with such applications (dxil.dll isn't part of the vulkan
sdk so must be downloaded separately, such as from DXC github releases).
If you choose to use the vulkan sdk, you must set the environment variable VULKAN_SDK to the path where it was installed to. It is
your responsibility to make sure that dxc.dll and dxil.dll are on the system library search path if you use them. A build configured
to use these that cannot find them may not function properly.
Otherwise, the full list of dependencies are as follows:
Follow the setup instructions in the repositories corresponding to the used rust bindings for each of the above.
Features can be enabled by passing a command line argument of this form: --features="feature1,feature2". The available features for supasim are
wgpu - enables the wgpu backend as well as wgpu interop support (such as for memory sharing)vulkan - enables the raw vulkan backend for maximum performancecuda - currently unused, in the future will be used for cuda backendFeatures for supasim-kernels are:
msl-stable-out - enables writing stable MSL output. Requires SPIRV-Crosswgsl-out - enables writing wgsl for WebGPUdxil-out - enables writing dxil output. Note that HLSL output is always supportedopt-valid - enables extra optimizations or validation. Requires SPIRV-ToolsNote that supasim-kernels always supports writing SPIR-V. Also note that as wgpu and vulkan backends both only take
SPIR-V at the moment, no features need to be enabled for use with supasim.