@@ -2228,20 +2228,35 @@ typedef struct WaveOpProperties WaveOpProperties;
22282228/// Buffer properties
22292229struct BufferProperties
22302230{
2231- /// The minimum required alignment, in bytes, for the constant buffer offsets.
2232-
2233- /// The Offset parameter passed to IShaderResourceVariable::SetBufferRange() or to
2234- /// IShaderResourceVariable::SetBufferOffset() method used to set the offset of a
2235- /// constant buffer, must be an integer multiple of this limit .
2231+ /// Minimum required alignment, in bytes, for constant buffer offsets.
2232+ ///
2233+ /// The ` Offset` parameter passed to ` IShaderResourceVariable::SetBufferRange()`
2234+ /// or ` IShaderResourceVariable::SetBufferOffset()` for a constant buffer must be
2235+ /// a multiple of this value .
22362236 Uint32 ConstantBufferOffsetAlignment DEFAULT_INITIALIZER (0 );
22372237
2238- /// The minimum required alignment, in bytes, for the structured buffer offsets.
2239-
2240- /// The ByteOffset member of the BufferViewDesc used to create a structured buffer view or
2241- /// the Offset parameter passed to IShaderResourceVariable::SetBufferOffset() method used to
2242- /// set the offset of a structured buffer, must be an integer multiple of this limit.
2238+ /// Minimum required alignment, in bytes, for structured buffer offsets.
2239+ ///
2240+ /// The `ByteOffset` member of `BufferViewDesc` used to create a structured buffer
2241+ /// view, or the `Offset` parameter passed to
2242+ /// `IShaderResourceVariable::SetBufferOffset()` for a structured buffer, must be
2243+ /// a multiple of this value.
22432244 Uint32 StructuredBufferOffsetAlignment DEFAULT_INITIALIZER (0 );
22442245
2246+ /// Minimum required alignment, in bytes, for source buffer offsets used by
2247+ /// `IDeviceContext::UpdateTexture()`.
2248+ ///
2249+ /// When `TextureSubResData::pSrcBuffer` is not null, the
2250+ /// `TextureSubResData::SrcOffset` member must be a multiple of this value.
2251+ Uint32 TextureUpdateOffsetAlignment DEFAULT_INITIALIZER (0 );
2252+
2253+ /// Minimum required alignment, in bytes, for source buffer row strides used by
2254+ /// `IDeviceContext::UpdateTexture()`.
2255+ ///
2256+ /// When `TextureSubResData::pSrcBuffer` is not null, the
2257+ /// `TextureSubResData::Stride` member must be a multiple of this value.
2258+ Uint32 TextureUpdateStrideAlignment DEFAULT_INITIALIZER (0 );
2259+
22452260#if DILIGENT_CPP_INTERFACE
22462261 /// Comparison operator tests if two structures are equivalent
22472262
@@ -2252,10 +2267,11 @@ struct BufferProperties
22522267 constexpr bool operator == (const BufferProperties & RHS ) const
22532268 {
22542269 return ConstantBufferOffsetAlignment == RHS .ConstantBufferOffsetAlignment &&
2255- StructuredBufferOffsetAlignment == RHS .StructuredBufferOffsetAlignment ;
2270+ StructuredBufferOffsetAlignment == RHS .StructuredBufferOffsetAlignment &&
2271+ TextureUpdateOffsetAlignment == RHS .TextureUpdateOffsetAlignment &&
2272+ TextureUpdateStrideAlignment == RHS .TextureUpdateStrideAlignment ;
22562273 }
22572274#endif
2258-
22592275};
22602276typedef struct BufferProperties BufferProperties ;
22612277
0 commit comments