[{"data":1,"prerenderedAt":535},["ShallowReactive",2],{"$fiiG6RYJmtrd7-LsDNdW6KBcJ2_i17r2bcJw3uhr3hyI":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":534,"_id":4},"vkGetPhysicalDeviceDescriptorSizeEXT","Report specific descriptor sizes for each descriptor type","VK_EXT_descriptor_heap","protos",[],{"type":10,"children":11,"toc":532},"root",[12,29,233,264,323,332,348,473,526],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","To query the size of heap descriptor for a specific ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkDescriptorType",[25],{"type":18,"value":26},"VkDescriptorType",{"type":18,"value":28},",\ncall:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,107],{"type":13,"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","VkDeviceSize vkGetPhysicalDeviceDescriptorSizeEXT(\n VkPhysicalDevice physicalDevice,\n VkDescriptorType descriptorType);\n","C","c","",[42],{"type":13,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,68,88],{"type":13,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,63],{"type":13,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[56],{"type":18,"value":57},"VkDeviceSize ",{"type":13,"tag":47,"props":59,"children":61},{"style":60},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[62],{"type":18,"value":4},{"type":13,"tag":47,"props":64,"children":65},{"style":54},[66],{"type":18,"value":67},"(\n",{"type":13,"tag":47,"props":69,"children":71},{"class":49,"line":70},2,[72,77,83],{"type":13,"tag":47,"props":73,"children":74},{"style":54},[75],{"type":18,"value":76}," VkPhysicalDevice ",{"type":13,"tag":47,"props":78,"children":80},{"style":79},"--shiki-default:#953800;--shiki-dark:#FFA657",[81],{"type":18,"value":82},"physicalDevice",{"type":13,"tag":47,"props":84,"children":85},{"style":54},[86],{"type":18,"value":87},",\n",{"type":13,"tag":47,"props":89,"children":91},{"class":49,"line":90},3,[92,97,102],{"type":13,"tag":47,"props":93,"children":94},{"style":54},[95],{"type":18,"value":96}," VkDescriptorType ",{"type":13,"tag":47,"props":98,"children":99},{"style":79},[100],{"type":18,"value":101},"descriptorType",{"type":13,"tag":47,"props":103,"children":104},{"style":54},[105],{"type":18,"value":106},");\n",{"type":13,"tag":34,"props":108,"children":113},{"className":109,"code":110,"filename":111,"language":112,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_physical_device_descriptor_size_ext(\n physical_device: vk::PhysicalDevice,\n descriptor_type: vk::DescriptorType,\n) -> vk::DeviceSize;\n","Rust","rs",[114],{"type":13,"tag":43,"props":115,"children":116},{"__ignoreMap":40},[117,140,172,201],{"type":13,"tag":47,"props":118,"children":119},{"class":49,"line":50},[120,126,131,136],{"type":13,"tag":47,"props":121,"children":123},{"style":122},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[124],{"type":18,"value":125},"pub",{"type":13,"tag":47,"props":127,"children":128},{"style":122},[129],{"type":18,"value":130}," fn",{"type":13,"tag":47,"props":132,"children":133},{"style":60},[134],{"type":18,"value":135}," get_physical_device_descriptor_size_ext",{"type":13,"tag":47,"props":137,"children":138},{"style":54},[139],{"type":18,"value":67},{"type":13,"tag":47,"props":141,"children":142},{"class":49,"line":70},[143,148,153,158,163,168],{"type":13,"tag":47,"props":144,"children":145},{"style":54},[146],{"type":18,"value":147}," physical_device",{"type":13,"tag":47,"props":149,"children":150},{"style":122},[151],{"type":18,"value":152},":",{"type":13,"tag":47,"props":154,"children":155},{"style":79},[156],{"type":18,"value":157}," vk",{"type":13,"tag":47,"props":159,"children":160},{"style":122},[161],{"type":18,"value":162},"::",{"type":13,"tag":47,"props":164,"children":165},{"style":79},[166],{"type":18,"value":167},"PhysicalDevice",{"type":13,"tag":47,"props":169,"children":170},{"style":54},[171],{"type":18,"value":87},{"type":13,"tag":47,"props":173,"children":174},{"class":49,"line":90},[175,180,184,188,192,197],{"type":13,"tag":47,"props":176,"children":177},{"style":54},[178],{"type":18,"value":179}," descriptor_type",{"type":13,"tag":47,"props":181,"children":182},{"style":122},[183],{"type":18,"value":152},{"type":13,"tag":47,"props":185,"children":186},{"style":79},[187],{"type":18,"value":157},{"type":13,"tag":47,"props":189,"children":190},{"style":122},[191],{"type":18,"value":162},{"type":13,"tag":47,"props":193,"children":194},{"style":79},[195],{"type":18,"value":196},"DescriptorType",{"type":13,"tag":47,"props":198,"children":199},{"style":54},[200],{"type":18,"value":87},{"type":13,"tag":47,"props":202,"children":204},{"class":49,"line":203},4,[205,210,215,219,223,228],{"type":13,"tag":47,"props":206,"children":207},{"style":54},[208],{"type":18,"value":209},") ",{"type":13,"tag":47,"props":211,"children":212},{"style":122},[213],{"type":18,"value":214},"->",{"type":13,"tag":47,"props":216,"children":217},{"style":79},[218],{"type":18,"value":157},{"type":13,"tag":47,"props":220,"children":221},{"style":122},[222],{"type":18,"value":162},{"type":13,"tag":47,"props":224,"children":225},{"style":79},[226],{"type":18,"value":227},"DeviceSize",{"type":13,"tag":47,"props":229,"children":230},{"style":54},[231],{"type":18,"value":232},";\n",{"type":13,"tag":234,"props":235,"children":236},"ul",{},[237,248],{"type":13,"tag":238,"props":239,"children":240},"li",{},[241,246],{"type":13,"tag":43,"props":242,"children":244},{"className":243},[],[245],{"type":18,"value":82},{"type":18,"value":247}," is the physical device from which to query the\ndescriptor sizes.",{"type":13,"tag":238,"props":249,"children":250},{},[251,256,258,262],{"type":13,"tag":43,"props":252,"children":254},{"className":253},[],[255],{"type":18,"value":101},{"type":18,"value":257}," is a ",{"type":13,"tag":21,"props":259,"children":260},{"href":23},[261],{"type":18,"value":26},{"type":18,"value":263}," specifying the type of\nheap descriptor to query the size for.",{"type":13,"tag":14,"props":265,"children":266},{},[267,269,275,277,282,284,290,292,298,300,305,307,313,315,321],{"type":18,"value":268},"The return value of this function will be a ",{"type":13,"tag":21,"props":270,"children":272},{"href":271},"/man/VkDeviceSize",[273],{"type":18,"value":274},"VkDeviceSize",{"type":18,"value":276}," indicating\nthe size in bytes (N) of a heap descriptor with a type equal to\n",{"type":13,"tag":43,"props":278,"children":280},{"className":279},[],[281],{"type":18,"value":101},{"type":18,"value":283},".\nWhen a descriptor of this type is written by\n",{"type":13,"tag":21,"props":285,"children":287},{"href":286},"/man/vkWriteResourceDescriptorsEXT",[288],{"type":18,"value":289},"vkWriteResourceDescriptorsEXT",{"type":18,"value":291}," or ",{"type":13,"tag":21,"props":293,"children":295},{"href":294},"/man/vkWriteSamplerDescriptorsEXT",[296],{"type":18,"value":297},"vkWriteSamplerDescriptorsEXT",{"type":18,"value":299},",\nonly the first N bytes are written; the rest will not be accessed and\n",{"type":13,"tag":301,"props":302,"children":304},"normative",{"type":303},"can",[],{"type":18,"value":306}," be safely discarded when copying descriptors around.\nAdditionally, those first N bytes are the only bytes that will be\naccessed when the descriptor is accessed in the shader.\nN will never be larger than the applicable limits in\n",{"type":13,"tag":21,"props":308,"children":310},{"href":309},"/man/VkPhysicalDeviceDescriptorHeapTensorPropertiesARM",[311],{"type":18,"value":312},"VkPhysicalDeviceDescriptorHeapTensorPropertiesARM",{"type":18,"value":314}," or\n",{"type":13,"tag":21,"props":316,"children":318},{"href":317},"/man/VkPhysicalDeviceDescriptorHeapPropertiesEXT",[319],{"type":18,"value":320},"VkPhysicalDeviceDescriptorHeapPropertiesEXT",{"type":18,"value":322},".",{"type":13,"tag":324,"props":325,"children":326},"note",{},[327],{"type":13,"tag":14,"props":328,"children":329},{},[330],{"type":18,"value":331},"Values returned by this function have other requirements, so for example may\nnot be power-of-two values.",{"type":13,"tag":324,"props":333,"children":334},{},[335],{"type":13,"tag":14,"props":336,"children":337},{},[338,340,346],{"type":18,"value":339},"This command is not intended for general use, and is for tools that already\ntake advantage of tighter packing with other similar features\n(e.g. ",{"type":13,"tag":21,"props":341,"children":343},{"href":342},"/extensions/VK_EXT_descriptor_buffer",[344],{"type":18,"value":345},"VK_EXT_descriptor_buffer",{"type":18,"value":347},")\nto optimize accesses in some cases.\nApplications can safely ignore this function and are advised to do so, to\navoid depending on non-portable packing.",{"type":13,"tag":349,"props":350,"children":352},"validity-group",{"name":351},"Valid Usage",[353],{"type":13,"tag":354,"props":355,"children":357},"validity-field",{"name":356},"VUID-vkGetPhysicalDeviceDescriptorSizeEXT-type-11362",[358],{"type":13,"tag":14,"props":359,"children":360},{},[361,367,369,373,375,381,382,388,389,395,396,402,403,409,410,416,417,423,424,430,431,437,438,444,445,451,452,458,459,465,467],{"type":13,"tag":43,"props":362,"children":364},{"className":363},[],[365],{"type":18,"value":366},"type",{"type":18,"value":368}," ",{"type":13,"tag":301,"props":370,"children":372},{"type":371},"must",[],{"type":18,"value":374}," be one of ",{"type":13,"tag":43,"props":376,"children":378},{"className":377},[],[379],{"type":18,"value":380},"VK_DESCRIPTOR_TYPE_SAMPLER",{"type":18,"value":87},{"type":13,"tag":43,"props":383,"children":385},{"className":384},[],[386],{"type":18,"value":387},"VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER",{"type":18,"value":87},{"type":13,"tag":43,"props":390,"children":392},{"className":391},[],[393],{"type":18,"value":394},"VK_DESCRIPTOR_TYPE_STORAGE_BUFFER",{"type":18,"value":87},{"type":13,"tag":43,"props":397,"children":399},{"className":398},[],[400],{"type":18,"value":401},"VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE",{"type":18,"value":87},{"type":13,"tag":43,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":408},"VK_DESCRIPTOR_TYPE_STORAGE_IMAGE",{"type":18,"value":87},{"type":13,"tag":43,"props":411,"children":413},{"className":412},[],[414],{"type":18,"value":415},"VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER",{"type":18,"value":87},{"type":13,"tag":43,"props":418,"children":420},{"className":419},[],[421],{"type":18,"value":422},"VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER",{"type":18,"value":87},{"type":13,"tag":43,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":429},"VK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM",{"type":18,"value":87},{"type":13,"tag":43,"props":432,"children":434},{"className":433},[],[435],{"type":18,"value":436},"VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM",{"type":18,"value":87},{"type":13,"tag":43,"props":439,"children":441},{"className":440},[],[442],{"type":18,"value":443},"VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR",{"type":18,"value":87},{"type":13,"tag":43,"props":446,"children":448},{"className":447},[],[449],{"type":18,"value":450},"VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV",{"type":18,"value":87},{"type":13,"tag":43,"props":453,"children":455},{"className":454},[],[456],{"type":18,"value":457},"VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV",{"type":18,"value":87},{"type":13,"tag":43,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":464},"VK_DESCRIPTOR_TYPE_TENSOR_ARM",{"type":18,"value":466},",\nor ",{"type":13,"tag":43,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":472},"VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT",{"type":13,"tag":349,"props":474,"children":476},{"name":475},"Valid Usage (Implicit)",[477,503],{"type":13,"tag":354,"props":478,"children":480},{"name":479},"VUID-vkGetPhysicalDeviceDescriptorSizeEXT-physicalDevice-parameter",[481],{"type":13,"tag":14,"props":482,"children":483},{},[484,489,490,493,495,501],{"type":13,"tag":43,"props":485,"children":487},{"className":486},[],[488],{"type":18,"value":82},{"type":18,"value":368},{"type":13,"tag":301,"props":491,"children":492},{"type":371},[],{"type":18,"value":494}," be a valid ",{"type":13,"tag":21,"props":496,"children":498},{"href":497},"/man/VkPhysicalDevice",[499],{"type":18,"value":500},"VkPhysicalDevice",{"type":18,"value":502}," handle",{"type":13,"tag":354,"props":504,"children":506},{"name":505},"VUID-vkGetPhysicalDeviceDescriptorSizeEXT-descriptorType-parameter",[507],{"type":13,"tag":14,"props":508,"children":509},{},[510,515,516,519,520,524],{"type":13,"tag":43,"props":511,"children":513},{"className":512},[],[514],{"type":18,"value":101},{"type":18,"value":368},{"type":13,"tag":301,"props":517,"children":518},{"type":371},[],{"type":18,"value":494},{"type":13,"tag":21,"props":521,"children":522},{"href":23},[523],{"type":18,"value":26},{"type":18,"value":525}," value",{"type":13,"tag":527,"props":528,"children":529},"style",{},[530],{"type":18,"value":531},"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":70,"depth":70,"links":533},[],"markdown",1773054809120]