blob: b7b0ae12c5a44b1bd2de4a17e353b2aa50522018 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
namespace Ryujinx.Graphics.Shader
{
public struct TextureDescriptor
{
public readonly int Binding;
public readonly SamplerType Type;
public readonly TextureFormat Format;
public readonly int CbufSlot;
public readonly int HandleIndex;
public TextureUsageFlags Flags;
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;
}
}
}
|