In the commonly used cycles headers, it's enough to include much smaller <iosfwd> than the full <iostream>. While looking at it, removed inclusion of some other headers from commonly used headers, that seemed to not be needed. Pull Request: https://projects.blender.org/blender/blender/pulls/111063
30 lines
632 B
C++
30 lines
632 B
C++
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#pragma once
|
|
|
|
#ifndef __KERNEL_ONEAPI__
|
|
# include "kernel/types.h"
|
|
|
|
# include "util/string.h"
|
|
|
|
# include <iosfwd>
|
|
#endif
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
bool device_kernel_has_shading(DeviceKernel kernel);
|
|
bool device_kernel_has_intersection(DeviceKernel kernel);
|
|
|
|
const char *device_kernel_as_string(DeviceKernel kernel);
|
|
|
|
#ifndef __KERNEL_ONEAPI__
|
|
std::ostream &operator<<(std::ostream &os, DeviceKernel kernel);
|
|
|
|
typedef uint64_t DeviceKernelMask;
|
|
string device_kernel_mask_as_string(DeviceKernelMask mask);
|
|
#endif
|
|
|
|
CCL_NAMESPACE_END
|