[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebCL] WebCL syntax style?
On May 25, 2011, at 8:49 AM, Simon Gibbs - SISA wrote:
>
> On May 24, 2011, at 4:40 PM, Chris Marrin wrote:
>
> ============================<cut>
>
> 1) Keeping it like OpenGL allows us to leverage the learning of existing
> OpenGL developers.
>
> 2) OpenGL ES is a very lightweight API which is very powerful. Moving
> away from its native API means you either make it more heavyweight or
> lose some of its power.
>
> 3) Adding structure to the library would necessarily bias it toward a
> certain solution space, making it less appropriate for other uses.
>
> 4) Coming up with a higher level API that would satisfy everyone would
> have either been impossible or would have taken much too long.
>
> We learned from the success of OpenGL vs the difficulties of higher
> level representations like X3D. Keeping it simple makes it fit a wide
> variety of use cases, and higher level abstractions that suit a
> particular need can be layered on top.
>
> ============================<cut>
>
>
> It seems the above arguments also apply to OpenCL/WebCL. In addition I
> think there's another reason WebCL APIs should be similar to OpenCL:
>
> 5) OpenCL and WebCL will evolve. It will be easier to keep the two in
> sync if WebCL APIs closely resemble those in OpenCL.
Ok, after comparing the API's more closely, OpenCL does follow an object model much more closely than OpenGL. Even though it's a C API, every call that is not "static" contains the object being operated on. So that makes the WebCL API a good reflection of OpenCL.
The only question is how WebCL and WebGL interact. OpenCL has an API for this purpose, but I don't see that represented in WebCL. Is that API coming, or did I miss seeing it in the current API?
-----
~Chris
cmarrin@apple.com
-----------------------------------------------------------
You are currently subscribed to public_webcl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webcl
-----------------------------------------------------------