1
0
Fork 0
forked from wry/wry

gfx_api: remove unused

This commit is contained in:
kossLAN 2026-05-03 05:49:42 -04:00
parent 41bc660401
commit 7f71a6556b
No known key found for this signature in database
3 changed files with 0 additions and 16 deletions

View file

@ -310,16 +310,6 @@ pub struct RoundedFillRect {
pub z_order: u32,
}
impl RoundedFillRect {
pub fn effective_color(&self) -> Color {
let mut color = self.color;
if let Some(alpha) = self.alpha {
color = color * alpha;
}
color
}
}
pub struct RoundedCopyTexture {
pub tex: Rc<dyn GfxTexture>,
pub source: SampleRect,
@ -328,7 +318,6 @@ pub struct RoundedCopyTexture {
pub acquire_sync: AcquireSync,
pub release_sync: ReleaseSync,
pub alpha: Option<f32>,
pub opaque: bool,
pub render_intent: RenderIntent,
pub cd: Rc<ColorDescription>,
pub alpha_mode: AlphaMode,

View file

@ -380,7 +380,6 @@ impl RendererBase<'_> {
buffer_resv,
acquire_sync,
release_sync,
opaque: false,
render_intent,
cd: cd.clone(),
alpha_mode,