How does adding a cast change the logic here? I don't see how this could fix a bug.

 

Also, why did you manually inline impl_from_ID3D11ShaderResourceView?


Regards,

Fabian Maurer