Implement the DeviceMemoryBarrier
HLSL Function
#99105
Labels
backend:DirectX
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
DeviceMemoryBarrier
clang builtin,DeviceMemoryBarrier
clang builtin withhlsl_intrinsics.h
DeviceMemoryBarrier
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
DeviceMemoryBarrier
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/DeviceMemoryBarrier.hlsl
clang/test/SemaHLSL/BuiltIns/DeviceMemoryBarrier-errors.hlsl
int_dx_DeviceMemoryBarrier
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_DeviceMemoryBarrier
to80
inDXIL.td
DeviceMemoryBarrier.ll
andDeviceMemoryBarrier_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_DeviceMemoryBarrier
intrinsic inIntrinsicsSPIRV.td
DeviceMemoryBarrier
lowering and map it toint_spv_DeviceMemoryBarrier
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/DeviceMemoryBarrier.ll
DirectX
SPIR-V
OpMemoryBarrier:
Description:
Control the order that memory accesses are observed.
Ensures that memory accesses issued before this instruction are observed
before memory accesses issued after this instruction. This control is
ensured only for memory accesses issued by this
invocation and observed by another invocation executing
within Memory scope. If the Vulkan memory model
is declared, this ordering only applies to memory accesses that use the
NonPrivatePointer memory operand or
NonPrivateTexel image operand.
Semantics declares what kind of memory is being controlled and what
kind of control to apply.
To execute both a memory barrier and a control barrier, see
OpControlBarrier.
3
225
Scope <id>
Memory
Memory Semantics <id>
Semantics
Test Case(s)
Example 1
HLSL:
Blocks execution of all threads in a group until all device memory accesses have been completed.
Syntax
void DeviceMemoryBarrier(void);
Parameters
This function has no parameters.
Return value
This function does not return a value.
Remarks
Minimum Shader Model
This function is supported in the following shader models.
This function is supported in the following types of shaders:
See also
Intrinsic Functions
Shader Model 5
The text was updated successfully, but these errors were encountered: