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

This commit is contained in:
teoxoy
2022-05-14 17:04:39 +02:00
committed by Jim Blandy
parent 91ee407c87
commit a8256e94c2
4 changed files with 3 additions and 3 deletions

Binary file not shown.

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

View File

@@ -12,7 +12,7 @@ void function()
return;
}
[numthreads(64, 1, 1)]
[numthreads(1, 1, 1)]
void main()
{
function();

View File

@@ -11,7 +11,7 @@ fn function_() {
return;
}
@compute @workgroup_size(64, 1, 1)
@compute @workgroup_size(1, 1, 1)
fn main() {
function_();
}