Blender V4.3
hiprt.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2023 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#ifdef WITH_HIPRT
6
7# pragma once
8
9# include "bvh/bvh.h"
10# include "bvh/params.h"
11
12# ifdef WITH_HIP_DYNLOAD
13# include "hiprtew.h"
14# else
15# include <hiprt/hiprt_types.h>
16# endif
17
18# include "device/memory.h"
19
21
22class BVHHIPRT : public BVH {
23 public:
24 friend class HIPDevice;
25
26 bool is_tlas()
27 {
28 return params.top_level;
29 }
30
31 hiprtGeometry hiprt_geom;
32 hiprtTriangleMeshPrimitive triangle_mesh;
33 hiprtAABBListPrimitive custom_prim_aabb;
34 hiprtGeometryBuildInput geom_input;
35
36 vector<int2> custom_prim_info; /* x: prim_id, y: prim_type */
37 vector<float2> prims_time;
38
39 /* Custom primitives. */
40 device_vector<BoundBox> custom_primitive_bound;
41 device_vector<int> triangle_index;
42 device_vector<float> vertex_data;
43
44 protected:
45 friend class BVH;
46 BVHHIPRT(const BVHParams &params,
47 const vector<Geometry *> &geometry,
48 const vector<Object *> &objects,
49 Device *in_device);
50
51 virtual ~BVHHIPRT();
52
53 private:
54 Device *device;
55};
56
58
59#endif
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Gabor Generate Gabor noise Gradient Generate interpolated color and intensity values based on the input vector Magic Generate a psychedelic color texture Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a vector
Definition bvh/bvh.h:66
#define CCL_NAMESPACE_END
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
ccl_device bool BVH_FUNCTION_FULL_NAME BVH(KernelGlobals kg, ccl_private const Ray *ray, ccl_private LocalIntersection *local_isect, int local_object, ccl_private uint *lcg_state, int max_hits)
Definition local.h:28