-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreference-grid.h
41 lines (35 loc) · 1.34 KB
/
reference-grid.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright(c) Leonardo Romor <[email protected]>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version 2.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://gnu.org/licenses/gpl-2.0.txt>
#ifndef __REFERENCE_GRID_H_
#define __REFERENCE_GRID_H_
#include <vulkan/vulkan.hpp>
#include "vulkan-core.h"
#include "entity.h"
class ReferenceGrid : public space::Entity {
public:
ReferenceGrid() {}
virtual void Register(
space::core::VkAppContext *context,
vk::UniquePipelineLayout *pipeline_layout,
vk::UniqueRenderPass *render_pass,
vk::SampleCountFlagBits nsamples,
vk::UniquePipelineCache *pipeline_cache) final;
virtual ~ReferenceGrid() {}
// Draw in the command buffer
virtual void Draw(const vk::UniqueCommandBuffer *command_buffer) final;
private:
vk::UniquePipeline pipeline_;
};
#endif // __REFERENCE_GRID_H_