Skip to content

Commit

Permalink
Missing code when not embedding kernel code
Browse files Browse the repository at this point in the history
  • Loading branch information
gboisse committed Jan 19, 2018
1 parent b77c3e1 commit 58d5208
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion RadeonRays/src/intersector/intersector_lds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,19 @@ namespace RadeonRays
#endif

#ifndef RR_EMBED_KERNELS
// TODO: add implementation (gboisse)
if (device->GetPlatform() == Calc::Platform::kOpenCL)
{
const char *headers[] = { "../RadeonRays/src/kernels/CL/common.cl" };

int numheaders = sizeof(headers) / sizeof(const char *);

m_gpuData->executable = m_device->CompileExecutable("../RadeonRays/src/kernels/CL/intersect_bvh2_lds.cl", headers, numheaders, buildopts.c_str());
}
else
{
assert(device->GetPlatform() == Calc::Platform::kVulkan);
m_gpuData->executable = m_device->CompileExecutable("../RadeonRays/src/kernels/GLSL/bvh2.comp", nullptr, 0, buildopts.c_str());
}
#else
#if USE_OPENCL
if (device->GetPlatform() == Calc::Platform::kOpenCL)
Expand Down

0 comments on commit 58d5208

Please sign in to comment.