Skip to main content

assert_compute_context

Function assert_compute_context 

Source
pub fn assert_compute_context()
Expand description

Assert that the current thread has compute context initialized

Panics if the thread-local context is not initialized. Use this to ensure compute macros will offload work rather than run inline.