OpenCL parallel calculations and OpenGL rendering
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src double precision Apr 5, 2017
.gitattributes
.gitignore
LICENSE Initial commit Nov 10, 2016
README.md

README.md

.oO@ ClooToOpenGL @Oo.

Live rendering of Mandelbrot fractal with help of .NET, Cloo and SharpGL. Actually, collaboration of OpenCL and OpenGL.

cloo2opengl_v11

  • Left Mouse click to center image.
  • Scrool wheeeel to zoom/unzoom.
  • Cursor up/down - Increments/decrements the number of iterations (Shift+ would get x10 speed up)

At start it's looking for NVIDIA graphics card but you can start your own journey from changing this. Just replace the string "NVIDIA" to the "INTEL" or "AMD":

MainWindow.xaml.cs

private void Cloo_Initialize(OpenGLEventArgs args)
{
	[...]
	foreach (var p in ComputePlatform.Platforms)
		foreach(var d in p.Devices)
			if (d.Vendor.ToUpperInvariant().Contains("NVIDIA")) // "INTEL")) // "AMD"))
			[...]

Kernels Here

Since version 1.1 you can edit kernel which you can find under the /kernels folder. The kernel file could be edited in isolation of main application.

Deeper and Darker

cloo2opengl

cloo2opengl2