microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Home Page:https://walbourn.github.io/directxtk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Documentation] Just a lacking round bracket

opened this issue · comments

Hi!

I found a minuscule problem in the Wiki~

Page: https://github.com/microsoft/DirectXTK/wiki/Simple-rendering#drawing-a-triangle
Location: Code under Optional: You can simplify the last part using DirectXHelpers:

DX::ThrowIfFailed(
    CreateInputLayoutFromEffect<VertexType>(m_d3dDevice.Get(), m_effect.get(),
        m_inputLayout.ReleaseAndGetAddressOf()
    ); // <- [Problem location]

Just needs an extra round bracket to close DX::ThrowIfFailed!

Thanks for your attention!

Thanks for the report. Fixed.