3 #include "host_buffer.h"
\r
5 #include <boost/noncopyable.hpp>
\r
9 namespace caspar { namespace core {
\r
11 class device_buffer : boost::noncopyable
\r
14 device_buffer(size_t width, size_t height, size_t stride);
\r
16 size_t stride() const;
\r
17 size_t width() const;
\r
18 size_t height() const;
\r
23 void attach(int index);
\r
24 void read(host_buffer& source);
\r
25 void write(host_buffer& target);
\r
28 struct implementation;
\r
29 std::shared_ptr<implementation> impl_;
\r