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