| 127 | /// 驱动可能会将请求值调整为最接近的支持值。此结构体保存实际应用的配置。 |
| 128 | #[derive(Debug, Clone)] |
| 129 | pub struct ResolvedConfig { |
| 130 | /// Actual width the driver applied. |
| 131 | /// 驱动实际应用的宽度。 |
| 132 | pub width: u32, |
| 133 | |
| 134 | /// Actual height the driver applied. |
| 135 | /// 驱动实际应用的高度。 |
| 136 | pub height: u32, |
| 137 | |
| 138 | /// Actual frame rate the driver applied. |
| 139 | /// 驱动实际应用的帧率。 |
| 140 | pub fps: u32, |
| 141 | |
| 142 | /// Actual pixel format the driver applied. |
| 143 | /// 驱动实际应用的像素格式。 |
| 144 | pub pixel_format: PixelFormat, |
| 145 | |
| 146 | /// Actual number of buffers allocated. |
| 147 | /// 实际分配的缓冲区数量。 |
| 148 | pub buffer_count: u32, |
| 149 | } |
nothing calls this directly
no outgoing calls
no test coverage detected