#pragma once #include #include "GpuMemoryBuffer.h" namespace unity { namespace webrtc { struct GpuMemoryBufferCudaHandle : public GpuMemoryBufferHandle { GpuMemoryBufferCudaHandle(); GpuMemoryBufferCudaHandle(GpuMemoryBufferCudaHandle&& other); GpuMemoryBufferCudaHandle& operator=(GpuMemoryBufferCudaHandle&& other); virtual ~GpuMemoryBufferCudaHandle() override; CUcontext context; CUarray array; CUarray mappedArray; CUdeviceptr mappedPtr; CUgraphicsResource resource; CUexternalMemory externalMemory; }; } }