Go to file
2022-11-14 01:49:51 -05:00
.idea reflect: clean up public reflect API a little 2022-11-11 01:44:41 -05:00
librashader gl: start work on frame history 2022-11-14 00:14:05 -05:00
librashader-preprocess reflect: add reflection crate 2022-10-23 02:36:41 -04:00
librashader-presets gl: start work on frame history 2022-11-14 00:14:05 -05:00
librashader-reflect gl: clean up the huge lib.rs file 2022-11-14 01:49:51 -05:00
librashader-runtime-dx11 gl: start work on frame history 2022-11-14 00:14:05 -05:00
librashader-runtime-gl gl: clean up the huge lib.rs file 2022-11-14 01:49:51 -05:00
naga@9df19a0ca7 reflect: some cursed experiments 2022-10-25 01:47:41 -04:00
target fmt: run clippy 2022-11-11 01:53:02 -05:00
test hlsl: implement hlsl reflection 2022-11-07 00:25:11 -05:00
.gitignore preset: consider scale when parsing xy scale 2022-10-20 23:11:23 -04:00
.gitmodules reflect: some cursed experiments 2022-10-25 01:47:41 -04:00
Cargo.lock gl: clean up the huge lib.rs file 2022-11-14 01:49:51 -05:00
Cargo.toml gl: add name mapping to gl compiler 2022-11-09 01:11:25 -05:00
README.md gl: clean up the huge lib.rs file 2022-11-14 01:49:51 -05:00

librashader

A preprocessor, compiler, and runtime for RetroArch 'slang' shaders, rewritten in pure Rust.

Heavily WIP.

License

There is not yet a functioning implementation of librashader but this section outlines its licensing goals in contrast to RetroArch.

While librashader is an independent reimplementation of the RetroArch shader pipeline, referencing the RetroArch source code was indispensable to its creation. As it is therefore considered a derivative work, the core parts of librashader such as the preprocessor, the preset parser, the reflection library, and the runtimes, are all licensed under GPLv3.

The librashader C API, i.e. its headers and definitions, not its implementation in librashader_capi, are unique to librashader and are more permissively licensed, and may allow you to use librashader in your permissively licensed or proprietary project.

While the code for librashader_capi (librashader.so and rashader.dll) is still under GPLv3, you may use librashader in a non-GPL work by linking against the MIT licensed librashader_ld, which implements the librashader C API, and thunks its calls to any librashader.so or rashader.dll library found in the load path, provided that librashader.so or rashader.dll are distributed under the restrictions of GPLv3.

Note that if your project is not compatible with GPLv3, you can not distribute librashader.so or rashader.dll alongside your project, only librashader-ld.so or rashader-ld.dll, which will do nothing without a librashader implementation in the load path. The end user must obtain the implementation of librashader themselves.