mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-02 14:28:53 +02:00
Move solution and projects to src
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
namespace Ryujinx.Graphics.Shader
|
||||
{
|
||||
public struct TextureDescriptor
|
||||
{
|
||||
// New fields should be added to the end of the struct to keep disk shader cache compatibility.
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user