pub(super) fn clear_texture_cmd(
cmd_buf_data: &mut CommandBufferMutable,
hub: &Hub,
cmd_enc: &Arc<CommandEncoder>,
dst: TextureId,
subresource_range: &ImageSubresourceRange,
) -> Result<(), ClearError>
Expand description
Validate and encode a “Clear Texture” command.
This function implements CommandEncoder::clear_texture
when invoked via
the command encoder APIs or trace playback. It has the suffix _cmd
to
distinguish it from clear_texture
. clear_texture
, used internally by
this function, is a lower-level function that encodes a texture clear
operation without validating it.