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
 
Uint32 StructuredBufferOffsetAlignment = 0
 
Uint32 TextureUpdateOffsetAlignment = 0
 
Uint32 TextureUpdateStrideAlignment = 0
 

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

Minimum required alignment, in bytes, for constant buffer offsets.

The Offset parameter passed to IShaderResourceVariable::SetBufferRange() or IShaderResourceVariable::SetBufferOffset() for a constant buffer must be a multiple of this value.

◆ StructuredBufferOffsetAlignment

Uint32 Diligent::BufferProperties::StructuredBufferOffsetAlignment = 0

Minimum required alignment, in bytes, for structured buffer offsets.

The ByteOffset member of BufferViewDesc used to create a structured buffer view, or the Offset parameter passed to IShaderResourceVariable::SetBufferOffset() for a structured buffer, must be a multiple of this value.

◆ TextureUpdateOffsetAlignment

Uint32 Diligent::BufferProperties::TextureUpdateOffsetAlignment = 0

Minimum required alignment, in bytes, for source buffer offsets used by IDeviceContext::UpdateTexture().

When TextureSubResData::pSrcBuffer is not null, the TextureSubResData::SrcOffset member must be a multiple of this value.

◆ TextureUpdateStrideAlignment

Uint32 Diligent::BufferProperties::TextureUpdateStrideAlignment = 0

Minimum required alignment, in bytes, for source buffer row strides used by IDeviceContext::UpdateTexture().

When TextureSubResData::pSrcBuffer is not null, the TextureSubResData::Stride member must be a multiple of this value.