Table of Contents

Struct MappedResourceView<T>

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A typed view of a MappedResource. Provides by-reference structured access to individual elements in the mapped resource.

public struct MappedResourceView<T> where T : struct

Type Parameters

T

The blittable value type which mapped data is viewed as.

Inherited Members

Constructors

MappedResourceView(MappedResource)

Constructs a new MappedResourceView which wraps the given MappedResource.

public MappedResourceView(MappedResource rawResource)

Parameters

rawResource MappedResource

The raw resource which has been mapped.

Fields

Count

The total number of structures that is contained in the resource. This is effectively the total number of bytes divided by the size of the structure type.

public readonly int Count

Field Value

int

MappedResource

The MappedResource that this instance views.

public readonly MappedResource MappedResource

Field Value

MappedResource

SizeInBytes

The total size in bytes of the mapped resource.

public readonly uint SizeInBytes

Field Value

uint

Properties

this[int]

Gets a reference to the structure value at the given index.

public ref T this[int index] { get; }

Parameters

index int

The index of the value.

Property Value

T

A reference to the value at the given index.

this[int, int]

Gets a reference to the structure at the given 2-dimensional texture coordinates.

public ref T this[int x, int y] { get; }

Parameters

x int

The X coordinate.

y int

The Y coordinate.

Property Value

T

A reference to the value at the given coordinates.

this[int, int, int]

Gets a reference to the structure at the given 3-dimensional texture coordinates.

public ref T this[int x, int y, int z] { get; }

Parameters

x int

The X coordinate.

y int

The Y coordinate.

z int

The Z coordinate.

Property Value

T

A reference to the value at the given coordinates.

this[uint]

Gets a reference to the structure value at the given index.

public ref T this[uint index] { get; }

Parameters

index uint

The index of the value.

Property Value

T

A reference to the value at the given index.

this[uint, uint]

Gets a reference to the structure at the given 2-dimensional texture coordinates.

public ref T this[uint x, uint y] { get; }

Parameters

x uint

The X coordinate.

y uint

The Y coordinate.

Property Value

T

A reference to the value at the given coordinates.

this[uint, uint, uint]

Gets a reference to the structure at the given 3-dimensional texture coordinates.

public ref T this[uint x, uint y, uint z] { get; }

Parameters

x uint

The X coordinate.

y uint

The Y coordinate.

z uint

The Z coordinate.

Property Value

T

A reference to the value at the given coordinates.