Support separate textures and samplers (#1216)
* Support separate textures and samplers * Add missing bindless flag, fix SNORM format on buffer textures * Add missing separation * Add comments about the new handles
This commit is contained in:
@ -26,8 +26,18 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
|
||||
public void TurnIntoIndexed(int handle)
|
||||
{
|
||||
Type |= SamplerType.Indexed;
|
||||
|
||||
Flags &= ~TextureFlags.Bindless;
|
||||
Handle = handle;
|
||||
}
|
||||
|
||||
public void SetHandle(int handle)
|
||||
{
|
||||
if ((Flags & TextureFlags.Bindless) != 0)
|
||||
{
|
||||
Flags &= ~TextureFlags.Bindless;
|
||||
|
||||
RemoveSource(0);
|
||||
}
|
||||
|
||||
Handle = handle;
|
||||
}
|
||||
|
Reference in New Issue
Block a user