Skip to content

Instantly share code, notes, and snippets.

View WaffleMan0310's full-sized avatar

Kyle Aheron WaffleMan0310

View GitHub Profile
template <class R, class ...Args>
class Task;
template <class R, class ...Args>
class Task<R(Args...)> {
public:
Task(std::function<R(Args...)> t);
virtual void operator()(Args... args);
@WaffleMan0310
WaffleMan0310 / Headunit.log
Created May 5, 2018 15:48
Log for building of Headunit
1>------ Build started: Project: OpenGLCuda, Configuration: Debug x64 ------
2>------ Build started: Project: OpenGLWrapper, Configuration: Debug x64 ------
1>Build started 5/5/2018 11:44:36 AM.
2>Build started 5/5/2018 11:44:36 AM.
1>Target InitializeBuildStatus:
1> Creating "x64\Debug\OpenGLCuda.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
2>Target InitializeBuildStatus:
2> Creating "x64\Debug\OpenGLWrapper.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
2>Target FinalizeBuildStatus:
2> Deleting file "x64\Debug\OpenGLWrapper.tlog\unsuccessfulbuild".
@WaffleMan0310
WaffleMan0310 / Buffer.cu
Created May 4, 2018 20:39
GL Buffer with CUDA
#ifndef CUDA_GL_BUFFER
#define CUDA_GL_BUFFER
#include <glad\glad.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <cuda_gl_interop.h>
#include <thrust\device_vector.h>
#include <thrust\host_vector.h>
#include <memory>