IDXDeviceService and IMainLoopJuly 23, 2012 posted by: Elias
for some advanced plugin usage scenarios we introduced two new interfaces in the upcoming 28 release of vvvv:
the device service can be used to enumerate all directx9 devices created by vvvv (for example through a renderer) or to get notified when a device was created or destroyed. this might come in handy if plugins do some kind of background work using a directx9 device (like texture preloading) and need to know when a device got lost in order to stop all processing scheduled for that device. another future use case would be for some sort of directx9 sink node, like a pipet for example, which needs a device in order to be able to evaluate its inputs.
the second interface can be used to get various notifications about all the different stages the main loop goes through when computing one frame. a possible use case could be a custom set of classes/nodes running in some kind of special “subgraph”.
both can either be imported or retrieved via two new properties on the IHDEHost.
Comments are no longer accepted for this post.
Can you confirm whether the events are fired before or after or unknown? i.e. OnRender occurs after all textures are rendered? or before?
To note (for others), the way to get these is to use:
but then you can’t use FHDEHost in your constructor
and start using them like: