Skip to content

Commit

Permalink
Moved the shader source generators into a /source directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Dec 22, 2024
1 parent 7804b37 commit 9113ff7
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class ColorShaderSourceGlslTests {
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
using fin.language.equations.fixedFunction;
using fin.language.equations.fixedFunction.impl;
using fin.model;
using fin.model.impl;
using fin.model.util;

using NUnit.Framework;

using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class FixedFunctionShaderSourceGlslTests {
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using fin.model.util;
using fin.util.image;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public struct MockMaterialOptions {
public bool Masked { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class NullShaderSourceGlslTests {
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class StandardShaderSourceGlslTests {
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class TextureShaderSourceGlslTests {
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using fin.math;
using fin.model;
using fin.shaders.glsl;
using fin.shaders.glsl.source;


namespace fin.ui.rendering.gl.material;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using fin.model;
using fin.shaders.glsl;
using fin.shaders.glsl.source;

namespace fin.ui.rendering.gl.material;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using fin.model;
using fin.shaders.glsl;
using fin.shaders.glsl.source;

namespace fin.ui.rendering.gl.material;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using fin.model;
using fin.shaders.glsl.source;
using fin.util.asserts;

namespace fin.shaders.glsl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using fin.util.enumerables;
using fin.util.image;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class ColorShaderSourceGlsl : IShaderSourceGlsl {
public ColorShaderSourceGlsl(IReadOnlyModel model,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using fin.language.equations.fixedFunction;
using fin.model;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class FixedFunctionShaderSourceGlsl(
IReadOnlyModel model,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class HiddenShaderSourceGlsl : IShaderSourceGlsl {
public string VertexShaderSource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public interface IShaderSourceGlsl {
string VertexShaderSource { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using fin.model;
using fin.util.enumerables;

namespace fin.shaders.glsl;

namespace fin.shaders.glsl.source;
public class NullShaderSourceGlsl(
IReadOnlyModel model,
IShaderRequirements shaderRequirements)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using fin.util.enumerables;
using fin.util.image;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class StandardShaderSourceGlsl : IShaderSourceGlsl {
public StandardShaderSourceGlsl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using fin.util.enumerables;
using fin.util.image;

namespace fin.shaders.glsl;
namespace fin.shaders.glsl.source;

public class TextureShaderSourceGlsl : IShaderSourceGlsl {
public TextureShaderSourceGlsl(IReadOnlyModel model,
Expand Down

0 comments on commit 9113ff7

Please sign in to comment.