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 8652635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:21:10+00:00 2026-06-12T14:21:10+00:00

Why did Microsoft decide to bind Brush resources to individual Direct2D render targets, rather

  • 0

Why did Microsoft decide to bind Brush resources to individual Direct2D render targets, rather than the overall Direct2D context. What should we do if we have a Direct3D texture, which is mapped to a Direct2D render target (for a HUD) which needs to be resized to the full width and height of the screen when the user changes between fullscreen and windowed mode, or resizes the window? Is the only thing to do recreate all of the brushes when this happens; or is there another way, such as somehow binding brushes to the ID2D1Factory, rather than the Direct2D surface?

  • 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-12T14:21:11+00:00Added an answer on June 12, 2026 at 2:21 pm

    Brushes require the allocation of resources on the GPU. Since Direct2D is a “policy-less” API, which means they want to make sure you can have direct control over memory usage, the brush factory methods hang off the render target instead of the root factory. Otherwise they’d need to have some policy in place that decides when to free the hardware resources, and that policy will always be wrong in some scenarios (it would negatively impact performance or memory usage).

    Factory methods for geometries and stroke styles hang off the root factory because they are stored in main memory, and any processing they affect is done on the CPU. You can “compile” a geometry object w/ stroke style into a hardware resource via ID2D1Mesh, which basically just tessellates it straight into a vertex buffer. While it will be much faster (at render time, not at tessellation time!), it can also use a lot more memory depending on the complexity of the geometry.

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

Sidebar

Related Questions

i like to setup for my project i did my project in Microsoft visual
Why did microsoft's API team recreate an Exception class in Microsoft.Office.Interop.Outlook that would conflict
did someone tried this code library and have opinion about it? http://code.msdn.microsoft.com/exprserialization 10x
Simply put, Microsoft defined a ReadOnlyCollectionBase , yet did not use it as the
Microsoft did introduce the Datetime2 type in SQL server 2008. However, even with VS
So I just was testing the CLR Profiler from microsoft, and I did a
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005? There
What areas of .NET did Microsoft leverage the Adapter pattern in? I am looking
Looking into the .NET code, Rectangle.Size returns new Size(Width, Height) . Why did Microsoft
Did Microsoft add anything to improve offline development? I'm comparing TFS with Mercurial. Edit

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.