pub struct NodeProgram {
pub vertex_wgsl: String,
pub fragment_wgsl: String,
pub attributes: Vec<AttributeSlot>,
pub groups: Vec<Vec<BindingDesc>>,
pub subgroups: bool,
/* private fields */
}Expand description
The built vertex and fragment shaders and everything their pipeline needs.
Fields§
§vertex_wgsl: StringThe generated @vertex entry point’s WGSL source.
fragment_wgsl: StringThe generated @fragment entry point’s WGSL source.
attributes: Vec<AttributeSlot>Vertex attributes in @location order.
groups: Vec<Vec<BindingDesc>>Bind groups in @group order.
subgroups: boolA stage — in practice the fragment stage, since a subgroup function
in the vertex stage is an error — reads a subgroup builtin or calls a
subgroup function, so its WGSL has enable subgroups; and the material needs a device with wgpu::Features::SUBGROUP
(WGSLNodeBuilder.enableSubGroups()). See docs/nodes.md §84.3.
Auto Trait Implementations§
impl !RefUnwindSafe for NodeProgram
impl !Send for NodeProgram
impl !Sync for NodeProgram
impl !UnwindSafe for NodeProgram
impl Freeze for NodeProgram
impl Unpin for NodeProgram
impl UnsafeUnpin for NodeProgram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more