mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Update vertex index decoration names.
This Cl updates the `vertex_idx` to the new `vertex_index` decoration name. Change-Id: Ic3688e1af87ed0d570b00ccb72d0e84ac920831b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/38142 Commit-Queue: dan sinclair <dsinclair@chromium.org> Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
534517ca63
commit
c2032ea637
@@ -44,7 +44,7 @@ namespace dawn_native {
|
||||
vec2<f32>( 0.5, 2.0));
|
||||
[[location(0)]] var<out> v_texcoord: vec2<f32>;
|
||||
[[builtin(position)]] var<out> Position : vec4<f32>;
|
||||
[[builtin(vertex_idx)]] var<in> VertexIndex : u32;
|
||||
[[builtin(vertex_index)]] var<in> VertexIndex : u32;
|
||||
[[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
|
||||
[[stage(vertex)]] fn main() -> void {
|
||||
Position = vec4<f32>((texcoord[VertexIndex] * 2.0 - vec2<f32>(1.0, 1.0)), 0.0, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user