Jump to content
  • Advertisement
Sign in to follow this  

E_NOINTERFACE on Texture2D.AsSurface()

This topic is 2075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have created a texture with the following description. When I call the AsSurface() method on the texture, I get an error stating 

'E_NOINTERFACE: The requested COM interface is not available'


Texture2DDescription description = new Texture2DDescription


ArraySize = 1,

BindFlags = BindFlags.None,

CpuAccessFlags = CpuAccessFlags.None,

Format = _format,

Width = _width,

Height = _height,

OptionFlags = ResourceOptionFlags.None,

Usage = ResourceUsage.Default,

SampleDescription = new SlimDX.DXGI.SampleDescription(1,0),

MipLevels = _levelCount,



I am not using Direct2D, or older versions of Direct3D. Just Direct3D 11 and DXGI.


What are the conditions that cause this error for the AsSurface() method?


Thank you for your help.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!