librashader is a preprocessor, compiler and runtime for RetroArch 'slang'
shaders, rewritten in pure Rust. It supports all modern graphics runtimes,
including wgpu, Vulkan, OpenGL 3.3+ and 4.6 (with DSA), Direct3D 11,
Direct3D 12, and Metal.
librashader implements the entire RetroArch shader pipeline and is highly
compatible with existing shaders, e.g. the slang-shaders from libretro.
===> The following configuration options are available for librashader-0.12.1:
DOCS=on: Build and/or install documentation
EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings
The calling code has to define the following preprocessor constants in order to
make the requested runtimes accessible:
LIBRA_RUNTIME_OPENGL or
LIBRA_RUNTIME_VULKAN
devel/librashader: Update 0.10.1 => 0.11.0
Port changes:
* Improve readability by putting USE_GITHUB and its related variables
into its own block. Also put the CARGO_FEATURES on separate lines.
* Remove "stable" from CARGO_FEATURES. This has become the default
upstream and is a no-op to ensure backwards-compatibility.
* Remove obsolete patch for big-endian architectures. This fix is
included in the updated spirv-cross2 crate.
Changelog:
https://github.com/SnowflakePowered/librashader/releases/tag/librashader-v0.11.0
PR: 295606
Reported by: Stefan Schlosser <bsdcode@disroot.org> (maintainer)
Approved by: osa, vvd (Mentors, implicit)
devel/librashader: update to 0.5.1
Changes:
https://github.com/SnowflakePowered/librashader/releases/tag/librashader-v0.5.0https://github.com/SnowflakePowered/librashader/releases/tag/librashader-v0.5.1
Version 0.5.0 bumps the ABI to 2, and is thus ABI-incompatible with versions of
librashader prior to 0.5.0. Trying to load this version of librashader will fail
if the application only supports ABI 1.
Upstream's librashader-build-script doesn't do more than to compile the package
librashader-capi and to move the resulting files around. Therefore the port uses
the standard do-build target from the ports framework by setting CARGO_FEATURES
and CARGO_BUILD_ARGS appropriately instead.
This standardization also allows us to drop the DEBUG port option. Generating a
debug build is now controlled by setting WITH_DEBUG, see also Mk/Uses/cargo.mk.
The port now only compiles the OpenGL and Vulkan runtimes by specifying the
appropriate CARGO_FEATURES. This excludes compiling the unneeded Metal and
DirectX runtimes.
PR: 282547
MFH: no (ABI break)
Mk/Uses/cargo.mk: Remove cross-compilation options for Rust-based ports
Reasons:
* Port build shouldn't use cross-compilation mode
because it buids for the same architecture.
* RUSTFLAGS isn't passed to the build of all or some Rust ports
in the cross-compilation mode.
Essential changes:
* Remove the CARGO_BUILD_TARGET make variable.
* Remove CARGO_BUILD_TARGET and CARGO_TARGET_* from CARGO_ENV.
* Update many ports that used CARGO_BUILD_TARGET.
* Build paths now don't include the architecture triplet part.
Immadiate benefits:
(Only the first 15 lines of the commit message are shown above )