mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-29 11:01:23 +00:00
nvidia/cuda/gs-texture: Add accessors for internals
This commit is contained in:
parent
5cd1d13d5f
commit
4dac477500
2 changed files with 14 additions and 1 deletions
|
@ -131,3 +131,13 @@ void nvidia::cuda::gstexture::unmap()
|
|||
_pointer = nullptr;
|
||||
_stream.reset();
|
||||
}
|
||||
|
||||
std::shared_ptr<gs::texture> nvidia::cuda::gstexture::get_texture()
|
||||
{
|
||||
return _texture;
|
||||
}
|
||||
|
||||
::nvidia::cuda::graphics_resource_t nvidia::cuda::gstexture::get()
|
||||
{
|
||||
return _resource;
|
||||
}
|
||||
|
|
|
@ -35,10 +35,13 @@ namespace nvidia::cuda {
|
|||
std::shared_ptr<nvidia::cuda::stream> _stream;
|
||||
|
||||
public:
|
||||
gstexture(std::shared_ptr<gs::texture> texture);
|
||||
~gstexture();
|
||||
gstexture(std::shared_ptr<gs::texture> texture);
|
||||
|
||||
array_t map(std::shared_ptr<nvidia::cuda::stream> stream);
|
||||
void unmap();
|
||||
|
||||
std::shared_ptr<gs::texture> get_texture();
|
||||
::nvidia::cuda::graphics_resource_t get();
|
||||
};
|
||||
} // namespace nvidia::cuda
|
||||
|
|
Loading…
Reference in a new issue