title: How to load a texture from a file?
body: <p>I'm switching to SharpDX 3.0.0 right now. With the old SharpDX version you could load a texture from file in this way:</p>
  
  <pre><code>ShaderResourceView textureView = SharpDX.Direct3D11.Resource.FromFile&lt;Texture2D&gt;(device, "Texture.png");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>ShaderResourceView textureView = ShaderResourceView.FromFile(device, "Texture.png");
  </code></pre>
  
  <p>But in version 3.0.0 the function FromFile is missing. How can I load textures from files with SharpDX 3?</p>