[{"data":1,"prerenderedAt":529},["ShallowReactive",2],{"2AklDztnSV":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":528,"_id":4},"VkVertexInputBindingDivisorDescriptionKHR","Structure specifying a divisor used in instanced rendering","VK_KHR_vertex_attribute_divisor","structs",[],{"type":10,"children":11,"toc":526},"root",[12,28,187,192,259,336,341,520],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The individual divisor values per binding are specified using the\n",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure which is defined\nas:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,103],{"type":13,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkVertexInputBindingDivisorDescriptionKHR {\n uint32_t binding;\n uint32_t divisor;\n} VkVertexInputBindingDivisorDescriptionKHR;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,81,94],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkVertexInputBindingDivisorDescriptionKHR {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71,76],{"type":13,"tag":45,"props":72,"children":73},{"style":52},[74],{"type":18,"value":75}," uint32_t",{"type":13,"tag":45,"props":77,"children":78},{"style":63},[79],{"type":18,"value":80}," binding;\n",{"type":13,"tag":45,"props":82,"children":84},{"class":47,"line":83},3,[85,89],{"type":13,"tag":45,"props":86,"children":87},{"style":52},[88],{"type":18,"value":75},{"type":13,"tag":45,"props":90,"children":91},{"style":63},[92],{"type":18,"value":93}," divisor;\n",{"type":13,"tag":45,"props":95,"children":97},{"class":47,"line":96},4,[98],{"type":13,"tag":45,"props":99,"children":100},{"style":63},[101],{"type":18,"value":102},"} VkVertexInputBindingDivisorDescriptionKHR;\n",{"type":13,"tag":33,"props":104,"children":109},{"className":105,"code":106,"filename":107,"language":108,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct VertexInputBindingDivisorDescriptionKHR {\n binding: u32,\n divisor: u32,\n}\n","Rust","rs",[110],{"type":13,"tag":21,"props":111,"children":112},{"__ignoreMap":39},[113,136,159,179],{"type":13,"tag":45,"props":114,"children":115},{"class":47,"line":48},[116,121,125,131],{"type":13,"tag":45,"props":117,"children":118},{"style":52},[119],{"type":18,"value":120},"pub",{"type":13,"tag":45,"props":122,"children":123},{"style":52},[124],{"type":18,"value":60},{"type":13,"tag":45,"props":126,"children":128},{"style":127},"--shiki-default:#953800;--shiki-dark:#FFA657",[129],{"type":18,"value":130}," VertexInputBindingDivisorDescriptionKHR",{"type":13,"tag":45,"props":132,"children":133},{"style":63},[134],{"type":18,"value":135}," {\n",{"type":13,"tag":45,"props":137,"children":138},{"class":47,"line":69},[139,144,149,154],{"type":13,"tag":45,"props":140,"children":141},{"style":63},[142],{"type":18,"value":143}," binding",{"type":13,"tag":45,"props":145,"children":146},{"style":52},[147],{"type":18,"value":148},":",{"type":13,"tag":45,"props":150,"children":151},{"style":127},[152],{"type":18,"value":153}," u32",{"type":13,"tag":45,"props":155,"children":156},{"style":63},[157],{"type":18,"value":158},",\n",{"type":13,"tag":45,"props":160,"children":161},{"class":47,"line":83},[162,167,171,175],{"type":13,"tag":45,"props":163,"children":164},{"style":63},[165],{"type":18,"value":166}," divisor",{"type":13,"tag":45,"props":168,"children":169},{"style":52},[170],{"type":18,"value":148},{"type":13,"tag":45,"props":172,"children":173},{"style":127},[174],{"type":18,"value":153},{"type":13,"tag":45,"props":176,"children":177},{"style":63},[178],{"type":18,"value":158},{"type":13,"tag":45,"props":180,"children":181},{"class":47,"line":96},[182],{"type":13,"tag":45,"props":183,"children":184},{"style":63},[185],{"type":18,"value":186},"}\n",{"type":13,"tag":14,"props":188,"children":189},{},[190],{"type":18,"value":191},"or the equivalent",{"type":13,"tag":29,"props":193,"children":194},{},[195,214],{"type":13,"tag":33,"props":196,"children":198},{"className":35,"code":197,"filename":37,"language":38,"meta":39,"style":39},"typedef VkVertexInputBindingDivisorDescriptionKHR VkVertexInputBindingDivisorDescriptionEXT;\n",[199],{"type":13,"tag":21,"props":200,"children":201},{"__ignoreMap":39},[202],{"type":13,"tag":45,"props":203,"children":204},{"class":47,"line":48},[205,209],{"type":13,"tag":45,"props":206,"children":207},{"style":52},[208],{"type":18,"value":55},{"type":13,"tag":45,"props":210,"children":211},{"style":63},[212],{"type":18,"value":213}," VkVertexInputBindingDivisorDescriptionKHR VkVertexInputBindingDivisorDescriptionEXT;\n",{"type":13,"tag":33,"props":215,"children":217},{"className":105,"code":216,"filename":107,"language":108,"meta":39,"style":39},"type VertexInputBindingDivisorDescriptionEXT = vk::VertexInputBindingDivisorDescriptionKHR;\n",[218],{"type":13,"tag":21,"props":219,"children":220},{"__ignoreMap":39},[221],{"type":13,"tag":45,"props":222,"children":223},{"class":47,"line":48},[224,229,234,239,244,249,254],{"type":13,"tag":45,"props":225,"children":226},{"style":52},[227],{"type":18,"value":228},"type",{"type":13,"tag":45,"props":230,"children":231},{"style":127},[232],{"type":18,"value":233}," VertexInputBindingDivisorDescriptionEXT",{"type":13,"tag":45,"props":235,"children":236},{"style":52},[237],{"type":18,"value":238}," =",{"type":13,"tag":45,"props":240,"children":241},{"style":127},[242],{"type":18,"value":243}," vk",{"type":13,"tag":45,"props":245,"children":246},{"style":52},[247],{"type":18,"value":248},"::",{"type":13,"tag":45,"props":250,"children":251},{"style":127},[252],{"type":18,"value":253},"VertexInputBindingDivisorDescriptionKHR",{"type":13,"tag":45,"props":255,"children":256},{"style":63},[257],{"type":18,"value":258},";\n",{"type":13,"tag":260,"props":261,"children":262},"ul",{},[263,275],{"type":13,"tag":264,"props":265,"children":266},"li",{},[267,273],{"type":13,"tag":21,"props":268,"children":270},{"className":269},[],[271],{"type":18,"value":272},"binding",{"type":18,"value":274}," is the binding number for which the divisor is specified.",{"type":13,"tag":264,"props":276,"children":277},{},[278,284,286,291,293,300,301,307,309,315,317,322,324,334],{"type":13,"tag":21,"props":279,"children":281},{"className":280},[],[282],{"type":18,"value":283},"divisor",{"type":18,"value":285}," is the number of successive instances that will use the\nsame value of the vertex attribute when instanced rendering is enabled.\nFor example, if the divisor is N, the same vertex attribute will be\napplied to N successive instances before moving on to the next vertex\nattribute.\nThe maximum value of ",{"type":13,"tag":21,"props":287,"children":289},{"className":288},[],[290],{"type":18,"value":283},{"type":18,"value":292}," is implementation-dependent and can\nbe queried using\n",{"type":13,"tag":294,"props":295,"children":297},"a",{"href":296},"/man/VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR",[298],{"type":18,"value":299},"VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR",{"type":18,"value":248},{"type":13,"tag":21,"props":302,"children":304},{"className":303},[],[305],{"type":18,"value":306},"maxVertexAttribDivisor",{"type":18,"value":308},".\nA value of ",{"type":13,"tag":21,"props":310,"children":312},{"className":311},[],[313],{"type":18,"value":314},"0",{"type":18,"value":316}," ",{"type":13,"tag":318,"props":319,"children":321},"normative",{"type":320},"can",[],{"type":18,"value":323}," be used for the divisor if the\n",{"type":13,"tag":294,"props":325,"children":327},{"href":326},"/man/VkPhysicalDeviceVertexAttributeDivisorFeaturesKHR#features-vertexAttributeInstanceRateZeroDivisor",[328],{"type":13,"tag":21,"props":329,"children":331},{"className":330},[],[332],{"type":18,"value":333},"vertexAttributeInstanceRateZeroDivisor",{"type":18,"value":335}," feature is enabled.\nIn this case, the same vertex attribute will be applied to all\ninstances.",{"type":13,"tag":14,"props":337,"children":338},{},[339],{"type":18,"value":340},"If this structure is not used to define a divisor value for an attribute,\nthen the divisor has a logical default value of 1.",{"type":13,"tag":342,"props":343,"children":345},"validity-group",{"name":344},"Valid Usage",[346,379,411,444,481],{"type":13,"tag":347,"props":348,"children":350},"validity-field",{"name":349},"VUID-VkVertexInputBindingDivisorDescriptionKHR-binding-01869",[351],{"type":13,"tag":14,"props":352,"children":353},{},[354,359,360,364,366,372,373],{"type":13,"tag":21,"props":355,"children":357},{"className":356},[],[358],{"type":18,"value":272},{"type":18,"value":316},{"type":13,"tag":318,"props":361,"children":363},{"type":362},"must",[],{"type":18,"value":365}," be less than\n",{"type":13,"tag":294,"props":367,"children":369},{"href":368},"/man/VkPhysicalDeviceLimits",[370],{"type":18,"value":371},"VkPhysicalDeviceLimits",{"type":18,"value":248},{"type":13,"tag":21,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":378},"maxVertexInputBindings",{"type":13,"tag":347,"props":380,"children":382},{"name":381},"VUID-VkVertexInputBindingDivisorDescriptionKHR-vertexAttributeInstanceRateZeroDivisor-02228",[383],{"type":13,"tag":14,"props":384,"children":385},{},[386,388,393,395,400,401,404,406],{"type":18,"value":387},"If the ",{"type":13,"tag":21,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":333},{"type":18,"value":394}," feature is not\nenabled, ",{"type":13,"tag":21,"props":396,"children":398},{"className":397},[],[399],{"type":18,"value":283},{"type":18,"value":316},{"type":13,"tag":318,"props":402,"children":403},{"type":362},[],{"type":18,"value":405}," not be ",{"type":13,"tag":21,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":314},{"type":13,"tag":347,"props":412,"children":414},{"name":413},"VUID-VkVertexInputBindingDivisorDescriptionKHR-vertexAttributeInstanceRateDivisor-02229",[415],{"type":13,"tag":14,"props":416,"children":417},{},[418,419,425,427,432,433,436,438],{"type":18,"value":387},{"type":13,"tag":21,"props":420,"children":422},{"className":421},[],[423],{"type":18,"value":424},"vertexAttributeInstanceRateDivisor",{"type":18,"value":426}," feature is not enabled,\n",{"type":13,"tag":21,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":283},{"type":18,"value":316},{"type":13,"tag":318,"props":434,"children":435},{"type":362},[],{"type":18,"value":437}," be ",{"type":13,"tag":21,"props":439,"children":441},{"className":440},[],[442],{"type":18,"value":443},"1",{"type":13,"tag":347,"props":445,"children":447},{"name":446},"VUID-VkVertexInputBindingDivisorDescriptionKHR-divisor-01870",[448],{"type":13,"tag":14,"props":449,"children":450},{},[451,456,457,460,462,467,469,473,474,479],{"type":13,"tag":21,"props":452,"children":454},{"className":453},[],[455],{"type":18,"value":283},{"type":18,"value":316},{"type":13,"tag":318,"props":458,"children":459},{"type":362},[],{"type":18,"value":461}," be a value between ",{"type":13,"tag":21,"props":463,"children":465},{"className":464},[],[466],{"type":18,"value":314},{"type":18,"value":468}," and\n",{"type":13,"tag":294,"props":470,"children":471},{"href":296},[472],{"type":18,"value":299},{"type":18,"value":248},{"type":13,"tag":21,"props":475,"children":477},{"className":476},[],[478],{"type":18,"value":306},{"type":18,"value":480},",\ninclusive",{"type":13,"tag":347,"props":482,"children":484},{"name":483},"VUID-VkVertexInputBindingDivisorDescriptionKHR-inputRate-01871",[485],{"type":13,"tag":14,"props":486,"children":487},{},[488,494,495,501,502,505,507,513,515],{"type":13,"tag":294,"props":489,"children":491},{"href":490},"/man/VkVertexInputBindingDescription",[492],{"type":18,"value":493},"VkVertexInputBindingDescription",{"type":18,"value":248},{"type":13,"tag":21,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":500},"inputRate",{"type":18,"value":316},{"type":13,"tag":318,"props":503,"children":504},{"type":362},[],{"type":18,"value":506}," be of type\n",{"type":13,"tag":21,"props":508,"children":510},{"className":509},[],[511],{"type":18,"value":512},"VK_VERTEX_INPUT_RATE_INSTANCE",{"type":18,"value":514}," for this ",{"type":13,"tag":21,"props":516,"children":518},{"className":517},[],[519],{"type":18,"value":272},{"type":13,"tag":521,"props":522,"children":523},"style",{},[524],{"type":18,"value":525},"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":39,"searchDepth":69,"depth":69,"links":527},[],"markdown",1725732591024]