Description

While investigating [Link Removed], I have found that GLSLBackend always automatically generates render target location indices, regardless of user-specified ones via SV_TargetX HLSL semantics.

Relevant code in ConfigureInOutVariableLayout:

else if (Semantic && FCStringAnsi::Strnicmp(Variable->name, "gl_", 3) != 0)
{
	Variable->explicit_location = 1;
	Variable->semantic = ralloc_strdup(Variable, Semantic);
	if(Mode == ir_var_in)
	{
		Variable->location = ParseState->next_in_location_slot++;
	}
	else
	{
		Variable->location = ParseState->next_out_location_slot++;
	}
}
Steps to Reproduce

N/A

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-59334 in the post.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Target Fix4.204.21
Fix Commit4129990
Main Commit4133609
Release Commit4129990
CreatedMay 18, 2018
ResolvedJun 14, 2018
UpdatedJun 23, 2018
View Jira Issue