- Notifications
You must be signed in to change notification settings - Fork7
Implements some d3d11 and dxgi interfaces for use with e.g. IDXGIOutputDuplication
License
NotificationsYou must be signed in to change notification settings
kirides/go-d3d
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This code allows to use D3D11 IDXGIOutputDuplication in Go
- Encoding an mjpeg streamexamples/mjpegstream
- Recording an h264 video using ffmpeg for transcodingexamples/recording
golang.org/x/exp/shiny/driver/internal/swizzle
for faster BGRA -> RGBA conversion (seeshiny LICENSE)
To make use ofIDXGIOutput5::DuplicateOutput1
, an application has to provide support for PerMonitorV2 DPI-Awareness (Windows 10 1703+) This is usually done by providing anmy-executable.exe.manifest
file either next to the executable, or as an embedded resource.
In the examples there are calls toIsValidDpiAwarenessContext
andSetThreadDpiAwarenessContext
which circumvent the requirement.
About
Implements some d3d11 and dxgi interfaces for use with e.g. IDXGIOutputDuplication