MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / initCUDABuffers

Function initCUDABuffers

cpp/5_Domain_Specific/postProcessGL/main.cpp:902–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900////////////////////////////////////////////////////////////////////////////////
901#ifndef USE_TEXSUBIMAGE2D
902void initCUDABuffers()
903{
904 // set up vertex data parameter
905 num_texels = image_width * image_height;
906 num_values = num_texels * 4;
907 size_tex_data = sizeof(GLubyte) * num_values;
908 checkCudaErrors(cudaMalloc((void **)&cuda_dest_resource, size_tex_data));
909 // checkCudaErrors(cudaHostAlloc((void**)&cuda_dest_resource, size_tex_data,
910 // ));
911}
912#endif
913
914////////////////////////////////////////////////////////////////////////////////

Callers 1

runStdProgramFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected