/// <inheritdoc /> from IComponent public void Load() { ThrowIfDisposed(); if (program == null) { lock (ProgramStateLock) { if (program == null) { program = programBuilder.Build(); programBuilder = null; } } } this.vertexBuffer = this.vertexBufferBuilder.Build(); this.vertexBufferBuilder = null; }
/// <inheritdoc /> public void Load() { ThrowIfDisposed(); if (program == null) { lock (ProgramStateLock) { if (program == null) { program = programBuilder.Build(); programBuilder = null; } } } this.coloredTriangleBuffer = coloredTriangleBufferBuilder.Build(); this.coloredTriangleBufferBuilder = null; this.coloredLineBuffer = coloredLineBufferBuilder.Build(); this.coloredLineBufferBuilder = null; }