Is auto universal and works with any API, or i am not using it correctly i guess should be work in this case but error, if i shall change it with concrete type will work, but why ?
// Set vertex buffer
auto stride = m_FullScreenVTFTonemapPass.stride;
auto offset = m_FullScreenVTFTonemapPass.offset;
m_pD3DDevice->IASetInputLayout( m_FullScreenVTFTonemapPass.IALayout );
m_pD3DDevice->IASetVertexBuffers ( 0, 1, &m_FullScreenVTFTonemapPass.VBdata, &stride, &offset );
m_pD3DDevice->IASetPrimitiveTopology( D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP );
in IASetVertexBuffers() function stride and offset should be referenced but errors are popping up , if i'll change one of them stride or offset with UINT it works but why auto does not work ?!
auto is not a type definition but a storage class (like static).
The compiler complains because you have told it how and where (in this case, on the stack) to store something, but not what the something should be.
You should add the type definition after the auto keyword, or as auto is the default anyways, replace it with the proper type.