diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-11-08 08:10:00 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-08 12:10:00 +0100 |
| commit | 8d168574eb04ae1e7026ac2b058e3b184f068fae (patch) | |
| tree | 6e0f79447276619af980055419874f5e99595b58 /Ryujinx.Graphics.GAL | |
| parent | 5561a3b95e9c980e3354366570e7896a213b95ae (diff) | |
Use explicit buffer and texture bindings on shaders (#1666)
* Use explicit buffer and texture bindings on shaders
* More XML docs and other nits
Diffstat (limited to 'Ryujinx.Graphics.GAL')
| -rw-r--r-- | Ryujinx.Graphics.GAL/IPipeline.cs | 10 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/IRenderer.cs | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.GAL/IPipeline.cs b/Ryujinx.Graphics.GAL/IPipeline.cs index 3baf272f..1da34b96 100644 --- a/Ryujinx.Graphics.GAL/IPipeline.cs +++ b/Ryujinx.Graphics.GAL/IPipeline.cs @@ -46,7 +46,7 @@ namespace Ryujinx.Graphics.GAL void SetIndexBuffer(BufferRange buffer, IndexType type); - void SetImage(int index, ShaderStage stage, ITexture texture, Format imageFormat); + void SetImage(int binding, ITexture texture, Format imageFormat); void SetLogicOpState(bool enable, LogicalOp op); @@ -64,19 +64,19 @@ namespace Ryujinx.Graphics.GAL void SetRenderTargetColorMasks(ReadOnlySpan<uint> componentMask); void SetRenderTargets(ITexture[] colors, ITexture depthStencil); - void SetSampler(int index, ShaderStage stage, ISampler sampler); + void SetSampler(int binding, ISampler sampler); void SetScissorEnable(int index, bool enable); void SetScissor(int index, int x, int y, int width, int height); void SetStencilTest(StencilTestDescriptor stencilTest); - void SetStorageBuffer(int index, ShaderStage stage, BufferRange buffer); + void SetStorageBuffers(ReadOnlySpan<BufferRange> buffers); - void SetTexture(int index, ShaderStage stage, ITexture texture); + void SetTexture(int binding, ITexture texture); void SetTransformFeedbackBuffers(ReadOnlySpan<BufferRange> buffers); - void SetUniformBuffer(int index, ShaderStage stage, BufferRange buffer); + void SetUniformBuffers(ReadOnlySpan<BufferRange> buffers); void SetUserClipDistance(int index, bool enableClip); diff --git a/Ryujinx.Graphics.GAL/IRenderer.cs b/Ryujinx.Graphics.GAL/IRenderer.cs index 9fc39b4b..35c2146f 100644 --- a/Ryujinx.Graphics.GAL/IRenderer.cs +++ b/Ryujinx.Graphics.GAL/IRenderer.cs @@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.GAL void BackgroundContextAction(Action action); - IShader CompileShader(ShaderProgram shader); + IShader CompileShader(ShaderStage stage, string code); BufferHandle CreateBuffer(int size); |
