File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/Cpp/1-getting-started
1-3-3-SettingUp3DRendering Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ void TexturingApplication::Render()
418418
419419 D3D11_BUFFER_DESC description = {};
420420 _triangleVertices->GetDesc (&description);
421- UINT stride = static_cast <UINT>( _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv) );
421+ UINT stride = _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv);
422422 _deviceContext->IASetVertexBuffers (
423423 0 ,
424424 1 ,
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ void Setting3DApplication::Render()
496496
497497 D3D11_BUFFER_DESC description = {};
498498 _triangleVertices->GetDesc (&description);
499- UINT stride = static_cast <UINT>( _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv) );
499+ UINT stride = _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv);
500500 _deviceContext->IASetVertexBuffers (
501501 0 ,
502502 1 ,
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ void Rendering3DApplication::Render()
415415
416416 _deviceContext->IASetPrimitiveTopology (D3D11_PRIMITIVE_TOPOLOGY::D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
417417
418- UINT stride = static_cast <UINT>( _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv) );
418+ UINT stride = _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv);
419419 _deviceContext->IASetVertexBuffers (
420420 0 ,
421421 1 ,
You can’t perform that action at this time.
0 commit comments