Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Prev Previous Post   Next Post Next
Old 07-Oct-2009, 20:35   #1
Voxilla
Member
 
Join Date: Jun 2007
Posts: 220
Default DX11 direct compute mandelbrot viewer

Here a quite fast mandelbrot viewer, making use of DX11 and the DirectCompute API.

The set is calculated with up to 1024 iterations. Making use of the horsepower of DX11 GPUs enables real-time panning and zooming even at high resolution.

Two versions are included, a scalar one and a vectorized computation version.
Both generate the same output. The vectorized version was made after suboptimal performance on the ATI HD 5870 with scalar calculation.
Compared to the scalar version it runs twice faster on this GPU. Here we see the backside of a non scalar GPU architecture.
On forthcoming scalar Nvidia DX11 GPUs, probably the scalar version will run faster. Writing a vectorized compute shader is substantial more complicated.

On the HD 5870 computational throughput is well over 1.5 TFLOPS/s.

Full source code is included.
Remark that no drawing code was needed. It is possible to directly write to the backbuffer from the compute shader.

By pressing the space bar the calculation can be switched between scalar and vectorized.
Zooming in and out can be done with the left and right mouse button.
Panning is with moving the mouse. With the mouse inside an invisible quarter screen sized centered circle, panning stops.
With the A and Z keys the color can be cycled.
ALT + Enter goes to full screen.
Voxilla is offline   Reply With Quote

 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:48.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.