mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
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:
committed by
Commit Bot service account
parent
a92f83b725
commit
4ec2c1060e
@@ -155,8 +155,8 @@ class PrimitiveTopologyTest : public DawnTest {
|
||||
layout(location = 0) in vec4 pos;
|
||||
void main() {
|
||||
gl_Position = pos;
|
||||
})"
|
||||
);
|
||||
gl_PointSize = 1.0;
|
||||
})");
|
||||
|
||||
fsModule = utils::CreateShaderModule(device, dawn::ShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
|
||||
@@ -27,6 +27,7 @@ TEST_P(ViewportOrientationTests, OriginAt0x0) {
|
||||
#version 450
|
||||
void main() {
|
||||
gl_Position = vec4(-0.5f, -0.5f, 0.0f, 1.0f);
|
||||
gl_PointSize = 1.0;
|
||||
})");
|
||||
|
||||
dawn::ShaderModule fsModule = utils::CreateShaderModule(device, dawn::ShaderStage::Fragment, R"(
|
||||
|
||||
Reference in New Issue
Block a user