Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
2526ae6c
Commit
2526ae6c
authored
Aug 10, 2019
by
chili
Browse files
need to share topology between meshes
parent
6eb518fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/Mesh.cpp
View file @
2526ae6c
...
...
@@ -34,7 +34,7 @@ const std::string& ModelException::GetNote() const noexcept
// Mesh
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment