pub fn render_target_with_characterization(
    context: &mut RecordingContext,
    characterization: &SurfaceCharacterization,
    budgeted: Budgeted
) -> Option<Surface>
Expand description

Returns Surface on GPU indicated by context that is compatible with the provided characterization. budgeted selects whether allocation for pixels is tracked by context.

  • context - GPU context
  • characterization - description of the desired Surface Returns: Surface if all parameters are valid; otherwise, None