Table of Contents

Struct DeviceBufferRange

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A BindableResource that represents a section of a DeviceBuffer. This can be used in place of a DeviceBuffer when creating a ResourceSet to make only a subset of the Buffer available to shaders.

public struct DeviceBufferRange : BindableResource, IEquatable<DeviceBufferRange>
Implements
Inherited Members

Constructors

DeviceBufferRange(DeviceBuffer, uint, uint)

Constructs a new DeviceBufferRange.

public DeviceBufferRange(DeviceBuffer buffer, uint offset, uint sizeInBytes)

Parameters

buffer DeviceBuffer

The underlying DeviceBuffer that this range will refer to.

offset uint

The offset, in bytes, from the beginning of the buffer that this range will start at.

sizeInBytes uint

The total number of bytes that this range will encompass.

Fields

Buffer

The underlying DeviceBuffer that this range refers to.

public DeviceBuffer Buffer

Field Value

DeviceBuffer

Offset

The offset, in bytes, from the beginning of the buffer that this range starts at.

public uint Offset

Field Value

uint

SizeInBytes

The total number of bytes that this range encompasses.

public uint SizeInBytes

Field Value

uint

Methods

Equals(DeviceBufferRange)

Element-wise equality.

public bool Equals(DeviceBufferRange other)

Parameters

other DeviceBufferRange

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.