59 minutes ago, Andrey OGL_D3D said:
Is glut instead of glfw?
Replaced.
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
27 minutes ago, _Flame_ said:Is glut instead of glfw?
Yes, you can use glut instead of glfw, please create simple test project, i will change code and test of result.
Changed. Texture is created inside QuadDrawable.cpp and opencl code inside OpenCLWorker.cpp Also copy kernel.cl to the folder with app.
15 hours ago, _Flame_ said:Changed. Texture is created inside QuadDrawable.cpp and opencl code inside OpenCLWorker.cpp Also copy kernel.cl to the folder with app.
i Have a black texture even using write_imagef:
float4 valf = { 255.f, 0.f, 0.f, 255.f };
write_imagef(outputImage, coords, valf);
Sorry, i have found my mistake, i should change texture parameters:
const int TEXTURE_INTERNAL_FORMAT = GL_RGBA;
const GLenum TEXTURE_FORMAT = GL_RGBA;
const GLenum TEXTURE_TYPE = GL_UNSIGNED_BYTE;
1 minute ago, _Flame_ said:Have you tried on amd?
Yes, i have the same result on AMD, black texture for
GL_RGBA_INTEGER/GL_RGBA8UI and
uint4 vali = { 255, 0, 0, 255 };
write_imageui(outputImage, coords, vali);
Also, I have some AMD forum posts about OpenCL/Vulkan. You should ask about it on AMD even if you have an invalid result on nVidia/Intel.