gpujs / gpujs/gpu.js

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

Aperta
#709 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
15.5k
Fork
663
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

![A GIF or MEME to give some spice of the internet](https://memecreator.org/static/images/memes/5340230.jpg)

## *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

```javascript
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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by running the linked CodeSandbox in a browser and compare the canvas dimensions after passing the pipelined output from kernelA into graphical kernelB. Trace the pipeline and graphical-kernel handling involved in the provided JavaScript example; done means the canvas dimensions match the graphical kernel's [100, 100] output instead of being padded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
computer-graphics, frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.