mojoshader.c
changeset 1159 d4f97945e2f5
parent 1158 94bbbdd9a344
child 1160 24ee60c85ec3
equal deleted inserted replaced
1158:94bbbdd9a344 1159:d4f97945e2f5
  4697                                    int base, int size)
  4697                                    int base, int size)
  4698 {
  4698 {
  4699     char varname[64];
  4699     char varname[64];
  4700     get_METAL_const_array_varname_in_buf(ctx,base,size,varname,sizeof(varname));
  4700     get_METAL_const_array_varname_in_buf(ctx,base,size,varname,sizeof(varname));
  4701 
  4701 
  4702     // !!! FIXME: this needs to have a unique name so it doesn't clash when
       
  4703     // !!! FIXME:  building a metallib.
       
  4704     const char *cstr = NULL;
  4702     const char *cstr = NULL;
  4705     push_output(ctx, &ctx->globals);
  4703     push_output(ctx, &ctx->globals);
  4706     output_line(ctx, "constant float4 %s[%d] = {", varname, size);
  4704     output_line(ctx, "constant float4 %s[%d] = {", varname, size);
  4707     ctx->indent++;
  4705     ctx->indent++;
  4708 
  4706