diff --git a/source/nvidia/cuda/nvidia-cuda-gs-texture.cpp b/source/nvidia/cuda/nvidia-cuda-gs-texture.cpp index 7b953ecb..18d1c2e9 100644 --- a/source/nvidia/cuda/nvidia-cuda-gs-texture.cpp +++ b/source/nvidia/cuda/nvidia-cuda-gs-texture.cpp @@ -131,3 +131,13 @@ void nvidia::cuda::gstexture::unmap() _pointer = nullptr; _stream.reset(); } + +std::shared_ptr nvidia::cuda::gstexture::get_texture() +{ + return _texture; +} + +::nvidia::cuda::graphics_resource_t nvidia::cuda::gstexture::get() +{ + return _resource; +} diff --git a/source/nvidia/cuda/nvidia-cuda-gs-texture.hpp b/source/nvidia/cuda/nvidia-cuda-gs-texture.hpp index 3e63bad1..97b4fe1e 100644 --- a/source/nvidia/cuda/nvidia-cuda-gs-texture.hpp +++ b/source/nvidia/cuda/nvidia-cuda-gs-texture.hpp @@ -35,10 +35,13 @@ namespace nvidia::cuda { std::shared_ptr _stream; public: - gstexture(std::shared_ptr texture); ~gstexture(); + gstexture(std::shared_ptr texture); array_t map(std::shared_ptr stream); void unmap(); + + std::shared_ptr get_texture(); + ::nvidia::cuda::graphics_resource_t get(); }; } // namespace nvidia::cuda