-
Notifications
You must be signed in to change notification settings - Fork 577
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
16 changed files
with
304 additions
and
87 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
22 changes: 22 additions & 0 deletions
22
reference/opt/shaders-msl/task/task-basic.msl3.spv14.vk.nocompat.task
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,22 @@ | ||
#include <metal_stdlib> | ||
#include <simd/simd.h> | ||
|
||
using namespace metal; | ||
|
||
struct TaskPayload | ||
{ | ||
float a; | ||
float b; | ||
int c; | ||
}; | ||
|
||
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u); | ||
|
||
[[object]] void main0(mesh_grid_properties spvMgp, object_data TaskPayload& payload [[payload]]) | ||
{ | ||
payload.a = 1.2000000476837158203125; | ||
payload.b = 2.2999999523162841796875; | ||
payload.c = 3; | ||
spvMgp.set_threadgroups_per_grid(uint3(1u, 2u, 3u)); | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
reference/opt/shaders-msl/task/task-func.msl3.spv14.vk.nocompat.task
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,23 @@ | ||
#include <metal_stdlib> | ||
#include <simd/simd.h> | ||
|
||
using namespace metal; | ||
|
||
struct TaskPayload | ||
{ | ||
float a; | ||
float b; | ||
int c; | ||
}; | ||
|
||
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u); | ||
|
||
[[object]] void main0(mesh_grid_properties spvMgp, object_data TaskPayload& payload [[payload]]) | ||
{ | ||
payload.a = 1.2000000476837158203125; | ||
payload.b = 2.2999999523162841796875; | ||
payload.c = 3; | ||
threadgroup_barrier(mem_flags::mem_threadgroup); | ||
spvMgp.set_threadgroups_per_grid(uint3(1u, 2u, 3u)); | ||
} | ||
|
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
Oops, something went wrong.