mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-29 21:20:48 -07:00
Move shader resource descriptor creation out of the backend (#2290)
* Move shader resource descriptor creation out of the backend * Remove now unused code, and other nits * Shader cache version bump * Nits * Set format for bindless image load/store * Fix buffer write flag
This commit is contained in:
@ -53,6 +53,36 @@ namespace Ryujinx.Graphics.Shader.Translation
|
||||
_operations.Add(operation);
|
||||
}
|
||||
|
||||
public TextureOperation CreateTextureOperation(
|
||||
Instruction inst,
|
||||
SamplerType type,
|
||||
TextureFlags flags,
|
||||
int handle,
|
||||
int compIndex,
|
||||
Operand dest,
|
||||
params Operand[] sources)
|
||||
{
|
||||
return CreateTextureOperation(inst, type, TextureFormat.Unknown, flags, handle, compIndex, dest, sources);
|
||||
}
|
||||
|
||||
public TextureOperation CreateTextureOperation(
|
||||
Instruction inst,
|
||||
SamplerType type,
|
||||
TextureFormat format,
|
||||
TextureFlags flags,
|
||||
int handle,
|
||||
int compIndex,
|
||||
Operand dest,
|
||||
params Operand[] sources)
|
||||
{
|
||||
if (!flags.HasFlag(TextureFlags.Bindless))
|
||||
{
|
||||
Config.SetUsedTexture(inst, type, format, flags, TextureOperation.DefaultCbufSlot, handle);
|
||||
}
|
||||
|
||||
return new TextureOperation(inst, type, format, flags, handle, compIndex, dest, sources);
|
||||
}
|
||||
|
||||
public void FlagAttributeRead(int attribute)
|
||||
{
|
||||
if (Config.Stage == ShaderStage.Vertex && attribute == AttributeConsts.InstanceId)
|
||||
|
Reference in New Issue
Block a user