Init PointSize value when pipeline topology is PointList in end2end

When pipeline topology is set to Point_List, PointSize must be written
in vertex shader for Vulkan backend.

BUG=dawn:146

Change-Id: Id5aac73bb7e60646503f1ea06c2aa0d39c8384b3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7820
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Li, Hao
2019-06-21 10:56:35 +00:00
committed by Commit Bot service account
parent a92f83b725
commit 4ec2c1060e
5 changed files with 25 additions and 2 deletions

View File

@@ -34,6 +34,12 @@ namespace {
// Using the options that are used by Dawn, they appear in ShaderModuleD3D12.cpp
options.SetFlipVertY(true);
options.SetHLSLShaderModel(51);
// TODO (hao.x.li@intel.com): The HLSLPointCoordCompat and HLSLPointSizeCompat are
// required temporarily for https://bugs.chromium.org/p/dawn/issues/detail?id=146,
// but should be removed once WebGPU requires there is no gl_PointSize builtin.
// See https://github.com/gpuweb/gpuweb/issues/332
options.SetHLSLPointCoordCompat(true);
options.SetHLSLPointSizeCompat(true);
compiler.CompileSpvToHlsl(input.data(), input.size(), options);
});