forked from bartvdbraak/blender
Fix Cycles assert after recent half changes.
This commit is contained in:
parent
600f7df71b
commit
48caadfdd5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user