Add EmitVertexPointSizeTransform

EmitVertexPointSizeTransform is a Transformer that adds a PointSize builtin global output variable to the module which is assigned 1.0 as the new first statement for all vertex stage entry points.

If the module does not contain a vertex pipeline stage entry point then then this transformer is a no-op.

Bug: tint:321
Change-Id: I0e01236339d9fa1ceab3622af0931a1199c33b99
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34561
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2020-12-03 14:54:09 +00:00
committed by Commit Bot service account
parent 685cb02ea8
commit 76d12f0f5a
12 changed files with 344 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
#include "src/namer.h"
#include "src/reader/reader.h"
#include "src/transform/bound_array_accessors_transform.h"
#include "src/transform/emit_vertex_point_size_transform.h"
#include "src/transform/manager.h"
#include "src/transform/vertex_pulling_transform.h"
#include "src/type_determiner.h"