2018-11-10 11:53:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "video/out/gpu/ra.h"
|
|
|
|
#include <libplacebo/gpu.h>
|
|
|
|
|
2022-01-11 12:37:31 +00:00
|
|
|
struct ra *ra_create_pl(pl_gpu gpu, struct mp_log *log);
|
2018-11-10 11:53:33 +00:00
|
|
|
|
2022-01-11 12:37:31 +00:00
|
|
|
pl_gpu ra_pl_get(const struct ra *ra);
|
2018-11-27 04:35:47 +00:00
|
|
|
|
2022-01-11 12:37:31 +00:00
|
|
|
static inline pl_fmt ra_pl_fmt_get(const struct ra_format *format)
|
2019-02-01 04:39:17 +00:00
|
|
|
{
|
|
|
|
return format->priv;
|
|
|
|
}
|
|
|
|
|
2018-11-10 11:53:33 +00:00
|
|
|
// Wrap a pl_tex into a ra_tex struct, returns if successful
|
2022-01-11 12:37:31 +00:00
|
|
|
bool mppl_wrap_tex(struct ra *ra, pl_tex pltex, struct ra_tex *out_tex);
|