external to_state_attribute : t -> State_attribute.t = "texture2d_to_state_attribute"