pub struct Ngx;Implementations§
Source§impl Ngx
impl Ngx
Sourcepub const fn native_backend_available() -> bool
pub const fn native_backend_available() -> bool
Returns whether this build includes the native NGX backend.
Sourcepub fn staged_runtime_dir() -> Option<&'static Path>
pub fn staged_runtime_dir() -> Option<&'static Path>
Returns the build-staged runtime directory, or None without the native backend.
Sourcepub fn new(_info: InitInfo) -> Result<Self>
pub fn new(_info: InitInfo) -> Result<Self>
§Errors
Always returns an error because the native backend is unavailable.
pub fn instance_extensions(&self) -> &[CString]
Sourcepub unsafe fn device_extensions(
&self,
_instance: &Instance,
_physical_device: PhysicalDevice,
) -> Result<Vec<CString>>
pub unsafe fn device_extensions( &self, _instance: &Instance, _physical_device: PhysicalDevice, ) -> Result<Vec<CString>>
Queries NGX device extension requirements.
§Safety
physical_device must be a valid physical device enumerated from instance.
The instance, physical device, and Vulkan loader that created them must remain
valid throughout the call and must not be destroyed concurrently.
§Errors
Always returns an error because the native backend is unavailable.
Sourcepub unsafe fn device_extensions_raw(
&self,
_instance: Instance,
_physical_device: PhysicalDevice,
) -> Result<Vec<CString>>
pub unsafe fn device_extensions_raw( &self, _instance: Instance, _physical_device: PhysicalDevice, ) -> Result<Vec<CString>>
§Safety
instance must be a valid Vulkan instance, and physical_device must be a valid
physical device enumerated from it. The instance, physical device, and Vulkan loader
that created them must remain valid throughout the call and must not be destroyed
concurrently.
§Errors
Always returns an error because the native backend is unavailable.
Sourcepub unsafe fn initialize(
&mut self,
_device: &Device,
_config: DlssRrConfig,
) -> Result<Evaluator>
pub unsafe fn initialize( &mut self, _device: &Device, _config: DlssRrConfig, ) -> Result<Evaluator>
Initializes NGX while retaining ownership of the graph device.
§Safety
The instance and device must enable the extensions returned by NGX. Complete all
NGX GPU work before explicit shutdown through Ngx or any evaluator. Dropping
these wrappers does not shut down NGX.
§Errors
Always returns an error because the native backend is unavailable.
Sourcepub unsafe fn initialize_raw(
&mut self,
_info: VulkanInitInfo,
_config: DlssRrConfig,
) -> Result<Evaluator>
pub unsafe fn initialize_raw( &mut self, _info: VulkanInitInfo, _config: DlssRrConfig, ) -> Result<Evaluator>
Initializes NGX without retaining ownership of the Vulkan device.
§Safety
Handles must be valid and belong to the same Vulkan instance and physical device.
The instance and device must enable the extensions returned by NGX. The entrypoints
must belong to the loader that created these handles. Keep the loader, instance, and device alive
until explicit shutdown through Ngx or any evaluator completes, and complete all
NGX GPU work before shutdown. Dropping these wrappers does not shut down NGX.
§Errors
Always returns an error because the native backend is unavailable.