mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-28 01:17:11 +02:00
Vulkan: Clear dummy texture to (0,0,0,0) on creation (#3867)
This might fix an issue with AMD gpus on linux where the data could contain random garbage data. On the switch, it always samples as 0.
This commit is contained in:
parent
f2032fd71d
commit
3cbf05a29b
2 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,12 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
1f));
|
1f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Initialize()
|
||||||
|
{
|
||||||
|
Span<byte> dummyTextureData = stackalloc byte[4];
|
||||||
|
_dummyTexture.SetData(dummyTextureData);
|
||||||
|
}
|
||||||
|
|
||||||
public void SetProgram(ShaderCollection program)
|
public void SetProgram(ShaderCollection program)
|
||||||
{
|
{
|
||||||
_program = program;
|
_program = program;
|
||||||
|
|
|
@ -114,6 +114,8 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
public void Initialize()
|
public void Initialize()
|
||||||
{
|
{
|
||||||
|
_descriptorSetUpdater.Initialize();
|
||||||
|
|
||||||
SupportBufferUpdater = new SupportBufferUpdater(Gd);
|
SupportBufferUpdater = new SupportBufferUpdater(Gd);
|
||||||
SupportBufferUpdater.UpdateRenderScale(_renderScale, 0, SupportBuffer.RenderScaleMaxCount);
|
SupportBufferUpdater.UpdateRenderScale(_renderScale, 0, SupportBuffer.RenderScaleMaxCount);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue