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
bufferDeviceBufferThe underlying DeviceBuffer that this range will refer to.
offsetuintThe offset, in bytes, from the beginning of the buffer that this range will start at.
sizeInBytesuintThe total number of bytes that this range will encompass.
Fields
Buffer
The underlying DeviceBuffer that this range refers to.
public DeviceBuffer Buffer
Field Value
Offset
The offset, in bytes, from the beginning of the buffer that this range starts at.
public uint Offset
Field Value
SizeInBytes
The total number of bytes that this range encompasses.
public uint SizeInBytes
Field Value
Methods
Equals(DeviceBufferRange)
Element-wise equality.
public bool Equals(DeviceBufferRange other)
Parameters
otherDeviceBufferRangeThe 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.