init
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
/* Copyright (c) 2019-2024, Arm Limited and Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 the "License";
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "rendering/render_pipeline.h"
|
||||
#include "scene_graph/components/camera.h"
|
||||
#include "timer.h"
|
||||
#include "vulkan_sample.h"
|
||||
|
||||
/**
|
||||
* @brief Using framebuffer compression to reduce bandwidth
|
||||
*/
|
||||
class AFBCSample : public vkb::VulkanSampleC
|
||||
{
|
||||
public:
|
||||
AFBCSample();
|
||||
|
||||
virtual ~AFBCSample() = default;
|
||||
|
||||
virtual bool prepare(const vkb::ApplicationOptions &options) override;
|
||||
|
||||
virtual void update(float delta_time) override;
|
||||
|
||||
private:
|
||||
vkb::sg::Camera *camera{nullptr};
|
||||
|
||||
virtual void draw_gui() override;
|
||||
|
||||
void recreate_swapchain();
|
||||
|
||||
bool afbc_enabled_last_value{false};
|
||||
|
||||
bool afbc_enabled{false};
|
||||
|
||||
std::chrono::system_clock::time_point start_time;
|
||||
};
|
||||
|
||||
std::unique_ptr<vkb::VulkanSampleC> create_afbc();
|
||||
Reference in New Issue
Block a user