diff --git a/book/print.html b/book/print.html index b907f8b1d3..f1ad57c74c 100644 --- a/book/print.html +++ b/book/print.html @@ -419,7 +419,7 @@ fn main(inputs: &ShadingInputs, indirect_lighting: &IndirectLighting) { }

Suggestion

-

I think the most ergonomic and future proof binding method would be to have descriptors in structs, bound to the entrypoint. This allows us some nice, even more ergonomic upsides later on (when support is more widely available) where we can put data members in these structs as well. And along wit this, we can have very egonomic CPU side code as well, where we can keep shader invocation looking like a function call for a large part, instead of having to manually bind to slots again.

+

I think the most ergonomic and future proof binding method would be to have descriptors in structs, bound to the entrypoint. This allows us some nice, even more ergonomic upsides later on (when support is more widely available) where we can put data members in these structs as well. And along with this, we can have very egonomic CPU side code as well, where we can keep shader invocation looking like a function call for a large part, instead of having to manually bind to slots again.

Prior art

Metal

@@ -477,6 +477,7 @@ fn compute(compute: Compute, buffer: Buffer<N0, N0, RuntimeArray<f32>&g }
+