[D3D12] Pipeline debug name, DXBC norm16 vertex fix

This commit is contained in:
Triang3l
2018-09-16 15:57:22 +03:00
parent c9ffe98d21
commit 5f0df6d1fa
2 changed files with 20 additions and 3 deletions

View File

@@ -3017,8 +3017,9 @@ void DxbcShaderTranslator::ProcessVertexFetchInstruction(
extract_widths[3] = 16;
extract_offsets[1] = extract_offsets[3] = 16;
extract_swizzle = 0b01010000;
normalize_scales[0] = normalize_scales[1] =
instr.attributes.is_signed ? (1.0f / 32767.0f) : (1.0f / 65535.0f);
normalize_scales[0] = normalize_scales[1] = normalize_scales[2] =
normalize_scales[3] = instr.attributes.is_signed ? (1.0f / 32767.0f)
: (1.0f / 65535.0f);
break;
case VertexFormat::k_16_16_FLOAT:
extract_signed = false;
@@ -3041,6 +3042,9 @@ void DxbcShaderTranslator::ProcessVertexFetchInstruction(
instr.attributes.is_signed ? (1.0f / 2147483647.0f)
: (1.0f / 4294967295.0f);
break;
default:
// 32-bit float.
break;
}
// Extract components from packed data if needed.