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 ?!