From 1c3ea27064257d8cf7b9f36b0388b8cf2e94ab08 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Fri, 26 Jan 2018 01:12:49 +0100 Subject: Skeleton for OpenCL rendering, cleaned up alot, WIP and crashing --- src/defs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/defs.h') diff --git a/src/defs.h b/src/defs.h index 00b51bd..505fe69 100644 --- a/src/defs.h +++ b/src/defs.h @@ -19,6 +19,10 @@ #define FALSE 0 #endif +// Rendering modes, u8 +#define MODE_CPU 0 +#define MODE_OPENCL 1 + typedef unsigned char u8; typedef signed char s8; @@ -31,6 +35,8 @@ typedef signed long int s32; typedef unsigned long long u64; typedef signed long long s64; +typedef long double d64; + //typedef u8 bool; #endif /* DEFS_H_ */ -- cgit v1.2.1 From c8a38bd8ad66eb0b35f08a4733fdee37a888b83c Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Sat, 27 Jan 2018 02:03:31 +0100 Subject: OpenCL rendering added, not working properly --- src/defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/defs.h') diff --git a/src/defs.h b/src/defs.h index 505fe69..fc0c91d 100644 --- a/src/defs.h +++ b/src/defs.h @@ -8,6 +8,8 @@ #ifndef DEFS_H_ #define DEFS_H_ +#include + #ifndef NULL #define NULL 0 #endif -- cgit v1.2.1