Class MonoGameGlslSampler
- Namespace
- ShadowDusk.GLSL
- Assembly
- ShadowDusk.GLSL.dll
A single sampler discovered while rewriting SPIRV-Cross GLSL into the
MonoGame/MojoShader dialect. Name is always ps_s{Slot}.
Dimension is the sampler's dimensionality (2D / cube / 3D),
which the pipeline encodes into the .mgfx sampler-type byte.
public sealed record MonoGameGlslSampler : IEquatable<MonoGameGlslSampler>
- Inheritance
-
MonoGameGlslSampler
- Implements
- Inherited Members
Constructors
MonoGameGlslSampler(int, string, MonoGameSamplerDimension)
A single sampler discovered while rewriting SPIRV-Cross GLSL into the
MonoGame/MojoShader dialect. Name is always ps_s{Slot}.
Dimension is the sampler's dimensionality (2D / cube / 3D),
which the pipeline encodes into the .mgfx sampler-type byte.
public MonoGameGlslSampler(int Slot, string Name, MonoGameSamplerDimension Dimension = MonoGameSamplerDimension.Texture2D)
Parameters
SlotintNamestringDimensionMonoGameSamplerDimension
Properties
Dimension
public MonoGameSamplerDimension Dimension { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Slot
public int Slot { get; init; }