Update code format

This commit is contained in:
shawnz
2025-04-03 11:23:26 +08:00
parent 718fe6486d
commit b013387a39
11 changed files with 31 additions and 11 deletions

View File

@@ -86,8 +86,10 @@
#include <windows.h>
#endif
// includes
// includes for OpenGL
#include <helper_gl.h>
// includes
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <helper_cuda.h> // includes cuda.h and cuda_runtime_api.h

View File

@@ -27,9 +27,11 @@
#include "render_particles.h"
// includes for OpenGL
#include <helper_gl.h>
#define HELPERGL_EXTERN_GL_FUNC_IMPLEMENTATION
#include <assert.h>
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <helper_cuda.h>

View File

@@ -31,7 +31,10 @@
#pragma warning(disable : 4312)
// includes for Windows
#include <windows.h>
// includes for multimedia
#include <mmsystem.h>
// This header inclues all the necessary D3D11 and CUDA includes

View File

@@ -31,7 +31,10 @@
#pragma warning(disable : 4312)
// includes for Windows
#include <windows.h>
// includes for multimedia
#include <mmsystem.h>
// This header inclues all the necessary D3D11 and CUDA includes

View File

@@ -33,7 +33,11 @@
#include <memory.h>
#define HELPERGL_EXTERN_GL_FUNC_IMPLEMENTATION
// includes for OpenGL
#include <helper_gl.h>
// includes
#include <cuda_gl_interop.h>
#include <cuda_runtime.h>
#include <helper_cuda.h>

View File

@@ -29,9 +29,13 @@
This file contains simple wrapper functions that call the CUDA kernels
*/
#define HELPERGL_EXTERN_GL_FUNC_IMPLEMENTATION
// includes for OpenGL
#include <helper_gl.h>
// includes
#include <cstdio>
#include <cstdlib>
#include <helper_gl.h>
#include <cuda_gl_interop.h>
#include <helper_cuda.h>
#include <string.h>