Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8553693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:42:41+00:00 2026-06-11T14:42:41+00:00

I am in the final stages of porting some code into my framework. The

  • 0

I am in the final stages of porting some code into my framework.

The latest problem is very similar to this one I posted recently ( Strange "The type arguments for method cannot be inferred from the usage." ), whereby text enclosed in ‘<‘ and ‘>’ in the listing I am porting code is missing.

The latest offending line is:

        using (var resource = SlimDX.Direct3D11.Resource.FromSwapChain(swapChain, 0))
            renderTarget = new SlimDX.Direct3D11.RenderTargetView(graphics, resource);

I get the following error from the compiler:

The type arguments for method ‘SlimDX.Direct3D10.Device.OpenSharedResource(System.IntPtr)’ cannot be inferred from the usage. Try specifying the type arguments explicitly.

I tried to fix this myself by changing my code to:

        using (var resource = SlimDX.Direct3D11.Resource.FromSwapChain<SlimDX.Direct3D11.Resource>(swapChain, 0))
            renderTarget = new SlimDX.Direct3D11.RenderTargetView(graphics, resource);

… but now I get an even stranger run-time error:

“Error: Method ‘SlimDX.Direct3D11.Resource.FromPointerReflectionThunk’ not found.”

Initial research indicates I might have stumbled into something which is way above my head: http://www.gamedev.net/topic/542095-slimdx-need-help-from-nativemanaged-interop-expert/

All I am trying to do is port this code into my framework: http://www.aaronblog.us/?p=36 … which is all about drawing text in SlimDX with DX11.

At some point I hope to have figured out how to genericise this code into my framework. It is heavy going though.

I’m using SlimDX SDK (January 2012).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:42:42+00:00Added an answer on June 11, 2026 at 2:42 pm

    Look at the last post in the gamedev.net thread you referenced — it says that you can fix the problem by specifying the type argument as Texture2D.

    So you might try:

    using (var resource = SlimDX.Direct3D11.Resource.FromSwapChain<Texture2D>(swapChain, 0))
        renderTarget = new SlimDX.Direct3D11.RenderTargetView(graphics, resource);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the final stages of building a site and have one key task
I am in the final stages of creating an MP4 tag parser in .Net.
Background: I'm developing a bussiness application, and in the final stages we are encountering
Final goal: Have a few java objects sharing the same base class persisted into
I'm in the final stages of converting our site over to Graph API from
I'm in the final stages of going round trip through the entire Rails cycle:
I am currently in the final stages of testing my app before submitting to
I am at the final stages of my website, and currently I need to
I'm in the final stages of a project and need to create a script
I'm currently in the final stages of of completing a barcode scanning app which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.