The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: address space qualifiers and pointers to arrays

Both declarations declare a pointer to an array of 12 floats, even though the syntax for dereferencing the pointer is different.

Consider the five examples below; these are fully equivalent and could/should lead to the same generated binary code (remove the __kernel and __global, and it is legal C code; you will see that an optimizing C compiler will generate exactly the same instructions for all five cases).