2023-02-28 01:15:26 +00:00
|
|
|
// AUTOGENERATED COPYRIGHT HEADER START
|
|
|
|
// Copyright (C) 2021-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
2021-04-25 22:32:35 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "nvidia-cuda-context.hpp"
|
|
|
|
#include "nvidia-cuda-stream.hpp"
|
|
|
|
#include "nvidia-cuda.hpp"
|
|
|
|
|
2022-08-29 10:29:44 +00:00
|
|
|
#include "warning-disable.hpp"
|
|
|
|
#include <memory>
|
|
|
|
#include "warning-enable.hpp"
|
|
|
|
|
2021-06-16 10:16:35 +00:00
|
|
|
namespace streamfx::nvidia::cuda {
|
2021-04-25 22:32:35 +00:00
|
|
|
class obs {
|
2021-06-16 10:16:35 +00:00
|
|
|
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
|
|
|
std::shared_ptr<::streamfx::nvidia::cuda::context> _context;
|
|
|
|
std::shared_ptr<::streamfx::nvidia::cuda::stream> _stream;
|
2021-04-25 22:32:35 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
~obs();
|
|
|
|
obs();
|
|
|
|
|
2021-06-16 10:16:35 +00:00
|
|
|
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();
|
2021-04-25 22:32:35 +00:00
|
|
|
|
|
|
|
public:
|
2021-06-16 10:16:35 +00:00
|
|
|
static std::shared_ptr<::streamfx::nvidia::cuda::obs> get();
|
2021-04-25 22:32:35 +00:00
|
|
|
};
|
2021-06-16 10:16:35 +00:00
|
|
|
} // namespace streamfx::nvidia::cuda
|