views:

405

answers:

0

I am translating code from tutorial 7 in MS DirectX SDK to C#. I reached this line of code:

// Load the Texture    
hr = D3DX10CreateShaderResourceViewFromFile( g_pd3dDevice, L"seafloor.dds", NULL, NULL, &g_pTextureRV, NULL );
if( FAILED( hr ) )
return hr;

Can someone please help tell which SlimDX wrapper is equivalent to the function D3DX10CreateShaderResourceViewFromFile? Or how you would load this texture in C#?