mojoshader_assembler.c
changeset 1298 b70ccc2c7a51
parent 1291 db27fb09421a
child 1306 0c0304e7d215
equal deleted inserted replaced
1297:5667281f0da9 1298:b70ccc2c7a51
  1469     ctx->malloc = m;
  1469     ctx->malloc = m;
  1470     ctx->free = f;
  1470     ctx->free = f;
  1471     ctx->malloc_data = d;
  1471     ctx->malloc_data = d;
  1472     ctx->current_position = MOJOSHADER_POSITION_BEFORE;
  1472     ctx->current_position = MOJOSHADER_POSITION_BEFORE;
  1473     ctx->default_writemask = 0xF;
  1473     ctx->default_writemask = 0xF;
       
  1474     ctx->default_swizzle = 0xE4;  // 0xE4 == 11100100 ... 0 1 2 3. No swizzle.
  1474 
  1475 
  1475     const size_t outblk = sizeof (uint32) * 4 * 64; // 64 4-token instrs.
  1476     const size_t outblk = sizeof (uint32) * 4 * 64; // 64 4-token instrs.
  1476     ctx->output = buffer_create(outblk, MallocBridge, FreeBridge, ctx);
  1477     ctx->output = buffer_create(outblk, MallocBridge, FreeBridge, ctx);
  1477     if (ctx->output == NULL)
  1478     if (ctx->output == NULL)
  1478         goto build_context_failed;
  1479         goto build_context_failed;