Skip to main content

VIEW_BINDING

Constant VIEW_BINDING 

Source
pub const VIEW_BINDING: u32 = 2;
Expand description

Binding slot of the pass’s view uniform in the global bind group.

It carries the region of the target the pass draws through, which is what a shader measuring in pixels divides by. The camera and this differ in who owns them: a camera is the frame’s, a view is the pass’s, so one camera drawn through two viewports is two views.