This commit is contained in:
parent
05c8a39bd8
commit
c40c5d97db
74 changed files with 863 additions and 669 deletions
|
|
@ -20,7 +20,7 @@ export class AgentGenerationPipeline {
|
|||
|
||||
private readonly bindGroupLayout: GPUBindGroupLayout;
|
||||
private readonly uniforms: GPUBuffer;
|
||||
private readonly bindGroupCache = createBindGroupCache<GPUBuffer, GPUBuffer>(
|
||||
private readonly bindGroupCache = createBindGroupCache<[GPUBuffer, GPUBuffer]>(
|
||||
(active, inactive) =>
|
||||
this.device.createBindGroup({
|
||||
layout: this.bindGroupLayout,
|
||||
|
|
@ -130,7 +130,14 @@ export class AgentGenerationPipeline {
|
|||
},
|
||||
});
|
||||
|
||||
const compactionModule = smartCompile(device, compactionSchema, compactionShader);
|
||||
const compactionModule = smartCompile(
|
||||
device,
|
||||
compactionSchema,
|
||||
compactionShader.replaceAll(
|
||||
'__CLEAR_COMPACTED_TAIL_STRIDE__',
|
||||
AgentGenerationPipeline.CLEAR_COMPACTED_TAIL_STRIDE.toString()
|
||||
)
|
||||
);
|
||||
|
||||
this.compactionPipeline = device.createComputePipeline({
|
||||
layout: device.createPipelineLayout({
|
||||
|
|
|
|||
Loading…
Reference in a new issue