examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
// this function tests for DX11 capability

this function tests for DX11 capability
this function tests for DX11 capability
bool spoutGLDXinterop::DX11available()
{
	if(g_pd3dDevice != NULL) return true;
	ID3D11Device* pd3dDevice;
	pd3dDevice = spoutdx.CreateDX11device();
	if(pd3dDevice == NULL)
		return false;
	spoutdx.GetImmediateContext()->ClearState();
	spoutdx.GetImmediateContext()->Flush();
	spoutdx.GetImmediateContext()->Release();
	ULONG refcount = pd3dDevice->Release();
	return true;
}
bool spoutGLDXinterop :: DX11available ( ) { if ( g_pd3dDevice != NULL ) return true ; ID3D11Device * pd3dDevice ; pd3dDevice = spoutdx . CreateDX11device ( ) ; if ( pd3dDevice == NULL ) return false ; spoutdx . GetImmediateContext ( ) -> ClearState ( ) ; spoutdx . GetImmediateContext ( ) -> Flush ( ) ; spoutdx . GetImmediateContext ( ) -> Release ( ) ; ULONG refcount = pd3dDevice -> Release ( ) ; return true ; }
this function tests for DX11 capability
this function tests for DX11 capability
// Quit if DX11 is already initialized
 // Try to create a DirectX 11 device
 // 11.11.18
 // Clear state and flush context to prevent deferred device release
 // Release the global immediate context in SpoutDirectX
 // Close it because not initialized yet and is just a test
 // printf("DX11available - device release refcount = %ld\n", refcount);
