Clean up
This commit is contained in:
parent
ea0304356f
commit
7c70f15e49
65 changed files with 1122 additions and 1906 deletions
|
|
@ -53,8 +53,7 @@ export class SimulationFrameRenderer {
|
|||
this.pipelines.agentPipeline.execute(
|
||||
commandEncoder,
|
||||
this.textures.trailMapA.getTextureView(),
|
||||
this.textures.trailMapB.getTextureView(),
|
||||
this.textures.influenceMapA.getTextureView()
|
||||
this.textures.trailMapB.getTextureView()
|
||||
);
|
||||
this.pipelines.diffusionPipeline.execute(
|
||||
commandEncoder,
|
||||
|
|
@ -68,21 +67,25 @@ export class SimulationFrameRenderer {
|
|||
this.textures.sourceMapA.getTextureView()
|
||||
);
|
||||
canvasReadbackRequest?.encode(commandEncoder, canvasTexture);
|
||||
|
||||
this.device.queue.submit([commandEncoder.finish()]);
|
||||
canvasReadbackRequest?.afterSubmit();
|
||||
|
||||
const postRenderCommandEncoder = this.device.createCommandEncoder();
|
||||
this.pipelines.diffusionPipeline.execute(
|
||||
commandEncoder,
|
||||
postRenderCommandEncoder,
|
||||
this.textures.sourceMapA.getTextureView(),
|
||||
this.textures.sourceMapB.getTextureView(),
|
||||
this.textures.sourceMapB.getSize()
|
||||
);
|
||||
this.pipelines.brushEffectDiffusionPipeline.execute(
|
||||
commandEncoder,
|
||||
postRenderCommandEncoder,
|
||||
this.textures.influenceMapA.getTextureView(),
|
||||
this.textures.influenceMapB.getTextureView(),
|
||||
this.textures.influenceMapB.getSize()
|
||||
);
|
||||
|
||||
this.device.queue.submit([commandEncoder.finish()]);
|
||||
canvasReadbackRequest?.afterSubmit();
|
||||
this.device.queue.submit([postRenderCommandEncoder.finish()]);
|
||||
this.textures.swapBrushEffectMaps();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue