Image binding support
Kirby still has a problem with NaN 3D Texture
This commit is contained in:
parent
4e5cf38009
commit
650f309b58
4 changed files with 99 additions and 5 deletions
|
@ -65,6 +65,18 @@ namespace Ryujinx.Graphics.Metal
|
|||
}
|
||||
}
|
||||
|
||||
record struct ImageRef
|
||||
{
|
||||
public ShaderStage Stage;
|
||||
public Texture Storage;
|
||||
|
||||
public ImageRef(ShaderStage stage, Texture storage)
|
||||
{
|
||||
Stage = stage;
|
||||
Storage = storage;
|
||||
}
|
||||
}
|
||||
|
||||
struct PredrawState
|
||||
{
|
||||
public MTLCullMode CullMode;
|
||||
|
@ -92,6 +104,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
public readonly BufferRef[] UniformBufferRefs = new BufferRef[Constants.MaxUniformBufferBindings];
|
||||
public readonly BufferRef[] StorageBufferRefs = new BufferRef[Constants.MaxStorageBufferBindings];
|
||||
public readonly TextureRef[] TextureRefs = new TextureRef[Constants.MaxTextureBindings];
|
||||
public readonly ImageRef[] ImageRefs = new ImageRef[Constants.MaxTextureBindings];
|
||||
|
||||
public IndexBufferState IndexBuffer = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue