Hi,
iam building a vst-plugin (DLL) in c++.
in my header i do:
extern “C” void GPUGAIN(float fGain, unsigned int width,unsigned int height,float* inputBuffer,
float* outputBuffer, float** BlockBufferIn);
then calling from the main c++ function:
GPUGAIN(fGain, width, height, inputBuffer, outputBuffer, BlockBufferIn);
which goes to the .cu file:
extern “C” void GPUGAIN(float fGain, unsigned int width,unsigned int height,
float* inputBuffer,float* outputBuffer, float** BlockBufferIn)
{
and then calling the kernel:
GPUGAINOnDevice <<< nBlocks, BLOCK_DIM>>> (fGain, a_d, (ArraySize));
}
that goes to the _kernel.cu
global void GPUGAINOnDevice(float fGain, float a, int const size)
{
int Xidx = blockIdx.x blockDim.x + threadIdx.x;
if (Xidx < size)
{
a[Xidx] = a[Xidx] * fGain;
}
}
now i want to make som visualisiation with openGL. the simpleGL sample code doesnt really help me.
is there a “how-to” somewhere?
i need your help here, thanks in advance
kind regards.