Commit 2526ae6c authored by chili's avatar chili
Browse files

need to share topology between meshes

parent 6eb518fa
...@@ -34,7 +34,7 @@ const std::string& ModelException::GetNote() const noexcept ...@@ -34,7 +34,7 @@ const std::string& ModelException::GetNote() const noexcept
// Mesh // Mesh
Mesh::Mesh( Graphics& gfx,std::vector<std::shared_ptr<Bind::Bindable>> bindPtrs ) Mesh::Mesh( Graphics& gfx,std::vector<std::shared_ptr<Bind::Bindable>> bindPtrs )
{ {
AddBind( std::make_shared<Bind::Topology>( gfx,D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST ) ); AddBind( Bind::Topology::Resolve( gfx,D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST ) );
for( auto& pb : bindPtrs ) for( auto& pb : bindPtrs )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment