Skip to content

Commit 3611a12

Browse files
mhawrylukiwoplaza
authored andcommitted
chore: Deprecate unstable vertexLayout (#870)
1 parent 0bf3746 commit 3611a12

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

packages/typegpu/src/core/root/init.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,7 @@ class TgpuRootImpl
214214
) {
215215
super(() => this, []);
216216

217-
this['~unstable'] = {
218-
nameRegistry: this.nameRegistry,
219-
commandEncoder: this.commandEncoder,
220-
221-
createUniform: this.createUniform.bind(this),
222-
createMutable: this.createMutable.bind(this),
223-
createReadonly: this.createReadonly.bind(this),
224-
225-
createTexture: this.createTexture.bind(this),
226-
227-
with: this.with.bind(this),
228-
withCompute: this.withCompute.bind(this),
229-
withVertex: this.withVertex.bind(this),
230-
231-
flush: this.flush.bind(this),
232-
};
217+
this['~unstable'] = this;
233218
}
234219

235220
get commandEncoder() {

packages/typegpu/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export const tgpu = {
3333
fragmentFn,
3434
vertexFn,
3535
computeFn,
36+
/**
37+
* @deprecated This feature is now stable, use tgpu.vertexLayout.
38+
*/
3639
vertexLayout,
3740
derived,
3841
slot,

0 commit comments

Comments
 (0)