Mostly complete new GLSL translator (modulo flow control).
This commit is contained in:
@@ -91,6 +91,9 @@ void DisassembleSourceOperand(const InstructionOperand& op, StringBuffer* out) {
|
||||
out->Append('b');
|
||||
break;
|
||||
}
|
||||
if (op.is_absolute_value) {
|
||||
out->Append("_abs");
|
||||
}
|
||||
switch (op.storage_addressing_mode) {
|
||||
case InstructionStorageAddressingMode::kStatic:
|
||||
out->AppendFormat("%d", op.storage_index);
|
||||
@@ -102,9 +105,6 @@ void DisassembleSourceOperand(const InstructionOperand& op, StringBuffer* out) {
|
||||
out->AppendFormat("[%d+aL]", op.storage_index);
|
||||
break;
|
||||
}
|
||||
if (op.is_absolute_value) {
|
||||
out->Append("_abs");
|
||||
}
|
||||
if (!op.is_standard_swizzle()) {
|
||||
out->Append('.');
|
||||
if (op.component_count == 1) {
|
||||
|
||||
Reference in New Issue
Block a user