Lines Matching defs:nir
31 #include "nir/nir.h"
136 * \param[in] nir NIR fragment shader.
141 nir_shader *nir)
143 size_t num_inputs = nir_count_variables_with_modes(nir, nir_var_shader_in);
157 nir_foreach_shader_in_variable (var, nir) {
290 * \param[in] nir NIR vertex shader.
295 nir_shader *nir)
299 nir_count_variables_with_modes(nir, nir_var_shader_out);
302 nir_foreach_shader_in_variable (var, nir) {
327 nir_foreach_shader_out_variable (var, nir) {
409 * \param[in] nir NIR shader.
413 nir_shader *nir)
416 nir_foreach_variable_with_modes (var, nir, nir_var_mem_ubo) {
421 nir_function_impl *entry = nir_shader_get_entrypoint(nir);
477 * \param[in] nir NIR shader.
480 bool rogue_collect_io_data(struct rogue_build_ctx *ctx, nir_shader *nir)
482 gl_shader_stage stage = nir->info.stage;
486 if (!collect_ubo_data(common_data, nir))
492 return collect_io_data_fs(common_data, &ctx->stage_data.fs, nir);
495 return collect_io_data_vs(common_data, &ctx->stage_data.vs, nir);