mirror of
https://github.com/Rust-GPU/rust-gpu.git
synced 2026-06-08 02:29:51 +09:00
Deploying to gh-pages from @ e261b88a73 π
This commit is contained in:
@@ -419,7 +419,7 @@ fn main(inputs: &ShadingInputs, indirect_lighting: &IndirectLighting) {
|
||||
}
|
||||
</code></pre></pre>
|
||||
<h1><a class="header" href="#suggestion" id="suggestion">Suggestion</a></h1>
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
<h1><a class="header" href="#prior-art" id="prior-art">Prior art</a></h1>
|
||||
<details>
|
||||
<h2><a class="header" href="#metal" id="metal">Metal</a></h2>
|
||||
@@ -477,6 +477,7 @@ fn compute(compute: Compute, buffer: Buffer<N0, N0, RuntimeArray<f32>&g
|
||||
<span class="boring">}
|
||||
</span></code></pre></pre>
|
||||
</details>
|
||||
|
||||
</main>
|
||||
|
||||
<nav class="nav-wrapper" aria-label="Page navigation">
|
||||
|
||||
@@ -307,7 +307,7 @@ fn main(inputs: &ShadingInputs, indirect_lighting: &IndirectLighting) {
|
||||
}
|
||||
</code></pre></pre>
|
||||
<h1><a class="header" href="#suggestion" id="suggestion">Suggestion</a></h1>
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
<h1><a class="header" href="#prior-art" id="prior-art">Prior art</a></h1>
|
||||
<details>
|
||||
<h2><a class="header" href="#metal" id="metal">Metal</a></h2>
|
||||
@@ -365,6 +365,7 @@ fn compute(compute: Compute, buffer: Buffer<N0, N0, RuntimeArray<f32>&g
|
||||
<span class="boring">}
|
||||
</span></code></pre></pre>
|
||||
</details>
|
||||
|
||||
</main>
|
||||
|
||||
<nav class="nav-wrapper" aria-label="Page navigation">
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user