From 67e8a87c6989d1929f81d6be185d2e2ce4b9bb30 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sun, 22 Jan 2023 21:31:07 -0500 Subject: [PATCH] Renamed Mipmaps to RenderTextureMipmaps for clarity --- MoonWorksGraphicsTests.sln | 10 +++++----- README.md | 4 ++-- .../RenderTextureMipmaps.csproj | 0 .../RenderTextureMipmapsGame.cs | 7 +++---- 4 files changed, 10 insertions(+), 11 deletions(-) rename Mipmaps/Mipmaps.csproj => RenderTextureMipmaps/RenderTextureMipmaps.csproj (100%) rename Mipmaps/MipmapsGame.cs => RenderTextureMipmaps/RenderTextureMipmapsGame.cs (96%) diff --git a/MoonWorksGraphicsTests.sln b/MoonWorksGraphicsTests.sln index 8702199..1f61e44 100644 --- a/MoonWorksGraphicsTests.sln +++ b/MoonWorksGraphicsTests.sln @@ -49,7 +49,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RenderTexture3D", "RenderTe EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RenderTextureCube", "RenderTextureCube\RenderTextureCube.csproj", "{D7A8452F-123F-4965-8716-9E39F677A831}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mipmaps", "Mipmaps\Mipmaps.csproj", "{35DF0819-2373-4A8D-91E5-B143994FB63B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RenderTextureMipmaps", "RenderTextureMipmaps\RenderTextureMipmaps.csproj", "{2219C628-5593-4C23-86CB-0E1E96EBD6C5}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -149,10 +149,10 @@ Global {D7A8452F-123F-4965-8716-9E39F677A831}.Debug|x64.Build.0 = Debug|x64 {D7A8452F-123F-4965-8716-9E39F677A831}.Release|x64.ActiveCfg = Release|Any CPU {D7A8452F-123F-4965-8716-9E39F677A831}.Release|x64.Build.0 = Release|Any CPU - {35DF0819-2373-4A8D-91E5-B143994FB63B}.Debug|x64.ActiveCfg = Debug|x64 - {35DF0819-2373-4A8D-91E5-B143994FB63B}.Debug|x64.Build.0 = Debug|x64 - {35DF0819-2373-4A8D-91E5-B143994FB63B}.Release|x64.ActiveCfg = Release|Any CPU - {35DF0819-2373-4A8D-91E5-B143994FB63B}.Release|x64.Build.0 = Release|Any CPU + {2219C628-5593-4C23-86CB-0E1E96EBD6C5}.Debug|x64.ActiveCfg = Debug|x64 + {2219C628-5593-4C23-86CB-0E1E96EBD6C5}.Debug|x64.Build.0 = Debug|x64 + {2219C628-5593-4C23-86CB-0E1E96EBD6C5}.Release|x64.ActiveCfg = Release|x64 + {2219C628-5593-4C23-86CB-0E1E96EBD6C5}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/README.md b/README.md index 145dd0d..3cc1d34 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,6 @@ Fades through 2D slices of a 3D render texture. Tests binding and sampling 3D re Displays a cubemap generated by rendering to a cube render target. Tests binding and sampling cube render textures. -**Mipmaps** +**RenderTextureMipmaps** -Displays a quad that can be scaled to reveal various mip levels. The mips are solid colors, generated by clearing various levels of the texture. Tests rendering to mipmap levels of a texture and rendering mipmaps. +Displays a quad that can be scaled to reveal various mip levels. The mips are solid colors, generated by clearing various levels of the texture in a render pass. Tests rendering to mipmap levels of a render texture and rendering mipmaps. diff --git a/Mipmaps/Mipmaps.csproj b/RenderTextureMipmaps/RenderTextureMipmaps.csproj similarity index 100% rename from Mipmaps/Mipmaps.csproj rename to RenderTextureMipmaps/RenderTextureMipmaps.csproj diff --git a/Mipmaps/MipmapsGame.cs b/RenderTextureMipmaps/RenderTextureMipmapsGame.cs similarity index 96% rename from Mipmaps/MipmapsGame.cs rename to RenderTextureMipmaps/RenderTextureMipmapsGame.cs index 09b7664..5d4d74c 100644 --- a/Mipmaps/MipmapsGame.cs +++ b/RenderTextureMipmaps/RenderTextureMipmapsGame.cs @@ -1,11 +1,10 @@ using MoonWorks; using MoonWorks.Graphics; using MoonWorks.Math.Float; -using System.Runtime.InteropServices; namespace MoonWorks.Test { - class RenderTexture3DGame : Game + class RenderTextureMipmapsGame : Game { private GraphicsPipeline pipeline; private Buffer vertexBuffer; @@ -53,7 +52,7 @@ namespace MoonWorks.Test } } - public RenderTexture3DGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), 60, true) + public RenderTextureMipmapsGame() : base(TestUtils.GetStandardWindowCreateInfo(), TestUtils.GetStandardFrameLimiterSettings(), 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"); @@ -187,7 +186,7 @@ namespace MoonWorks.Test public static void Main(string[] args) { - RenderTexture3DGame game = new RenderTexture3DGame(); + RenderTextureMipmapsGame game = new RenderTextureMipmapsGame(); game.Run(); } }