23 halp_meta(name,
"Buffer Info")
24 halp_meta(category,
"Visuals/Utilities")
25 halp_meta(c_name,
"buffer_info")
26 halp_meta(manual_url,
"https://ossia.io/score-docs/processes/buffer-info.html")
27 halp_meta(uuid,
"f1a3d6c8-2b4e-4c5d-8a9f-1e2d3c4b5a60")
31 halp::gpu_buffer_input<
"Buffer"> buffer;
38 halp::val_port<
"Byte size", int64_t> byte_size;
39 halp::val_port<
"Byte offset", int64_t> byte_offset;
43 halp::val_port<
"Handle", int64_t> handle;
44 halp::val_port<
"Changed",
bool> changed;
46 halp::val_port<
"Readable", std::string> readable;
51 const auto& b = inputs.buffer.buffer;
52 outputs.byte_size.value = b.byte_size;
53 outputs.byte_offset.value = b.byte_offset;
54 outputs.handle.value =
reinterpret_cast<std::int64_t
>(b.handle);
55 outputs.changed.value = b.changed;
57 auto& ret = outputs.readable.value;
60 std::back_inserter(ret),
61 "handle=0x{:x}, byte_size={}, byte_offset={}, changed={}",
62 reinterpret_cast<std::uintptr_t
>(b.handle), b.byte_size, b.byte_offset,
63 b.changed ?
"yes" :
"no");