Lines Matching defs:preamble
28 * an entire draw/compute dispatch into a "preamble" that runs before the main
31 * We also expose a separate API to get or construct the preamble of a shader
40 if (entrypoint->preamble) {
41 return entrypoint->preamble->impl;
43 nir_function *preamble = nir_function_create(shader, "@preamble");
44 preamble->is_preamble = true;
45 nir_function_impl *impl = nir_function_impl_create(preamble);
46 entrypoint->preamble = preamble;
227 /* The preamble is presumably run with only one thread, so we can't run
518 nir_function_impl *preamble =
522 nir_builder_init(b, preamble);
523 b->cursor = nir_before_cf_list(&preamble->body);