You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: background.rs
    path of file: ./repos/mk48/engine/renderer2d/src
    
    the code of the file until where you have to start completion: // SPDX-FileCopyrightText: 2021 Softbear, Inc.
// SPDX-License-Identifier: AGPL-3.0-or-later

use crate::camera_2d::Camera2d;
use glam::{uvec2, vec2, IVec2, UVec2, Vec2
    
    fn new(renderer: &Renderer) -> Self {
        // Compile framebuffer shader (alternative to WebGL2's blitFramebuffer).
        let shader = renderer.create_shader(
            include_str!("shaders/framebuffer.vert"),
            include_str!("shaders/framebuffer.frag"),
        );

        // Use zero background colors because the real shader will be compiled before copying to the
        // screen.

        let linear_frame = Framebuffer::new(renderer, [0; 4], true);
        let linear_valid = false;
        let scrolled_frame = Framebuffer::new(renderer, [0; 4], false);
        let scroll = UVec2::ZERO;

        let read_buffer = TriangleBuffer::new(renderer);
        let subpixel_buffer = TriangleBuffer::new(renderer);
        let write_buffer = TriangleBuffer::new(renderer);
        let write_some = false;

        Self {
            empty: true,
            linear_frame,
            linear_valid,
            read_buffer,
            scroll,
            scrolled_frame,
            shader,
            subpixel_buffer,
            write_buffer,
            write_some,
        }
    }