// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2017-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
