core::igles::compute class

core::igles::material_t-like object for compute resources

Compute resources encapsulate a core::igles::program that targets the compute stage in the graphics pipeline. It has a similar to core::igles::material_t like API, and can be considered the equivalent to it, but instead of targetting draw commands, this encapsulates the abstract compute commands. Like materials, this object has core::igles::texture_t and core::igles::buffer_t inputs, and instance-like data. But unlike materials, this object also has core::igles::texture_t and core::igles::buffer_t outputs, which can be integrated into your normal core::gfx::pass as a (potentially) concurrent process. The outputs will put a hard sync on draw/compute calls that happen after this that utilize these resources.