@typegpu/gl: support texture.write() options
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 47/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Start in packages/typegpu-gl at WebGLTexture.write() and compare its behavior with the WebGPU texture write path, especially the handling of 'render' textures. The issue lists WebGL 2 mappings for several options and calls out framebuffer blitting for resampling; identify which options can be supported and which need a specific error. Done means options work where supported and unsupported ones are named in the error; the issue does not name tests to run.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
On a root from @typegpu/gl, any texture.write() call that passes an options object throws:
WebGL fallback does not support texture.write() options yet.
Code that passes options on WebGPU, such as { premultipliedAlpha: false, fit: 'clip' } (added in #2641), has to check isGLRoot(root) and call write differently on each backend:
if (isGLRoot(root)) {
texture.write(source);
} else {
texture.write(source, { premultipliedAlpha: false, fit: 'clip' });
}
This defeats the point of a drop-in fallback.
Proposal
Support the options in WebGLTexture.write() in packages/typegpu-gl, or at least accept and ignore those that already match WebGL's behavior. Most of them map onto WebGL 2 directly:
premultipliedAlpha:UNPACK_PREMULTIPLY_ALPHA_WEBGLflipY:UNPACK_FLIP_Y_WEBGLorigin/mipLevel: thexoffset/yoffset/levelarguments oftexSubImage2DsourceOriginandfit: 'clip':UNPACK_SKIP_PIXELS/UNPACK_SKIP_ROWS/UNPACK_ROW_LENGTHfor buffers, or a sizedtexSubImage2Dfor image sourcesfit: 'fill'/ resampling: a blit through a framebuffer, as the WebGPU path does for 'render' textures
Options that can't be supported should throw a specific error naming the unsupported option rather than rejecting every options object.
Found in @typegpu/gl 0.12.6. Related: #2641, #2858, #1637.
- Lingua principale
- TypeScript
- Stelle
- 3.3k
- Fork
- 135
- Merge medio
- 4g 1h
- PR unite (30g)
- 64
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di software-mansion/TypeGPU
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
software-mansion/TypeGPU#3219 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
software-mansion/TypeGPU#3213 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
software-mansion/TypeGPU#3008 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
software-mansion/TypeGPU#2948 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
docs: Fix camera orientation in "Monocular Light Injection" exampleForse già presa @pullfrog l’ha presa 60 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
software-mansion/TypeGPU#2890 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di software-mansion/TypeGPU
Issue simili
-
area:workflow bug ready-for-human
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
fil-donadoni/tolaria#6108 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/rocketmq-dashboard#7234 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vitest-dev/vitest#11656 ·
I maintainer di solito rispondono entro 1 giorno
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
redhat-developer/rhdh-plugin-export-overlays#4460 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ehmpathy/rhachet-roles-bhrain#655 ·
I maintainer di solito rispondono entro 1 giorno