Fix Cycles assert after recent half changes.

This commit is contained in:
Brecht Van Lommel 2016-06-19 20:17:03 +02:00
parent 600f7df71b
commit 48caadfdd5
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ template<> struct device_type_traits<float4> {
static const int num_elements = 4;
};
template<> struct device_type_traits<half> {
static const DataType data_type = TYPE_HALF;
static const int num_elements = 1;
};
template<> struct device_type_traits<half4> {
static const DataType data_type = TYPE_HALF;
static const int num_elements = 4;