Table of Contents

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

Slot int
Name string
Dimension MonoGameSamplerDimension

Properties

Dimension

public MonoGameSamplerDimension Dimension { get; init; }

Property Value

MonoGameSamplerDimension

Name

public string Name { get; init; }

Property Value

string

Slot

public int Slot { get; init; }

Property Value

int