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

Graphical output has "padded" data when pipelining in a non matching texture size

オープン
#709 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

まず、リンク先の CodeSandbox をブラウザーで実行し、kernelA のパイプライン化された出力を graphical kernelB に渡した後の canvas の寸法を比較します。提供された JavaScript の例に関係するパイプラインと graphical kernel の処理を追跡します。canvas の寸法が、パディングされたものではなく graphical kernel の出力 [100, 100] と一致すれば完了です。

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

説明

A GIF or MEME to give some spice of the internet

What is wrong?

When pipelining in another kernel with a different size to the kernel that is marked graphical, the canvas becomes bigger by the same factor.

Where does it happen?

In the browser.

How do we replicate the issue?

https://codesandbox.io/s/lucid-wilson-5eb3d

let kernalA = gpu.createKernel(
  function () {
    return this.thread.x / 100;
  },
  {
    output: [100, 100, 10],
    pipeline: true
  }
);

let kernalB = gpu.createKernel(
  function (pars) {
    this.color(pars[0][this.thread.y][this.thread.x], 0, 0);
  },
  {
    output: [100, 100],
    graphical: true
  }
);

kernalB(kernalA());

How important is this (1-5)?

6(9)

Expected behavior (i.e. solution)

The dimensions of the canvas should match the output of the kernel marked as graphical.

Other Comments

主要言語
JavaScript
スター
15.5k
フォーク
663
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

gpujs/gpu.js のほかの issue

gpujs/gpu.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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