title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AllMemoryBarrier function |
Blocks execution of all threads in a group until all memory accesses have been completed. |
63593de6-7b92-4f29-bcd9-21c69b9defcb |
|
|
|
|
reference |
05/31/2018 |
Blocks execution of all threads in a group until all memory accesses have been completed.
void AllMemoryBarrier(void);
This function has no parameters.
This function does not return a value.
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.
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 |