Skip to content

Commit 5f17472

Browse files
author
devsh
committed
add IPolygonGeometryMetadata.h
1 parent cd8ab0a commit 5f17472

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

include/nbl/asset/metadata/IAssetMetadata.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
// Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
1+
// Copyright (C) 2018-2025 - DevSH Graphics Programming Sp. z O.O.
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
4-
54
#ifndef _NBL_ASSET_I_ASSET_METADATA_H_INCLUDED_
65
#define _NBL_ASSET_I_ASSET_METADATA_H_INCLUDED_
76

7+
88
#include "nbl/core/declarations.h"
99

1010
#include "nbl/asset/metadata/IImageMetadata.h"
1111
#include "nbl/asset/metadata/IImageViewMetadata.h"
12+
#include "nbl/asset/metadata/IPolygonGeometryMetadata.h"
13+
14+
1215
namespace nbl::asset
1316
{
1417
namespace impl
@@ -30,6 +33,11 @@ struct IAssetMetadata_base::asset_metadata<ICPUImageView>
3033
{
3134
using type = IImageViewMetadata;
3235
};
36+
template<>
37+
struct IAssetMetadata_base::asset_metadata<ICPUPolygonGeometry>
38+
{
39+
using type = IPolygonGeometryMetadata;
40+
};
3341
}
3442

3543

@@ -125,5 +133,4 @@ class IAssetMetadata : public impl::IAssetMetadata_base
125133

126134

127135
}
128-
129136
#endif
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright (C) 2025-2025 - DevSH Graphics Programming Sp. z O.O.
2+
// This file is part of the "Nabla Engine".
3+
// For conditions of distribution and use, see copyright notice in nabla.h
4+
#ifndef _NBL_ASSET_I_POLYGON_GEOMETRY_METADATA_H_INCLUDED_
5+
#define _NBL_ASSET_I_POLYGON_GEOMETRY_METADATA_H_INCLUDED_
6+
7+
8+
#include "nbl/asset/ICPUPolygonGeometry.h"
9+
10+
11+
namespace nbl::asset
12+
{
13+
14+
//!
15+
class IPolygonGeometryMetadata : public core::Interface
16+
{
17+
public:
18+
inline IPolygonGeometryMetadata() = default;
19+
20+
protected:
21+
virtual ~IPolygonGeometryMetadata() = default;
22+
23+
inline IPolygonGeometryMetadata& operator=(IPolygonGeometryMetadata&& other)
24+
{
25+
return *this;
26+
}
27+
};
28+
29+
}
30+
#endif

0 commit comments

Comments
 (0)