return buf;\r
}\r
\r
- // TODO: Since the returned texture is cached it CANNOT be modified.\r
+ // TODO: Since the returned texture is cached it SHOULD NOT be modified.\r
boost::unique_future<spl::shared_ptr<texture>> copy_async(const array<const std::uint8_t>& source, int width, int height, int stride)\r
{\r
std::shared_ptr<buffer> buf = copy_to_buf(source);\r
\r
spl::shared_ptr<texture> create_texture(int width, int height, int stride);\r
array<std::uint8_t> create_array(int size);\r
-\r
+ \r
+ // NOTE: Since the returned texture is cached it SHOULD NOT be modified.\r
boost::unique_future<spl::shared_ptr<texture>> copy_async(const array<const std::uint8_t>& source, int width, int height, int stride);\r
+\r
boost::unique_future<spl::shared_ptr<texture>> copy_async(const array<std::uint8_t>& source, int width, int height, int stride);\r
boost::unique_future<array<const std::uint8_t>> copy_async(const spl::shared_ptr<texture>& source);\r
\r