UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCUDAModule Class Reference

#include <CudaModule.h>

+ Inheritance diagram for FCUDAModule:

Public Member Functions

virtual CUDA_API void StartupModule () override
 
virtual CUDA_API void ShutdownModule () override
 
CUDA_API bool IsAvailable ()
 
CUDA_API const CUDA_DRIVER_API_FUNCTION_LISTDriverAPI ()
 
CUDA_API CUcontext GetCudaContext ()
 
CUDA_API uint32 GetCudaDeviceIndex () const
 
CUDA_API CUcontext GetCudaContextForDevice (int DeviceIndex)
 
CUDA_API bool IsDeviceIndexRHISelected (int DeviceIndex)
 
- Public Member Functions inherited from IModuleInterface
virtual ~IModuleInterface ()
 
virtual void PreUnloadCallback ()
 
virtual void PostLoadCallback ()
 
virtual bool SupportsDynamicReloading ()
 
virtual bool SupportsAutomaticShutdown ()
 
virtual bool IsGameModule () const
 

Static Public Member Functions

static CUDA_DRIVER_API_FUNCTION_LIST CUDA ()
 

Public Attributes

FOnPostCUDAInit OnPostCUDAInit
 

Member Function Documentation

◆ CUDA()

static CUDA_DRIVER_API_FUNCTION_LIST FCUDAModule::CUDA ( )
inlinestatic

◆ DriverAPI()

const CUDA_DRIVER_API_FUNCTION_LIST * FCUDAModule::DriverAPI ( )

◆ GetCudaContext()

CUcontext FCUDAModule::GetCudaContext ( )

◆ GetCudaContextForDevice()

CUcontext FCUDAModule::GetCudaContextForDevice ( int  DeviceIndex)

◆ GetCudaDeviceIndex()

uint32 FCUDAModule::GetCudaDeviceIndex ( ) const

◆ IsAvailable()

bool FCUDAModule::IsAvailable ( )

◆ IsDeviceIndexRHISelected()

bool FCUDAModule::IsDeviceIndexRHISelected ( int  DeviceIndex)

◆ ShutdownModule()

void FCUDAModule::ShutdownModule ( )
overridevirtual

Called before the module is unloaded, right before the module object is destroyed. During normal shutdown, this is called in reverse order that modules finish StartupModule(). This means that, as long as a module references dependent modules in it's StartupModule(), it can safely reference those dependencies in ShutdownModule() as well.

Reimplemented from IModuleInterface.

◆ StartupModule()

void FCUDAModule::StartupModule ( )
overridevirtual

Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. ie:

FModuleManager::Get().LoadModuleChecked(TEXT("HTTP"));

Reimplemented from IModuleInterface.

Member Data Documentation

◆ OnPostCUDAInit

FOnPostCUDAInit FCUDAModule::OnPostCUDAInit

The documentation for this class was generated from the following files: