Texture format consistency
parent
030e86124a
commit
0c47e85146
|
@ -47,6 +47,7 @@ namespace MoonWorks.Test
|
|||
);
|
||||
|
||||
GraphicsPipelineCreateInfo drawPipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
vertShaderModule,
|
||||
fragShaderModule
|
||||
);
|
||||
|
|
|
@ -23,6 +23,7 @@ namespace MoonWorks.Test
|
|||
ShaderModule fragShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("SolidColor.spv"));
|
||||
|
||||
GraphicsPipelineCreateInfo pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
vertShaderModule,
|
||||
fragShaderModule
|
||||
);
|
||||
|
@ -70,7 +71,7 @@ namespace MoonWorks.Test
|
|||
{
|
||||
cmdbuf.SetScissor(scissorRect);
|
||||
}
|
||||
|
||||
|
||||
cmdbuf.DrawPrimitives(0, 1, 0, 0);
|
||||
cmdbuf.EndRenderPass();
|
||||
}
|
||||
|
|
|
@ -210,6 +210,7 @@ namespace MoonWorks.Test
|
|||
// Create the blit pipeline
|
||||
|
||||
GraphicsPipelineCreateInfo blitPipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
blitVertShaderModule,
|
||||
blitFragShaderModule
|
||||
);
|
||||
|
|
|
@ -27,6 +27,7 @@ namespace MoonWorks.Test
|
|||
|
||||
// Create the graphics pipelines
|
||||
GraphicsPipelineCreateInfo pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
vertShaderModule,
|
||||
fragShaderModule
|
||||
);
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace MoonWorks.Test
|
|||
ShaderModule triangleFragShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("SolidColor.spv"));
|
||||
|
||||
GraphicsPipelineCreateInfo pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
TextureFormat.R8G8B8A8,
|
||||
triangleVertShaderModule,
|
||||
triangleFragShaderModule
|
||||
);
|
||||
|
@ -40,6 +41,7 @@ namespace MoonWorks.Test
|
|||
ShaderModule blitFragShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuadFrag.spv"));
|
||||
|
||||
pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
blitVertShaderModule,
|
||||
blitFragShaderModule
|
||||
);
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace MoonWorks.Test
|
|||
}
|
||||
|
||||
public static GraphicsPipelineCreateInfo GetStandardGraphicsPipelineCreateInfo(
|
||||
TextureFormat swapchainFormat,
|
||||
ShaderModule vertShaderModule,
|
||||
ShaderModule fragShaderModule
|
||||
) {
|
||||
|
@ -31,7 +32,7 @@ namespace MoonWorks.Test
|
|||
{
|
||||
AttachmentInfo = new GraphicsPipelineAttachmentInfo(
|
||||
new ColorAttachmentDescription(
|
||||
TextureFormat.R8G8B8A8,
|
||||
swapchainFormat,
|
||||
ColorAttachmentBlendState.Opaque
|
||||
)
|
||||
),
|
||||
|
|
|
@ -45,6 +45,7 @@ namespace MoonWorks.Test
|
|||
|
||||
// Create the graphics pipeline
|
||||
GraphicsPipelineCreateInfo pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
vertShaderModule,
|
||||
fragShaderModule
|
||||
);
|
||||
|
|
|
@ -34,6 +34,7 @@ namespace MoonWorks.Test
|
|||
|
||||
// Create the graphics pipeline
|
||||
GraphicsPipelineCreateInfo pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
vertShaderModule,
|
||||
fragShaderModule
|
||||
);
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace MoonWorks.Test
|
|||
|
||||
// Create the graphics pipeline
|
||||
GraphicsPipelineCreateInfo pipelineCreateInfo = TestUtils.GetStandardGraphicsPipelineCreateInfo(
|
||||
MainWindow.SwapchainFormat,
|
||||
vertShaderModule,
|
||||
fragShaderModule
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue