make_error_state

Function make_error_state 

Source
fn make_error_state<E: Into<CommandEncoderError>>(
    error: E,
) -> CommandEncoderStatus
Expand description

Construct an EncoderErrorState with only a CommandEncoderError (without any traced commands).

This is used in cases where pass begin/end were mismatched, if the same encoder was finished multiple times, or in the status of a command buffer (in which case the commands were already saved to the trace). In some of these cases there may be commands that could be saved to the trace, but if the application is that confused about using encoders, it’s not clear whether it’s worth the effort to try and preserve the commands.