D3D11XUpdateDescriptor (D3D11X_UPDATE_VIEW, D3D11X_DESCRIPTOR_BUFFER_VIEW, const D3D11X_DESCRIPTOR_BUFFER_VIEW, UINT64, UINT32, UINT32)

Updates a descriptor, allowing for rapid incremental modifications without the need for full recomposition.

Syntax

D3D11X_DESCRIPTOR_BUFFER_VIEW* D3D11XUpdateDescriptor(
         D3D11X_UPDATE_VIEW UpdateType,
         D3D11X_DESCRIPTOR_BUFFER_VIEW *pDescriptorDst,
         const D3D11X_DESCRIPTOR_BUFFER_VIEW *pDescriptorSrc,
         UINT64 AddressAndStride,
         UINT32 NumElements,
         UINT32 MemoryType
)  

Parameters

UpdateType
Type: D3D11X_UPDATE_VIEW 

This is a compile-time constant, to avoid a performance hit and bloat.

pDescriptorDst
Type: D3D11X_DESCRIPTOR_BUFFER_VIEW *

The descriptor destination, as a pointer to a D3D11X_DESCRIPTOR_BUFFER_VIEW structure.

pDescriptorSrc
Type: D3D11X_DESCRIPTOR_BUFFER_VIEW *

The descriptor source, as a pointer to a D3D11X_DESCRIPTOR_BUFFER_VIEW structure.

AddressAndStride
Type: UINT64 

The address and stride.

NumElements
Type: UINT32 

The number of elements.

MemoryType
Type: UINT32 

The type of memory. Reserved; use zero.

Return value

Type: D3D11X_DESCRIPTOR_BUFFER_VIEW *

The updated descriptor buffer view, as a pointer to a D3D11X_DESCRIPTOR_BUFFER_VIEW structure.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.