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()
418
418
419
419
D3D11_BUFFER_DESC description = {};
420
420
_triangleVertices->GetDesc (&description);
421
- UINT stride = static_cast <UINT>( _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv) );
421
+ UINT stride = _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv);
422
422
_deviceContext->IASetVertexBuffers (
423
423
0 ,
424
424
1 ,
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ void Setting3DApplication::Render()
496
496
497
497
D3D11_BUFFER_DESC description = {};
498
498
_triangleVertices->GetDesc (&description);
499
- UINT stride = static_cast <UINT>( _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv) );
499
+ UINT stride = _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv);
500
500
_deviceContext->IASetVertexBuffers (
501
501
0 ,
502
502
1 ,
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ void Rendering3DApplication::Render()
415
415
416
416
_deviceContext->IASetPrimitiveTopology (D3D11_PRIMITIVE_TOPOLOGY::D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
417
417
418
- UINT stride = static_cast <UINT>( _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv) );
418
+ UINT stride = _shaderCollection.GetLayoutByteSize (VertexType::PositionColorUv);
419
419
_deviceContext->IASetVertexBuffers (
420
420
0 ,
421
421
1 ,
You can’t perform that action at this time.
0 commit comments