Skip to main content

Module wgpu_conversions

Module wgpu_conversions 

Source
Expand description

wgpu conversion helpers for par-term-config rendering enums.

These used to live in par-term-config behind the wgpu-types feature (see AUDIT.md ARC-003). That was a layering violation: a Layer-1 pure-data crate carried an optional dependency on Layer-3 GPU types. The helpers now live here in par-term-render — the Layer-3 crate that actually depends on wgpu — and are exposed as narrow extension traits so existing call sites keep the same method names (vsync.to_present_mode(), pref.to_wgpu(), scaling.to_filter_mode()).

Call sites must use crate::wgpu_conversions::{...}; to bring the methods into scope.

Traits§

ImageScalingModeWgpu
ImageScalingModewgpu::FilterMode.
PowerPreferenceWgpu
PowerPreferencewgpu::PowerPreference.
VsyncModeWgpu
VsyncModewgpu::PresentMode.