|
hi, I'm starting my "WebCL examples" at http://www.ibiblio.org/e-notes/webcl/webcl.htm i have a few (or lot :) of questions? 1. What is the WebCL DataObject object? 2. The Mandelbrot set kernel uses the cl_amd_fp64 extension. How can I include cl_khr_fp64 e.g. for NVIDIA? 3. Which of these two scripts shall I use? WebGL like one function loadKernel ( id ){
var shaderScript = document.getElementById ( id );
var str = "";
var k = shaderScript.firstChild;
while ( k ){
if ( k.nodeType == 3 ) str += k.textContent;
k = k.nextSibling;
}
return str;
}
or Nokia onefunction loadKernel(id){
var kernelElement = document.getElementById(id);
var kernelSource = kernelElement.text;
if (kernelElement.src != "") {
var mHttpReq = new XMLHttpRequest();
mHttpReq.open("GET", kernelElement.src, false);
mHttpReq.send(null);
kernelSource = mHttpReq.responseText;
}
return kernelSource;
}
4. sorry, why "WebCL." prefix? (not simple "cl." as like as "gl." in
WebGL)Evgeny |