Hi there,

I am trying to initialize the following array:

__constant float4 splitter_cache[2] like this:

__constant float4 splitter_cache[2] = { (float4)(0.0f,0.0f,0.0f,0.0f), (float4)(0.0f,0.0f,0.0f,0.0f) };

But I get a compile error. What's the problem?
Code :
clBuildProgram() failed: -11
<:5: error: incompatible type initializing 'float4', expected 'float'
__constant float4 splitter_cache[2] = { (float4)(0.0f,0.0f,0.0f,0.0f), (float4)(0.0f,0.0f,0.0f,0.0f) };
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:5: error: incompatible type initializing 'float4', expected 'float'
__constant float4 splitter_cache[2] = { (float4)(0.0f,0.0f,0.0f,0.0f), (float4)(0.0f,0.0f,0.0f,0.0f) };
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~