Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Mesh3dRenderer.hpp
1#pragma once
2
3#include <glm/mat4x4.hpp>
4#include <map>
5#include <string>
6#include <vector>
7
8#include <Common/Graphics/Core.hpp>
9#include <EngineCore/AssetRenderer/BaseAssetRenderer.hpp>
10
11#include "Assets/Mesh3dAsset.hpp"
12#include "Components/MeshRendererComponent.hpp"
13
14namespace Grindstone {
15 namespace GraphicsAPI {
16 class CommandBuffer;
17 class DescriptorSet;
18 }
19
20 class EngineCore;
21
22 class Mesh3dRenderer : public BaseAssetRenderer {
23 public:
24 Mesh3dRenderer(EngineCore* engineCore);
25
27 GraphicsAPI::CommandBuffer* commandBuffer,
29 ) override;
30 static GraphicsAPI::DescriptorSetLayout* GetPerDrawDescriptorSetLayout();
31 private:
32 virtual std::string GetName() const override;
33 virtual void SetEngineDescriptorSet(GraphicsAPI::DescriptorSet* descriptorSet) override;
34
35 EngineCore* engineCore = nullptr;
36 std::string rendererName = "Mesh3d";
37 GraphicsAPI::DescriptorSet* engineDescriptorSet = nullptr;
38 static GraphicsAPI::DescriptorSetLayoutRef perDrawDescriptorSetLayout;
39 };
40}
Definition BaseAssetRenderer.hpp:25
Definition EngineCore.hpp:63
Definition CommandBuffer.hpp:109
Definition DescriptorSetLayout.hpp:17
Definition DescriptorSet.hpp:15
Definition Buffer.hpp:9
Definition Assert.hpp:14
Definition AssetRenderQueueContext.hpp:10
Definition GeometryRenderingStats.hpp:6