8bebb29a06
* Refactor window creation and size handling * Require pixel aspect ratio to be > 0 * Fix screen scaling when window is resized - Ensure the screen retains its correct pixel aspect ratio - Updated public API on `RenderPass` ... this will continue to be unstable until the initial release - Add build instructions for the internal shaders
642 B
642 B
Shaders
The GLSL shader source is not compiled as part of the normal cargo build process. This was a conscious decision sparked by the current state of the ecosystem; compiling GLSL-to-SPIR-V requires a C++ toolchain including CMake, which is an unacceptable constraint for a simple crate providing a pixel buffer.
If you need to modify the GLSL sources, you must also recompile the SPIR-V as well. This can be done with glslang
, glslc
, etc.
Compile shaders with glslangValidator
:
glslangValidator -V shader.frag && glslangValidator -V shader.vert
For mor information, see https://github.com/parasyte/pixels/issues/9