use in for graphicspipelinecreateinfo

main
cosmonaut 2021-01-28 17:44:12 -08:00
parent addea0f810
commit c65485a31c
2 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace MoonWorks.Graphics
public unsafe GraphicsPipeline(
GraphicsDevice device,
GraphicsPipelineCreateInfo graphicsPipelineCreateInfo
in GraphicsPipelineCreateInfo graphicsPipelineCreateInfo
) : base(device)
{
ColorBlendState colorBlendState = graphicsPipelineCreateInfo.ColorBlendState;

View File

@ -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,