|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#include <Mesh.h>
Public Types | |
| enum | TextureNames { COLOR = 0 } |
Public Member Functions | |
| Mesh () | |
| Mesh (GltfLoader::GltfMeshData meshData, ApplicationContext *context, Renderer *renderer) | |
| ~Mesh ()=default | |
| void | createResources () |
| void | cleanup () |
| void | reset () |
| uint32_t | getIndexCount () const |
| uint32_t | getMeshletTriangleCount () const |
| uint32_t | getMeshletCount () const |
| std::vector< MeshPrimitive > | getPrimitives () const |
| const std::vector< MeshPrimitive > & | getPrimitivesByReference () const |
| std::vector< MeshPrimitive > & | getPrimitivesByReference () |
| std::string | getName () const |
| Transform | getSceneTransform () const |
| float | getBoundingSphereRadius () const |
| PipelineNames | getShaderName () const |
| Gets the name of the shader assigned to this object. | |
Static Public Member Functions | |
| static uint32_t | getTextureCount () |
| static std::string | createMeshName (const std::filesystem::path &path, const std::string &meshName) |
Public Attributes | |
| std::atomic< bool > | isReady = false |
Static Public Attributes | |
| static const uint32_t | textureCount = 1 |
Private Attributes | |
| friend | AssetManager |
| std::optional< PipelineNames > | materialName |
| std::string | name |
| float | boundingSphereRadius = 0.0f |
| GltfLoader::GltfMeshData | meshData |
| Renderer * | renderer = nullptr |
| ApplicationContext * | context = nullptr |
| MaterialShader | material |
| Engine * | engine = nullptr |
| Transform | sceneTransform |
| std::vector< MeshPrimitive > | meshPrimitives {} |
| uint32_t | descriptorIndex = 0u |
| EngineCore::Mesh::Mesh | ( | ) |
| EngineCore::Mesh::Mesh | ( | GltfLoader::GltfMeshData | meshData, |
| ApplicationContext * | context, | ||
| Renderer * | renderer ) |
|
default |
|
static |
Definition at line 144 of file Mesh.cpp.
References name.
Referenced by EngineCore::AssetManager::registerMesh().
| void EngineCore::Mesh::createResources | ( | ) |
Definition at line 37 of file Mesh.cpp.
References boundingSphereRadius, context, isReady, meshData, meshPrimitives, name, renderer, sceneTransform, and TRACY_ZONE_SCOPED_NAMED.
|
nodiscard |
Definition at line 156 of file Mesh.cpp.
References boundingSphereRadius.
|
nodiscard |
Definition at line 92 of file Mesh.cpp.
References meshPrimitives.
| uint32_t EngineCore::Mesh::getMeshletCount | ( | ) | const |
Definition at line 113 of file Mesh.cpp.
References meshPrimitives, and TRACY_ZONE_SCOPED_NAMED.
| uint32_t EngineCore::Mesh::getMeshletTriangleCount | ( | ) | const |
Definition at line 102 of file Mesh.cpp.
References meshPrimitives, and TRACY_ZONE_SCOPED_FUNCTION.
|
nodiscard |
|
nodiscard |
Definition at line 124 of file Mesh.cpp.
References meshPrimitives.
|
nodiscard |
Definition at line 134 of file Mesh.cpp.
References meshPrimitives.
|
nodiscard |
Definition at line 129 of file Mesh.cpp.
References meshPrimitives.
|
nodiscard |
Definition at line 151 of file Mesh.cpp.
References sceneTransform.
| PipelineNames EngineCore::Mesh::getShaderName | ( | ) | const |
Gets the name of the shader assigned to this object.
Definition at line 161 of file Mesh.cpp.
References materialName, and EngineCore::NORMALS_SHADER.
|
static |
Definition at line 170 of file Mesh.cpp.
References textureCount.
Referenced by EngineCore::MeshLoaderGltf::useDefaultTexture().
| void EngineCore::Mesh::reset | ( | ) |
Definition at line 87 of file Mesh.cpp.
References meshPrimitives.
|
private |
Definition at line 74 of file Mesh.h.
Referenced by createResources(), and getBoundingSphereRadius().
|
private |
Definition at line 79 of file Mesh.h.
Referenced by createResources(), and Mesh().
| std::atomic<bool> EngineCore::Mesh::isReady = false |
Definition at line 42 of file Mesh.h.
Referenced by createResources().
|
private |
|
private |
Definition at line 71 of file Mesh.h.
Referenced by getShaderName().
|
private |
Definition at line 76 of file Mesh.h.
Referenced by createResources(), Mesh(), and Mesh().
|
private |
Definition at line 86 of file Mesh.h.
Referenced by createResources(), getIndexCount(), getMeshletCount(), getMeshletTriangleCount(), getPrimitives(), getPrimitivesByReference(), getPrimitivesByReference(), and reset().
|
private |
Definition at line 73 of file Mesh.h.
Referenced by createMeshName(), createResources(), getName(), and Mesh().
|
private |
Definition at line 78 of file Mesh.h.
Referenced by createResources(), and Mesh().
|
private |
Definition at line 84 of file Mesh.h.
Referenced by createResources(), and getSceneTransform().
|
static |
Definition at line 29 of file Mesh.h.
Referenced by getTextureCount().