15# ifndef CYCLES_KERNEL_ONEAPI_EXPORT
17# if defined(ONEAPI_EXPORT)
18# define CYCLES_KERNEL_ONEAPI_EXPORT extern __declspec(dllexport)
20# define CYCLES_KERNEL_ONEAPI_EXPORT extern __declspec(dllimport)
23# define CYCLES_KERNEL_ONEAPI_EXPORT extern __attribute__((visibility("default")))
29typedef void (*OneAPIErrorCallback)(
const char *
error,
void *user_ptr);
37 int scene_max_shaders;
46CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_run_test_kernel(SyclQueue *queue_);
47CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_zero_memory_on_device(SyclQueue *queue_,
50CYCLES_KERNEL_ONEAPI_EXPORT
void oneapi_set_error_cb(OneAPIErrorCallback cb,
void *user_ptr);
51CYCLES_KERNEL_ONEAPI_EXPORT
size_t oneapi_suggested_gpu_kernel_size(
const DeviceKernel kernel);
52CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_enqueue_kernel(KernelContext *context,
56 const unsigned int kernel_features,
57 bool use_hardware_raytracing,
59CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_load_kernels(SyclQueue *queue,
60 const unsigned int kernel_features,
61 bool use_hardware_raytracing);
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
static void error(const char *str)