libobs: Allow filters to specify technique

This commit is contained in:
John Bradley
2015-05-22 13:01:00 -05:00
committed by jp9000
parent 9e15e3d8fd
commit 310f390e1e
2 changed files with 43 additions and 6 deletions

View File

@@ -954,6 +954,17 @@ EXPORT void obs_source_process_filter_begin(obs_source_t *filter,
EXPORT void obs_source_process_filter_end(obs_source_t *filter,
gs_effect_t *effect, uint32_t width, uint32_t height);
/**
* Draws the filter with a specific technique.
*
* Before calling this function, first call obs_source_process_filter_begin and
* then set the effect parameters, and then call this function to finalize the
* filter.
*/
EXPORT void obs_source_process_filter_tech_end(obs_source_t *filter,
gs_effect_t *effect, uint32_t width, uint32_t height,
const char *tech_name);
/** Skips the filter if the filter is invalid and cannot be rendered */
EXPORT void obs_source_skip_video_filter(obs_source_t *filter);