Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: Support `.with(override, value)` on guarded compute pipelines

オープン
#3,134 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start at TgpuGuardedComputePipeline and root.createGuardedComputePipeline, then compare the existing pipeline.with() handling for override values and bind groups. Add the guarded overload and verify that pipeline.with(scale, 2).dispatchThreads(128) works, including the corresponding immediate-variable behavior if it is covered alongside overrides.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Follow-up to #3131.

Problem

Compute and render pipelines accept override values with pipeline.with(override, value). Guarded compute pipelines, created with root.createGuardedComputePipeline(), don't. Their .with() only accepts a bind group.

The current workaround is to go through the underlying pipeline:

guarded.pipeline.with(scale, 2);

But then dispatchThreads() can't be used, since that's only on the guarded pipeline.

Proposal

Add a .with(override, value) overload to TgpuGuardedComputePipeline that passes the value to the underlying pipeline:

const scale = tgpu['~unstable'].override(d.f32, 1);

const pipeline = root.createGuardedComputePipeline((x) => {
  'use gpu';
  // ... uses scale.$
});

pipeline.with(scale, 2).dispatchThreads(128);

The same could be done for immediate variables, which are also missing there.

主要言語
TypeScript
スター
3.3k
フォーク
140
平均マージ
3日 21時間
マージ済み PR(30日)
68

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

software-mansion/TypeGPU のほかの issue

software-mansion/TypeGPU の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。