Table of Contents

Struct ResourceLayoutElementDescription

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Describes an individual resource element in a ResourceLayout.

public struct ResourceLayoutElementDescription : IEquatable<ResourceLayoutElementDescription>
Implements
Inherited Members

Constructors

ResourceLayoutElementDescription(string, ResourceKind, ShaderStages)

Constructs a new ResourceLayoutElementDescription.

public ResourceLayoutElementDescription(string name, ResourceKind kind, ShaderStages stages)

Parameters

name string

The name of the element.

kind ResourceKind

The kind of resource.

stages ShaderStages

The ShaderStages in which this element is used.

ResourceLayoutElementDescription(string, ResourceKind, ShaderStages, ResourceLayoutElementOptions)

Constructs a new ResourceLayoutElementDescription.

public ResourceLayoutElementDescription(string name, ResourceKind kind, ShaderStages stages, ResourceLayoutElementOptions options)

Parameters

name string

The name of the element.

kind ResourceKind

The kind of resource.

stages ShaderStages

The ShaderStages in which this element is used.

options ResourceLayoutElementOptions

Miscellaneous resource options for this element.

Fields

Kind

The kind of resource.

public ResourceKind Kind

Field Value

ResourceKind

Name

The name of the element.

public string Name

Field Value

string

Options

Miscellaneous resource options for this element.

public ResourceLayoutElementOptions Options

Field Value

ResourceLayoutElementOptions

Stages

The ShaderStages in which this element is used.

public ShaderStages Stages

Field Value

ShaderStages

Methods

Equals(ResourceLayoutElementDescription)

Element-wise equality.

public bool Equals(ResourceLayoutElementDescription other)

Parameters

other ResourceLayoutElementDescription

The instance to compare to.

Returns

bool

True if all elements are equal; false otherswise.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.