obs-StreamFX/source/nvidia/cuda/nvidia-cuda-stream.hpp
2023-05-14 03:25:07 +02:00

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