Table of Contents

Class G16Stencil

Namespace
Xui.Runtime.Software
Assembly
Xui.Runtime.Software.dll

Represents a grayscale 16-bit stencil buffer for supersampled shape coverage.

public class G16Stencil
Inheritance
G16Stencil
Inherited Members

Constructors

G16Stencil(uint, uint)

public G16Stencil(uint width, uint height)

Parameters

width uint
height uint

Fields

Alpha

public readonly _G16[] Alpha

Field Value

_G16[]

Properties

Height

public uint Height { get; }

Property Value

uint

this[uint, uint]

public _G16 this[uint x, uint y] { get; set; }

Parameters

x uint
y uint

Property Value

_G16

Width

public uint Width { get; }

Property Value

uint

Methods

Add(uint, uint, ushort)

Adds the specified coverage amount to a stencil pixel at (x,y), saturating at 65535.

public void Add(uint x, uint y, ushort amount = 1)

Parameters

x uint
y uint
amount ushort

AsBytes()

public ReadOnlySpan<byte> AsBytes()

Returns

ReadOnlySpan<byte>

Clear()

public void Clear()

Clear(uint, uint, uint, uint)

public void Clear(uint startX, uint startY, uint w, uint h)

Parameters

startX uint
startY uint
w uint
h uint