From c65485a31ca526a4a3dc24b3eadbc9a1dc61daa9 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 28 Jan 2021 17:44:12 -0800 Subject: [PATCH] use in for graphicspipelinecreateinfo --- src/Graphics/Resources/GraphicsPipeline.cs | 2 +- src/Graphics/Resources/Texture.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Graphics/Resources/GraphicsPipeline.cs b/src/Graphics/Resources/GraphicsPipeline.cs index d7a2c695..21e11d34 100644 --- a/src/Graphics/Resources/GraphicsPipeline.cs +++ b/src/Graphics/Resources/GraphicsPipeline.cs @@ -14,7 +14,7 @@ namespace MoonWorks.Graphics public unsafe GraphicsPipeline( GraphicsDevice device, - GraphicsPipelineCreateInfo graphicsPipelineCreateInfo + in GraphicsPipelineCreateInfo graphicsPipelineCreateInfo ) : base(device) { ColorBlendState colorBlendState = graphicsPipelineCreateInfo.ColorBlendState; diff --git a/src/Graphics/Resources/Texture.cs b/src/Graphics/Resources/Texture.cs index e1dac28b..3211e647 100644 --- a/src/Graphics/Resources/Texture.cs +++ b/src/Graphics/Resources/Texture.cs @@ -123,7 +123,10 @@ namespace MoonWorks.Graphics return new Texture(device, textureCreateInfo); } - public Texture(GraphicsDevice device, in TextureCreateInfo textureCreateInfo) : base(device) + public Texture( + GraphicsDevice device, + in TextureCreateInfo textureCreateInfo + ) : base(device) { Handle = Refresh.Refresh_CreateTexture( device.Handle,