Table of Contents

Class MgfxSamplerStateInfo

Namespace
ShadowDusk.Core
Assembly
ShadowDusk.Core.dll

A baked sampler state, field-for-field as MonoGame 3.8.2's Shader reader consumes it (AddressU/V/W, BorderColor RGBA, Filter, MaxAnisotropy, MaxMipLevel, MipMapLevelOfDetailBias) and as mgfxc's ShaderData.writer.cs emits it. Byte values are MonoGame enum ordinals (TextureAddressMode / TextureFilter).

public sealed record MgfxSamplerStateInfo : IEquatable<MgfxSamplerStateInfo>
Inheritance
MgfxSamplerStateInfo
Implements
Inherited Members

Constructors

MgfxSamplerStateInfo(byte, byte, byte, byte, byte, byte, byte, byte, int, int, float)

A baked sampler state, field-for-field as MonoGame 3.8.2's Shader reader consumes it (AddressU/V/W, BorderColor RGBA, Filter, MaxAnisotropy, MaxMipLevel, MipMapLevelOfDetailBias) and as mgfxc's ShaderData.writer.cs emits it. Byte values are MonoGame enum ordinals (TextureAddressMode / TextureFilter).

public MgfxSamplerStateInfo(byte AddressU, byte AddressV, byte AddressW, byte BorderColorR, byte BorderColorG, byte BorderColorB, byte BorderColorA, byte Filter, int MaxAnisotropy, int MaxMipLevel, float MipMapLevelOfDetailBias)

Parameters

AddressU byte
AddressV byte
AddressW byte
BorderColorR byte
BorderColorG byte
BorderColorB byte
BorderColorA byte
Filter byte
MaxAnisotropy int
MaxMipLevel int
MipMapLevelOfDetailBias float

Properties

AddressU

public byte AddressU { get; init; }

Property Value

byte

AddressV

public byte AddressV { get; init; }

Property Value

byte

AddressW

public byte AddressW { get; init; }

Property Value

byte

BorderColorA

public byte BorderColorA { get; init; }

Property Value

byte

BorderColorB

public byte BorderColorB { get; init; }

Property Value

byte

BorderColorG

public byte BorderColorG { get; init; }

Property Value

byte

BorderColorR

public byte BorderColorR { get; init; }

Property Value

byte

Filter

public byte Filter { get; init; }

Property Value

byte

MaxAnisotropy

public int MaxAnisotropy { get; init; }

Property Value

int

MaxMipLevel

public int MaxMipLevel { get; init; }

Property Value

int

MipMapLevelOfDetailBias

public float MipMapLevelOfDetailBias { get; init; }

Property Value

float