ID3D11DeviceContext::DrawIndexed()
has a parameter StartIndexLocation
, which adds a value to each Index when drawing.
What happens if I use 16 bit Indices ?
The highest value 16 bit can represent is 65535. What If my Draw Call has 10000 vertices and I use a StartIndexLocation
of 65000 ? Will it invoke UB?