コード例 #1
0
void
nir_lower_tex(nir_shader *shader, const nir_lower_tex_options *options)
{
   lower_tex_state state;
   state.options = options;
   nir_foreach_overload(shader, overload) {
      if (overload->impl)
         nir_lower_tex_impl(overload->impl, &state);
   }
}
コード例 #2
0
bool
nir_lower_tex(nir_shader *shader, const nir_lower_tex_options *options)
{
   lower_tex_state state;
   state.options = options;
   state.progress = false;

   nir_foreach_function(shader, function) {
      if (function->impl)
         nir_lower_tex_impl(function->impl, &state);
   }

   return state.progress;
}