mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 23:50:46 -07:00
Reimplement limited bindless textures support
This commit is contained in:
@ -272,6 +272,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||
AstOperand operand = texOp.GetSource(0) as AstOperand;
|
||||
|
||||
desc = new TextureDescriptor(samplerName, texOp.Type, operand.CbufSlot, operand.CbufOffset);
|
||||
|
||||
context.TextureDescriptors.Add(desc);
|
||||
}
|
||||
else if ((texOp.Type & SamplerType.Indexed) != 0)
|
||||
{
|
||||
|
@ -13,11 +13,11 @@ namespace Ryujinx.Graphics.Shader
|
||||
public int CbufSlot { get; }
|
||||
public int CbufOffset { get; }
|
||||
|
||||
public TextureDescriptor(string name, SamplerType type, int hIndex)
|
||||
public TextureDescriptor(string name, SamplerType type, int handleIndex)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
HandleIndex = hIndex;
|
||||
HandleIndex = handleIndex;
|
||||
|
||||
IsBindless = false;
|
||||
|
||||
|
Reference in New Issue
Block a user