[Common] Avoid GC in DeviceCollection
authorthefiddler <stapostol@gmail.com>
Sat, 20 Sep 2014 15:10:05 +0000 (17:10 +0200)
committerthefiddler <stapostol@gmail.com>
Sat, 20 Sep 2014 15:10:05 +0000 (17:10 +0200)
commit747d86bafb88d8c9bc65c47448d3ab558edf44e5
tree5cd5ff6e2be7a1333a7ecbbaef97026fa4135369
parent2b3a4c578a9fe21da3ec6ccbbb594be6f9b0b6d3
[Common] Avoid GC in DeviceCollection

`DeviceCollection.GetEnumerator()` now returns a struct IEnumerable<T>
directly to avoid boxing.

Additionally, we can now use `DeviceCollection[int]` as a shortcut to
`FromIndex(int)`.
Source/OpenTK/Platform/DeviceCollection.cs