Diligent::BufferViewDesc struct

Buffer view description.

Base classes

struct DeviceObjectAttribs
Describes common device object attributes.

Public functions

auto operator==(const BufferViewDesc& RHS) const -> bool
Comparison operator tests if two structures are equivalent.

Public variables

BUFFER_VIEW_TYPE ViewType
View type. See Diligent::BUFFER_VIEW_TYPE for details.
struct BufferFormat Format
Format of the view. This member is only used for formatted and raw buffers. To create raw view of a raw buffer, set Format.ValueType member to VT_UNDEFINED (default value).
Uint32 ByteOffset
Offset in bytes from the beginnig of the buffer to the start of the buffer region referenced by the view.
Uint32 ByteWidth
Size in bytes of the referenced buffer region.

Function documentation

bool Diligent::BufferViewDesc::operator==(const BufferViewDesc& RHS) const

Comparison operator tests if two structures are equivalent.

Parameters
RHS in - reference to the structure to perform comparison with
Returns
  • True if all members of the two structures are equal.
  • False otherwise