D3DKMT_SUBMITCOMMAND structure (d3dkmthk.h)

The D3DKMT_SUBMITCOMMAND structure is used to submit command buffers on contexts that support graphics processing unit (GPU) virtual addressing.

Syntax

typedef struct _D3DKMT_SUBMITCOMMAND {
  D3DKMT_ALIGN64 D3DGPU_VIRTUAL_ADDRESS Commands;
  UINT                                  CommandLength;
  D3DKMT_SUBMITCOMMANDFLAGS             Flags;
  D3DKMT_ALIGN64 ULONGLONG              PresentHistoryToken;
  UINT                                  BroadcastContextCount;
  D3DKMT_HANDLE                         BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT];
  VOID                                  *pPrivateDriverData;
  UINT                                  PrivateDriverDataSize;
  UINT                                  NumPrimaries;
  D3DKMT_HANDLE                         WrittenPrimaries[D3DDDI_MAX_WRITTEN_PRIMARIES];
  UINT                                  NumHistoryBuffers;
  D3DKMT_HANDLE                         *HistoryBufferArray;
} D3DKMT_SUBMITCOMMAND;

Members

Commands

The GPU virtual address for the commands being submitted to the context for execution. This information is provided to the driver during command submission and is also used for debugging purposes.

CommandLength

Specifies the length, in bytes, of the commands being submitted to the GPU.

Flags

An instance of the D3DDDICB_SUBMITCOMMANDFLAGS structure.

PresentHistoryToken

This member is reserved for future use.

BroadcastContextCount

Specifies the number of context these command should be submitted to. This count must be at least 1.

BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT]

Specifies the handle of the context to execute the specified commands.

pPrivateDriverData

Pointer to the driver private data to submitted by the user mode driver.

PrivateDriverDataSize

Size of the private driver data information being passed. This size must be smaller than the size requested by the kernel mode driver for submission private driver data or the call will fail.

NumPrimaries

Specifies the number of primaries and swapchain back buffers being written to by the submitted commands. This is equal to the number of allocations in the WrittenPrimaries array.

WrittenPrimaries[D3DDDI_MAX_WRITTEN_PRIMARIES]

Arrays of handle to the primaries and swapchain back buffers being written to by the submitted commands.

NumHistoryBuffers

This member is reserved for future use.

HistoryBufferArray

This member is reserved for future use.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DDDICB_SUBMITCOMMANDFLAGS