Add tiny UI

This commit is contained in:
Andras Schmelczer 2023-04-30 11:27:26 +01:00
commit 6a752a57e9
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
30 changed files with 627 additions and 210 deletions

View file

@ -1,4 +1,4 @@
import { smartCompile } from '../../utils/smart-compile';
import { smartCompile } from '../../utils/webgpu/smart-compile';
import { CommonParameters } from '../common-parameters';
import { AGENT_SIZE_IN_BYTES, Agent } from './agent';
import { AgentSettings } from './agent-settings';
@ -133,4 +133,9 @@ export class AgentPipeline {
this.previousTrailMapOut = trailMapOut;
}
}
public destroy() {
this.uniforms.destroy();
this.agentsBuffer.destroy();
}
}