Show / Hide Table of Contents

Struct SamplerInfo<T>

Represents the information used to sample data.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public readonly ref struct SamplerInfo<T>
Type Parameters
Name Description
T

The type of the data to sample.

Constructors

| Edit this page View Source

SamplerInfo(int, int, int, int, int, int, in ReadOnlySpan<T>)

Initializes a new instance of the SamplerInfo<T> class.

Declaration
public SamplerInfo(int x, int y, int width, int height, int stride, int dataPerPixel, in ReadOnlySpan<T> data)
Parameters
Type Name Description
int x
int y
int width

The width of the region the data comes from.

int height

The height of region the data comes from.

int stride
int dataPerPixel
ReadOnlySpan<T> data

The data to sample.

Fields

| Edit this page View Source

Height

Gets the height of region the data comes from.

Declaration
public readonly int Height
Field Value
Type Description
int
| Edit this page View Source

Width

Gets the width of the region the data comes from.

Declaration
public readonly int Width
Field Value
Type Description
int

Properties

| Edit this page View Source

this[int]

Gets the data for the requested row.

Declaration
public ReadOnlySpan<T> this[int row] { get; }
Parameters
Type Name Description
int row

The row to get the data for.

Property Value
Type Description
ReadOnlySpan<T>

A readonly span containing the data of the row.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX