Lines Matching defs:shader
40 nir_function_impl *copy = nir_function_impl_clone(b->shader, impl);
61 * shader variables or they already live b->shader (this is the
62 * case for function inlining within a single shader.
70 nir_variable *nvar = nir_variable_clone(deref->var, b->shader);
71 nir_shader_add_variable(b->shader, nvar);
203 /** A pass to inline all functions in a shader into their callers
208 * 1. nir_lower_variable_initializers(shader, nir_var_function_temp)
219 * 2. nir_lower_returns(shader)
230 * 3. nir_inline_functions(shader)
232 * This does the actual function inlining and the resulting shader will
235 * 4. nir_opt_deref(shader)
263 * 6. nir_lower_variable_initializers(shader, ~nir_var_function_temp)
271 * entrypoint function shader is the best way to make it well-defined.
274 nir_inline_functions(nir_shader *shader)
279 nir_foreach_function(function, shader) {