[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:
dan sinclair
2020-07-15 18:04:11 +00:00
committed by dan sinclair
parent c5a5f9666f
commit df415a8919
11 changed files with 742 additions and 73 deletions

View File

@@ -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;