Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
维度为3的Android Renderscript向量_Android_Eclipse_Renderscript - Fatal编程技术网

维度为3的Android Renderscript向量

维度为3的Android Renderscript向量,android,eclipse,renderscript,Android,Eclipse,Renderscript,我正在尝试编译renderscript,但我总是遇到问题,这是我代码的一部分: typedef struct __attribute__((packed, aligned(4))) Particle { float3 position; float offsetX; } Particle_t; typedef struct VertexColor_s { float3 position; float offsetX; float4 color; } Ve

我正在尝试编译renderscript,但我总是遇到问题,这是我代码的一部分:

typedef struct __attribute__((packed, aligned(4))) Particle {
    float3 position;
    float offsetX;
} Particle_t;

typedef struct VertexColor_s {
    float3 position;
    float offsetX;
    float4 color;
} VertexColor;

VertexColor* vertexColors;
Particle_t *dotParticles;
Particle_t *beamParticles;
当我试图用eclipse编译它时,我在定义这3个变量时会遇到以下错误:

error: structs containing vectors of dimension 3 cannot be exported at this API level: 'vertexColors'
error: structs containing vectors of dimension 3 cannot be exported at this API level: 'dotParticles'
error: structs containing vectors of dimension 3 cannot be exported at this API level: 'beamParticles'
我已设定:

<uses-sdk android:minSdkVersion="13"
        android:targetSdkVersion="13"/>


有什么想法吗

这是一个限制,因为API级别13的设备在任何3元素向量类型的结构布局中都有缺陷。如果你选择14,你的代码应该编译/运行得很好。

你为什么选择API级别13?这是一个限制,因为API级别13设备在任何3元素向量类型的结构布局中都有缺陷。如果你选择14,你的代码应该编译/运行得很好。哇,谢谢,它成功了!!!写下来作为回答,我会接受的。非常感谢。没问题。直到你的回复,我才意识到我是作为评论发布的。我想把它作为一个答案贴出来。