[{"data":1,"prerenderedAt":163},["ShallowReactive",2],{"9PU2jfTxP7":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":162,"_id":4},"VkShaderModule","Opaque handle to a shader module object","VK_VERSION_1_0","handles",[],{"type":10,"children":11,"toc":160},"root",[12,63,76,154],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,24,26,31,33,40,42,47,49,53,55,61],{"type":13,"tag":18,"props":19,"children":20},"em",{},[21],{"type":22,"value":23},"text","Shader modules",{"type":22,"value":25}," contain ",{"type":13,"tag":18,"props":27,"children":28},{},[29],{"type":22,"value":30},"shader code",{"type":22,"value":32}," and one or more entry points.\nShaders are selected from a shader module by specifying an entry point as\npart of ",{"type":13,"tag":34,"props":35,"children":37},"a",{"href":36},"/chapters/pipelines#pipelines",[38],{"type":22,"value":39},"pipeline",{"type":22,"value":41}," creation.\nThe stages of a pipeline ",{"type":13,"tag":43,"props":44,"children":46},"normative",{"type":45},"can",[],{"type":22,"value":48}," use shaders that come from different modules.\nThe shader code defining a shader module ",{"type":13,"tag":43,"props":50,"children":52},{"type":51},"must",[],{"type":22,"value":54}," be in the SPIR-V format, as\ndescribed by the ",{"type":13,"tag":34,"props":56,"children":58},{"href":57},"/chapters/spirvenv#spirvenv",[59],{"type":22,"value":60},"Vulkan Environment for SPIR-V",{"type":22,"value":62}," appendix.",{"type":13,"tag":14,"props":64,"children":65},{},[66,68,74],{"type":22,"value":67},"Shader modules are represented by ",{"type":13,"tag":69,"props":70,"children":72},"code",{"className":71},[],[73],{"type":22,"value":4},{"type":22,"value":75}," handles:",{"type":13,"tag":77,"props":78,"children":79},"code-group",{},[80,110],{"type":13,"tag":81,"props":82,"children":88},"pre",{"className":83,"code":84,"filename":85,"language":86,"meta":87,"style":87},"language-c shiki shiki-themes github-light-default github-dark-default","VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule)\n","C","c","",[89],{"type":13,"tag":69,"props":90,"children":91},{"__ignoreMap":87},[92],{"type":13,"tag":93,"props":94,"children":97},"span",{"class":95,"line":96},"line",1,[98,104],{"type":13,"tag":93,"props":99,"children":101},{"style":100},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[102],{"type":22,"value":103},"VK_DEFINE_NON_DISPATCHABLE_HANDLE",{"type":13,"tag":93,"props":105,"children":107},{"style":106},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[108],{"type":22,"value":109},"(VkShaderModule)\n",{"type":13,"tag":81,"props":111,"children":116},{"className":112,"code":113,"filename":114,"language":115,"meta":87,"style":87},"language-rs shiki shiki-themes github-light-default github-dark-default","#[repr(transparent)]\npub struct ShaderModule(_);\n","Rust","rs",[117],{"type":13,"tag":69,"props":118,"children":119},{"__ignoreMap":87},[120,128],{"type":13,"tag":93,"props":121,"children":122},{"class":95,"line":96},[123],{"type":13,"tag":93,"props":124,"children":125},{"style":106},[126],{"type":22,"value":127},"#[repr(transparent)]\n",{"type":13,"tag":93,"props":129,"children":131},{"class":95,"line":130},2,[132,138,143,149],{"type":13,"tag":93,"props":133,"children":135},{"style":134},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[136],{"type":22,"value":137},"pub",{"type":13,"tag":93,"props":139,"children":140},{"style":134},[141],{"type":22,"value":142}," struct",{"type":13,"tag":93,"props":144,"children":146},{"style":145},"--shiki-default:#953800;--shiki-dark:#FFA657",[147],{"type":22,"value":148}," ShaderModule",{"type":13,"tag":93,"props":150,"children":151},{"style":106},[152],{"type":22,"value":153},"(_);\n",{"type":13,"tag":155,"props":156,"children":157},"style",{},[158],{"type":22,"value":159},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":87,"searchDepth":130,"depth":130,"links":161},[],"markdown",1729612480808]