mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
[hlsl-out] avoid error X3694: race condition writing to shared resource detected
This commit is contained in:
1 parent
91ee407c87
commit
a8256e94c2
4 files changed
+3
-3
No files matched your search
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -12,7 +12,7 @@ void function()
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(64, 1, 1)]
|
||||
[numthreads(1, 1, 1)]
|
||||
void main()
|
||||
{
|
||||
function();
|
||||
|
||||
@@ -11,7 +11,7 @@ fn function_() {
|
||||
return;
|
||||
}
|
||||
|
||||
@compute @workgroup_size(64, 1, 1)
|
||||
@compute @workgroup_size(1, 1, 1)
|
||||
fn main() {
|
||||
function_();
|
||||
}
|
||||
Reference in new issue
Block a user