[Migrated] Operator Overlaoding support
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 3.4k
- フォーク
- 126
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Issue automatically imported from old repo: https://github.com/EmbarkStudios/rust-gpu/issues/1149
Old labels: t: enhancement
Originally creatd by Makogan on 2024-05-01T21:25:10Z
Currently, it seems that rustgpu does not support operator overloading (there is no ops module under spirv_std, and none of the examples seem to do this).
This is useful because although linear algebra is the most popular mathematical representation for transformations in computer graphics, it is not the only option.
For example, I currently use projective geometric algebra for skin animations. To do this I need to define a multivector type on the shader that is capable of addition, multiplication, scalar multiplication...
Of course, one can work around the issue by defining methods, but this is less ergonomic than having operators.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず spirv_std 領域を調査し、特に報告されている ops モジュールの欠如を確認して、演算子の使用方法に関する既存の例と比較してください。カスタム shader 型で、メソッドベースの回避策を必要とせず、加算、乗算、スカラー乗算などの演算子を使用できるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100