mojoshader.c
changeset 1152 8f7653f0dc37
parent 1150 02c0f0afb39a
child 1154 1d6c2aadd16a
equal deleted inserted replaced
1151:5e0ebc5366f3 1152:8f7653f0dc37
  8123             return 1;  // we'll check ctx->out_of_memory later.
  8123             return 1;  // we'll check ctx->out_of_memory later.
  8124         memset(info->members, '\0', len);
  8124         memset(info->members, '\0', len);
  8125     } // else
  8125     } // else
  8126 
  8126 
  8127     int i;
  8127     int i;
  8128     const uint32 *member = (const uint32 *)((const uint8 *) (&typeptr[6]));
  8128     const uint32 *member = (const uint32 *) (start + typeptr[6]);
  8129     for (i = 0; i < info->member_count; i++)
  8129     for (i = 0; i < info->member_count; i++)
  8130     {
  8130     {
  8131         MOJOSHADER_symbolStructMember *mbr = &info->members[i];
  8131         MOJOSHADER_symbolStructMember *mbr = &info->members[i];
  8132         const uint32 name = SWAP32(member[0]);
  8132         const uint32 name = SWAP32(member[0]);
  8133         const uint32 memberinfopos = SWAP32(member[1]);
  8133         const uint32 memberinfopos = SWAP32(member[1]);