Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1struct InStruct {
2 @location(0) attr_in_struct: vec4<f32>,
3}
5// ok
6@fragment
7fn fragment(
8 struct_in_param: InStruct,
9 @location(1) attr_in_param: vec4<f32>,
10) {}
13// struct NestedStruct {
14// @location(0) attr_in_nested_struct: vec4<f32>,
15// }
16//
17// struct InStruct {
18// nested_struct: NestedStruct,
19// @location(1) attr_in_struct: vec4<f32>,
20// }
21//
22// // fail
23// // `Err` value: WithSpan { inner: EntryPoint { stage: Fragment, name: "fragment", error: Argument(0, MemberMissingBinding(0)) }, spans: [(Span { start: 284, end: 387 }, "naga::Type [3]")] }
24// @fragment
25// fn fragment(
26// struct_in_param: InStruct,
27// ) {}
Contents