This commit is contained in:
Branimir Karadžić 2016-03-21 21:23:59 -07:00
parent 4bab3fb8e9
commit c69c963bc5
2 changed files with 10 additions and 11 deletions

View File

@ -921,7 +921,7 @@ namespace bgfx
break;
default:
size += bx::read(_reader, _operand.data[0], _err);
size += bx::read(_reader, _operand.data, _err);
break;
}
@ -1047,7 +1047,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%sAddressingModel(%d)"
, 0 == ii ? " " : ", "
, operand.data[0]
, operand.data
);
break;
@ -1055,7 +1055,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%s%s"
, 0 == ii ? " " : ", "
, getName(SpvDecoration::Enum(operand.data[0]) )
, getName(SpvDecoration::Enum(operand.data) )
);
break;
@ -1063,7 +1063,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%s0x%08x"
, 0 == ii ? " " : ", "
, operand.data[0]
, operand.data
);
break;
@ -1071,7 +1071,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%s%d"
, 0 == ii ? " " : ", "
, operand.data[0]
, operand.data
);
break;
@ -1087,7 +1087,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%sMemoryModel(%d)"
, 0 == ii ? " " : ", "
, operand.data[0]
, operand.data
);
break;
@ -1095,7 +1095,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%s%s"
, 0 == ii ? " " : ", "
, getName(SpvStorageClass::Enum(operand.data[0]) )
, getName(SpvStorageClass::Enum(operand.data) )
);
break;
@ -1103,7 +1103,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%s__%d__"
, 0 == ii ? " " : ", "
, operand.data[0]
, operand.data
);
break;
@ -1111,7 +1111,7 @@ namespace bgfx
size += bx::snprintf(&_out[size], bx::uint32_imax(0, _size-size)
, "%sr%d"
, 0 == ii ? " " : ", "
, operand.data[0]
, operand.data
);
break;

View File

@ -581,9 +581,8 @@ namespace bgfx
};
Enum type;
uint32_t data[4];
uint32_t data;
uint32_t target;
stl::string literalString;
};