Fix red screen bug in MSAA, fix validation error in CullFace
parent
34475c2b11
commit
cc23f71c60
|
@ -95,6 +95,8 @@ 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);
|
||||||
|
@ -105,7 +107,6 @@ 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));
|
||||||
|
|
|
@ -124,7 +124,7 @@ namespace MoonWorks.Test
|
||||||
rt,
|
rt,
|
||||||
Color.Black,
|
Color.Black,
|
||||||
currentSampleCount,
|
currentSampleCount,
|
||||||
StoreOp.DontCare
|
StoreOp.Store
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
cmdbuf.BindGraphicsPipeline(msaaPipelines[(int) currentSampleCount]);
|
cmdbuf.BindGraphicsPipeline(msaaPipelines[(int) currentSampleCount]);
|
||||||
|
|
Loading…
Reference in New Issue