Add sampler border color support on the GPU (#893)

This commit is contained in:
gdkchan 2020-01-17 05:55:38 -03:00 committed by Thog
parent c5f872c70a
commit a5e20a8fd1
2 changed files with 9 additions and 5 deletions

View file

@ -30,7 +30,11 @@ namespace Ryujinx.Graphics.Gpu.Image
CompareMode compareMode = descriptor.UnpackCompareMode();
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 maxLod = descriptor.UnpackMaxLod();