VulkanTutorial/images/compute_space.svg

4 lines
70 KiB
XML
Raw Permalink Normal View History

Add a new compute shader bonus chapter (#320) * Started working on compute shader bonus chapter * Continued work on compute shader bonus chapter * Continued work on compute shader bonus chapter * Added code for compute sample work-in-progress * Added code for compute sample Per-frame ssbos Compute shader is now integrated and updating particles work-in-progress * Added code for compute sample Nicer visuals, circular initial particle positions work-in-progress * Added code for compute sample work-in-progress * Tutorial compute queue families, submission and synchronization chapter * Added paragraphs on sync, submit and queue familes Rewording some paragraphs * Rewording Added image for workgroup and invocations compute space * Sample for work group and dispatch counts * Note and spec reference on queue families * Minor additions * Sample code uses SSBO per frame Code cleanup Tutotorial changed * Added image for SSBOs per-frame reads and writes * Conclusion * Added note on signaled fences * Update 11_Compute_Shader.md * Use persistent mapped buffers * Added links to advanced topics (tutorials, samples) * Fixed typo * Add note for the storage image chapter * Added note on how to handle uneven no. of invocations using gl_GlobalInvocationID * Added compute fence resize to tutorial Was already present in code * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Update en/11_Compute_Shader.md Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> * Name the actual compute related physical device limits * Clarfiy how work group and invocation counts are specified * Show how initial particle data is generated for the shader storage buffer s * Restructure SSBO setup * Indentation * Minor touches * fixed transposition * Added note on std140 memory layout qualifier --------- Co-authored-by: Marty Johnson <68354714+marty-johnson59@users.noreply.github.com> Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>
2023-02-07 01:01:22 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than diagrams.net -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1048px" height="459px" viewBox="-0.5 -0.5 1048 459" content="&lt;mxfile host=&quot;embed.diagrams.net&quot; modified=&quot;2022-10-12T15:53:17.522Z&quot; agent=&quot;5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36&quot; version=&quot;20.4.0&quot; etag=&quot;V8JofEWywiOIbGqLktb0&quot; type=&quot;embed&quot;&gt;&lt;diagram id=&quot;YEs5Dt37yxoMLo3k3fk7&quot;&gt;7Z1Nc6M4EIZ/jY/ZMmCwfczX7G7VbNVU5TCTvWGQbXaw5cJKYu+vXxEQBloEBKalqc1hakAgYT1q1HpbEpk497vT74l/2P5FQxJP7Gl4mjgPE9u2p67H/0tTzlmKZU3zlE0ShXnaJeEp+pfkidM89SUKybFyI6M0ZtGhmhjQ/Z4ErJLmJwl9q962pnH1qQd/Q0DCU+DHMPV7FLJtlrqw55f0P0i02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o7ycrPrQ68RWOstXN54ZY3dKpWtFyNsiK+Onlz4Flt1/+qprz+B8=&lt;/diagram&gt;&lt;/mxfile&gt;" style="background-color: rgb(255, 255, 255);"><defs/><g><rect x="167" y="37" width="280" height="280" fill="#d5e8d4" stroke="#82b366" pointer-events="none"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-end; width: 282px; height: 1px; padding-top: 177px; margin-left: -117px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: right;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: none; white-space: normal; overflow-wrap: normal;">Dispatch</div></div></div></foreignObject><text x="165" y="181" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="end">Dispatch</text></switch></g><rect x="177" y="47" width="80" height="80" fill="rgb(255, 255, 255