[{"data":1,"prerenderedAt":600},["ShallowReactive",2],{"5Hvouiozxb":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":599,"_id":4},"VkVertexInputBindingDivisorDescription","Structure specifying a divisor used in instanced rendering","VK_VERSION_1_4","structs",[],{"type":10,"children":11,"toc":597},"root",[12,28,187,192,259,263,324,401,406,591],{"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 as:",{"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 VkVertexInputBindingDivisorDescription {\n uint32_t binding;\n uint32_t divisor;\n} VkVertexInputBindingDivisorDescription;\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}," VkVertexInputBindingDivisorDescription {\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},"} VkVertexInputBindingDivisorDescription;\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 VertexInputBindingDivisorDescription {\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}," VertexInputBindingDivisorDescription",{"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 VkVertexInputBindingDivisorDescription VkVertexInputBindingDivisorDescriptionKHR;\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}," VkVertexInputBindingDivisorDescription VkVertexInputBindingDivisorDescriptionKHR;\n",{"type":13,"tag":33,"props":215,"children":217},{"className":105,"code":216,"filename":107,"language":108,"meta":39,"style":39},"type VertexInputBindingDivisorDescriptionKHR = vk::VertexInputBindingDivisorDescription;\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}," VertexInputBindingDivisorDescriptionKHR",{"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},"VertexInputBindingDivisorDescription",{"type":13,"tag":45,"props":255,"children":256},{"style":63},[257],{"type":18,"value":258},";\n",{"type":13,"tag":14,"props":260,"children":261},{},[262],{"type":18,"value":191},{"type":13,"tag":29,"props":264,"children":265},{},[266,285],{"type":13,"tag":33,"props":267,"children":269},{"className":35,"code":268,"filename":37,"language":38,"meta":39,"style":39},"typedef VkVertexInputBindingDivisorDescription VkVertexInputBindingDivisorDescriptionEXT;\n",[270],{"type":13,"tag":21,"props":271,"children":272},{"__ignoreMap":39},[273],{"type":13,"tag":45,"props":274,"children":275},{"class":47,"line":48},[276,280],{"type":13,"tag":45,"props":277,"children":278},{"style":52},[279],{"type":18,"value":55},{"type":13,"tag":45,"props":281,"children":282},{"style":63},[283],{"type":18,"value":284}," VkVertexInputBindingDivisorDescription VkVertexInputBindingDivisorDescriptionEXT;\n",{"type":13,"tag":33,"props":286,"children":288},{"className":105,"code":287,"filename":107,"language":108,"meta":39,"style":39},"type VertexInputBindingDivisorDescriptionEXT = vk::VertexInputBindingDivisorDescription;\n",[289],{"type":13,"tag":21,"props":290,"children":291},{"__ignoreMap":39},[292],{"type":13,"tag":45,"props":293,"children":294},{"class":47,"line":48},[295,299,304,308,312,316,320],{"type":13,"tag":45,"props":296,"children":297},{"style":52},[298],{"type":18,"value":228},{"type":13,"tag":45,"props":300,"children":301},{"style":127},[302],{"type":18,"value":303}," VertexInputBindingDivisorDescriptionEXT",{"type":13,"tag":45,"props":305,"children":306},{"style":52},[307],{"type":18,"value":238},{"type":13,"tag":45,"props":309,"children":310},{"style":127},[311],{"type":18,"value":243},{"type":13,"tag":45,"props":313,"children":314},{"style":52},[315],{"type":18,"value":248},{"type":13,"tag":45,"props":317,"children":318},{"style":127},[319],{"type":18,"value":253},{"type":13,"tag":45,"props":321,"children":322},{"style":63},[323],{"type":18,"value":258},{"type":13,"tag":325,"props":326,"children":327},"ul",{},[328,340],{"type":13,"tag":329,"props":330,"children":331},"li",{},[332,338],{"type":13,"tag":21,"props":333,"children":335},{"className":334},[],[336],{"type":18,"value":337},"binding",{"type":18,"value":339}," is the binding number for which the divisor is specified.",{"type":13,"tag":329,"props":341,"children":342},{},[343,349,351,356,358,365,366,372,374,380,382,387,389,399],{"type":13,"tag":21,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":348},"divisor",{"type":18,"value":350}," 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":352,"children":354},{"className":353},[],[355],{"type":18,"value":348},{"type":18,"value":357}," is implementation-dependent and can\nbe queried using\n",{"type":13,"tag":359,"props":360,"children":362},"a",{"href":361},"/man/VkPhysicalDeviceVertexAttributeDivisorProperties",[363],{"type":18,"value":364},"VkPhysicalDeviceVertexAttributeDivisorProperties",{"type":18,"value":248},{"type":13,"tag":21,"props":367,"children":369},{"className":368},[],[370],{"type":18,"value":371},"maxVertexAttribDivisor",{"type":18,"value":373},".\nA value of ",{"type":13,"tag":21,"props":375,"children":377},{"className":376},[],[378],{"type":18,"value":379},"0",{"type":18,"value":381}," ",{"type":13,"tag":383,"props":384,"children":386},"normative",{"type":385},"can",[],{"type":18,"value":388}," be used for the divisor if the\n",{"type":13,"tag":359,"props":390,"children":392},{"href":391},"/man/VkPhysicalDeviceVertexAttributeDivisorFeatures#features-vertexAttributeInstanceRateZeroDivisor",[393],{"type":13,"tag":21,"props":394,"children":396},{"className":395},[],[397],{"type":18,"value":398},"vertexAttributeInstanceRateZeroDivisor",{"type":18,"value":400}," feature is enabled.\nIn this case, the same vertex attribute will be applied to all\ninstances.",{"type":13,"tag":14,"props":402,"children":403},{},[404],{"type":18,"value":405},"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":407,"props":408,"children":410},"validity-group",{"name":409},"Valid Usage",[411,444,479,515,552],{"type":13,"tag":412,"props":413,"children":415},"validity-field",{"name":414},"VUID-VkVertexInputBindingDivisorDescription-binding-01869",[416],{"type":13,"tag":14,"props":417,"children":418},{},[419,424,425,429,431,437,438],{"type":13,"tag":21,"props":420,"children":422},{"className":421},[],[423],{"type":18,"value":337},{"type":18,"value":381},{"type":13,"tag":383,"props":426,"children":428},{"type":427},"must",[],{"type":18,"value":430}," be less than\n",{"type":13,"tag":359,"props":432,"children":434},{"href":433},"/man/VkPhysicalDeviceLimits",[435],{"type":18,"value":436},"VkPhysicalDeviceLimits",{"type":18,"value":248},{"type":13,"tag":21,"props":439,"children":441},{"className":440},[],[442],{"type":18,"value":443},"maxVertexInputBindings",{"type":13,"tag":412,"props":445,"children":447},{"name":446},"VUID-VkVertexInputBindingDivisorDescription-vertexAttributeInstanceRateZeroDivisor-02228",[448],{"type":13,"tag":14,"props":449,"children":450},{},[451,453,461,463,468,469,472,474],{"type":18,"value":452},"If the ",{"type":13,"tag":359,"props":454,"children":455},{"href":391},[456],{"type":13,"tag":21,"props":457,"children":459},{"className":458},[],[460],{"type":18,"value":398},{"type":18,"value":462}," feature is not enabled,\n",{"type":13,"tag":21,"props":464,"children":466},{"className":465},[],[467],{"type":18,"value":348},{"type":18,"value":381},{"type":13,"tag":383,"props":470,"children":471},{"type":427},[],{"type":18,"value":473}," not be ",{"type":13,"tag":21,"props":475,"children":477},{"className":476},[],[478],{"type":18,"value":379},{"type":13,"tag":412,"props":480,"children":482},{"name":481},"VUID-VkVertexInputBindingDivisorDescription-vertexAttributeInstanceRateDivisor-02229",[483],{"type":13,"tag":14,"props":484,"children":485},{},[486,487,497,498,503,504,507,509],{"type":18,"value":452},{"type":13,"tag":359,"props":488,"children":490},{"href":489},"/man/VkPhysicalDeviceVertexAttributeDivisorFeatures#features-vertexAttributeInstanceRateDivisor",[491],{"type":13,"tag":21,"props":492,"children":494},{"className":493},[],[495],{"type":18,"value":496},"vertexAttributeInstanceRateDivisor",{"type":18,"value":462},{"type":13,"tag":21,"props":499,"children":501},{"className":500},[],[502],{"type":18,"value":348},{"type":18,"value":381},{"type":13,"tag":383,"props":505,"children":506},{"type":427},[],{"type":18,"value":508}," be ",{"type":13,"tag":21,"props":510,"children":512},{"className":511},[],[513],{"type":18,"value":514},"1",{"type":13,"tag":412,"props":516,"children":518},{"name":517},"VUID-VkVertexInputBindingDivisorDescription-divisor-01870",[519],{"type":13,"tag":14,"props":520,"children":521},{},[522,527,528,531,533,538,540,544,545,550],{"type":13,"tag":21,"props":523,"children":525},{"className":524},[],[526],{"type":18,"value":348},{"type":18,"value":381},{"type":13,"tag":383,"props":529,"children":530},{"type":427},[],{"type":18,"value":532}," be a value between ",{"type":13,"tag":21,"props":534,"children":536},{"className":535},[],[537],{"type":18,"value":379},{"type":18,"value":539}," and\n",{"type":13,"tag":359,"props":541,"children":542},{"href":361},[543],{"type":18,"value":364},{"type":18,"value":248},{"type":13,"tag":21,"props":546,"children":548},{"className":547},[],[549],{"type":18,"value":371},{"type":18,"value":551},",\ninclusive",{"type":13,"tag":412,"props":553,"children":555},{"name":554},"VUID-VkVertexInputBindingDivisorDescription-inputRate-01871",[556],{"type":13,"tag":14,"props":557,"children":558},{},[559,565,566,572,573,576,578,584,586],{"type":13,"tag":359,"props":560,"children":562},{"href":561},"/man/VkVertexInputBindingDescription",[563],{"type":18,"value":564},"VkVertexInputBindingDescription",{"type":18,"value":248},{"type":13,"tag":21,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":571},"inputRate",{"type":18,"value":381},{"type":13,"tag":383,"props":574,"children":575},{"type":427},[],{"type":18,"value":577}," be of type\n",{"type":13,"tag":21,"props":579,"children":581},{"className":580},[],[582],{"type":18,"value":583},"VK_VERTEX_INPUT_RATE_INSTANCE",{"type":18,"value":585}," for this ",{"type":13,"tag":21,"props":587,"children":589},{"className":588},[],[590],{"type":18,"value":337},{"type":13,"tag":592,"props":593,"children":594},"style",{},[595],{"type":18,"value":596},"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":598},[],"markdown",1744876575767]