wren
Vulkan-based game engine
Toggle main menu visibility
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>
6
#include <
wren/utils/result.hpp
>
7
#include <
wren/vk/shader.hpp
>
8
9
namespace
wren
{
10
11
class
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
wren::Pipeline::shader_
std::shared_ptr< vk::Shader > shader_
Definition
pipeline.hpp:25
wren::Pipeline::pipeline_t
std::shared_ptr< Pipeline > pipeline_t
Definition
pipeline.hpp:12
wren::Pipeline::name_
std::string name_
Definition
pipeline.hpp:23
wren::Pipeline::Pipeline
Pipeline(std::string name, const std::shared_ptr< vk::Shader > &shader)
Definition
pipeline.hpp:20
wren
Definition
editor_scene.hpp:5
shader.hpp
result.hpp
wren
include
wren
pipeline.hpp
Generated by
1.17.0