[hlsl-out] avoid error X3694: race condition writing to shared resource detected

This commit is contained in:
teoxoy authored and Jim Blandy committed 2022-05-30 13:14:00 -07:00
1 parent 91ee407c87
commit a8256e94c2
4 files changed
+3 -3

No files matched your search

Binary file not shown.
+1 -1
View File
@@ -13,7 +13,7 @@
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %global
OpExecutionMode %main LocalSize 64 1 1
OpExecutionMode %main LocalSize 1 1 1
OpName %global ""
OpDecorate %block Block
+1 -1
View File
@@ -12,7 +12,7 @@ void function()
return;
}
[numthreads(64, 1, 1)]
[numthreads(1, 1, 1)]
void main()
{
function();
+1 -1
View File
@@ -11,7 +11,7 @@ fn function_() {
return;
}
@compute @workgroup_size(64, 1, 1)
@compute @workgroup_size(1, 1, 1)
fn main() {
function_();
}