software-mansion / software-mansion/TypeGPU
feat: Destructuring objects in 'use gpu' functions
Open
@vende11s is already working on this.
Since Aug 17, 2026.
enhancement
good first human issue
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 122
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 34
Description
Currently we have to do this:
const padWLog2 = filterLayout.$.params.padWLog2;
const padWMask = filterLayout.$.params.padWMask;
const padHLog2 = filterLayout.$.params.padHLog2;
const padHMask = filterLayout.$.params.padHMask;
We want to be able to do this:
const { padWLog2, padWMask, padHLog2, padHMask } = filterLayout.$.params;
Which should generate:
let padWLog2 = ¶ms.padWLog2;
let padWMask = ¶ms.padWMask;
let padHLog2 = ¶ms.padHLog2;
let padHMask = ¶ms.padHMask;
let support
We want to be able to do this:
let { padWLog2, padWMask, padHLog2, padHMask } = filterLayout.$.params;
Which should verify that all spread properties are ephemeral, and generate:
var padWLog2 = params.padWLog2;
var padWMask = params.padWMask;
var padHLog2 = params.padHLog2;
var padHMask = params.padHMask;
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.