Skip to content

Commit f84bcef

Browse files
author
Konstantin Zverev
committed
Replace tablesheets by lists in doc.
1 parent f6811b9 commit f84bcef

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Doc/RadeonRays.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,21 @@ rays[2].d = float3(0.f, 0.f, 1.f);
119119
Buffer* ray_buffer = api->CreateBuffer(3 * sizeof(ray), rays);
120120
```
121121
The layout of ray is structure:
122-
| o.xyz | Ray origin |
123-
|-------|----------------------------|
124-
| d.xyz | Ray direction |
125-
| o.w | Ray maximum distance |
126-
| d.w | Time stamp for motion blur |
122+
* o.xyz - Ray origin
123+
* d.xyz - Ray direction
124+
* o.w - Ray maximum distance
125+
* d.w - Time stamp for motion blur
127126

128127
The same way need to allocate memory for intersection results:
129128
```
130129
Buffer* isect_buffer = api->CreateBuffer(3 * sizeof(Intersection), nullptr);
131130
```
132131
Intersection structure:
133-
| uvwt.xyz | Parametric coordinates of a hit (xy for triangles and quads) |
134-
|----------|--------------------------------------------------------------|
135-
| uvwt.w | Hit distance along the ray |
136-
| shapeid | ID of a shape |
137-
| primid | ID of a primitive within a shape |
132+
* uvwt.xyz - Parametric coordinates of a hit (xy for triangles and quads)
133+
* uvwt.w - Hit distance along the ray
134+
* shapeid - ID of a shape
135+
* primid - ID of a primitive within a shape
136+
138137
Shape ID corresponds to a value which is either automatically assigned to a shape at creation time by the API or manually set by the user using Shape::SetId() method. Primitive ID is a zero-based index of a primitive within a shape (in the order they were passed to CreateMesh method). If no intersection is detected, they are both set to kNullId(-1).
139138

140139
Buffers can be mapped and unmapped with the following calls:

0 commit comments

Comments
 (0)