A demonstration of DirectComposition and DirectX 12 interoperability
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
DXSample.cpp
DXSample.h
DXSampleHelper.h
DirectCompositeSample.cpp
DirectCompositeSample.filters
DirectCompositeSample.h
DirectCompositeSample.sln
DirectCompositeSample.vcxproj
LICENSE
Main.cpp
Readme.md
Win32Application.cpp
Win32Application.h
d3dx12.h
shaders.hlsl
stdafx.cpp
stdafx.h

Readme.md

DirectComposite Sample (DirectX 12)

This sample demonstrates how to implement DirectComposition alongside DirectX 12. DirectComposition allows you to efficiently composite your rendered scene onto other windows using hardware acceleration.

For more information, see:

DirectComposition allows efficient alpha-blending with other windows

Acknowledgements & Disclaimer

This sample is based on Microsoft's D3D12HelloTexture sample.

This sample is not endorsed or recognized by Microsoft as an official Microsoft sample. This work is my own and is unaffiliated with Microsoft.

Requirements

DirectComposition minimum requirements:

  • Windows 8 or above
  • Visual Studio 2013 or above
  • Direct3D 11, Direct2D or DirectX 12

However, this sample is written for:

  • Windows 10
  • Visual Studio 2015
  • DirectX 12

Usage

  • Open DirectCompositionSample.sln
  • Build & Run
  • Click on the circle to drag the window around
  • Press ESC to quit