diff --git a/BasicCompute/BasicComputeGame.cs b/BasicCompute/BasicComputeGame.cs index a87a06d..284a294 100644 --- a/BasicCompute/BasicComputeGame.cs +++ b/BasicCompute/BasicComputeGame.cs @@ -11,7 +11,7 @@ namespace MoonWorks.Test private Sampler sampler; private GpuBuffer vertexBuffer; - public BasicComputeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public BasicComputeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Create the compute pipeline that writes texture data ShaderModule fillTextureComputeShaderModule = new ShaderModule( diff --git a/BasicStencil/BasicStencilGame.cs b/BasicStencil/BasicStencilGame.cs index 2266d37..ad6001b 100644 --- a/BasicStencil/BasicStencilGame.cs +++ b/BasicStencil/BasicStencilGame.cs @@ -11,7 +11,7 @@ namespace MoonWorks.Test private GpuBuffer vertexBuffer; private Texture depthStencilTexture; - public BasicStencilGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public BasicStencilGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("PositionColor.vert")); diff --git a/BasicTriangle/BasicTriangleGame.cs b/BasicTriangle/BasicTriangleGame.cs index 6bce225..c07f88c 100644 --- a/BasicTriangle/BasicTriangleGame.cs +++ b/BasicTriangle/BasicTriangleGame.cs @@ -14,7 +14,7 @@ namespace MoonWorks.Test private bool useSmallViewport; private bool useScissorRect; - public BasicTriangleGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public BasicTriangleGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left to toggle wireframe mode\nPress Down to toggle small viewport\nPress Right to toggle scissor rect"); diff --git a/ClearScreen/ClearScreenGame.cs b/ClearScreen/ClearScreenGame.cs index 196b014..b190e58 100644 --- a/ClearScreen/ClearScreenGame.cs +++ b/ClearScreen/ClearScreenGame.cs @@ -5,7 +5,7 @@ namespace MoonWorks.Test { class ClearScreenGame : Game { - public ClearScreenGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) { } + public ClearScreenGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { } protected override void Update(System.TimeSpan delta) { } diff --git a/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs b/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs index 7ffa4c1..073db66 100644 --- a/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs +++ b/ClearScreen_MultiWindow/ClearScreen_MultiWindowGame.cs @@ -7,7 +7,7 @@ namespace MoonWorks.Test { private Window secondaryWindow; - public ClearScreen_MultiWindowGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public ClearScreen_MultiWindowGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { var (windowX, windowY) = MainWindow.Position; MainWindow.SetPosition(windowX - 360, windowY); diff --git a/CompressedTextures/CompressedTexturesGame.cs b/CompressedTextures/CompressedTexturesGame.cs index 2edef00..3a3a4c8 100644 --- a/CompressedTextures/CompressedTexturesGame.cs +++ b/CompressedTextures/CompressedTexturesGame.cs @@ -21,7 +21,7 @@ namespace MoonWorks.Test private int currentTextureIndex; - public CompressedTexturesGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public CompressedTexturesGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to cycle between textures"); Logger.LogInfo("Setting texture to: " + textureNames[0]); diff --git a/ComputeUniforms/ComputeUniformsGame.cs b/ComputeUniforms/ComputeUniformsGame.cs index 50260e4..58d47f8 100644 --- a/ComputeUniforms/ComputeUniformsGame.cs +++ b/ComputeUniforms/ComputeUniformsGame.cs @@ -23,7 +23,7 @@ namespace MoonWorks.Test } } - public ComputeUniformsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public ComputeUniformsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Create the compute pipeline that writes texture data ShaderModule gradientTextureComputeShaderModule = new ShaderModule( diff --git a/CopyTexture/CopyTextureGame.cs b/CopyTexture/CopyTextureGame.cs index d7da91e..80a8214 100644 --- a/CopyTexture/CopyTextureGame.cs +++ b/CopyTexture/CopyTextureGame.cs @@ -14,7 +14,7 @@ namespace MoonWorks.Test private Texture textureSmallCopy; private Sampler sampler; - public unsafe CopyTextureGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public unsafe CopyTextureGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuad.vert")); diff --git a/Cube/CubeGame.cs b/Cube/CubeGame.cs index 9736bf1..7ee5136 100644 --- a/Cube/CubeGame.cs +++ b/Cube/CubeGame.cs @@ -88,7 +88,7 @@ namespace MoonWorks.Test cubemapUploader.Dispose(); } - public CubeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public CubeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { ShaderModule cubeVertShaderModule = new ShaderModule( GraphicsDevice, diff --git a/CullFace/CullFaceGame.cs b/CullFace/CullFaceGame.cs index f4f4465..1e98cb1 100644 --- a/CullFace/CullFaceGame.cs +++ b/CullFace/CullFaceGame.cs @@ -17,7 +17,7 @@ namespace MoonWorks.Test private bool useClockwiseWinding; - public CullFaceGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public CullFaceGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Down to toggle the winding order of the triangles (default is counter-clockwise)"); diff --git a/DepthMSAA/DepthMSAAGame.cs b/DepthMSAA/DepthMSAAGame.cs index f0b1a30..916c989 100644 --- a/DepthMSAA/DepthMSAAGame.cs +++ b/DepthMSAA/DepthMSAAGame.cs @@ -21,7 +21,7 @@ namespace MoonWorks.Test private SampleCount currentSampleCount = SampleCount.Four; - public DepthMSAAGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public DepthMSAAGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to cycle between sample counts"); Logger.LogInfo("Setting sample count to: " + currentSampleCount); diff --git a/DrawIndirect/DrawIndirectGame.cs b/DrawIndirect/DrawIndirectGame.cs index 417d6a9..460b36d 100644 --- a/DrawIndirect/DrawIndirectGame.cs +++ b/DrawIndirect/DrawIndirectGame.cs @@ -10,7 +10,7 @@ namespace MoonWorks.Test private GpuBuffer vertexBuffer; private GpuBuffer drawBuffer; - public DrawIndirectGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public DrawIndirectGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("PositionColor.vert")); diff --git a/GetBufferData/GetBufferDataGame.cs b/GetBufferData/GetBufferDataGame.cs index 6d102ca..e55dae1 100644 --- a/GetBufferData/GetBufferDataGame.cs +++ b/GetBufferData/GetBufferDataGame.cs @@ -6,7 +6,7 @@ namespace MoonWorks.Test { class GetBufferDataGame : Game { - public GetBufferDataGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public GetBufferDataGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { var vertices = new System.Span( [ diff --git a/InstancingAndOffsets/InstancingAndOffsetsGame.cs b/InstancingAndOffsets/InstancingAndOffsetsGame.cs index 5ee66e1..a67ae95 100644 --- a/InstancingAndOffsets/InstancingAndOffsetsGame.cs +++ b/InstancingAndOffsets/InstancingAndOffsetsGame.cs @@ -13,7 +13,7 @@ namespace MoonWorks.Test private bool useVertexOffset; private bool useIndexOffset; - public InstancingAndOffsetsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public InstancingAndOffsetsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left to toggle vertex offset\nPress Right to toggle index offset"); diff --git a/MSAA/MSAAGame.cs b/MSAA/MSAAGame.cs index a56706d..290c6ff 100644 --- a/MSAA/MSAAGame.cs +++ b/MSAA/MSAAGame.cs @@ -16,7 +16,7 @@ namespace MoonWorks.Test private SampleCount currentSampleCount = SampleCount.Four; - public MSAAGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public MSAAGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to cycle between sample counts"); Logger.LogInfo("Setting sample count to: " + currentSampleCount); diff --git a/MSAACube/MSAACubeGame.cs b/MSAACube/MSAACubeGame.cs index 649a4de..65cea82 100644 --- a/MSAACube/MSAACubeGame.cs +++ b/MSAACube/MSAACubeGame.cs @@ -20,7 +20,7 @@ namespace MoonWorks.Test private SampleCount currentSampleCount = SampleCount.Four; - public MSAACubeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public MSAACubeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Down to view the other side of the cubemap"); Logger.LogInfo("Press Left and Right to cycle between sample counts"); diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/CalculateSquares.comp.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/CalculateSquares.comp.refresh index 14da96d..651c75a 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/CalculateSquares.comp.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/CalculateSquares.comp.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/FillTexture.comp.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/FillTexture.comp.refresh index 82b6cfe..be505ec 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/FillTexture.comp.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/FillTexture.comp.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/GradientTexture.comp.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/GradientTexture.comp.refresh index 45bc488..8fb7703 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/GradientTexture.comp.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/GradientTexture.comp.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColor.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColor.vert.refresh index 67a8967..26b8c1b 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColor.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColor.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorInstanced.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorInstanced.vert.refresh index 9c2c534..06c77f4 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorInstanced.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorInstanced.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorWithMatrix.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorWithMatrix.vert.refresh index 559cef0..3f3df4c 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorWithMatrix.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionColorWithMatrix.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionSampler.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionSampler.vert.refresh index 1bd2672..2e5a0cb 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionSampler.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/PositionSampler.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/RawTriangle.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/RawTriangle.vert.refresh index 3eda99c..1d63c88 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/RawTriangle.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/RawTriangle.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.frag.refresh index 8be0b5d..2c3754f 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.frag.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.vert.refresh index 9299f15..6e9f6ef 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/Skybox.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/SolidColor.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/SolidColor.frag.refresh index 2a62f1d..764fd5b 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/SolidColor.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/SolidColor.frag.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedDepthQuad.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedDepthQuad.frag.refresh index d3e105c..b1b7821 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedDepthQuad.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedDepthQuad.frag.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.frag.refresh index a1a3e0f..f3ba937 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.frag.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.vert.refresh index 4729e32..aa9f296 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad2DArray.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad2DArray.frag.refresh index df4b41c..a8aac42 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad2DArray.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad2DArray.frag.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad3D.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad3D.frag.refresh index 8fd6d2b..6f6d422 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad3D.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuad3D.frag.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMatrix.vert.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMatrix.vert.refresh index c07a513..e82af5a 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMatrix.vert.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMatrix.vert.refresh differ diff --git a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMultiplyColor.frag.refresh b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMultiplyColor.frag.refresh index e626e5b..615b0f3 100644 Binary files a/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMultiplyColor.frag.refresh and b/MoonWorks.Test.Common/Content/Shaders/Compiled/TexturedQuadWithMultiplyColor.frag.refresh differ diff --git a/MoonWorks.Test.Common/TestUtils.cs b/MoonWorks.Test.Common/TestUtils.cs index b59bd84..f79926e 100644 --- a/MoonWorks.Test.Common/TestUtils.cs +++ b/MoonWorks.Test.Common/TestUtils.cs @@ -4,7 +4,8 @@ namespace MoonWorks.Test { public static class TestUtils { - public static Backend Backend = Backend.Vulkan; // change this to test different backends + // change this to test different backends + public static Backend[] PreferredBackends = [Backend.Vulkan, Backend.D3D11]; public static WindowCreateInfo GetStandardWindowCreateInfo() { diff --git a/RenderTexture2D/RenderTexture2DGame.cs b/RenderTexture2D/RenderTexture2DGame.cs index c264912..aae5524 100644 --- a/RenderTexture2D/RenderTexture2DGame.cs +++ b/RenderTexture2D/RenderTexture2DGame.cs @@ -12,7 +12,7 @@ namespace MoonWorks.Test private Texture[] textures = new Texture[4]; private Sampler sampler; - public RenderTexture2DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public RenderTexture2DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuad.vert")); diff --git a/RenderTexture2DArray/RenderTexture2DArrayGame.cs b/RenderTexture2DArray/RenderTexture2DArrayGame.cs index 4eea27e..ae31eff 100644 --- a/RenderTexture2DArray/RenderTexture2DArrayGame.cs +++ b/RenderTexture2DArray/RenderTexture2DArrayGame.cs @@ -30,7 +30,7 @@ namespace MoonWorks.Test } } - public RenderTexture2DArrayGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public RenderTexture2DArrayGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuad.vert")); diff --git a/RenderTextureCube/RenderTextureCubeGame.cs b/RenderTextureCube/RenderTextureCubeGame.cs index 4250a04..04333fc 100644 --- a/RenderTextureCube/RenderTextureCubeGame.cs +++ b/RenderTextureCube/RenderTextureCubeGame.cs @@ -25,7 +25,7 @@ namespace MoonWorks.Test Color.Purple, }; - public RenderTextureCubeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public RenderTextureCubeGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Down to view the other side of the cubemap"); diff --git a/RenderTextureMipmaps/RenderTextureMipmapsGame.cs b/RenderTextureMipmaps/RenderTextureMipmapsGame.cs index 2e0d0b9..684f1c8 100644 --- a/RenderTextureMipmaps/RenderTextureMipmapsGame.cs +++ b/RenderTextureMipmaps/RenderTextureMipmapsGame.cs @@ -41,7 +41,7 @@ namespace MoonWorks.Test } } - public RenderTextureMipmapsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public RenderTextureMipmapsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to shrink/expand the scale of the quad"); Logger.LogInfo("Press Down to cycle through sampler states"); diff --git a/StoreLoad/StoreLoadGame.cs b/StoreLoad/StoreLoadGame.cs index 9a22efc..8b66873 100644 --- a/StoreLoad/StoreLoadGame.cs +++ b/StoreLoad/StoreLoadGame.cs @@ -7,7 +7,7 @@ namespace MoonWorks.Test { private GraphicsPipeline fillPipeline; - public StoreLoadGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public StoreLoadGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("RawTriangle.vert")); ShaderModule fragShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("SolidColor.frag")); diff --git a/Texture3D/Texture3DGame.cs b/Texture3D/Texture3DGame.cs index f54e96b..5b2f619 100644 --- a/Texture3D/Texture3DGame.cs +++ b/Texture3D/Texture3DGame.cs @@ -23,7 +23,7 @@ namespace MoonWorks.Test } } - public Texture3DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public Texture3DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to cycle between depth slices"); diff --git a/Texture3DCopy/Texture3DCopy.cs b/Texture3DCopy/Texture3DCopy.cs index 27d841f..9c74ded 100644 --- a/Texture3DCopy/Texture3DCopy.cs +++ b/Texture3DCopy/Texture3DCopy.cs @@ -30,7 +30,7 @@ namespace MoonWorks.Test } } - public RenderTexture3DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public RenderTexture3DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuad.vert")); diff --git a/TextureMipmaps/TextureMipmapsGame.cs b/TextureMipmaps/TextureMipmapsGame.cs index 5e2a8f7..678c45a 100644 --- a/TextureMipmaps/TextureMipmapsGame.cs +++ b/TextureMipmaps/TextureMipmapsGame.cs @@ -13,7 +13,7 @@ namespace MoonWorks.Test private float scale = 0.5f; - public TextureMipmapsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public TextureMipmapsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to shrink/expand the scale of the quad"); diff --git a/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs b/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs index 52279d3..62fad73 100644 --- a/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs +++ b/TexturedAnimatedQuad/TexturedAnimatedQuadGame.cs @@ -25,7 +25,7 @@ namespace MoonWorks.Test } } - public TexturedAnimatedQuadGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public TexturedAnimatedQuadGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuadWithMatrix.vert")); diff --git a/TexturedQuad/TexturedQuadGame.cs b/TexturedQuad/TexturedQuadGame.cs index 3cd5813..6c461e8 100644 --- a/TexturedQuad/TexturedQuadGame.cs +++ b/TexturedQuad/TexturedQuadGame.cs @@ -35,7 +35,7 @@ namespace MoonWorks.Test private System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch(); - public TexturedQuadGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public TexturedQuadGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { Logger.LogInfo("Press Left and Right to cycle between sampler states"); Logger.LogInfo("Setting sampler state to: " + samplerNames[0]); diff --git a/TriangleVertexBuffer/TriangleVertexBufferGame.cs b/TriangleVertexBuffer/TriangleVertexBufferGame.cs index c3cd255..4f5d3d3 100644 --- a/TriangleVertexBuffer/TriangleVertexBufferGame.cs +++ b/TriangleVertexBuffer/TriangleVertexBufferGame.cs @@ -9,7 +9,7 @@ namespace MoonWorks.Test private GraphicsPipeline pipeline; private GpuBuffer vertexBuffer; - public TriangleVertexBufferGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public TriangleVertexBufferGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("PositionColor.vert")); diff --git a/VertexSampler/VertexSamplerGame.cs b/VertexSampler/VertexSamplerGame.cs index ed06005..fbd4d73 100644 --- a/VertexSampler/VertexSamplerGame.cs +++ b/VertexSampler/VertexSamplerGame.cs @@ -12,7 +12,7 @@ namespace MoonWorks.Test private Texture texture; private Sampler sampler; - public VertexSamplerGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public VertexSamplerGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("PositionSampler.vert")); diff --git a/VideoPlayer/VideoPlayerGame.cs b/VideoPlayer/VideoPlayerGame.cs index aba14d1..9571c72 100644 --- a/VideoPlayer/VideoPlayerGame.cs +++ b/VideoPlayer/VideoPlayerGame.cs @@ -14,7 +14,7 @@ namespace MoonWorks.Test private Video.VideoAV1 video; private VideoPlayer videoPlayer; - public VideoPlayerGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public VideoPlayerGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { // Load the shaders ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("TexturedQuad.vert")); diff --git a/WindowResizing/WindowResizingGame.cs b/WindowResizing/WindowResizingGame.cs index b2f0597..5f17d53 100644 --- a/WindowResizing/WindowResizingGame.cs +++ b/WindowResizing/WindowResizingGame.cs @@ -20,7 +20,7 @@ namespace MoonWorks.Test new Res(3840, 2160), }; - public WindowResizingGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.Backend, 60, true) + public WindowResizingGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), TestUtils.PreferredBackends, 60, true) { ShaderModule vertShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("RawTriangle.vert")); ShaderModule fragShaderModule = new ShaderModule(GraphicsDevice, TestUtils.GetShaderPath("SolidColor.frag"));