I don't get an error. As an aside, as far as I know vstore4 has been
deprecated. Just use ouputVertices[tid] = vertex;
.xX
On May 8, 2010, at 10:09 PM, George Toledo wrote:
> In this example, if I get/set indices, normals, or colors, the qtz executes
> correctly. If I get/set vertices, a model will stop rendering.
>
> I found this in testing manipulating the structure of vertices. When reducing
> it to the simplest group of patches, I found that I couldn't actually get/set
> vertices without QC having a rendering error.
>
> Does this happen similarly for others, or is it specific to my system? It
> happens for all models for me.
>
> This is the message I get:
>
> [01:01:53.713] <QCOpenCL = 0x21C57420 "OpenCL_4">: Failed setting
> kernel arguments
> [01:01:53.713] <QCOpenCL = 0x21C57420 "OpenCL_4">: Failed executing
> kernel __kernel void affine3(const __global float4 *inputVertices,
> __constant float scale, __constant float4 t,
> __global float4
> *outputVertices)
> {
> int tid = get_global_id(0), i;
> float4 vertex;
>
> vertex = vload4((size_t)tid, (const
> __global float*)inputVertices);
> vertex.xyz/vertex.w;
> vertex.xyz = vertex.xyz * scale + t.xyz;
>
> vstore4(vertex, (size_t)tid, (__global
> float*)outputVertices);
> }
>
>
> Global Dim (1) = 13432, 0, 0
> Local Dim (1) = 8, 0, 0
> Input Arguments: 0: Buffer, Count = 13432,
> Component Count = 4, Type = Float
>
> Output Arguments: 0: Buffer, Count = 13432,
> Component Count = 4, Type = Float
>
>
> -George Toledo
> <get set mesh test.qtz> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/quartzcomposer-dev/asabatelli%40apple.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]