File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
common/include/nbl/examples/geometry Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ class CGeometryCreatorScene : public core::IReferenceCounted
167
167
//
168
168
struct SNamedGeometry
169
169
{
170
- std::string_view name = {};
170
+ std::string name = {};
171
171
core::smart_refctd_ptr<video::IGPUPolygonGeometry> geom;
172
172
};
173
173
std::span<const SNamedGeometry> getGeometries () const {return m_geometries;}
Original file line number Diff line number Diff line change @@ -235,6 +235,18 @@ class CSimpleDebugRenderer final : public core::IReferenceCounted
235
235
{
236
236
out.indexBuffer .offset = view.src .offset ;
237
237
out.indexBuffer .buffer = view.src .buffer ;
238
+ switch (view.composed .format )
239
+ {
240
+ case E_FORMAT::EF_R16_UINT:
241
+ out.indexType = EIT_16BIT;
242
+ break ;
243
+ case E_FORMAT::EF_R32_UINT:
244
+ out.indexType = EIT_32BIT;
245
+ break ;
246
+ default :
247
+ assert (false );
248
+ return nullptr ;
249
+ }
238
250
}
239
251
out.elementCount = geom->getVertexReferenceCount ();
240
252
out.positionView = allocateUTB (geom->getPositionView ());
You can’t perform that action at this time.
0 commit comments