summaryrefslogtreecommitdiffstats
path: root/o3d/command_buffer/client
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/command_buffer/client')
-rw-r--r--o3d/command_buffer/client/cross/effect_helper.cc1
-rw-r--r--o3d/command_buffer/client/cross/effect_helper.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/o3d/command_buffer/client/cross/effect_helper.cc b/o3d/command_buffer/client/cross/effect_helper.cc
index 1552e29..8302c14 100644
--- a/o3d/command_buffer/client/cross/effect_helper.cc
+++ b/o3d/command_buffer/client/cross/effect_helper.cc
@@ -111,6 +111,7 @@ bool EffectHelper::CreateEffectParameters(ResourceID effect_id,
Desc *raw_desc = raw_descs + j;
desc->data_type = raw_desc->data_type;
desc->data_size = raw_desc->data_size;
+ desc->num_elements = raw_desc->num_elements;
desc->cmd_desc_size = raw_desc->size;
}
}
diff --git a/o3d/command_buffer/client/cross/effect_helper.h b/o3d/command_buffer/client/cross/effect_helper.h
index 4c62487..d802e4a 100644
--- a/o3d/command_buffer/client/cross/effect_helper.h
+++ b/o3d/command_buffer/client/cross/effect_helper.h
@@ -55,6 +55,8 @@ class EffectHelper {
String semantic; // The semantic of the param.
effect_param::DataType data_type; // The data type of a param.
unsigned int data_size; // The size of the data for a param.
+ int num_elements; // The number of array entries if the
+ // parameter is an array, 0 otherwise.
unsigned int cmd_desc_size; // The size of the effect_param::Desc
// structure (counting strings) for a
// param.