Load cuda at runtime. Include cuda header files inside the project

This commit is contained in:
dec05eba
2022-09-26 01:26:45 +02:00
parent 0059724fdc
commit 4fead183fe
10 changed files with 21480 additions and 47 deletions

View File

@@ -1,7 +1,6 @@
#pragma once
#include "NvFBC.h"
#include <cuda.h>
#include <dlfcn.h>
#include <string.h>
@@ -174,7 +173,7 @@ public:
return false;
}
bool capture(/*out*/ CUdeviceptr *cu_device_ptr, uint32_t *byte_size) {
bool capture(/*out*/ void *cu_device_ptr, uint32_t *byte_size) {
if(!library || !fbc_handle_created || !cu_device_ptr || !byte_size)
return false;