From 9c3c87c8a2579a99e7950089661f00ee83a619e5 Mon Sep 17 00:00:00 2001 From: WU Qi Date: Thu, 28 Dec 2023 14:02:12 -0800 Subject: [PATCH] simplify --- apps/shadowmap.cu | 10 ++-------- core/CMakeLists.txt | 2 -- {core/renderer => device}/method_shadowmap.cu | 0 {core/renderer => device}/method_shadowmap.h | 0 4 files changed, 2 insertions(+), 10 deletions(-) rename {core/renderer => device}/method_shadowmap.cu (100%) rename {core/renderer => device}/method_shadowmap.h (100%) diff --git a/apps/shadowmap.cu b/apps/shadowmap.cu index 73dc005..8b9a7e0 100644 --- a/apps/shadowmap.cu +++ b/apps/shadowmap.cu @@ -34,14 +34,8 @@ typedef ovr::math::vec4i vec4i; // to avoid crazy formatting and indentations -#define NAMESPACE_BEGIN \ - namespace ovr \ - { \ - namespace nnvolume \ - { -#define NAMESPACE_END \ - } \ - } +#define NAMESPACE_BEGIN namespace ovr { namespace nnvolume { +#define NAMESPACE_END }} NAMESPACE_BEGIN diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 7a62397..cd7608c 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -65,8 +65,6 @@ add_library(${target} SHARED renderer/method_pathtracing.h renderer/method_raymarching.cu renderer/method_raymarching.h - renderer/method_shadowmap.cu - renderer/method_shadowmap.h renderer/raytracing.h renderer/dda.h diff --git a/core/renderer/method_shadowmap.cu b/device/method_shadowmap.cu similarity index 100% rename from core/renderer/method_shadowmap.cu rename to device/method_shadowmap.cu diff --git a/core/renderer/method_shadowmap.h b/device/method_shadowmap.h similarity index 100% rename from core/renderer/method_shadowmap.h rename to device/method_shadowmap.h