GL_Shader_Decompiler: Correct rebase errors.
This commit is contained in:
committed by
FernandoS27
parent
8db18e8fae
commit
269654144b
@@ -943,18 +943,19 @@ private:
|
|||||||
case Attribute::Index::Position:
|
case Attribute::Index::Position:
|
||||||
switch (stage) {
|
switch (stage) {
|
||||||
case ProgramType::Geometry:
|
case ProgramType::Geometry:
|
||||||
return fmt::format("gl_in[{}].gl_Position{}", Visit(buffer).AsUint(),
|
return {fmt::format("gl_in[{}].gl_Position{}", Visit(buffer).AsUint(),
|
||||||
GetSwizzle(element));
|
GetSwizzle(element)),
|
||||||
|
Type::Float};
|
||||||
case ProgramType::Fragment: {
|
case ProgramType::Fragment: {
|
||||||
switch (element) {
|
switch (element) {
|
||||||
case 0:
|
case 0:
|
||||||
return "(gl_FragCoord.x / utof(config_pack[3]))";
|
return {"(gl_FragCoord.x / utof(config_pack[3]))", Type::Float};
|
||||||
case 1:
|
case 1:
|
||||||
return "(gl_FragCoord.y / utof(config_pack[3]))";
|
return {"(gl_FragCoord.y / utof(config_pack[3]))", Type::Float};
|
||||||
case 2:
|
case 2:
|
||||||
return "gl_FragCoord.z";
|
return {"gl_FragCoord.z", Type::Float};
|
||||||
case 3:
|
case 3:
|
||||||
return "1.0f";
|
return {"1.0f", Type::Float};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user