mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
resolver: Reenable VS validation for returning position
Fixed: tint:730 Change-Id: I7d5ebeffe2d522182d07f554a671bebab1cce2e6 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54420 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
@@ -103,7 +103,8 @@ fn main() {
|
||||
TEST_F(SingleEntryPointTest, MultipleEntryPoints) {
|
||||
auto* src = R"(
|
||||
[[stage(vertex)]]
|
||||
fn vert_main() {
|
||||
fn vert_main() -> [[builtin(position)]] vec4<f32> {
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@@ -145,8 +146,9 @@ var<private> c : f32;
|
||||
var<private> d : f32;
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vert_main() {
|
||||
fn vert_main() -> [[builtin(position)]] vec4<f32> {
|
||||
a = 0.0;
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@@ -194,8 +196,9 @@ let c : f32 = 1.0;
|
||||
let d : f32 = 1.0;
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vert_main() {
|
||||
fn vert_main() -> [[builtin(position)]] vec4<f32> {
|
||||
let local_a : f32 = a;
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
|
||||
Reference in New Issue
Block a user