Skip to content

Use DXGI #1

@watfordjc

Description

@watfordjc

Feature Branch

Current feature branch for this issue: feature/issue-1/d2d-1.

Progress

  • Replace WIC with off-screen DXGI for rendering sans profile and Twitter/Retweet images.
  • Use WIC to save "screenshot" to PNG.
  • Add back WIC rendering of profile and Twitter/Retweet images to Direct2D device (render target is now a DXGI render surface target).
  • Make DXGI output shareable with OBS.
  • Figure out how to make DXGI output directly shareable (i.e. remove the resource copying step).

Background

The current version of the library uses Direct2D and WIC.

In order to interoperate with OBS efficiently, it seems like DXGI is the best option.

Based on Microsoft documentation and a bit of Googling, it looks like I need to insert or replace the functions called up to (and including) CreateRenderTarget(), possibly replacing CreateWICBitmap() with something that creates a DXGI Surface.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions