[{"data":1,"prerenderedAt":814},["ShallowReactive",2],{"AIlU9oqPy3":3},{"title":4,"description":5,"parent":6,"cmd_buf_level":7,"render_pass_scope":10,"supported_queue_types":11,"tasks":14,"type":16,"xrefs":17,"body":18,"_type":813,"_id":4},"vkCmdBindDescriptorBufferEmbeddedSamplersEXT","Setting embedded immutable samplers offsets in a command buffer","VK_EXT_descriptor_buffer",[8,9],"primary","secondary","both",[12,13],"graphics","compute",[15],"state","protos",[],{"type":19,"children":20,"toc":811},"root",[21,29,296,358,435,586,759,805],{"type":22,"tag":23,"props":24,"children":25},"element","p",{},[26],{"type":27,"value":28},"text","To bind an embedded immutable sampler set to a command buffer, call:",{"type":22,"tag":30,"props":31,"children":32},"code-group",{},[33,145],{"type":22,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdBindDescriptorBufferEmbeddedSamplersEXT(\n VkCommandBuffer commandBuffer,\n VkPipelineBindPoint pipelineBindPoint,\n VkPipelineLayout layout,\n uint32_t set);\n","C","c","",[42],{"type":22,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,70,90,108,126],{"type":22,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,64],{"type":22,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":27,"value":57},"void",{"type":22,"tag":47,"props":59,"children":61},{"style":60},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[62],{"type":27,"value":63}," vkCmdBindDescriptorBufferEmbeddedSamplersEXT",{"type":22,"tag":47,"props":65,"children":67},{"style":66},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[68],{"type":27,"value":69},"(\n",{"type":22,"tag":47,"props":71,"children":73},{"class":49,"line":72},2,[74,79,85],{"type":22,"tag":47,"props":75,"children":76},{"style":66},[77],{"type":27,"value":78}," VkCommandBuffer ",{"type":22,"tag":47,"props":80,"children":82},{"style":81},"--shiki-default:#953800;--shiki-dark:#FFA657",[83],{"type":27,"value":84},"commandBuffer",{"type":22,"tag":47,"props":86,"children":87},{"style":66},[88],{"type":27,"value":89},",\n",{"type":22,"tag":47,"props":91,"children":93},{"class":49,"line":92},3,[94,99,104],{"type":22,"tag":47,"props":95,"children":96},{"style":66},[97],{"type":27,"value":98}," VkPipelineBindPoint ",{"type":22,"tag":47,"props":100,"children":101},{"style":81},[102],{"type":27,"value":103},"pipelineBindPoint",{"type":22,"tag":47,"props":105,"children":106},{"style":66},[107],{"type":27,"value":89},{"type":22,"tag":47,"props":109,"children":111},{"class":49,"line":110},4,[112,117,122],{"type":22,"tag":47,"props":113,"children":114},{"style":66},[115],{"type":27,"value":116}," VkPipelineLayout ",{"type":22,"tag":47,"props":118,"children":119},{"style":81},[120],{"type":27,"value":121},"layout",{"type":22,"tag":47,"props":123,"children":124},{"style":66},[125],{"type":27,"value":89},{"type":22,"tag":47,"props":127,"children":129},{"class":49,"line":128},5,[130,135,140],{"type":22,"tag":47,"props":131,"children":132},{"style":54},[133],{"type":27,"value":134}," uint32_t",{"type":22,"tag":47,"props":136,"children":137},{"style":81},[138],{"type":27,"value":139}," set",{"type":22,"tag":47,"props":141,"children":142},{"style":66},[143],{"type":27,"value":144},");\n",{"type":22,"tag":34,"props":146,"children":151},{"className":147,"code":148,"filename":149,"language":150,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_bind_descriptor_buffer_embedded_samplers_ext(\n command_buffer: vk::CommandBuffer,\n pipeline_bind_point: vk::PipelineBindPoint,\n layout: vk::PipelineLayout,\n set: u32,\n);\n","Rust","rs",[152],{"type":22,"tag":43,"props":153,"children":154},{"__ignoreMap":40},[155,177,209,238,267,288],{"type":22,"tag":47,"props":156,"children":157},{"class":49,"line":50},[158,163,168,173],{"type":22,"tag":47,"props":159,"children":160},{"style":54},[161],{"type":27,"value":162},"pub",{"type":22,"tag":47,"props":164,"children":165},{"style":54},[166],{"type":27,"value":167}," fn",{"type":22,"tag":47,"props":169,"children":170},{"style":60},[171],{"type":27,"value":172}," cmd_bind_descriptor_buffer_embedded_samplers_ext",{"type":22,"tag":47,"props":174,"children":175},{"style":66},[176],{"type":27,"value":69},{"type":22,"tag":47,"props":178,"children":179},{"class":49,"line":72},[180,185,190,195,200,205],{"type":22,"tag":47,"props":181,"children":182},{"style":66},[183],{"type":27,"value":184}," command_buffer",{"type":22,"tag":47,"props":186,"children":187},{"style":54},[188],{"type":27,"value":189},":",{"type":22,"tag":47,"props":191,"children":192},{"style":81},[193],{"type":27,"value":194}," vk",{"type":22,"tag":47,"props":196,"children":197},{"style":54},[198],{"type":27,"value":199},"::",{"type":22,"tag":47,"props":201,"children":202},{"style":81},[203],{"type":27,"value":204},"CommandBuffer",{"type":22,"tag":47,"props":206,"children":207},{"style":66},[208],{"type":27,"value":89},{"type":22,"tag":47,"props":210,"children":211},{"class":49,"line":92},[212,217,221,225,229,234],{"type":22,"tag":47,"props":213,"children":214},{"style":66},[215],{"type":27,"value":216}," pipeline_bind_point",{"type":22,"tag":47,"props":218,"children":219},{"style":54},[220],{"type":27,"value":189},{"type":22,"tag":47,"props":222,"children":223},{"style":81},[224],{"type":27,"value":194},{"type":22,"tag":47,"props":226,"children":227},{"style":54},[228],{"type":27,"value":199},{"type":22,"tag":47,"props":230,"children":231},{"style":81},[232],{"type":27,"value":233},"PipelineBindPoint",{"type":22,"tag":47,"props":235,"children":236},{"style":66},[237],{"type":27,"value":89},{"type":22,"tag":47,"props":239,"children":240},{"class":49,"line":110},[241,246,250,254,258,263],{"type":22,"tag":47,"props":242,"children":243},{"style":66},[244],{"type":27,"value":245}," layout",{"type":22,"tag":47,"props":247,"children":248},{"style":54},[249],{"type":27,"value":189},{"type":22,"tag":47,"props":251,"children":252},{"style":81},[253],{"type":27,"value":194},{"type":22,"tag":47,"props":255,"children":256},{"style":54},[257],{"type":27,"value":199},{"type":22,"tag":47,"props":259,"children":260},{"style":81},[261],{"type":27,"value":262},"PipelineLayout",{"type":22,"tag":47,"props":264,"children":265},{"style":66},[266],{"type":27,"value":89},{"type":22,"tag":47,"props":268,"children":269},{"class":49,"line":128},[270,275,279,284],{"type":22,"tag":47,"props":271,"children":272},{"style":66},[273],{"type":27,"value":274}," set",{"type":22,"tag":47,"props":276,"children":277},{"style":54},[278],{"type":27,"value":189},{"type":22,"tag":47,"props":280,"children":281},{"style":81},[282],{"type":27,"value":283}," u32",{"type":22,"tag":47,"props":285,"children":286},{"style":66},[287],{"type":27,"value":89},{"type":22,"tag":47,"props":289,"children":291},{"class":49,"line":290},6,[292],{"type":22,"tag":47,"props":293,"children":294},{"style":66},[295],{"type":27,"value":144},{"type":22,"tag":297,"props":298,"children":299},"ul",{},[300,311,330,347],{"type":22,"tag":301,"props":302,"children":303},"li",{},[304,309],{"type":22,"tag":43,"props":305,"children":307},{"className":306},[],[308],{"type":27,"value":84},{"type":27,"value":310}," is the command buffer that the embedded immutable\nsamplers will be bound to.",{"type":22,"tag":301,"props":312,"children":313},{},[314,319,321,328],{"type":22,"tag":43,"props":315,"children":317},{"className":316},[],[318],{"type":27,"value":103},{"type":27,"value":320}," is a ",{"type":22,"tag":322,"props":323,"children":325},"a",{"href":324},"/man/VkPipelineBindPoint",[326],{"type":27,"value":327},"VkPipelineBindPoint",{"type":27,"value":329}," indicating the\ntype of the pipeline that will use the embedded immutable samplers.",{"type":22,"tag":301,"props":331,"children":332},{},[333,338,339,345],{"type":22,"tag":43,"props":334,"children":336},{"className":335},[],[337],{"type":27,"value":121},{"type":27,"value":320},{"type":22,"tag":322,"props":340,"children":342},{"href":341},"/man/VkPipelineLayout",[343],{"type":27,"value":344},"VkPipelineLayout",{"type":27,"value":346}," object used to program the\nbindings.",{"type":22,"tag":301,"props":348,"children":349},{},[350,356],{"type":22,"tag":43,"props":351,"children":353},{"className":352},[],[354],{"type":27,"value":355},"set",{"type":27,"value":357}," is the number of the set to be bound.",{"type":22,"tag":23,"props":359,"children":360},{},[361,366,368,373,375,380,382,387,389,395,397,402,404,410,412,418,420,425,427,433],{"type":22,"tag":43,"props":362,"children":364},{"className":363},[],[365],{"type":27,"value":4},{"type":27,"value":367}," binds the embedded immutable\nsamplers in ",{"type":22,"tag":43,"props":369,"children":371},{"className":370},[],[372],{"type":27,"value":355},{"type":27,"value":374}," of ",{"type":22,"tag":43,"props":376,"children":378},{"className":377},[],[379],{"type":27,"value":121},{"type":27,"value":381}," to ",{"type":22,"tag":43,"props":383,"children":385},{"className":384},[],[386],{"type":27,"value":355},{"type":27,"value":388}," for the command buffer\nfor subsequent ",{"type":22,"tag":322,"props":390,"children":392},{"href":391},"/man/vkCmdBindPipeline#pipelines-bindpoint-commands",[393],{"type":27,"value":394},"bound pipeline commands",{"type":27,"value":396}," set\nby ",{"type":22,"tag":43,"props":398,"children":400},{"className":399},[],[401],{"type":27,"value":103},{"type":27,"value":403},".\nAny previous binding to this set by ",{"type":22,"tag":322,"props":405,"children":407},{"href":406},"/man/vkCmdSetDescriptorBufferOffsetsEXT",[408],{"type":27,"value":409},"vkCmdSetDescriptorBufferOffsetsEXT",{"type":27,"value":411},"\nor this command is overwritten.\nAny sets that were last bound by a call to ",{"type":22,"tag":322,"props":413,"children":415},{"href":414},"/man/vkCmdBindDescriptorSets",[416],{"type":27,"value":417},"vkCmdBindDescriptorSets",{"type":27,"value":419}," are\ninvalidated upon calling this command.\nOther sets will also be invalidated upon calling this command if\n",{"type":22,"tag":43,"props":421,"children":423},{"className":422},[],[424],{"type":27,"value":121},{"type":27,"value":426}," differs from the pipeline layout used to bind those other sets,\nas described in ",{"type":22,"tag":322,"props":428,"children":430},{"href":429},"/chapters/descriptorsets#descriptorsets-compatibility",[431],{"type":27,"value":432},"Pipeline Layout\nCompatibility",{"type":27,"value":434},".",{"type":22,"tag":436,"props":437,"children":439},"validity-group",{"name":438},"Valid Usage",[440,487,528,553],{"type":22,"tag":441,"props":442,"children":444},"validity-field",{"name":443},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-set-08070",[445],{"type":22,"tag":23,"props":446,"children":447},{},[448,450,456,458,463,465,470,472,477,479,485],{"type":27,"value":449},"The ",{"type":22,"tag":322,"props":451,"children":453},{"href":452},"/man/VkDescriptorSetLayout",[454],{"type":27,"value":455},"VkDescriptorSetLayout",{"type":27,"value":457}," at index ",{"type":22,"tag":43,"props":459,"children":461},{"className":460},[],[462],{"type":27,"value":355},{"type":27,"value":464}," when ",{"type":22,"tag":43,"props":466,"children":468},{"className":467},[],[469],{"type":27,"value":121},{"type":27,"value":471}," was\ncreated ",{"type":22,"tag":473,"props":474,"children":476},"normative",{"type":475},"must",[],{"type":27,"value":478}," have been created with the\n",{"type":22,"tag":43,"props":480,"children":482},{"className":481},[],[483],{"type":27,"value":484},"VK_DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT",{"type":27,"value":486},"\nbit set",{"type":22,"tag":441,"props":488,"children":490},{"name":489},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-set-08071",[491],{"type":22,"tag":23,"props":492,"children":493},{},[494,499,501,504,506,512,513,519,521,526],{"type":22,"tag":43,"props":495,"children":497},{"className":496},[],[498],{"type":27,"value":355},{"type":27,"value":500}," ",{"type":22,"tag":473,"props":502,"children":503},{"type":475},[],{"type":27,"value":505}," be less than or equal to\n",{"type":22,"tag":322,"props":507,"children":509},{"href":508},"/man/VkPipelineLayoutCreateInfo",[510],{"type":27,"value":511},"VkPipelineLayoutCreateInfo",{"type":27,"value":199},{"type":22,"tag":43,"props":514,"children":516},{"className":515},[],[517],{"type":27,"value":518},"setLayoutCount",{"type":27,"value":520}," provided when\n",{"type":22,"tag":43,"props":522,"children":524},{"className":523},[],[525],{"type":27,"value":121},{"type":27,"value":527}," was created",{"type":22,"tag":441,"props":529,"children":531},{"name":530},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-None-08068",[532],{"type":22,"tag":23,"props":533,"children":534},{},[535,536,546,548,551],{"type":27,"value":449},{"type":22,"tag":322,"props":537,"children":539},{"href":538},"/man/VkPhysicalDeviceDescriptorBufferFeaturesEXT#features-descriptorBuffer",[540],{"type":22,"tag":43,"props":541,"children":543},{"className":542},[],[544],{"type":27,"value":545},"descriptorBuffer",{"type":27,"value":547}," feature ",{"type":22,"tag":473,"props":549,"children":550},{"type":475},[],{"type":27,"value":552},"\nbe enabled",{"type":22,"tag":441,"props":554,"children":556},{"name":555},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-pipelineBindPoint-08069",[557],{"type":22,"tag":23,"props":558,"children":559},{},[560,565,566,569,571,576,578,584],{"type":22,"tag":43,"props":561,"children":563},{"className":562},[],[564],{"type":27,"value":103},{"type":27,"value":500},{"type":22,"tag":473,"props":567,"children":568},{"type":475},[],{"type":27,"value":570}," be supported by the ",{"type":22,"tag":43,"props":572,"children":574},{"className":573},[],[575],{"type":27,"value":84},{"type":27,"value":577},"’s\nparent ",{"type":22,"tag":43,"props":579,"children":581},{"className":580},[],[582],{"type":27,"value":583},"VkCommandPool",{"type":27,"value":585},"’s queue family",{"type":22,"tag":436,"props":587,"children":589},{"name":588},"Valid Usage (Implicit)",[590,616,639,661,685,712,726],{"type":22,"tag":441,"props":591,"children":593},{"name":592},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-commandBuffer-parameter",[594],{"type":22,"tag":23,"props":595,"children":596},{},[597,602,603,606,608,614],{"type":22,"tag":43,"props":598,"children":600},{"className":599},[],[601],{"type":27,"value":84},{"type":27,"value":500},{"type":22,"tag":473,"props":604,"children":605},{"type":475},[],{"type":27,"value":607}," be a valid ",{"type":22,"tag":322,"props":609,"children":611},{"href":610},"/man/VkCommandBuffer",[612],{"type":27,"value":613},"VkCommandBuffer",{"type":27,"value":615}," handle",{"type":22,"tag":441,"props":617,"children":619},{"name":618},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-pipelineBindPoint-parameter",[620],{"type":22,"tag":23,"props":621,"children":622},{},[623,628,629,632,633,637],{"type":22,"tag":43,"props":624,"children":626},{"className":625},[],[627],{"type":27,"value":103},{"type":27,"value":500},{"type":22,"tag":473,"props":630,"children":631},{"type":475},[],{"type":27,"value":607},{"type":22,"tag":322,"props":634,"children":635},{"href":324},[636],{"type":27,"value":327},{"type":27,"value":638}," value",{"type":22,"tag":441,"props":640,"children":642},{"name":641},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-layout-parameter",[643],{"type":22,"tag":23,"props":644,"children":645},{},[646,651,652,655,656,660],{"type":22,"tag":43,"props":647,"children":649},{"className":648},[],[650],{"type":27,"value":121},{"type":27,"value":500},{"type":22,"tag":473,"props":653,"children":654},{"type":475},[],{"type":27,"value":607},{"type":22,"tag":322,"props":657,"children":658},{"href":341},[659],{"type":27,"value":344},{"type":27,"value":615},{"type":22,"tag":441,"props":662,"children":664},{"name":663},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-commandBuffer-recording",[665],{"type":22,"tag":23,"props":666,"children":667},{},[668,673,674,677,679],{"type":22,"tag":43,"props":669,"children":671},{"className":670},[],[672],{"type":27,"value":84},{"type":27,"value":500},{"type":22,"tag":473,"props":675,"children":676},{"type":475},[],{"type":27,"value":678}," be in the ",{"type":22,"tag":322,"props":680,"children":682},{"href":681},"/chapters/commandbuffers#commandbuffers-lifecycle",[683],{"type":27,"value":684},"recording state",{"type":22,"tag":441,"props":686,"children":688},{"name":687},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-commandBuffer-cmdpool",[689],{"type":22,"tag":23,"props":690,"children":691},{},[692,693,698,700,705,707,710],{"type":27,"value":449},{"type":22,"tag":43,"props":694,"children":696},{"className":695},[],[697],{"type":27,"value":583},{"type":27,"value":699}," that ",{"type":22,"tag":43,"props":701,"children":703},{"className":702},[],[704],{"type":27,"value":84},{"type":27,"value":706}," was allocated from ",{"type":22,"tag":473,"props":708,"children":709},{"type":475},[],{"type":27,"value":711}," support graphics, or compute operations",{"type":22,"tag":441,"props":713,"children":715},{"name":714},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-videocoding",[716],{"type":22,"tag":23,"props":717,"children":718},{},[719,721,724],{"type":27,"value":720},"This command ",{"type":22,"tag":473,"props":722,"children":723},{"type":475},[],{"type":27,"value":725}," only be called outside of a video coding scope",{"type":22,"tag":441,"props":727,"children":729},{"name":728},"VUID-vkCmdBindDescriptorBufferEmbeddedSamplersEXT-commonparent",[730],{"type":22,"tag":23,"props":731,"children":732},{},[733,735,740,742,747,748,751,753],{"type":27,"value":734},"Both of ",{"type":22,"tag":43,"props":736,"children":738},{"className":737},[],[739],{"type":27,"value":84},{"type":27,"value":741},", and ",{"type":22,"tag":43,"props":743,"children":745},{"className":744},[],[746],{"type":27,"value":121},{"type":27,"value":500},{"type":22,"tag":473,"props":749,"children":750},{"type":475},[],{"type":27,"value":752}," have been created, allocated, or retrieved from the same ",{"type":22,"tag":322,"props":754,"children":756},{"href":755},"/man/VkDevice",[757],{"type":27,"value":758},"VkDevice",{"type":22,"tag":760,"props":761,"children":763},"validity-box",{"name":762},"Host Synchronization",[764],{"type":22,"tag":297,"props":765,"children":766},{},[767,783],{"type":22,"tag":301,"props":768,"children":769},{},[770,772,777,778,781],{"type":27,"value":771},"Host access to ",{"type":22,"tag":43,"props":773,"children":775},{"className":774},[],[776],{"type":27,"value":84},{"type":27,"value":500},{"type":22,"tag":473,"props":779,"children":780},{"type":475},[],{"type":27,"value":782}," be externally synchronized",{"type":22,"tag":301,"props":784,"children":785},{},[786,788,793,794,799,800,803],{"type":27,"value":787},"Host access to the ",{"type":22,"tag":43,"props":789,"children":791},{"className":790},[],[792],{"type":27,"value":583},{"type":27,"value":699},{"type":22,"tag":43,"props":795,"children":797},{"className":796},[],[798],{"type":27,"value":84},{"type":27,"value":706},{"type":22,"tag":473,"props":801,"children":802},{"type":475},[],{"type":27,"value":804}," be externally synchronized\n::",{"type":22,"tag":806,"props":807,"children":808},"style",{},[809],{"type":27,"value":810},"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":40,"searchDepth":72,"depth":72,"links":812},[],"markdown",1725732597581]