mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
934a78005e
* Simplify logic for bindless texture handling * Nits
32 lines
843 B
C#
32 lines
843 B
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public struct TextureDescriptor
|
|
{
|
|
public int Binding { get; }
|
|
|
|
public SamplerType Type { get; }
|
|
public TextureFormat Format { get; }
|
|
|
|
public int CbufSlot { get; }
|
|
public int HandleIndex { get; }
|
|
|
|
public TextureUsageFlags Flags { get; set; }
|
|
|
|
public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int cbufSlot, int handleIndex)
|
|
{
|
|
Binding = binding;
|
|
Type = type;
|
|
Format = format;
|
|
CbufSlot = cbufSlot;
|
|
HandleIndex = handleIndex;
|
|
Flags = TextureUsageFlags.None;
|
|
}
|
|
|
|
public TextureDescriptor SetFlag(TextureUsageFlags flag)
|
|
{
|
|
Flags |= flag;
|
|
|
|
return this;
|
|
}
|
|
}
|
|
} |