> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_WRITEBUFFERIMMEDIATE_MODE

> Specifies the mode used by a WriteBufferImmediate operation.

Specifies the mode used by a **WriteBufferImmediate** operation.

## Syntax

```cpp theme={null}
typedef enum D3D12_WRITEBUFFERIMMEDIATE_MODE
{
    D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0,
    D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 1,
    D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 2
} D3D12_WRITEBUFFERIMMEDIATE_MODE
```

## Constants

| Constant                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| D3D12\_WRITEBUFFERIMMEDIATE\_MODE\_DEFAULT     | The write operation behaves the same as normal copy-write operations.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| D3D12\_WRITEBUFFERIMMEDIATE\_MODE\_MARKER\_IN  | The write operation is guaranteed to occur after all preceding commands in the command stream have started, including previous **WriteBufferImmediate** operations.                                                                                                                                                                                                                                                                                                                     |
| D3D12\_WRITEBUFFERIMMEDIATE\_MODE\_MARKER\_OUT | The write operation is deferred until all previous commands in the command stream have completed through the GPU pipeline, including previous **WriteBufferImmediate** operations. Write operations that specify **D3D12\_WRITEBUFFERIMMEDIATE\_MODE\_MARKER\_OUT** don't block subsequent operations from starting. If there are no previous operations in the command stream, then the write operation behaves as if **D3D12\_WRITEBUFFERIMMEDIATE\_MODE\_MARKER\_IN** was specified. |

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)

[ID3D12GraphicsCommandList::WriteBufferImmediate](/reference/graphics/d3d12_x/interfaces/ID3D12GraphicsCommandList2/id3d12graphicscommandlist2)


## Related topics

- [WriteBufferImmediate](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist2/methods/id3d12graphicscommandlist2_writebufferimmediate_public.md)
- [D3D12_WRITEBUFFERIMMEDIATE_PARAMETER](/reference/graphics/d3d12/structs/d3d12_writebufferimmediate_parameter_public.md)
- [D3D12_CULL_MODE](/reference/graphics/d3d12/enums/d3d12_cull_mode_public.md)
- [D3D12_RESOLVE_MODE](/reference/graphics/d3d12/enums/d3d12_resolve_mode_public.md)
- [D3D12_FILL_MODE](/reference/graphics/d3d12/enums/d3d12_fill_mode_public.md)
