wren
Vulkan-based game engine
Loading...
Searching...
No Matches
pipeline.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <string>
5#include <utility>
7#include <wren/vk/shader.hpp>
8
9namespace wren {
10
11class Pipeline {
12 using pipeline_t = std::shared_ptr<Pipeline>;
13
14 public:
15 // static auto New(std::string const& name,
16 // std::shared_ptr<vk::Shader> const& shader)
17 // -> expected<std::shared_ptr<Pipeline>>;
18
19 private:
20 Pipeline(std::string name, const std::shared_ptr<vk::Shader>& shader)
21 : name_(std::move(name)), shader_(shader) {}
22
23 std::string name_;
24
25 std::shared_ptr<vk::Shader> shader_;
26};
27
28} // namespace wren
Definition pipeline.hpp:11
std::shared_ptr< vk::Shader > shader_
Definition pipeline.hpp:25
std::shared_ptr< Pipeline > pipeline_t
Definition pipeline.hpp:12
std::string name_
Definition pipeline.hpp:23
Pipeline(std::string name, const std::shared_ptr< vk::Shader > &shader)
Definition pipeline.hpp:20
Definition editor_scene.hpp:5