mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
[msl-writer] Generate entry point functions.
This CL generates entry point functions and duplicate functions as needed to call from the entry points. Bug: tint:8 Change-Id: I8092ce463248e7a887c26ae05b0774e8fa21ab94 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/24764 Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
dan sinclair
parent
c5a5f9666f
commit
df415a8919
@@ -28,9 +28,9 @@ fn vtx_main() -> void {
|
||||
entry_point vertex as "main" = vtx_main;
|
||||
|
||||
# Fragment shader
|
||||
[[location 0]] var outColor : ptr<out, vec4<f32>>;
|
||||
[[location 0]] var<out> outColor : vec4<f32>;
|
||||
fn frag_main() -> void {
|
||||
outColor = vec4<f32>(1, 0, 0, 1);
|
||||
return;
|
||||
}
|
||||
entry_point fragment as "main" = frag_main;
|
||||
entry_point fragment = frag_main;
|
||||
|
||||
Reference in New Issue
Block a user