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

28 lines
654 B
C++
Raw Normal View History

// 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 <cstddef>
#include <memory>
#include "warning-enable.hpp"
namespace streamfx::nvidia::cuda {
class memory {
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
device_ptr_t _pointer;
size_t _size;
public:
~memory();
2020-11-08 05:47:47 +00:00
memory(size_t size);
device_ptr_t get();
std::size_t size();
};
} // namespace streamfx::nvidia::cuda