This commit is contained in:
parent
05c8a39bd8
commit
c40c5d97db
74 changed files with 864 additions and 670 deletions
|
|
@ -122,7 +122,7 @@ export class BrushPipeline {
|
|||
},
|
||||
fragment: {
|
||||
module: shaderModule,
|
||||
entryPoint: 'fragmentMrt',
|
||||
entryPoint: 'fragment',
|
||||
targets: [
|
||||
{
|
||||
format: TRAIL_SOURCE_TEXTURE_FORMAT,
|
||||
|
|
@ -166,7 +166,7 @@ export class BrushPipeline {
|
|||
this.segments.flush();
|
||||
}
|
||||
|
||||
public executeMultiTarget(
|
||||
public executeSource(
|
||||
commandEncoder: GPUCommandEncoder,
|
||||
sourceMapOut: GPUTextureView,
|
||||
timestampWrites?: GPURenderPassTimestampWrites
|
||||
|
|
@ -176,6 +176,7 @@ export class BrushPipeline {
|
|||
return false;
|
||||
}
|
||||
|
||||
recordBrushPassForE2e();
|
||||
const passEncoder = commandEncoder.beginRenderPass({
|
||||
colorAttachments: [{ view: sourceMapOut, loadOp: 'load', storeOp: 'store' }],
|
||||
timestampWrites,
|
||||
|
|
@ -194,3 +195,12 @@ export class BrushPipeline {
|
|||
this.uniforms.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
const recordBrushPassForE2e = (): void => {
|
||||
if (typeof window === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
const state = window as Window & { __fleetingGardenBrushPasses?: number };
|
||||
state.__fleetingGardenBrushPasses = (state.__fleetingGardenBrushPasses ?? 0) + 1;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue