ICudaDevice.h 383 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <cuda.h>
  3. #include "nvEncodeAPI.h"
  4. namespace unity
  5. {
  6. namespace webrtc
  7. {
  8. class ICudaDevice
  9. {
  10. public:
  11. virtual ~ICudaDevice() = default;
  12. virtual bool IsCudaSupport() = 0;
  13. virtual CUcontext GetCUcontext() = 0;
  14. virtual NV_ENC_BUFFER_FORMAT GetEncodeBufferFormat() = 0;
  15. };
  16. } // namespace webrtc
  17. } // namespace unity