mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 08:15:06 +00:00
25 lines
704 B
C++
25 lines
704 B
C++
// AUTOGENERATED COPYRIGHT HEADER START
|
|
// Copyright (C) 2020-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
|
|
|
#pragma once
|
|
#include "nvidia-cuda.hpp"
|
|
|
|
#include "warning-disable.hpp"
|
|
#include <memory>
|
|
#include "warning-enable.hpp"
|
|
|
|
namespace streamfx::nvidia::cuda {
|
|
class stream {
|
|
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
|
::streamfx::nvidia::cuda::stream_t _stream;
|
|
|
|
public:
|
|
~stream();
|
|
stream(::streamfx::nvidia::cuda::stream_flags flags = ::streamfx::nvidia::cuda::stream_flags::DEFAULT, int32_t priority = 0);
|
|
|
|
::streamfx::nvidia::cuda::stream_t get();
|
|
|
|
void synchronize();
|
|
};
|
|
} // namespace streamfx::nvidia::cuda
|