(renderer: R)
| 35 | } |
| 36 | |
| 37 | impl From<anyrender::RendererConfig> for SoftbufferRendererOptions { |
| 38 | fn from(config: anyrender::RendererConfig) -> Self { |
| 39 | let mut options = Self::default(); |
| 40 | if let Some(color) = config.base_color { |
| 41 | options.base_color = color; |
| 42 | } |
| 43 | // `composite_alpha_mode` is intentionally ignored: softbuffer does not |
| 44 | // support transparency, so any requested alpha mode degrades to opaque. |
| 45 | options |
| 46 | } |
| 47 | } |
nothing calls this directly
no outgoing calls
no test coverage detected