docs.rs failed to build slank-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
slank
A rust version of the slang compiler, ready to be used by wgpu, vulkan or directx (or any graphics library really, i personally use wgpu).
Usage
Add slank to your [build-dependencies].
In your build.rs:
use ;
use Path;
Then in your main code:
let shader_bytes = include_slang!;
// optionally
from_bytes;
Features
There are two main features currently available:
download-slang- Slank downloads the latest slangc compiler from the GitHub releases and stores it in the user cache. The SLANG_DIR will be set to the directory of the slangc compiler.use-wgpu- Enables wgpu as a dependency and unlocks utility traits for wgpu.
Contribution
This is part of the larger dropbear-engine project, however that shouldn't stop you from contributing to this
repository. It is still missing a lot of different stuff, such as modules, more arguments and better Vulkan/DirectX
library utility support.
Your help is appreciated.