1rtcInterpolateN(3) Embree Ray Tracing Kernels 4 rtcInterpolateN(3)
2
3
4
5 NAME
6 rtcInterpolateN - performs N interpolations of vertex attribute data
7
8 SYNOPSIS
9 #include <embree4/rtcore.h>
10
11 struct RTCInterpolateNArguments
12 {
13 RTCGeometry geometry;
14 const void* valid;
15 const unsigned int* primIDs;
16 const float* u;
17 const float* v;
18 unsigned int N;
19 enum RTCBufferType bufferType;
20 unsigned int bufferSlot;
21 float* P;
22 float* dPdu;
23 float* dPdv;
24 float* ddPdudu;
25 float* ddPdvdv;
26 float* ddPdudv;
27 unsigned int valueCount;
28 };
29
30 void rtcInterpolateN(
31 const struct RTCInterpolateNArguments* args
32 );
33
34 DESCRIPTION
35 The rtcInterpolateN is similar to rtcInterpolate, but performs N many
36 interpolations at once. It additionally gets an array of u/v coordi‐
37 nates and a valid mask (valid parameter) that specifies which of these
38 coordinates are valid. The valid mask points to N integers, and a val‐
39 ue of -1 denotes valid and 0 invalid. If the valid pointer is NULL all
40 elements are considers valid. The destination arrays are filled in
41 structure of array (SOA) layout. The value N must be divisible by 4.
42
43 To use rtcInterpolateN for a geometry, all changes to that geometry
44 must be properly committed using rtcCommitGeometry.
45
46 EXIT STATUS
47 For performance reasons this function does not do any error checks,
48 thus will not set any error flags on failure.
49
50 SEE ALSO
51 [rtcInterpolate]
52
53
54
55 rtcInterpolateN(3)