title: Load texture in directX 11.1
body: <p>I'm reading <a href="http://www.braynzarsoft.net/" rel="nofollow">http://www.braynzarsoft.net/</a> tutorials for DX11 but I mainly learning programming on DX11.1 with metro style app.
  as I continue to learn I find out some features in Dx11 are not anymore in DX11.1,like <code>D3DX11CreateShaderResourceViewFromFile</code> that tutorial used to load a texture but in DX11.1 we doesn't have this!
  my question is how can I load a DDS texture in DX11.1 ?
  I want to replace that function in this Code so that I can load a DDS texture:</p>
  
  <pre><code>hr = D3DX11CreateShaderResourceViewFromFile( d3d11Device, L"braynzar.jpg",
          NULL, NULL, &amp;CubesTexture, NULL );
  
      // Describe the Sample State
      D3D11_SAMPLER_DESC sampDesc;
      ZeroMemory( &amp;sampDesc, sizeof(sampDesc) );
      sampDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
      sampDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
      sampDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
      sampDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
      sampDesc.ComparisonFunc = D3D11_COMPARISON_NEVER;
      sampDesc.MinLOD = 0;
      sampDesc.MaxLOD = D3D11_FLOAT32_MAX;
  
      //Create the Sample State
      hr = d3d11Device-&gt;CreateSamplerState( &amp;sampDesc, &amp;CubesTexSamplerState );
  </code></pre>