mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-02 22:17:13 +02:00
Remove more unused code
This commit is contained in:
parent
59fdaa744b
commit
9bfb373bdf
7 changed files with 7 additions and 100 deletions
|
@ -11,7 +11,6 @@ namespace Ryujinx.Graphics.Shader
|
|||
MaximumViewportDimensions,
|
||||
PrimitiveTopology,
|
||||
StorageBufferOffsetAlignment,
|
||||
SupportsNonConstantTextureOffset,
|
||||
ViewportTransformEnable
|
||||
SupportsNonConstantTextureOffset
|
||||
}
|
||||
}
|
|
@ -59,18 +59,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
public void PrepareForReturn()
|
||||
{
|
||||
if (_config.Stage == ShaderStage.Vertex)
|
||||
{
|
||||
if (!_config.QueryInfoBool(QueryInfoName.ViewportTransformEnable))
|
||||
{
|
||||
Operand posX = Attribute(AttributeConsts.PositionX);
|
||||
Operand posY = Attribute(AttributeConsts.PositionY);
|
||||
|
||||
this.Copy(posX, this.FPDivide(posX, ConstF(_config.QueryInfo(QueryInfoName.MaximumViewportDimensions) / 2)));
|
||||
this.Copy(posY, this.FPDivide(posY, ConstF(_config.QueryInfo(QueryInfoName.MaximumViewportDimensions) / 2)));
|
||||
}
|
||||
}
|
||||
else if (_config.Stage == ShaderStage.Fragment)
|
||||
if (_config.Stage == ShaderStage.Fragment)
|
||||
{
|
||||
if (_config.OmapDepth)
|
||||
{
|
||||
|
|
|
@ -94,8 +94,6 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
return 16;
|
||||
case QueryInfoName.SupportsNonConstantTextureOffset:
|
||||
return Convert.ToInt32(true);
|
||||
case QueryInfoName.ViewportTransformEnable:
|
||||
return Convert.ToInt32(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue