mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-19 05:48:07 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
38 lines
571 B
C#
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; }
|
|
}
|