[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Public WebCL] WebCL syntax style?



Hi Evgeny,

I think the WebGL group decided to put everything under WebGLRenderingContext because it makes porting existing OpenGL code easier. There's a huge amount of existing OpenGL code, but not that much existing OpenCL code, so we decided to make the WebCL API a bit more object-oriented and JavaScript-like.

But again, this is just the Nokia prototype, and shouldn't be taken as an indication of what the final WebCL API will be like.

Best regards,
  Tomi

-----Original Message-----
From: owner-public_webcl@khronos.org [mailto:owner-public_webcl@khronos.org] On Behalf Of ext Evgeny Demidov
Sent: 13. toukokuuta 2011 15:30
To: public_webcl@khronos.org
Subject: [Public WebCL] WebCL syntax style?


hi,

In WebGL all OpenGL functions are methods of the "gl" object (e.g. 
gl.createBuffer() ).
Why in the Nokia Research WebCL realization OpenCL functions are method of "corresponding" objects ( clCreateBuffer(ctx, ...) becomes
ctx.createBuffer(...) )? Is it necessarily? Is it Nokia Research or Khronos working group choice?

Evgeny
-----------------------------------------------------------
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
-----------------------------------------------------------


-----------------------------------------------------------
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
-----------------------------------------------------------