Fix red screen bug in MSAA, fix validation error in CullFace

pull/1/head
Caleb Cornett 2023-01-06 15:39:39 -05:00
parent 34475c2b11
commit cc23f71c60
2 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,8 @@ namespace MoonWorks.Test
{
cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, Color.Black));
// Need to bind a pipeline before binding vertex buffers
cmdbuf.BindGraphicsPipeline(CW_CullNonePipeline);
if (useClockwiseWinding)
{
cmdbuf.BindVertexBuffers(cwVertexBuffer);
@ -105,7 +107,6 @@ namespace MoonWorks.Test
}
cmdbuf.SetViewport(new Viewport(0, 0, 213, 240));
cmdbuf.BindGraphicsPipeline(CW_CullNonePipeline);
cmdbuf.DrawPrimitives(0, 1, 0, 0);
cmdbuf.SetViewport(new Viewport(213, 0, 213, 240));

View File

@ -124,7 +124,7 @@ namespace MoonWorks.Test
rt,
Color.Black,
currentSampleCount,
StoreOp.DontCare
StoreOp.Store
)
);
cmdbuf.BindGraphicsPipeline(msaaPipelines[(int) currentSampleCount]);