Compare commits
	
		
			No commits in common. "cc23f71c605d00060486398e03e5b8ccaab34045" and "c7aefe4b3ada48b355fe8f5a4de9c14f2487a3bb" have entirely different histories. 
		
	
	
		
			cc23f71c60
			...
			c7aefe4b3a
		
	
		|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -51,7 +51,11 @@ namespace MoonWorks.Test | ||||||
|                 vertShaderModule, |                 vertShaderModule, | ||||||
|                 fragShaderModule |                 fragShaderModule | ||||||
|             ); |             ); | ||||||
|             drawPipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionTextureVertex>(); |             drawPipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  |                 VertexBinding.Create<PositionTextureVertex>(), | ||||||
|  |                 VertexAttribute.Create<PositionTextureVertex>("Position", 0), | ||||||
|  |                 VertexAttribute.Create<PositionTextureVertex>("TexCoord", 1) | ||||||
|  |             ); | ||||||
|             drawPipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; |             drawPipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; | ||||||
| 
 | 
 | ||||||
|             drawPipeline = new GraphicsPipeline( |             drawPipeline = new GraphicsPipeline( | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -52,7 +52,11 @@ namespace MoonWorks.Test | ||||||
|                 vertShaderModule, |                 vertShaderModule, | ||||||
|                 fragShaderModule |                 fragShaderModule | ||||||
|             ); |             ); | ||||||
|             drawPipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionTextureVertex>(); |             drawPipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  |                 VertexBinding.Create<PositionTextureVertex>(), | ||||||
|  |                 VertexAttribute.Create<PositionTextureVertex>("Position", 0), | ||||||
|  |                 VertexAttribute.Create<PositionTextureVertex>("TexCoord", 1) | ||||||
|  |             ); | ||||||
|             drawPipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; |             drawPipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; | ||||||
| 
 | 
 | ||||||
|             drawPipeline = new GraphicsPipeline( |             drawPipeline = new GraphicsPipeline( | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -165,7 +165,11 @@ namespace MoonWorks.Test | ||||||
|                     ), |                     ), | ||||||
|                 DepthStencilState = DepthStencilState.DepthReadWrite, |                 DepthStencilState = DepthStencilState.DepthReadWrite, | ||||||
|                 VertexShaderInfo = GraphicsShaderInfo.Create<ViewProjectionUniforms>(cubeVertShaderModule, "main", 0), |                 VertexShaderInfo = GraphicsShaderInfo.Create<ViewProjectionUniforms>(cubeVertShaderModule, "main", 0), | ||||||
|                 VertexInputState = VertexInputState.CreateSingleBinding<PositionColorVertex>(), |                 VertexInputState = new VertexInputState( | ||||||
|  |                         VertexBinding.Create<PositionColorVertex>(), | ||||||
|  |                         VertexAttribute.Create<PositionColorVertex>("Position", 0), | ||||||
|  |                         VertexAttribute.Create<PositionColorVertex>("Color", 1) | ||||||
|  |                     ), | ||||||
|                 PrimitiveType = PrimitiveType.TriangleList, |                 PrimitiveType = PrimitiveType.TriangleList, | ||||||
|                 FragmentShaderInfo = GraphicsShaderInfo.Create(cubeFragShaderModule, "main", 0), |                 FragmentShaderInfo = GraphicsShaderInfo.Create(cubeFragShaderModule, "main", 0), | ||||||
|                 RasterizerState = RasterizerState.CW_CullBack, |                 RasterizerState = RasterizerState.CW_CullBack, | ||||||
|  | @ -189,7 +193,10 @@ namespace MoonWorks.Test | ||||||
|                     ), |                     ), | ||||||
|                 DepthStencilState = DepthStencilState.DepthReadWrite, |                 DepthStencilState = DepthStencilState.DepthReadWrite, | ||||||
|                 VertexShaderInfo = GraphicsShaderInfo.Create<ViewProjectionUniforms>(skyboxVertShaderModule, "main", 0), |                 VertexShaderInfo = GraphicsShaderInfo.Create<ViewProjectionUniforms>(skyboxVertShaderModule, "main", 0), | ||||||
|                 VertexInputState = VertexInputState.CreateSingleBinding<PositionVertex>(), |                 VertexInputState = new VertexInputState( | ||||||
|  |                         VertexBinding.Create<PositionVertex>(), | ||||||
|  |                         VertexAttribute.Create<PositionVertex>("Position", 0) | ||||||
|  |                     ), | ||||||
|                 PrimitiveType = PrimitiveType.TriangleList, |                 PrimitiveType = PrimitiveType.TriangleList, | ||||||
|                 FragmentShaderInfo = GraphicsShaderInfo.Create(skyboxFragShaderModule, "main", 1), |                 FragmentShaderInfo = GraphicsShaderInfo.Create(skyboxFragShaderModule, "main", 1), | ||||||
|                 RasterizerState = RasterizerState.CW_CullNone, |                 RasterizerState = RasterizerState.CW_CullNone, | ||||||
|  | @ -207,7 +214,11 @@ namespace MoonWorks.Test | ||||||
|                 blitVertShaderModule, |                 blitVertShaderModule, | ||||||
|                 blitFragShaderModule |                 blitFragShaderModule | ||||||
|             ); |             ); | ||||||
|             blitPipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionTextureVertex>(); |             blitPipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  | 				VertexBinding.Create<PositionTextureVertex>(), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("Position", 0), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("TexCoord", 1) | ||||||
|  | 			); | ||||||
|             blitPipelineCreateInfo.FragmentShaderInfo = GraphicsShaderInfo.Create<DepthUniforms>(blitFragShaderModule, "main", 1); |             blitPipelineCreateInfo.FragmentShaderInfo = GraphicsShaderInfo.Create<DepthUniforms>(blitFragShaderModule, "main", 1); | ||||||
| 			blitPipeline = new GraphicsPipeline(GraphicsDevice, blitPipelineCreateInfo); | 			blitPipeline = new GraphicsPipeline(GraphicsDevice, blitPipelineCreateInfo); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -31,7 +31,11 @@ namespace MoonWorks.Test | ||||||
| 				vertShaderModule, | 				vertShaderModule, | ||||||
| 				fragShaderModule | 				fragShaderModule | ||||||
| 			); | 			); | ||||||
| 			pipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionColorVertex>(); | 			pipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  | 				VertexBinding.Create<PositionColorVertex>(), | ||||||
|  | 				VertexAttribute.Create<PositionColorVertex>("Position", 0), | ||||||
|  | 				VertexAttribute.Create<PositionColorVertex>("Color", 1) | ||||||
|  | 			); | ||||||
| 
 | 
 | ||||||
| 			pipelineCreateInfo.RasterizerState = RasterizerState.CW_CullNone; | 			pipelineCreateInfo.RasterizerState = RasterizerState.CW_CullNone; | ||||||
| 			CW_CullNonePipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | 			CW_CullNonePipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | ||||||
|  | @ -95,8 +99,6 @@ namespace MoonWorks.Test | ||||||
| 			{ | 			{ | ||||||
| 				cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, Color.Black)); | 				cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, Color.Black)); | ||||||
| 
 | 
 | ||||||
| 				// Need to bind a pipeline before binding vertex buffers |  | ||||||
| 				cmdbuf.BindGraphicsPipeline(CW_CullNonePipeline); |  | ||||||
| 				if (useClockwiseWinding) | 				if (useClockwiseWinding) | ||||||
| 				{ | 				{ | ||||||
| 					cmdbuf.BindVertexBuffers(cwVertexBuffer); | 					cmdbuf.BindVertexBuffers(cwVertexBuffer); | ||||||
|  | @ -107,6 +109,7 @@ namespace MoonWorks.Test | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				cmdbuf.SetViewport(new Viewport(0, 0, 213, 240)); | 				cmdbuf.SetViewport(new Viewport(0, 0, 213, 240)); | ||||||
|  | 				cmdbuf.BindGraphicsPipeline(CW_CullNonePipeline); | ||||||
| 				cmdbuf.DrawPrimitives(0, 1, 0, 0); | 				cmdbuf.DrawPrimitives(0, 1, 0, 0); | ||||||
| 
 | 
 | ||||||
| 				cmdbuf.SetViewport(new Viewport(213, 0, 213, 240)); | 				cmdbuf.SetViewport(new Viewport(213, 0, 213, 240)); | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -23,7 +23,11 @@ namespace MoonWorks.Test | ||||||
|                 vertShaderModule, |                 vertShaderModule, | ||||||
|                 fragShaderModule |                 fragShaderModule | ||||||
|             ); |             ); | ||||||
|             pipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionColorVertex>(); |             pipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  |                 VertexBinding.Create<PositionColorVertex>(), | ||||||
|  |                 VertexAttribute.Create<PositionColorVertex>("Position", 0), | ||||||
|  |                 VertexAttribute.Create<PositionColorVertex>("Color", 1) | ||||||
|  |             ); | ||||||
|             graphicsPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); |             graphicsPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | ||||||
| 
 | 
 | ||||||
|             // Create and populate the vertex buffer |             // Create and populate the vertex buffer | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -45,7 +45,11 @@ namespace MoonWorks.Test | ||||||
| 				blitVertShaderModule, | 				blitVertShaderModule, | ||||||
| 				blitFragShaderModule | 				blitFragShaderModule | ||||||
| 			); | 			); | ||||||
| 			pipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionTextureVertex>(); | 			pipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  | 				VertexBinding.Create<PositionTextureVertex>(), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("Position", 0), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("TexCoord", 1) | ||||||
|  | 			); | ||||||
| 			pipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; | 			pipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; | ||||||
| 			blitPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | 			blitPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | ||||||
| 
 | 
 | ||||||
|  | @ -124,7 +128,7 @@ namespace MoonWorks.Test | ||||||
| 						rt, | 						rt, | ||||||
| 						Color.Black, | 						Color.Black, | ||||||
| 						currentSampleCount, | 						currentSampleCount, | ||||||
| 						StoreOp.Store | 						StoreOp.DontCare | ||||||
| 					) | 					) | ||||||
| 				); | 				); | ||||||
| 				cmdbuf.BindGraphicsPipeline(msaaPipelines[(int) currentSampleCount]); | 				cmdbuf.BindGraphicsPipeline(msaaPipelines[(int) currentSampleCount]); | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>library</OutputType> |     <OutputType>library</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ using MoonWorks.Math.Float; | ||||||
| namespace MoonWorks.Test | namespace MoonWorks.Test | ||||||
| { | { | ||||||
| 	[StructLayout(LayoutKind.Sequential)] | 	[StructLayout(LayoutKind.Sequential)] | ||||||
| 	public struct PositionVertex : IVertexType | 	public struct PositionVertex | ||||||
| 	{ | 	{ | ||||||
| 		public Vector3 Position; | 		public Vector3 Position; | ||||||
| 
 | 
 | ||||||
|  | @ -14,11 +14,6 @@ namespace MoonWorks.Test | ||||||
| 			Position = position; | 			Position = position; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		public static VertexElementFormat[] Formats { get; } = new VertexElementFormat[1] |  | ||||||
| 		{ |  | ||||||
| 			VertexElementFormat.Vector3 |  | ||||||
| 		}; |  | ||||||
| 
 |  | ||||||
| 		public override string ToString() | 		public override string ToString() | ||||||
|         { |         { | ||||||
| 			return Position.ToString(); | 			return Position.ToString(); | ||||||
|  | @ -26,7 +21,7 @@ namespace MoonWorks.Test | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|     [StructLayout(LayoutKind.Sequential)] |     [StructLayout(LayoutKind.Sequential)] | ||||||
| 	public struct PositionColorVertex : IVertexType | 	public struct PositionColorVertex | ||||||
| 	{ | 	{ | ||||||
| 		public Vector3 Position; | 		public Vector3 Position; | ||||||
| 		public Color Color; | 		public Color Color; | ||||||
|  | @ -37,12 +32,6 @@ namespace MoonWorks.Test | ||||||
| 			Color = color; | 			Color = color; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		public static VertexElementFormat[] Formats { get; } = new VertexElementFormat[2] |  | ||||||
| 		{ |  | ||||||
| 			VertexElementFormat.Vector3, |  | ||||||
| 			VertexElementFormat.Color |  | ||||||
| 		}; |  | ||||||
| 
 |  | ||||||
| 		public override string ToString() | 		public override string ToString() | ||||||
| 		{ | 		{ | ||||||
| 			return Position + " | " + Color; | 			return Position + " | " + Color; | ||||||
|  | @ -50,7 +39,7 @@ namespace MoonWorks.Test | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	[StructLayout(LayoutKind.Sequential)] | 	[StructLayout(LayoutKind.Sequential)] | ||||||
| 	public struct PositionTextureVertex : IVertexType | 	public struct PositionTextureVertex | ||||||
| 	{ | 	{ | ||||||
| 		public Vector3 Position; | 		public Vector3 Position; | ||||||
| 		public Vector2 TexCoord; | 		public Vector2 TexCoord; | ||||||
|  | @ -61,12 +50,6 @@ namespace MoonWorks.Test | ||||||
| 			TexCoord = texCoord; | 			TexCoord = texCoord; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		public static VertexElementFormat[] Formats { get; } = new VertexElementFormat[2] |  | ||||||
| 		{ |  | ||||||
| 			VertexElementFormat.Vector3, |  | ||||||
| 			VertexElementFormat.Vector2 |  | ||||||
| 		}; |  | ||||||
| 
 |  | ||||||
|         public override string ToString() |         public override string ToString() | ||||||
|         { |         { | ||||||
| 			return Position + " | " + TexCoord; | 			return Position + " | " + TexCoord; | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -50,7 +50,11 @@ namespace MoonWorks.Test | ||||||
| 				fragShaderModule | 				fragShaderModule | ||||||
| 			); | 			); | ||||||
| 			pipelineCreateInfo.AttachmentInfo.ColorAttachmentDescriptions[0].BlendState = ColorAttachmentBlendState.AlphaBlend; | 			pipelineCreateInfo.AttachmentInfo.ColorAttachmentDescriptions[0].BlendState = ColorAttachmentBlendState.AlphaBlend; | ||||||
| 			pipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionTextureVertex>(); | 			pipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  | 				VertexBinding.Create<PositionTextureVertex>(), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("Position", 0), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("TexCoord", 1) | ||||||
|  | 			); | ||||||
| 			pipelineCreateInfo.VertexShaderInfo = GraphicsShaderInfo.Create<VertexUniforms>(vertShaderModule, "main", 0); | 			pipelineCreateInfo.VertexShaderInfo = GraphicsShaderInfo.Create<VertexUniforms>(vertShaderModule, "main", 0); | ||||||
| 			pipelineCreateInfo.FragmentShaderInfo = GraphicsShaderInfo.Create<FragmentUniforms>(fragShaderModule, "main", 1); | 			pipelineCreateInfo.FragmentShaderInfo = GraphicsShaderInfo.Create<FragmentUniforms>(fragShaderModule, "main", 1); | ||||||
| 			pipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | 			pipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -38,7 +38,11 @@ namespace MoonWorks.Test | ||||||
| 				vertShaderModule, | 				vertShaderModule, | ||||||
| 				fragShaderModule | 				fragShaderModule | ||||||
| 			); | 			); | ||||||
| 			pipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionTextureVertex>(); | 			pipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  | 				VertexBinding.Create<PositionTextureVertex>(), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("Position", 0), | ||||||
|  | 				VertexAttribute.Create<PositionTextureVertex>("TexCoord", 1) | ||||||
|  | 			); | ||||||
| 			pipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; | 			pipelineCreateInfo.FragmentShaderInfo.SamplerBindingCount = 1; | ||||||
| 			pipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | 			pipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>net7.0</TargetFramework> |     <TargetFramework>net6.0</TargetFramework> | ||||||
|     <Nullable>enable</Nullable> |     <Nullable>enable</Nullable> | ||||||
|     <Platforms>x64</Platforms> |     <Platforms>x64</Platforms> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|  |  | ||||||
|  | @ -21,7 +21,11 @@ namespace MoonWorks.Test | ||||||
| 				vertShaderModule, | 				vertShaderModule, | ||||||
| 				fragShaderModule | 				fragShaderModule | ||||||
| 			); | 			); | ||||||
| 			pipelineCreateInfo.VertexInputState = VertexInputState.CreateSingleBinding<PositionColorVertex>(); | 			pipelineCreateInfo.VertexInputState = new VertexInputState( | ||||||
|  | 				VertexBinding.Create<PositionColorVertex>(), | ||||||
|  | 				VertexAttribute.Create<PositionColorVertex>("Position", 0), | ||||||
|  | 				VertexAttribute.Create<PositionColorVertex>("Color", 1) | ||||||
|  | 			); | ||||||
| 			pipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | 			pipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); | ||||||
| 
 | 
 | ||||||
| 			// Create and populate the vertex buffer | 			// Create and populate the vertex buffer | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue