Shader SDK (WIN)
This tutorial demonstrates How-to set up Beam Shader SDK on the Windows operating system.
The Shader SDK's current version can be characterized as an early developer preview, with a high possibility of encountering unusual issues and bugs.
To follow along, make sure you have Microsoft Visual Studio installed. For this tutorial, I am using 2022 edition, but the community edition will work.
Additionally, Python 3.x must be installed and available in the systems path. Verify Python is installed by entering
python in the command line.
- Clone Shader SDK repository.
- Open Developer Command Prompt for VS. This can be done from either Tools Menu within the VS IDE or by finding an entry in the Start menu items
- Change directory to the location of the shader-sdk and run:
This will operation will install and build all the necessary components.
- Launch the Command Prompt, creating a new folder for your Shader project. We will use the
vaultfolder for this tutorial:
wasi-sdkfolders, and enter the following:
- To initialize the structure of your Shader, enter
shade create_project <project name>:
<project name>, use
c:\Code\shader-sdk\shade create_project vault
If initialized correctly, your Shader project structure should resemble the following:
In Visual Studio, locate Open A Local Folder from the Start menu:
Navigate to your Shader project folder, click Select Folder to initialize a CMake project, creating
CMakeLists.json files will be seen in the Solution Explorer for your Shader project:
wasm32-Release build configuration:
This will build
.wasm files following this folder structure:
If you are encountering errors, try the following before reaching out to support:
- Open Windows Explorer and delete the
- In the Project menu, select Delete Cache and Reconfigure.
You can begin coding your Shader project!