|
5127 | 5127 | <span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">VertexState</span><span class="op"><</span><span class="lifetime">'a</span><span class="op">></span> {
|
5128 | 5128 | <span class="doccomment">/// The compiled shader module for this stage.</span>
|
5129 | 5129 | <span class="kw">pub</span> <span class="ident">module</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">ShaderModule</span>,
|
5130 |
| - <span class="doccomment">/// The name of the entry point in the compiled shader. There must be a function that returns</span> |
5131 |
| - <span class="doccomment">/// void with this name in the shader.</span> |
| 5130 | + <span class="doccomment">/// The name of the entry point in the compiled shader. There must be a function with this name</span> |
| 5131 | + <span class="doccomment">/// in the shader.</span> |
5132 | 5132 | <span class="kw">pub</span> <span class="ident">entry_point</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">str</span>,
|
5133 | 5133 | <span class="doccomment">/// The format of any vertex buffers used with this pipeline.</span>
|
5134 | 5134 | <span class="kw">pub</span> <span class="ident">buffers</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> [<span class="ident">VertexBufferLayout</span><span class="op"><</span><span class="lifetime">'a</span><span class="op">></span>],
|
|
5144 | 5144 | <span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">FragmentState</span><span class="op"><</span><span class="lifetime">'a</span><span class="op">></span> {
|
5145 | 5145 | <span class="doccomment">/// The compiled shader module for this stage.</span>
|
5146 | 5146 | <span class="kw">pub</span> <span class="ident">module</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">ShaderModule</span>,
|
5147 |
| - <span class="doccomment">/// The name of the entry point in the compiled shader. There must be a function that returns</span> |
5148 |
| - <span class="doccomment">/// void with this name in the shader.</span> |
| 5147 | + <span class="doccomment">/// The name of the entry point in the compiled shader. There must be a function with this name</span> |
| 5148 | + <span class="doccomment">/// in the shader.</span> |
5149 | 5149 | <span class="kw">pub</span> <span class="ident">entry_point</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">str</span>,
|
5150 | 5150 | <span class="doccomment">/// The color state of the render targets.</span>
|
5151 | 5151 | <span class="kw">pub</span> <span class="ident">targets</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> [<span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">ColorTargetState</span><span class="op">></span>],
|
|
5204 | 5204 | <span class="kw">pub</span> <span class="ident">layout</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">PipelineLayout</span><span class="op">></span>,
|
5205 | 5205 | <span class="doccomment">/// The compiled shader module for this stage.</span>
|
5206 | 5206 | <span class="kw">pub</span> <span class="ident">module</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">ShaderModule</span>,
|
5207 |
| - <span class="doccomment">/// The name of the entry point in the compiled shader. There must be a function that returns</span> |
5208 |
| - <span class="doccomment">/// void with this name in the shader.</span> |
| 5207 | + <span class="doccomment">/// The name of the entry point in the compiled shader. There must be a function with this name</span> |
| 5208 | + <span class="doccomment">/// and no return value in the shader.</span> |
5209 | 5209 | <span class="kw">pub</span> <span class="ident">entry_point</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">str</span>,
|
5210 | 5210 | }
|
5211 | 5211 |
|
|
0 commit comments