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 <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
14
namespace
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
26
virtual
Grindstone::Rendering::GeometryRenderStats
RenderQueue(
27
GraphicsAPI::CommandBuffer
* commandBuffer,
28
Grindstone::Rendering::AssetRenderQueueContext
& cxt
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
}
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:17
Grindstone::GraphicsAPI::DescriptorSet
Definition
DescriptorSet.hpp:15
Grindstone::GraphicsAPI
Definition
Buffer.hpp:9
Grindstone
Definition
Assert.hpp:14
Grindstone::Rendering::AssetRenderQueueContext
Definition
AssetRenderQueueContext.hpp:10
Grindstone::Rendering::GeometryRenderStats
Definition
GeometryRenderingStats.hpp:6
plugins
Grindstone.Renderables.3D
include
Mesh3dRenderer.hpp
Generated by
1.18.0