mojoshader.c
changeset 1157 d7282ef4110f
parent 1156 6e760a19f456
child 1158 94bbbdd9a344
equal deleted inserted replaced
1156:6e760a19f456 1157:d7282ef4110f
  4078 
  4078 
  4079 static inline const char *get_METAL_const_array_varname_in_buf(Context *ctx,
  4079 static inline const char *get_METAL_const_array_varname_in_buf(Context *ctx,
  4080                                                 const int base, const int size,
  4080                                                 const int base, const int size,
  4081                                                 char *buf, const size_t buflen)
  4081                                                 char *buf, const size_t buflen)
  4082 {
  4082 {
  4083     const char *type = ctx->shader_type_str;
  4083     snprintf(buf, buflen, "%s_const_array_%d_%d", ctx->mainfn, base, size);
  4084     snprintf(buf, buflen, "%s_const_array_%d_%d", type, base, size);
       
  4085     return buf;
  4084     return buf;
  4086 } // get_METAL_const_array_varname_in_buf
  4085 } // get_METAL_const_array_varname_in_buf
  4087 
  4086 
  4088 static const char *get_METAL_const_array_varname(Context *ctx, int base, int size)
  4087 static const char *get_METAL_const_array_varname(Context *ctx, int base, int size)
  4089 {
  4088 {