Lines Matching defs:image

60    nir_variable *image = nir_variable_create(b->shader, var_mode, new_var_type, NULL);
61 image->data.access = in_var->data.access;
62 image->data.binding = in_var->data.binding;
66 image.buf_ids[context->num_buf_ids] = image->data.binding = (*num_bindings)++;
69 return image->data.binding;
102 // The input variable here isn't actually an image, it's just the
103 // image format data.
105 // For every use of an image in a different way, we'll add an
106 // appropriate image to match it. That can result in up to
107 // 3 images (float4, int4, uint4) for each image. Only one of these
111 // If the image is used in a query that doesn't have a corresponding
112 // DXIL intrinsic (CL image channel order or channel format), then
116 // After all that, we can remove the image input variable and deref.
131 while (context->metadata->args[context->metadata_index].image.buf_ids[0] != in_var->data.binding)
166 default: unreachable("Unsupported image type for load.");
226 unreachable("Unsupported image intrinsic");
236 default: unreachable("Unsupported image format for sample.");
251 context->metadata->args[context->metadata_index].image.num_buf_ids = context->num_buf_ids;
919 // For uniforms (kernel inputs, minus images), run this before adjusting variable list via image/sampler lowering
953 // Second pass over inputs to calculate image bindings
963 metadata->args[i].image.buf_ids[0] = srv_id++;
966 metadata->args[i].image.buf_ids[0] = uav_id++;
969 metadata->args[i].image.num_buf_ids = 1;
970 var->data.binding = metadata->args[i].image.buf_ids[0];