ID3D12GraphicsCommandList::NopX Method

Adds a specified number of bytes of no-operation padding to the current Command List.

Syntax

public:
void NopX(
         UINT SizeBytes
)  

Parameters

SizeBytes
Type: UINT 

[in] Specifies the amount of padding, in bytes. Must be a multiple of 4, more than zero, and less than 64 KB.

Return value

Type: void 

Returns nothing.

Remarks

This API is intended primarily for use with Build-Your-Own-Bundles via ExecuteIndirectBundleX. It can be used to align the command buffer data for CPU or GPU efficiency, or to allow embedded meta-data in the command buffer stream that the GPU will ignore. Note that the GPU Command Processor reads the command buffer at 0.5 dwords per clock so it is not entirely ‘free’.

Requirements

Header: Declared in d3d12_x.h.

Library: Use d3d12_x.lib.

See also

Reference

ID3D12GraphicsCommandList Interface

ID3D12GraphicsCommandList Members