You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
In SharpDX.Toolkit.Graphics.TextureView, there are implicit operators for ShaderResourceView and RenderTargetView.
They are defined as:
public static implicit operator ShaderResourceView(TextureView view)
{
return view.View as ShaderResourceView;
}
But should be:
public static implicit operator ShaderResourceView(TextureView view)
{
return view == null ? null : view.View as ShaderResourceView;
}
Not doing so raises exceptions when an implicit conversion is done on a null resource (trying to convert a null TextureView into a function expecting a ShaderResourceView
The text was updated successfully, but these errors were encountered:
In SharpDX.Toolkit.Graphics.TextureView, there are implicit operators for ShaderResourceView and RenderTargetView.
They are defined as:
public static implicit operator ShaderResourceView(TextureView view)
{
return view.View as ShaderResourceView;
}
But should be:
public static implicit operator ShaderResourceView(TextureView view)
{
return view == null ? null : view.View as ShaderResourceView;
}
Not doing so raises exceptions when an implicit conversion is done on a null resource (trying to convert a null TextureView into a function expecting a ShaderResourceView
The text was updated successfully, but these errors were encountered: