Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::BufferProperties Struct Reference

Buffer properties. More...

#include <GraphicsTypes.h>

Public Member Functions

constexpr bool operator== (const BufferProperties &RHS) const
 Comparison operator tests if two structures are equivalent.
 

Public Attributes

Uint32 ConstantBufferOffsetAlignment = 0
 The minimum required alignment, in bytes, for the constant buffer offsets.
 
Uint32 StructuredBufferOffsetAlignment = 0
 The minimum required alignment, in bytes, for the structured buffer offsets.
 

Detailed Description

Buffer properties.

Member Function Documentation

◆ operator==()

bool Diligent::BufferProperties::operator== ( const BufferProperties & RHS) const
inlineconstexpr

Comparison operator tests if two structures are equivalent.

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

Member Data Documentation

◆ ConstantBufferOffsetAlignment

Uint32 Diligent::BufferProperties::ConstantBufferOffsetAlignment = 0

The minimum required alignment, in bytes, for the constant buffer offsets.

The Offset parameter passed to IShaderResourceVariable::SetBufferRange() or to IShaderResourceVariable::SetBufferOffset() method used to set the offset of a constant buffer, must be an integer multiple of this limit.

◆ StructuredBufferOffsetAlignment

Uint32 Diligent::BufferProperties::StructuredBufferOffsetAlignment = 0

The minimum required alignment, in bytes, for the structured buffer offsets.

The ByteOffset member of the BufferViewDesc used to create a structured buffer view or the Offset parameter passed to IShaderResourceVariable::SetBufferOffset() method used to set the offset of a structured buffer, must be an integer multiple of this limit.