forked from gfx-rs/wgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#version 310 es | ||
|
||
precision highp float; | ||
precision highp int; | ||
|
||
layout(local_size_x = 2, local_size_y = 1, local_size_z = 1) in; | ||
|
||
layout(r32ui) uniform highp uimage2D _group_0_binding_0_cs; | ||
|
||
layout(r32i) uniform highp iimage2D _group_0_binding_1_cs; | ||
|
||
|
||
void main() { | ||
uvec3 id = gl_LocalInvocationID; | ||
imageAtomicMax(_group_0_binding_0_cs, ivec2(0, 0), 1u); | ||
imageAtomicMin(_group_0_binding_0_cs, ivec2(0, 0), 1u); | ||
imageAtomicAdd(_group_0_binding_0_cs, ivec2(0, 0), 1u); | ||
imageAtomicAnd(_group_0_binding_0_cs, ivec2(0, 0), 1u); | ||
imageAtomicOr(_group_0_binding_0_cs, ivec2(0, 0), 1u); | ||
imageAtomicXor(_group_0_binding_0_cs, ivec2(0, 0), 1u); | ||
imageAtomicMax(_group_0_binding_1_cs, ivec2(0, 0), 1); | ||
imageAtomicMin(_group_0_binding_1_cs, ivec2(0, 0), 1); | ||
imageAtomicAdd(_group_0_binding_1_cs, ivec2(0, 0), 1); | ||
imageAtomicAnd(_group_0_binding_1_cs, ivec2(0, 0), 1); | ||
imageAtomicOr(_group_0_binding_1_cs, ivec2(0, 0), 1); | ||
imageAtomicXor(_group_0_binding_1_cs, ivec2(0, 0), 1); | ||
return; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
compute:[ | ||
( | ||
entry_point:"cs_main", | ||
target_profile:"cs_6_6", | ||
target_profile:"cs_5_0", | ||
), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters