mojoshader.c
changeset 1177 ba7a3f39add4
parent 1176 1356c2c32ef6
child 1178 03f0ef912406
equal deleted inserted replaced
1176:1356c2c32ef6 1177:ba7a3f39add4
  4703     char varname[64];
  4703     char varname[64];
  4704     get_METAL_const_array_varname_in_buf(ctx,base,size,varname,sizeof(varname));
  4704     get_METAL_const_array_varname_in_buf(ctx,base,size,varname,sizeof(varname));
  4705 
  4705 
  4706     const char *cstr = NULL;
  4706     const char *cstr = NULL;
  4707     push_output(ctx, &ctx->mainline_top);
  4707     push_output(ctx, &ctx->mainline_top);
       
  4708     ctx->indent++;
  4708     output_line(ctx, "const float4 %s[%d] = {", varname, size);
  4709     output_line(ctx, "const float4 %s[%d] = {", varname, size);
  4709     ctx->indent++;
  4710     ctx->indent++;
  4710 
  4711 
  4711     int i;
  4712     int i;
  4712     for (i = 0; i < size; i++)
  4713     for (i = 0; i < size; i++)