Files
sbox-public/game/addons/tools/Code/ShaderGraph/Sampler.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

38 lines
571 B
C#

namespace Editor.ShaderGraph;
public enum SamplerFilter
{
Aniso,
Bilinear,
Trilinear,
Point,
}
public enum SamplerAddress
{
Wrap,
Mirror,
Clamp,
Border,
Mirror_Once,
}
public struct Sampler
{
/// <summary>
/// Smooth or Pixelated filtering
/// </summary>
public SamplerFilter Filter { get; set; }
/// <summary>
/// Horizontal wrapping, repeating or stretched
/// </summary>
public SamplerAddress AddressU { get; set; }
/// <summary>
/// Vertical wrapping, repeating or stretched
/// </summary>
public SamplerAddress AddressV { get; set; }
}