From b283df5d6b57801ccf484e10be51e35001438a0a Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 7 Mar 2024 14:24:54 -0800 Subject: [PATCH] rename Discard to Cycle --- BasicCompute/BasicComputeGame.cs | 2 +- BasicStencil/BasicStencilGame.cs | 4 ++-- BasicTriangle/BasicTriangleGame.cs | 2 +- ClearScreen/ClearScreenGame.cs | 2 +- ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs | 4 ++-- CompressedTextures/CompressedTexturesGame.cs | 2 +- ComputeUniforms/ComputeUniformsGame.cs | 2 +- CopyTexture/CopyTextureGame.cs | 2 +- Cube/CubeGame.cs | 8 ++++---- CullFace/CullFaceGame.cs | 2 +- DepthMSAA/DepthMSAAGame.cs | 4 ++-- DrawIndirect/DrawIndirectGame.cs | 2 +- GetBufferData/GetBufferDataGame.cs | 2 +- InstancingAndOffsets/InstancingAndOffsetsGame.cs | 2 +- MSAA/MSAAGame.cs | 4 ++-- MSAACube/MSAACubeGame.cs | 4 ++-- MoonWorks.Test.Common/TestUtils.cs | 2 +- RenderTexture2D/RenderTexture2DGame.cs | 10 +++++----- RenderTexture2DArray/RenderTexture2DArrayGame.cs | 2 +- RenderTextureCube/RenderTextureCubeGame.cs | 2 +- RenderTextureMipmaps/RenderTextureMipmapsGame.cs | 2 +- StoreLoad/StoreLoadGame.cs | 2 +- Texture3D/Texture3DGame.cs | 2 +- Texture3DCopy/Texture3DCopy.cs | 2 +- TextureMipmaps/TextureMipmapsGame.cs | 2 +- TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs | 2 +- TexturedQuad/TexturedQuadGame.cs | 2 +- TriangleVertexBuffer/TriangleVertexBufferGame.cs | 2 +- VertexSampler/VertexSamplerGame.cs | 2 +- VideoPlayer/VideoPlayerGame.cs | 2 +- WindowResizing/WindowResizingGame.cs | 2 +- 31 files changed, 43 insertions(+), 43 deletions(-) diff --git a/BasicCompute/BasicComputeGame.cs b/BasicCompute/BasicComputeGame.cs index 284a294..d8dd597 100644 --- a/BasicCompute/BasicComputeGame.cs +++ b/BasicCompute/BasicComputeGame.cs @@ -133,7 +133,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.CornflowerBlue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.CornflowerBlue)); cmdbuf.BindGraphicsPipeline(drawPipeline); cmdbuf.BindFragmentSamplers(new TextureSamplerBinding(texture, sampler)); cmdbuf.BindVertexBuffers(vertexBuffer); diff --git a/BasicStencil/BasicStencilGame.cs b/BasicStencil/BasicStencilGame.cs index ad6001b..de6cb29 100644 --- a/BasicStencil/BasicStencilGame.cs +++ b/BasicStencil/BasicStencilGame.cs @@ -89,8 +89,8 @@ namespace MoonWorks.Test if (backbuffer != null) { cmdbuf.BeginRenderPass( - new DepthStencilAttachmentInfo(depthStencilTexture, WriteOptions.SafeDiscard, new DepthStencilValue(0, 0), StoreOp.DontCare, StoreOp.DontCare), - new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black) + new DepthStencilAttachmentInfo(depthStencilTexture, WriteOptions.Cycle, new DepthStencilValue(0, 0), StoreOp.DontCare, StoreOp.DontCare), + new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black) ); cmdbuf.BindGraphicsPipeline(maskerPipeline); cmdbuf.BindVertexBuffers(vertexBuffer); diff --git a/BasicTriangle/BasicTriangleGame.cs b/BasicTriangle/BasicTriangleGame.cs index c07f88c..dfde253 100644 --- a/BasicTriangle/BasicTriangleGame.cs +++ b/BasicTriangle/BasicTriangleGame.cs @@ -59,7 +59,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(useWireframeMode ? linePipeline : fillPipeline); if (useSmallViewport) diff --git a/ClearScreen/ClearScreenGame.cs b/ClearScreen/ClearScreenGame.cs index b190e58..a523645 100644 --- a/ClearScreen/ClearScreenGame.cs +++ b/ClearScreen/ClearScreenGame.cs @@ -15,7 +15,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.CornflowerBlue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.CornflowerBlue)); cmdbuf.EndRenderPass(); } GraphicsDevice.Submit(cmdbuf); diff --git a/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs b/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs index 073db66..70e8efe 100644 --- a/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs +++ b/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs @@ -34,7 +34,7 @@ namespace MoonWorks.Test backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.CornflowerBlue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.CornflowerBlue)); cmdbuf.EndRenderPass(); } GraphicsDevice.Submit(cmdbuf); @@ -46,7 +46,7 @@ namespace MoonWorks.Test backbuffer = cmdbuf.AcquireSwapchainTexture(secondaryWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Aquamarine)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Aquamarine)); cmdbuf.EndRenderPass(); } GraphicsDevice.Submit(cmdbuf); diff --git a/CompressedTextures/CompressedTexturesGame.cs b/CompressedTextures/CompressedTexturesGame.cs index 3a3a4c8..729ccb6 100644 --- a/CompressedTextures/CompressedTexturesGame.cs +++ b/CompressedTextures/CompressedTexturesGame.cs @@ -111,7 +111,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/ComputeUniforms/ComputeUniformsGame.cs b/ComputeUniforms/ComputeUniformsGame.cs index 58d47f8..9841b3a 100644 --- a/ComputeUniforms/ComputeUniformsGame.cs +++ b/ComputeUniforms/ComputeUniformsGame.cs @@ -113,7 +113,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.CornflowerBlue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.CornflowerBlue)); cmdbuf.BindGraphicsPipeline(drawPipeline); cmdbuf.BindFragmentSamplers(new TextureSamplerBinding(texture, sampler)); cmdbuf.BindVertexBuffers(vertexBuffer); diff --git a/CopyTexture/CopyTextureGame.cs b/CopyTexture/CopyTextureGame.cs index 80a8214..5395ad2 100644 --- a/CopyTexture/CopyTextureGame.cs +++ b/CopyTexture/CopyTextureGame.cs @@ -157,7 +157,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/Cube/CubeGame.cs b/Cube/CubeGame.cs index 7ee5136..ebc7550 100644 --- a/Cube/CubeGame.cs +++ b/Cube/CubeGame.cs @@ -402,7 +402,7 @@ namespace MoonWorks.Test Color clearColor = new Color(sine, sine, sine); // Just show a clear screen. - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(swapchainTexture, WriteOptions.SafeDiscard, clearColor)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(swapchainTexture, WriteOptions.Cycle, clearColor)); cmdbuf.EndRenderPass(); } else @@ -410,14 +410,14 @@ namespace MoonWorks.Test if (!depthOnlyEnabled) { cmdbuf.BeginRenderPass( - new DepthStencilAttachmentInfo(depthTexture, WriteOptions.SafeDiscard, new DepthStencilValue(1f, 0)), - new ColorAttachmentInfo(swapchainTexture, WriteOptions.SafeDiscard, LoadOp.DontCare) + new DepthStencilAttachmentInfo(depthTexture, WriteOptions.Cycle, new DepthStencilValue(1f, 0)), + new ColorAttachmentInfo(swapchainTexture, WriteOptions.Cycle, LoadOp.DontCare) ); } else { cmdbuf.BeginRenderPass( - new DepthStencilAttachmentInfo(depthTexture, WriteOptions.SafeDiscard, new DepthStencilValue(1f, 0), StoreOp.Store) + new DepthStencilAttachmentInfo(depthTexture, WriteOptions.Cycle, new DepthStencilValue(1f, 0), StoreOp.Store) ); } diff --git a/CullFace/CullFaceGame.cs b/CullFace/CullFaceGame.cs index 1e98cb1..43bd783 100644 --- a/CullFace/CullFaceGame.cs +++ b/CullFace/CullFaceGame.cs @@ -91,7 +91,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); // Need to bind a pipeline before binding vertex buffers cmdbuf.BindGraphicsPipeline(CW_CullNonePipeline); diff --git a/DepthMSAA/DepthMSAAGame.cs b/DepthMSAA/DepthMSAAGame.cs index 916c989..f0e0b2d 100644 --- a/DepthMSAA/DepthMSAAGame.cs +++ b/DepthMSAA/DepthMSAAGame.cs @@ -210,8 +210,8 @@ namespace MoonWorks.Test // Begin the MSAA RT pass int index = (int) currentSampleCount; cmdbuf.BeginRenderPass( - new DepthStencilAttachmentInfo(depthRTs[index], WriteOptions.SafeDiscard, new DepthStencilValue(1, 0)), - new ColorAttachmentInfo(renderTargets[index], WriteOptions.SafeDiscard, Color.Black) + new DepthStencilAttachmentInfo(depthRTs[index], WriteOptions.Cycle, new DepthStencilValue(1, 0)), + new ColorAttachmentInfo(renderTargets[index], WriteOptions.Cycle, Color.Black) ); cmdbuf.BindGraphicsPipeline(cubePipelines[index]); diff --git a/DrawIndirect/DrawIndirectGame.cs b/DrawIndirect/DrawIndirectGame.cs index 460b36d..b6fd8e0 100644 --- a/DrawIndirect/DrawIndirectGame.cs +++ b/DrawIndirect/DrawIndirectGame.cs @@ -61,7 +61,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.CornflowerBlue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.CornflowerBlue)); cmdbuf.BindGraphicsPipeline(graphicsPipeline); cmdbuf.BindVertexBuffers(new BufferBinding(vertexBuffer, 0)); cmdbuf.DrawPrimitivesIndirect(drawBuffer, 0, 2, (uint) Marshal.SizeOf()); diff --git a/GetBufferData/GetBufferDataGame.cs b/GetBufferData/GetBufferDataGame.cs index e55dae1..bf8d146 100644 --- a/GetBufferData/GetBufferDataGame.cs +++ b/GetBufferData/GetBufferDataGame.cs @@ -120,7 +120,7 @@ namespace MoonWorks.Test Texture? swapchainTexture = cmdbuf.AcquireSwapchainTexture(MainWindow); if (swapchainTexture != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(swapchainTexture, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(swapchainTexture, WriteOptions.Cycle, Color.Black)); cmdbuf.EndRenderPass(); } GraphicsDevice.Submit(cmdbuf); diff --git a/InstancingAndOffsets/InstancingAndOffsetsGame.cs b/InstancingAndOffsets/InstancingAndOffsetsGame.cs index a67ae95..7fc2dd7 100644 --- a/InstancingAndOffsets/InstancingAndOffsetsGame.cs +++ b/InstancingAndOffsets/InstancingAndOffsetsGame.cs @@ -86,7 +86,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/MSAA/MSAAGame.cs b/MSAA/MSAAGame.cs index 290c6ff..fd23c62 100644 --- a/MSAA/MSAAGame.cs +++ b/MSAA/MSAAGame.cs @@ -126,12 +126,12 @@ namespace MoonWorks.Test { Texture rt = renderTargets[(int) currentSampleCount]; - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(rt, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(rt, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(msaaPipelines[(int) currentSampleCount]); cmdbuf.DrawPrimitives(0, 1); cmdbuf.EndRenderPass(); - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, LoadOp.DontCare)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, LoadOp.DontCare)); cmdbuf.BindGraphicsPipeline(blitPipeline); cmdbuf.BindFragmentSamplers(new TextureSamplerBinding(rt, rtSampler)); cmdbuf.BindVertexBuffers(quadVertexBuffer); diff --git a/MSAACube/MSAACubeGame.cs b/MSAACube/MSAACubeGame.cs index 65cea82..0bffa6c 100644 --- a/MSAACube/MSAACubeGame.cs +++ b/MSAACube/MSAACubeGame.cs @@ -186,7 +186,7 @@ namespace MoonWorks.Test Texture rt = renderTargets[rtIndex]; ColorAttachmentInfo rtAttachmentInfo = new ColorAttachmentInfo( rt, - WriteOptions.SafeDiscard, + WriteOptions.Cycle, Color.Black ); @@ -201,7 +201,7 @@ namespace MoonWorks.Test cmdbuf.EndRenderPass(); } - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(cubemapPipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/MoonWorks.Test.Common/TestUtils.cs b/MoonWorks.Test.Common/TestUtils.cs index f79926e..8ffd179 100644 --- a/MoonWorks.Test.Common/TestUtils.cs +++ b/MoonWorks.Test.Common/TestUtils.cs @@ -5,7 +5,7 @@ namespace MoonWorks.Test public static class TestUtils { // change this to test different backends - public static Backend[] PreferredBackends = [Backend.Vulkan, Backend.D3D11]; + public static Backend[] PreferredBackends = [Backend.D3D11]; public static WindowCreateInfo GetStandardWindowCreateInfo() { diff --git a/RenderTexture2D/RenderTexture2DGame.cs b/RenderTexture2D/RenderTexture2DGame.cs index aae5524..9b667a0 100644 --- a/RenderTexture2D/RenderTexture2DGame.cs +++ b/RenderTexture2D/RenderTexture2DGame.cs @@ -92,19 +92,19 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[0], WriteOptions.SafeDiscard, Color.Red)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[0], WriteOptions.Cycle, Color.Red)); cmdbuf.EndRenderPass(); - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[1], WriteOptions.SafeDiscard, Color.Blue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[1], WriteOptions.Cycle, Color.Blue)); cmdbuf.EndRenderPass(); - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[2], WriteOptions.SafeDiscard, Color.Green)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[2], WriteOptions.Cycle, Color.Green)); cmdbuf.EndRenderPass(); - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[3], WriteOptions.SafeDiscard, Color.Yellow)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(textures[3], WriteOptions.Cycle, Color.Yellow)); cmdbuf.EndRenderPass(); - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/RenderTexture2DArray/RenderTexture2DArrayGame.cs b/RenderTexture2DArray/RenderTexture2DArrayGame.cs index ae31eff..789e4f3 100644 --- a/RenderTexture2DArray/RenderTexture2DArrayGame.cs +++ b/RenderTexture2DArray/RenderTexture2DArrayGame.cs @@ -118,7 +118,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/RenderTextureCube/RenderTextureCubeGame.cs b/RenderTextureCube/RenderTextureCubeGame.cs index 04333fc..215424e 100644 --- a/RenderTextureCube/RenderTextureCubeGame.cs +++ b/RenderTextureCube/RenderTextureCubeGame.cs @@ -158,7 +158,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/RenderTextureMipmaps/RenderTextureMipmapsGame.cs b/RenderTextureMipmaps/RenderTextureMipmapsGame.cs index 684f1c8..73a9306 100644 --- a/RenderTextureMipmaps/RenderTextureMipmapsGame.cs +++ b/RenderTextureMipmaps/RenderTextureMipmapsGame.cs @@ -166,7 +166,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/StoreLoad/StoreLoadGame.cs b/StoreLoad/StoreLoadGame.cs index 8b66873..e0a35ac 100644 --- a/StoreLoad/StoreLoadGame.cs +++ b/StoreLoad/StoreLoadGame.cs @@ -31,7 +31,7 @@ namespace MoonWorks.Test Texture? swapchain = cmdbuf.AcquireSwapchainTexture(MainWindow); if (swapchain != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(swapchain, WriteOptions.SafeDiscard, Color.Blue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(swapchain, WriteOptions.Cycle, Color.Blue)); cmdbuf.BindGraphicsPipeline(fillPipeline); cmdbuf.DrawPrimitives(0, 1); cmdbuf.EndRenderPass(); diff --git a/Texture3D/Texture3DGame.cs b/Texture3D/Texture3DGame.cs index 5b2f619..9393509 100644 --- a/Texture3D/Texture3DGame.cs +++ b/Texture3D/Texture3DGame.cs @@ -139,7 +139,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/Texture3DCopy/Texture3DCopy.cs b/Texture3DCopy/Texture3DCopy.cs index 9c74ded..40c973c 100644 --- a/Texture3DCopy/Texture3DCopy.cs +++ b/Texture3DCopy/Texture3DCopy.cs @@ -170,7 +170,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/TextureMipmaps/TextureMipmapsGame.cs b/TextureMipmaps/TextureMipmapsGame.cs index 678c45a..42cd27b 100644 --- a/TextureMipmaps/TextureMipmapsGame.cs +++ b/TextureMipmaps/TextureMipmapsGame.cs @@ -116,7 +116,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs b/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs index 62fad73..28b70db 100644 --- a/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs +++ b/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs @@ -86,7 +86,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/TexturedQuad/TexturedQuadGame.cs b/TexturedQuad/TexturedQuadGame.cs index 6c461e8..6be5efb 100644 --- a/TexturedQuad/TexturedQuadGame.cs +++ b/TexturedQuad/TexturedQuadGame.cs @@ -145,7 +145,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/TriangleVertexBuffer/TriangleVertexBufferGame.cs b/TriangleVertexBuffer/TriangleVertexBufferGame.cs index 4f5d3d3..39ed4b8 100644 --- a/TriangleVertexBuffer/TriangleVertexBufferGame.cs +++ b/TriangleVertexBuffer/TriangleVertexBufferGame.cs @@ -48,7 +48,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.DrawPrimitives(0, 1); diff --git a/VertexSampler/VertexSamplerGame.cs b/VertexSampler/VertexSamplerGame.cs index fbd4d73..888899b 100644 --- a/VertexSampler/VertexSamplerGame.cs +++ b/VertexSampler/VertexSamplerGame.cs @@ -60,7 +60,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindVertexSamplers(new TextureSamplerBinding(texture, sampler)); diff --git a/VideoPlayer/VideoPlayerGame.cs b/VideoPlayer/VideoPlayerGame.cs index 9571c72..38fc2a9 100644 --- a/VideoPlayer/VideoPlayerGame.cs +++ b/VideoPlayer/VideoPlayerGame.cs @@ -78,7 +78,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.CornflowerBlue)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.CornflowerBlue)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.BindVertexBuffers(vertexBuffer); cmdbuf.BindIndexBuffer(indexBuffer, IndexElementSize.Sixteen); diff --git a/WindowResizing/WindowResizingGame.cs b/WindowResizing/WindowResizingGame.cs index 5f17d53..21260e2 100644 --- a/WindowResizing/WindowResizingGame.cs +++ b/WindowResizing/WindowResizingGame.cs @@ -68,7 +68,7 @@ namespace MoonWorks.Test Texture? backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow); if (backbuffer != null) { - cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.SafeDiscard, Color.Black)); + cmdbuf.BeginRenderPass(new ColorAttachmentInfo(backbuffer, WriteOptions.Cycle, Color.Black)); cmdbuf.BindGraphicsPipeline(pipeline); cmdbuf.DrawPrimitives(0, 1); cmdbuf.EndRenderPass();