pub struct WgpuAnalyzer {
pub min_workgroup_size: u32,
pub max_workgroup_size: u32,
}Expand description
WGSL/wgpu compute shader analyzer
Fields§
§min_workgroup_size: u32Minimum workgroup size for efficiency warning
max_workgroup_size: u32Maximum workgroup size before occupancy warning
Implementations§
Source§impl WgpuAnalyzer
impl WgpuAnalyzer
Trait Implementations§
Source§impl Analyzer for WgpuAnalyzer
impl Analyzer for WgpuAnalyzer
Source§fn target_name(&self) -> &str
fn target_name(&self) -> &str
The type of IR being analyzed (e.g., “PTX”, “x86 ASM”, “WGSL”)
Source§fn analyze(&self, wgsl: &str) -> Result<AnalysisReport>
fn analyze(&self, wgsl: &str) -> Result<AnalysisReport>
Analyze the provided code and return a structured report Read more
Source§fn detect_muda(&self, wgsl: &str) -> Vec<MudaWarning>
fn detect_muda(&self, wgsl: &str) -> Vec<MudaWarning>
Identify specific performance bottlenecks (Muda)
Source§fn estimate_roofline(&self, _analysis: &AnalysisReport) -> RooflineMetric
fn estimate_roofline(&self, _analysis: &AnalysisReport) -> RooflineMetric
Estimate theoretical peak performance
Auto Trait Implementations§
impl Freeze for WgpuAnalyzer
impl RefUnwindSafe for WgpuAnalyzer
impl Send for WgpuAnalyzer
impl Sync for WgpuAnalyzer
impl Unpin for WgpuAnalyzer
impl UnwindSafe for WgpuAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more