[vlc-devel] [PATCH] Direct3D: implement HLSL pixel shading in the rendering pipeline
jb at videolan.org
Tue Jan 28 11:40:01 CET 2014
On 28 Jan, Rafaël Carré wrote :
> On 01/28/14 10:38, Jean-Baptiste Kempf wrote:
> > On 28 Jan, Rafaël Carré wrote :
> >>> // core objects
> >>> HINSTANCE hd3d9_dll; /* handle of the opened d3d9 dll */
> >>> + HINSTANCE hd3d9x_dll; /* handle of the opened d3d9x dll */
> >> Why not linking directly to the DLL ?
> > Because in theory, some Windows version don't have those.
> Can it have d3d9 but not d3d9x ?
> In any case d3d9 should also be linked directly.
This is more flexible, and allows to have the module selectable
in the UI, in a relevant way.
Moreover, if the Dx-runtime is reinstalled, it will work directly,
without needing to nuke the VLC plugins cache.
> If the dll is absent the module would fail to load and we would waste
> less CPU.
The CPU cost is not really and issue here, sorry.
We do that with ALL DirectX related libraries, DSound, DDraw, D3D, DxVA,
D2D1, as recommended by MicroSoft.
With my kindest regards,
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel