Skip to content

Commit d530d18

Browse files
author
FlorentGuinier
committed
Minor include tweak + info on unit tests
* Minor include tweak to make RadeonRays compile straight to Unity without modification. * Add some info on how to run/prepare unit tests
1 parent 1399c6c commit d530d18

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ The app only supports loading of pure triangle .obj meshes. The list of supporte
144144
- dds (limited support)
145145
- tga
146146

147+
## Run unit tests
148+
They need to be run from the <Radeon Rays_SDK path>/UnitTest path.
149+
Premake should be runned with the `--safe_math` option.
147150

148151
# Hardware support
149152

RadeonRays/include/math/matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ namespace RadeonRays
181181

182182
inline float4 operator * (matrix const& m, float4 const& v)
183183
{
184-
float4 res {0, 0, 0, 0};
184+
float4 res(0, 0, 0, 0);
185185

186186
for (int i = 0; i < 4; ++i) {
187187
//res[i] = 0.f;

RadeonRays/include/radeon_rays.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ THE SOFTWARE.
2828
#include "math/matrix.h"
2929
#include "math/ray.h"
3030
#include "math/mathutils.h"
31+
#include <cstdint>
3132

3233
#define RADEONRAYS_API_VERSION 2.0
3334

0 commit comments

Comments
 (0)