Closed GoogleCodeExporter closed 8 years ago
Or better yet a ref count within the managed states.
Original comment by dbl...@fastmail.fm
on 12 Jun 2011 at 1:32
Sorry for the comment spam, but:
It appears D3D can silently modify slightly invalid descriptors, for example if
you leave the fields of the render target entries zero.
Hence this leads to the situation where the descriptor you used to create the
state is not the same as the descriptor retrieved from the Descriptor property.
It turns out that it is more robust to hash based on the object reference of
the newly created state return by FromDescription()...
Original comment by dbl...@fastmail.fm
on 12 Jun 2011 at 2:15
Yes, hashing on the actual object itself is the preferred method. However, the
Description should still implement IEquatable and GetHashCode.
Original comment by Mike.Popoloski
on 8 Jul 2011 at 4:36
This issue was closed by revision r2111.
Original comment by Mike.Popoloski
on 8 Jul 2011 at 5:16
Original issue reported on code.google.com by
dbl...@fastmail.fm
on 12 Jun 2011 at 1:22