sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 641 forks source link

Support for IDCompositionDevice3 #970

Open ekicyou opened 6 years ago

ekicyou commented 6 years ago

I'd like to use effects but I am in trouble because IDCompositionDevice3 is not available.

To use IDCompositionDevice3 you need to use DCompositionCreateDevice3 API. SharpDX only supports Device creation using DCompositionCreateDevice2 API.

gerdus commented 5 years ago

I am having trouble getting this to work. var deviceLevel2 = new SharpDX.DirectComposition.DesktopDevice(dxgiDevice); var deviceLevel3 = deviceLevel2.QueryInterface<SharpDX.DirectComposition.Device3>(); The second line to get a Device3 fails with "No such interface supported". Alternatively doing var deviceLevel3B = new SharpDX.DirectComposition.Device3(dxgiDevice); also results in "No such interface supported".

I need a Device3 because I want to use blur effect: var blurEffect = new SharpDX.DirectComposition.GaussianBlurEffect(deviceLevel3);