[D3D12] Add a missing component count to HLSL vfetch

This commit is contained in:
Triang3l 2018-08-10 22:34:42 +03:00
parent e5eb6636a7
commit a4b98cda31
1 changed files with 1 additions and 0 deletions

View File

@ -1110,6 +1110,7 @@ void HlslShaderTranslator::ProcessVertexFetchInstruction(
EmitSourceDepth("xe_pv = asfloat(xe_vertex_element);\n");
break;
case VertexFormat::k_32_32_32_FLOAT:
component_count = 3;
EmitSourceDepth("xe_pv.xyz = asfloat(xe_vertex_element.xyz);\n");
EmitSourceDepth("xe_pv.w = 1.0;\n");
break;