27 std::vector<sycl::event> event_last_read;
28 sycl::event event_last_write;
30 const u32 id_hash = gen_buf_hash();
31 inline u32 get_hash() {
return id_hash; }
32 inline std::string get_hash_log() {
return shambase::format(
"id = {} |", id_hash); }
34 bool up_to_date_events =
true;
36 enum LastEvent { READ, READ_WRITE } last_event_create;
38 void add_read_dependancies(std::vector<sycl::event> &depends_list);
40 void add_read_write_dependancies(std::vector<sycl::event> &depends_list);
42 void register_read_event(
const sycl::event &e);
44 void register_read_write_event(
const sycl::event &e);