Skip to content

Latest commit

 

History

History
84 lines (48 loc) · 1.87 KB

allmemorybarrierwithgroupsync.md

File metadata and controls

84 lines (48 loc) · 1.87 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
AllMemoryBarrierWithGroupSync function
Blocks execution of all threads in a group until all memory accesses have been completed and all threads in the group have reached this call.
831830e7-19ce-41d0-b555-44a083b67cdc
AllMemoryBarrierWithGroupSync function HLSL
apiref
AllMemoryBarrierWithGroupSync
NA
reference
05/31/2018

AllMemoryBarrierWithGroupSync function

Blocks execution of all threads in a group until all memory accesses have been completed and all threads in the group have reached this call.

Syntax

void AllMemoryBarrierWithGroupSync(void);

Parameters

This function has no parameters.

Return value

This function does not return a value.

Remarks

A memory barrier guarantees that outstanding memory operations have completed. Threads are synchronized at GroupSync barriers. This may stall a thread or threads if memory operations are in progress.

The behavior of calls to this function that are within diverging branches of a thread group are undefined.

Minimum Shader Model

This function is supported in the following shader models.

Shader Model Supported
Shader Model 5 and higher shader models yes

 

This function is supported in the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x

 

See also

Intrinsic Functions

Shader Model 5