Function BitonicSort

Synopsis

#include <Source/Falcor/Utils/Algorithm/BitonicSort.h>

BitonicSort()

Description

No description yet.

Source

Lines 35-49 in Source/Falcor/Utils/Algorithm/BitonicSort.cpp. Line 66 in Source/Falcor/Utils/Algorithm/BitonicSort.h.

BitonicSort::BitonicSort()
{
!_ENABLE_NVAPI
    throw std::exception("BitonicSort requires NVAPI. Set _ENABLE_NVAPI to true in FalcorConfig.h.");
if
    mSort.pState = ComputeState::create();
    // Create shaders
    Program::DefineList defines;
    defines.add("CHUNK_SIZE", "256");   // Dummy values just so we can get reflection data. We'll set the actual values in execute().
    defines.add("GROUP_SIZE", "256");
    mSort.pProgram = ComputeProgram::createFromFile(kShaderFilename, "main", defines);
    mSort.pState->setProgram(mSort.pProgram);
    mSort.pVars = ComputeVars::create(mSort.pProgram.get());
}





Add Discussion as Guest

Log in