Skip to main content

Struct RenderTargetDescriptor

Namespace: VelloSharp.Rendering
Assembly: VelloSharp.Rendering.dll

public readonly record struct RenderTargetDescriptor : IEquatable<RenderTargetDescriptor>

Implements​

IEquatable<RenderTargetDescriptor>

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors​

RenderTargetDescriptor(uint, uint, RenderFormat, int)​

public RenderTargetDescriptor(uint Width, uint Height, RenderFormat Format, int StrideBytes)

Parameters​

Width uint

Height uint

Format RenderFormat

StrideBytes int

Properties​

Format​

public RenderFormat Format { get; init; }

Property Value​

RenderFormat

Height​

public uint Height { get; init; }

Property Value​

uint

RequiredBufferSize​

public int RequiredBufferSize { get; }

Property Value​

int

StrideBytes​

public int StrideBytes { get; init; }

Property Value​

int

Width​

public uint Width { get; init; }

Property Value​

uint

Methods​

Apply(RenderParams)​

public RenderParams Apply(RenderParams renderParams)

Parameters​

renderParams RenderParams

Returns​

RenderParams

EnsureBuffer(Span<byte>)​

public void EnsureBuffer(Span<byte> buffer)

Parameters​

buffer Span<byte>