obs-StreamFX/source/nvidia/cuda/nvidia-cuda-obs.hpp

32 lines
924 B
C++
Raw Normal View History

// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2021-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
#pragma once
#include "nvidia-cuda-context.hpp"
#include "nvidia-cuda-stream.hpp"
#include "nvidia-cuda.hpp"
#include "warning-disable.hpp"
#include <memory>
#include "warning-enable.hpp"
namespace streamfx::nvidia::cuda {
class obs {
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
std::shared_ptr<::streamfx::nvidia::cuda::context> _context;
std::shared_ptr<::streamfx::nvidia::cuda::stream> _stream;
public:
~obs();
obs();
std::shared_ptr<::streamfx::nvidia::cuda::cuda> get_cuda();
std::shared_ptr<::streamfx::nvidia::cuda::context> get_context();
std::shared_ptr<::streamfx::nvidia::cuda::stream> get_stream();
public:
static std::shared_ptr<::streamfx::nvidia::cuda::obs> get();
};
} // namespace streamfx::nvidia::cuda