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
AddressUbyteAddressVbyteAddressWbyteBorderColorRbyteBorderColorGbyteBorderColorBbyteBorderColorAbyteFilterbyteMaxAnisotropyintMaxMipLevelintMipMapLevelOfDetailBiasfloat
Properties
AddressU
public byte AddressU { get; init; }
Property Value
AddressV
public byte AddressV { get; init; }
Property Value
AddressW
public byte AddressW { get; init; }
Property Value
BorderColorA
public byte BorderColorA { get; init; }
Property Value
BorderColorB
public byte BorderColorB { get; init; }
Property Value
BorderColorG
public byte BorderColorG { get; init; }
Property Value
BorderColorR
public byte BorderColorR { get; init; }
Property Value
Filter
public byte Filter { get; init; }
Property Value
MaxAnisotropy
public int MaxAnisotropy { get; init; }
Property Value
MaxMipLevel
public int MaxMipLevel { get; init; }
Property Value
MipMapLevelOfDetailBias
public float MipMapLevelOfDetailBias { get; init; }