GPUOpen-LibrariesAndSDKs / RadeonRays_SDK

Radeon Rays is ray intersection acceleration library for hardware and software multiplatforms using CPU and GPU
MIT License
1.07k stars 192 forks source link

How to destroy a CLWBuffer object? #194

Open manhnt9 opened 6 years ago

manhnt9 commented 6 years ago

I only see Create functions of this class. How can I destroy a CLWBuffer?

devshgraphicsprogramming commented 6 years ago

It would seem normal call to DeleteBuffer will work

https://github.com/GPUOpen-LibrariesAndSDKs/RadeonRays_SDK/blob/3de8f3f81f174194039f70d69fdf40afbc86828a/UnitTest/radeon_rays_test_cl.h#L191

manhnt9 commented 6 years ago

So I have to create a RadeonRays::Buffer from CLWBuffer to delete it with that API then :smile: