persistent

fun <T> persistent(builder: () -> T): T

Mark a GPU resource or code that uses GPU resources as persistent