Skip to content

Commit 36c2dde

Browse files
committed
chore(🧹): Update deprecated TypeGPU APIs
1 parent 0dcf556 commit 36c2dde

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

‎apps/phoure-www/src/lib-filter/bicubicFilter.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const BicubicFilter = ({
197197

198198
return {
199199
perform() {
200-
const externalBindGroup = layout.populate({
200+
const externalBindGroup = root.createBindGroup(layout, {
201201
wrappingSampler,
202202
clampingSampler,
203203
texture: sourceTexture(),

‎apps/phoure-www/src/lib-phoure/menderStep.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export const MenderStep = ({ root, gBuffer, targetTexture }: Options) => {
301301
.withFragment(combinationEntryFn, { format: 'rgba8unorm' })
302302
.createPipeline();
303303

304-
const combinationBindGroup = combinationLayout.populate({
304+
const combinationBindGroup = root.createBindGroup(combinationLayout, {
305305
blurredTexture: gBuffer.upscaledView,
306306
mendedBuffer: mendedResultBuffer,
307307
});

‎apps/phoure-www/src/lib/GameEngine/gBufferDebugger.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function makeGBufferDebugger(
135135
.$name('GBuffer Debugger - pipeline')
136136
.with(
137137
layout,
138-
layout.populate({
138+
root.createBindGroup(layout, {
139139
blurredTex: gBuffer.upscaledView,
140140
auxTex: gBuffer.auxView,
141141
}),

‎apps/phoure-www/src/lib/GameEngine/postProcessingStep.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const PostProcessingStep = ({
6161
const textureView = context.getCurrentTexture().createView();
6262
passColorAttachment.view = textureView;
6363

64-
const externalBindGroup = layout.populate({
64+
const externalBindGroup = root.createBindGroup(layout, {
6565
sourceTexture: gBuffer.outRawRenderView,
6666
});
6767

‎apps/phoure-www/src/lib/GameEngine/sdfRenderer/sdfRenderer.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export function createSDFRenderer(options: SDFRendererOptions) {
319319

320320
// ---
321321

322-
const auxBindGroup = auxLayout.populate({
322+
const auxBindGroup = root.createBindGroup(auxLayout, {
323323
auxOutput: gBuffer.auxView,
324324
});
325325

@@ -355,7 +355,7 @@ export function createSDFRenderer(options: SDFRendererOptions) {
355355
layersBuffer.write(store.get(accumulatedLayersAtom));
356356
camera.update();
357357

358-
const mainBindGroup = mainLayout.populate({
358+
const mainBindGroup = root.createBindGroup(mainLayout, {
359359
previousRender: quarterResolution
360360
? gBuffer.inQuarterView
361361
: gBuffer.inRawRenderView,

0 commit comments

Comments
 (0)