mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[hlsl-out] avoid error X3694: race condition writing to shared resource detected
This commit is contained in:
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