fn render_update(&mut self) {
        self.resolution = self.context.get_facade().get_framebuffer_dimensions();
        info!(
            "time to resize framebuffer with dimensions {},{}",
            self.resolution.0, self.resolution.1
        );

        let ffff = UncompressedFloatFormat::F32F32F32F32;
        self.quad_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();

        self.depth_texture = DepthTexture2d::empty_with_format(
            self.context.get_facade(),
            DepthFormat::F32,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();

        self.bloom_filter_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();

        self.bloom_horz_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            (self.resolution.0) / BLUR_TEXTURE_DIVISOR,
            (self.resolution.1) / BLUR_TEXTURE_DIVISOR,
        )
        .unwrap();

        self.bloom_vert_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            (self.resolution.0) / BLUR_TEXTURE_DIVISOR,
            (self.resolution.1) / BLUR_TEXTURE_DIVISOR,
        )
        .unwrap();

        self.bloom_blend_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();

        self.lum_relative_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            UncompressedFloatFormat::F32,
            MipmapsOption::NoMipmap,
            512,
            512,
        )
        .unwrap();
    }
// render update is called when a dimensions resize of the facade occures
// recreates the 2D textures
render update is called when a dimensions resize of the facade occures
recreates the 2D textures
render update is called when a dimensions resize of the facade occures recreates the 2D textures
fn render_update(&mut self) {
        self.resolution = self.context.get_facade().get_framebuffer_dimensions();
        info!(
            "time to resize framebuffer with dimensions {},{}",
            self.resolution.0, self.resolution.1
        );
        let ffff = UncompressedFloatFormat::F32F32F32F32;
        self.quad_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();
        self.depth_texture = DepthTexture2d::empty_with_format(
            self.context.get_facade(),
            DepthFormat::F32,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();
        self.bloom_filter_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();
        self.bloom_horz_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            (self.resolution.0) / BLUR_TEXTURE_DIVISOR,
            (self.resolution.1) / BLUR_TEXTURE_DIVISOR,
        )
        .unwrap();
        self.bloom_vert_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            (self.resolution.0) / BLUR_TEXTURE_DIVISOR,
            (self.resolution.1) / BLUR_TEXTURE_DIVISOR,
        )
        .unwrap();
        self.bloom_blend_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            ffff,
            MipmapsOption::NoMipmap,
            self.resolution.0,
            self.resolution.1,
        )
        .unwrap();
        self.lum_relative_tex = Texture2d::empty_with_format(
            self.context.get_facade(),
            UncompressedFloatFormat::F32,
            MipmapsOption::NoMipmap,
            512,
            512,
        )
        .unwrap();
    }
fn render_update ( & mut self ) { self . resolution = self . context . get_facade ( ) . get_framebuffer_dimensions ( ) ; info ! ( " " self resolution 0 self resolution 1 ) ; let ffff = UncompressedFloatFormat :: F32F32F32F32 ; self . quad_tex = Texture2d :: empty_with_format ( self . context . get_facade ( ) , ffff , MipmapsOption :: NoMipmap , self . resolution . 0 , self . resolution . 1 , ) . unwrap ( ) ; self . depth_texture = DepthTexture2d :: empty_with_format ( self . context . get_facade ( ) , DepthFormat :: F32 , MipmapsOption :: NoMipmap , self . resolution . 0 , self . resolution . 1 , ) . unwrap ( ) ; self . bloom_filter_tex = Texture2d :: empty_with_format ( self . context . get_facade ( ) , ffff , MipmapsOption :: NoMipmap , self . resolution . 0 , self . resolution . 1 , ) . unwrap ( ) ; self . bloom_horz_tex = Texture2d :: empty_with_format ( self . context . get_facade ( ) , ffff , MipmapsOption :: NoMipmap , ( self . resolution . 0 ) / BLUR_TEXTURE_DIVISOR , ( self . resolution . 1 ) / BLUR_TEXTURE_DIVISOR , ) . unwrap ( ) ; self . bloom_vert_tex = Texture2d :: empty_with_format ( self . context . get_facade ( ) , ffff , MipmapsOption :: NoMipmap , ( self . resolution . 0 ) / BLUR_TEXTURE_DIVISOR , ( self . resolution . 1 ) / BLUR_TEXTURE_DIVISOR , ) . unwrap ( ) ; self . bloom_blend_tex = Texture2d :: empty_with_format ( self . context . get_facade ( ) , ffff , MipmapsOption :: NoMipmap , self . resolution . 0 , self . resolution . 1 , ) . unwrap ( ) ; self . lum_relative_tex = Texture2d :: empty_with_format ( self . context . get_facade ( ) , UncompressedFloatFormat :: F32 , MipmapsOption :: NoMipmap , 512 , 512 , ) . unwrap ( ) ; }
render update is called when a dimensions resize of the facade occures
recreates the 2D textures
render update is called when a dimensions resize of the facade occures recreates the 2D textures
&mut self