Skip to content

Instantly share code, notes, and snippets.

@43x2
43x2 / BitonicSortCS.fx
Created June 2, 2012 08:31
Bitonic sorting in compute shaders
//
// Debug: fxc /E cs_main /T cs_5_0 /Fh (output) /Od /Vn g_BitonicSortCS /Zi (this)
// Release: fxc /E cs_main /T cs_5_0 /Fh (output) /O1 /Vn g_BitonicSortCS (this)
//
// スレッド数
#define THREADS_X 512
// ソート要素数
#define ELEMENTS_TO_SORT ( 1 << 10 )