Skip to content

Instantly share code, notes, and snippets.

@XX
XX / custom3d_wgpu.rs
Last active April 2, 2025 21:05 — forked from zicklag/custom3d_wgpu.rs
Egui WGPU custom rendering example
use eframe::CreationContext;
use eframe::egui_wgpu::{Callback, CallbackResources, CallbackTrait, ScreenDescriptor, wgpu};
use eframe::wgpu::util::DeviceExt;
use egui::PaintCallbackInfo;
pub struct Custom3d {
angle: f32,
}
impl Custom3d {