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
167167 //
168168 struct SNamedGeometry
169169 {
170- std::string_view name = {};
170+ std::string name = {};
171171 core::smart_refctd_ptr<video::IGPUPolygonGeometry> geom;
172172 };
173173 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
235235 {
236236 out.indexBuffer .offset = view.src .offset ;
237237 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+ }
238250 }
239251 out.elementCount = geom->getVertexReferenceCount ();
240252 out.positionView = allocateUTB (geom->getPositionView ());
You can’t perform that action at this time.
0 commit comments