Skip to content

Commit ca9e853

Browse files
+ 第七章 waves代码
1 parent 52c8f3e commit ca9e853

File tree

7 files changed

+505
-56
lines changed

7 files changed

+505
-56
lines changed

Chapter 7 Drawing in Direct3D Part II/Chapter 7 Drawing in Direct3D Part II.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
<ClCompile Include="GameApp.cpp" />
129129
<ClCompile Include="GeometryGenerator.cpp" />
130130
<ClCompile Include="main.cpp" />
131+
<ClCompile Include="Waves.cpp" />
131132
</ItemGroup>
132133
<ItemGroup>
133134
<ClInclude Include="Core\BufferManager.h" />
@@ -175,6 +176,7 @@
175176
<ClInclude Include="Core\VectorMath.h" />
176177
<ClInclude Include="GameApp.h" />
177178
<ClInclude Include="GeometryGenerator.h" />
179+
<ClInclude Include="Waves.h" />
178180
</ItemGroup>
179181
<ItemGroup>
180182
<Text Include="Core\readme\readme_command.txt" />

Chapter 7 Drawing in Direct3D Part II/Chapter 7 Drawing in Direct3D Part II.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@
174174
<ClCompile Include="GeometryGenerator.cpp">
175175
<Filter>源文件</Filter>
176176
</ClCompile>
177+
<ClCompile Include="Waves.cpp">
178+
<Filter>源文件</Filter>
179+
</ClCompile>
177180
</ItemGroup>
178181
<ItemGroup>
179182
<ClInclude Include="Core\CommandContext.h">
@@ -311,6 +314,9 @@
311314
<ClInclude Include="GeometryGenerator.h">
312315
<Filter>源文件</Filter>
313316
</ClInclude>
317+
<ClInclude Include="Waves.h">
318+
<Filter>源文件</Filter>
319+
</ClInclude>
314320
</ItemGroup>
315321
<ItemGroup>
316322
<Text Include="Core\readme\readme_command.txt">

Chapter 7 Drawing in Direct3D Part II/Core/CommandContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void GraphicsContext::SetScissor( const D3D12_RECT& rect )
462462
m_CommandList->RSSetScissorRects( 1, &rect );
463463
}
464464

465-
inline void GraphicsContext::SetDynamicVB(UINT Slot, size_t NumVertices, size_t VertexStride, const void* VertexData)
465+
void GraphicsContext::SetDynamicVB(UINT Slot, size_t NumVertices, size_t VertexStride, const void* VertexData)
466466
{
467467
ASSERT(VertexData != nullptr && Math::IsAligned(VertexData, 16));
468468

0 commit comments

Comments
 (0)