Skip to main content

wgpu_native_texture_interop/raw_gl/
mod.rs

1//! Raw GL-to-wgpu import primitives with no surfman dependency.
2//!
3//! These functions accept raw GL handles (FBO IDs, IOSurface pointers, etc.)
4//! and produce `wgpu::Texture` objects. They can be used by any GL producer,
5//! not just surfman-based ones.
6
7#[cfg(any(target_os = "linux", target_os = "android"))]
8pub mod linux;
9
10#[cfg(target_vendor = "apple")]
11pub mod metal;
12
13#[cfg(target_os = "windows")]
14pub mod windows;
15
16#[cfg(target_os = "windows")]
17pub mod dx12;
18
19#[cfg(target_os = "windows")]
20pub mod angle_d3d11;
21
22/// BGRA-to-RGBA and Y-flip normalization pass for imported textures.
23pub mod texture_normalizer;
24
25pub mod producer;