D | nir_builder.h | 2 * Copyright © 2014-2015 Broadcom 48 nir_builder_init(nir_builder *build, nir_function_impl *impl) in nir_builder_init() argument 50 memset(build, 0, sizeof(*build)); in nir_builder_init() 51 build->exact = false; in nir_builder_init() 52 build->impl = impl; in nir_builder_init() 53 build->shader = impl->function->shader; in nir_builder_init() 57 nir_builder_init_simple_shader(nir_builder *build, void *mem_ctx, in nir_builder_init_simple_shader() argument 61 memset(build, 0, sizeof(*build)); in nir_builder_init_simple_shader() 62 build->shader = nir_shader_create(mem_ctx, stage, options, NULL); in nir_builder_init_simple_shader() 63 nir_function *func = nir_function_create(build->shader, "main"); in nir_builder_init_simple_shader() [all …]
|