summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/core/module.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/core/module.hpp b/src/gallium/state_trackers/clover/core/module.hpp
index bc4b203af8e..b1dd7549e4b 100644
--- a/src/gallium/state_trackers/clover/core/module.hpp
+++ b/src/gallium/state_trackers/clover/core/module.hpp
@@ -44,6 +44,11 @@ namespace clover {
data_private
};
+ section(resource_id id, enum type type, size_t size,
+ const clover::compat::vector<char> &data) :
+ id(id), type(type), size(size), data(data) { }
+ section() : id(0), type(text), size(0), data() { }
+
resource_id id;
type type;
size_t size;
@@ -63,11 +68,19 @@ namespace clover {
sampler
};
+ argument(enum type type, size_t size) : type(type), size(size) { }
+ argument() : type(scalar), size(0) { }
+
type type;
size_t size;
};
struct symbol {
+ symbol(const clover::compat::vector<char> &name, resource_id section,
+ size_t offset, const clover::compat::vector<argument> &args) :
+ name(name), section(section), offset(offset), args(args) { }
+ symbol() : name(), section(0), offset(0), args() { }
+
clover::compat::vector<char> name;
resource_id section;
size_t offset;