mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-23 20:36:49 +01:00
Add sampler border color support on the GPU (#893)
This commit is contained in:
parent
c5f872c70a
commit
a5e20a8fd1
2 changed files with 9 additions and 5 deletions
|
@ -30,7 +30,11 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
CompareMode compareMode = descriptor.UnpackCompareMode();
|
CompareMode compareMode = descriptor.UnpackCompareMode();
|
||||||
CompareOp compareOp = descriptor.UnpackCompareOp();
|
CompareOp compareOp = descriptor.UnpackCompareOp();
|
||||||
|
|
||||||
ColorF color = new ColorF(0, 0, 0, 0);
|
ColorF color = new ColorF(
|
||||||
|
descriptor.BorderColorR,
|
||||||
|
descriptor.BorderColorG,
|
||||||
|
descriptor.BorderColorB,
|
||||||
|
descriptor.BorderColorA);
|
||||||
|
|
||||||
float minLod = descriptor.UnpackMinLod();
|
float minLod = descriptor.UnpackMinLod();
|
||||||
float maxLod = descriptor.UnpackMaxLod();
|
float maxLod = descriptor.UnpackMaxLod();
|
||||||
|
|
|
@ -55,10 +55,10 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
public uint Word1;
|
public uint Word1;
|
||||||
public uint Word2;
|
public uint Word2;
|
||||||
public uint Word3;
|
public uint Word3;
|
||||||
public uint BorderColorR;
|
public float BorderColorR;
|
||||||
public uint BorderColorG;
|
public float BorderColorG;
|
||||||
public uint BorderColorB;
|
public float BorderColorB;
|
||||||
public uint BorderColorA;
|
public float BorderColorA;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks the texture wrap mode along the X axis.
|
/// Unpacks the texture wrap mode along the X axis.
|
||||||
|
|
Loading…
Reference in a new issue