Crafter.Graphics/interfaces/Crafter.Graphics-RenderPass.cppm

35 lines
1.1 KiB
Text
Raw Normal View History

2026-03-09 20:10:19 +01:00
/*
Crafter®.Graphics
Copyright (C) 2026 Catcrafts®
2026-05-01 23:35:37 +02:00
catcrafts.net
2026-03-09 20:10:19 +01:00
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
2026-05-01 23:35:37 +02:00
License version 3.0 as published by the Free Software Foundation;
2026-03-09 20:10:19 +01:00
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
2026-05-01 23:35:37 +02:00
module;
2026-05-18 02:07:48 +02:00
#ifndef CRAFTER_GRAPHICS_WINDOW_DOM
2026-05-01 23:35:37 +02:00
#include "vulkan/vulkan.h"
2026-05-18 02:07:48 +02:00
#endif // !CRAFTER_GRAPHICS_WINDOW_DOM
2026-05-01 23:35:37 +02:00
export module Crafter.Graphics:RenderPass;
2026-05-18 02:07:48 +02:00
#ifndef CRAFTER_GRAPHICS_WINDOW_DOM
2026-03-09 20:10:19 +01:00
import std;
2026-05-01 23:35:37 +02:00
export namespace Crafter {
struct Window;
2026-03-09 20:10:19 +01:00
2026-05-01 23:35:37 +02:00
struct RenderPass {
virtual void Record(VkCommandBuffer cmd, std::uint32_t frameIdx, Window& window) = 0;
virtual ~RenderPass() = default;
};
}
2026-05-18 02:07:48 +02:00
#endif // !CRAFTER_GRAPHICS_WINDOW_DOM