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

  • SEARCH
  • Home
  • 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 6109407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:24:04+00:00 2026-05-23T14:24:04+00:00

I am new to DirectX. Where can I get tutorials and sample codes for

  • 0

I am new to DirectX.

Where can I get tutorials and sample codes for multi threading using directx and C++?

I need to findout the distance transform of an image using multi threading.

Or could you please give me an example of finding the average of 100 numbers using directx?

  • 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-05-23T14:24:05+00:00Added an answer on May 23, 2026 at 2:24 pm

    The best source for DirectX samples tends to be the DirectX SDK, which you can find here. There are quite a few tutorials around, some in the SDK, some here and here.

    Multithreading with DirectX (I assume you mean D3D in specific) just requires being careful with your objects and using the multithread hint when creating the D3D object. Some tips on that here and a discussion on how to over here.

    The code will look something like:

    HRESULT hr = pD3DObject->CreateDevice
    (
        D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, 
        D3DCREATE_MULTITHREADED, &presentParams, &pD3DDevice
    );
    

    After that, finding the distance transform depends on how you’re handling that. I’m not entirely sure what you want to do (if you comment with details I’ll see if I can edit something more in).

    To generate the average of numbers, I wouldn’t actually recommend using DirectX. Regular code should be able to handle that, and the work and overhead of using D3D to average 100 numbers seems rather inefficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to DirectX 11, and I have managed to get the Drawing Triangle
I can't seem to get my head around this. I've created sample code to
I am new to DirectX and I am trying to draw two rectangles in
New to javascript/jquery and having a hard time with using this or $(this) to
New to WCF, but familiar with COM+ - can I wrap a WCF service
Can someone direct me to resources which will guide me through using C# and
I am new write a pixel shader and use in my managed directx project,
I want to add new feature to the search in my website. I'm using
Nothing I've tried can get my code to submit correctly. Can anyone else figure
Still can't get this working...Rails 3.1.3, Ruby 1.9.2 on Heroku's Cedar Stack. Trying to

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.