Skip to content

Rust Samples

Navigation: Programming with ADLXADLX Samples

Samples

Unlike the C#, Java, and Python samples, the Rust samples do not require a separate binding project. Rust binds to the ADLX C interface directly through FFI. The shared amd-adlx crate declares the required ADLX interfaces (vtables) and provides a lightweight AdlxHelper loader.

FileNameDescription
amd-adlxADLX FFI bindings and the AdlxHelper runtime loader
DisplayInfoEnumerates the displays and prints their information
DisplayEventsRegisters a listener and reports display list changes
GPUInfoEnumerates the GPUs and prints their information
GPUStressTestQueries GPU stress-test support via IADLXGPU3
PerfGPUMetricsReads current GPU performance metrics and their ranges
LogEnables ADLX logging and captures log data via an application callback

Subpages

API Reference

This page references: