Apache License 2.0

项目介绍

MaikKlein/rlsl 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前获得 553 个 Star、13 次 Fork。

仓库全名
MaikKlein/rlsl
开源许可证
Apache License 2.0
Star 数
553
Fork 数
13
未关闭 Issue
41

README 摘要

Rlsl - Rust Like Shading Language Deprecated in favor of rust-gpu What is Rlsl? Rlsl can compile a subset of Rust to SPIR-V. You can read more about the limitations here. Rlsl targets the logical addressing model of SPIR-V. The Logical addressing model means pointers are abstract, having no physical size or numeric value. In this mode, pointers can only be created from existing objects, and they cannot be stored…

完整内容见 GitHub 原始 README 或本页 。

常见问题

rlsl 用什么语言开发?

主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前有 553 个 Star。

rlsl 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 rlsl 的源码?

可以直接克隆仓库:git clone https://github.com/MaikKlein/rlsl.git,默认分支为 master;安装与运行步骤见仓库 README。

rlsl 最近还在维护吗?

仓库最近一次更新为 2020年10月22日,当前有 41 个未关闭 Issue;Star 数为 553,可作为社区活跃度的参考。

关于

Rust to SPIR-V compiler

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
580
价值分
333
活跃状态
归档

语言占比

GLSL
Rust
Shell

README

Rlsl - Rust Like Shading Language

Deprecated in favor of rust-gpu

Join the chat at https://gitter.im/MaikKlein/rlsl

What is Rlsl?

Rlsl can compile a subset of Rust to SPIR-V. You can read more about the limitations here.

Rlsl targets the logical addressing model of SPIR-V.

The Logical addressing model means pointers are abstract, having no physical size or numeric value. In this mode, pointers can only be created from existing objects, and they cannot be stored into an object, unless additional capabilities, e.g., VariablePointers, are declared to add such functionality.

Features

  • Supports cargo
  • Multiple entry points can be defined in the same SPIR-V module
  • Currently supports Vertex, Fragment and Compute shaders
  • Shader code can run on the CPU because rlsl is a subset of Rust
  • Reflection TODO
  • Support library for interop between Rust and rlsl for uniforms (std140, std420) TODO

Installation

TODO

How?

RUSTC=rlsl cargo build

compile

How to install rlsl

Not ready to be used. Anything might happen

git clone https://github.com/MaikKlein/rlsl.git

Make sure you have both rustup and xargo installed.

cargo install-rlsl

Run tests

cd rlsl-test
cargo +rlsl test

Blog

  1. What is RLSL
  2. Milestone 1

Want to help?

Contribute

The project currently does not accept any contributions yet.

  • Rlsl can not be easily built by anyone
  • There is no documentation
  • Debugging tools are almost non existent
  • There is no infrastructure for testing
  • No guide level explanation for contributions

Rlsl will start to accept contributions after those issues are properly addressed.

Community

Want to chat? Join us on gitter.

Feel free to open an issue at any time.

评论

暂无评论