[{"data":1,"prerenderedAt":699},["ShallowReactive",2],{"542D2FlP2r":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":698,"_id":4},"vkCreateDisplayModeKHR","Create a display mode","VK_KHR_display","protos",[],{"type":10,"children":11,"toc":696},"root",[12,27,408,497,666,690],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25],{"type":18,"value":19},"text","Additional modes ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"may",[],{"type":18,"value":26}," also be created by calling:",{"type":13,"tag":28,"props":29,"children":30},"code-group",{},[31,182],{"type":13,"tag":32,"props":33,"children":39},"pre",{"className":34,"code":35,"filename":36,"language":37,"meta":38,"style":38},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkCreateDisplayModeKHR(\n VkPhysicalDevice physicalDevice,\n VkDisplayKHR display,\n const VkDisplayModeCreateInfoKHR* pCreateInfo,\n const VkAllocationCallbacks* pAllocator,\n VkDisplayModeKHR* pMode);\n","C","c","",[40],{"type":13,"tag":41,"props":42,"children":43},"code",{"__ignoreMap":38},[44,66,86,104,133,159],{"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:#1F2328;--shiki-dark:#E6EDF3",[54],{"type":18,"value":55},"VkResult ",{"type":13,"tag":45,"props":57,"children":59},{"style":58},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[60],{"type":18,"value":4},{"type":13,"tag":45,"props":62,"children":63},{"style":52},[64],{"type":18,"value":65},"(\n",{"type":13,"tag":45,"props":67,"children":69},{"class":47,"line":68},2,[70,75,81],{"type":13,"tag":45,"props":71,"children":72},{"style":52},[73],{"type":18,"value":74}," VkPhysicalDevice ",{"type":13,"tag":45,"props":76,"children":78},{"style":77},"--shiki-default:#953800;--shiki-dark:#FFA657",[79],{"type":18,"value":80},"physicalDevice",{"type":13,"tag":45,"props":82,"children":83},{"style":52},[84],{"type":18,"value":85},",\n",{"type":13,"tag":45,"props":87,"children":89},{"class":47,"line":88},3,[90,95,100],{"type":13,"tag":45,"props":91,"children":92},{"style":52},[93],{"type":18,"value":94}," VkDisplayKHR ",{"type":13,"tag":45,"props":96,"children":97},{"style":77},[98],{"type":18,"value":99},"display",{"type":13,"tag":45,"props":101,"children":102},{"style":52},[103],{"type":18,"value":85},{"type":13,"tag":45,"props":105,"children":107},{"class":47,"line":106},4,[108,114,119,124,129],{"type":13,"tag":45,"props":109,"children":111},{"style":110},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[112],{"type":18,"value":113}," const",{"type":13,"tag":45,"props":115,"children":116},{"style":52},[117],{"type":18,"value":118}," VkDisplayModeCreateInfoKHR",{"type":13,"tag":45,"props":120,"children":121},{"style":110},[122],{"type":18,"value":123},"*",{"type":13,"tag":45,"props":125,"children":126},{"style":77},[127],{"type":18,"value":128}," pCreateInfo",{"type":13,"tag":45,"props":130,"children":131},{"style":52},[132],{"type":18,"value":85},{"type":13,"tag":45,"props":134,"children":136},{"class":47,"line":135},5,[137,141,146,150,155],{"type":13,"tag":45,"props":138,"children":139},{"style":110},[140],{"type":18,"value":113},{"type":13,"tag":45,"props":142,"children":143},{"style":52},[144],{"type":18,"value":145}," VkAllocationCallbacks",{"type":13,"tag":45,"props":147,"children":148},{"style":110},[149],{"type":18,"value":123},{"type":13,"tag":45,"props":151,"children":152},{"style":77},[153],{"type":18,"value":154}," pAllocator",{"type":13,"tag":45,"props":156,"children":157},{"style":52},[158],{"type":18,"value":85},{"type":13,"tag":45,"props":160,"children":162},{"class":47,"line":161},6,[163,168,172,177],{"type":13,"tag":45,"props":164,"children":165},{"style":52},[166],{"type":18,"value":167}," VkDisplayModeKHR",{"type":13,"tag":45,"props":169,"children":170},{"style":110},[171],{"type":18,"value":123},{"type":13,"tag":45,"props":173,"children":174},{"style":77},[175],{"type":18,"value":176}," pMode",{"type":13,"tag":45,"props":178,"children":179},{"style":52},[180],{"type":18,"value":181},");\n",{"type":13,"tag":32,"props":183,"children":188},{"className":184,"code":185,"filename":186,"language":187,"meta":38,"style":38},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn create_display_mode_khr(\n physical_device: vk::PhysicalDevice,\n display: vk::DisplayKHR,\n p_create_info: *const vk::DisplayModeCreateInfoKHR,\n p_allocator: *const vk::AllocationCallbacks,\n p_mode: *mut vk::DisplayModeKHR,\n) -> vk::Result;\n","Rust","rs",[189],{"type":13,"tag":41,"props":190,"children":191},{"__ignoreMap":38},[192,214,246,275,309,342,376],{"type":13,"tag":45,"props":193,"children":194},{"class":47,"line":48},[195,200,205,210],{"type":13,"tag":45,"props":196,"children":197},{"style":110},[198],{"type":18,"value":199},"pub",{"type":13,"tag":45,"props":201,"children":202},{"style":110},[203],{"type":18,"value":204}," fn",{"type":13,"tag":45,"props":206,"children":207},{"style":58},[208],{"type":18,"value":209}," create_display_mode_khr",{"type":13,"tag":45,"props":211,"children":212},{"style":52},[213],{"type":18,"value":65},{"type":13,"tag":45,"props":215,"children":216},{"class":47,"line":68},[217,222,227,232,237,242],{"type":13,"tag":45,"props":218,"children":219},{"style":52},[220],{"type":18,"value":221}," physical_device",{"type":13,"tag":45,"props":223,"children":224},{"style":110},[225],{"type":18,"value":226},":",{"type":13,"tag":45,"props":228,"children":229},{"style":77},[230],{"type":18,"value":231}," vk",{"type":13,"tag":45,"props":233,"children":234},{"style":110},[235],{"type":18,"value":236},"::",{"type":13,"tag":45,"props":238,"children":239},{"style":77},[240],{"type":18,"value":241},"PhysicalDevice",{"type":13,"tag":45,"props":243,"children":244},{"style":52},[245],{"type":18,"value":85},{"type":13,"tag":45,"props":247,"children":248},{"class":47,"line":88},[249,254,258,262,266,271],{"type":13,"tag":45,"props":250,"children":251},{"style":52},[252],{"type":18,"value":253}," display",{"type":13,"tag":45,"props":255,"children":256},{"style":110},[257],{"type":18,"value":226},{"type":13,"tag":45,"props":259,"children":260},{"style":77},[261],{"type":18,"value":231},{"type":13,"tag":45,"props":263,"children":264},{"style":110},[265],{"type":18,"value":236},{"type":13,"tag":45,"props":267,"children":268},{"style":77},[269],{"type":18,"value":270},"DisplayKHR",{"type":13,"tag":45,"props":272,"children":273},{"style":52},[274],{"type":18,"value":85},{"type":13,"tag":45,"props":276,"children":277},{"class":47,"line":106},[278,283,287,292,296,300,305],{"type":13,"tag":45,"props":279,"children":280},{"style":52},[281],{"type":18,"value":282}," p_create_info",{"type":13,"tag":45,"props":284,"children":285},{"style":110},[286],{"type":18,"value":226},{"type":13,"tag":45,"props":288,"children":289},{"style":110},[290],{"type":18,"value":291}," *const",{"type":13,"tag":45,"props":293,"children":294},{"style":77},[295],{"type":18,"value":231},{"type":13,"tag":45,"props":297,"children":298},{"style":110},[299],{"type":18,"value":236},{"type":13,"tag":45,"props":301,"children":302},{"style":77},[303],{"type":18,"value":304},"DisplayModeCreateInfoKHR",{"type":13,"tag":45,"props":306,"children":307},{"style":52},[308],{"type":18,"value":85},{"type":13,"tag":45,"props":310,"children":311},{"class":47,"line":135},[312,317,321,325,329,333,338],{"type":13,"tag":45,"props":313,"children":314},{"style":52},[315],{"type":18,"value":316}," p_allocator",{"type":13,"tag":45,"props":318,"children":319},{"style":110},[320],{"type":18,"value":226},{"type":13,"tag":45,"props":322,"children":323},{"style":110},[324],{"type":18,"value":291},{"type":13,"tag":45,"props":326,"children":327},{"style":77},[328],{"type":18,"value":231},{"type":13,"tag":45,"props":330,"children":331},{"style":110},[332],{"type":18,"value":236},{"type":13,"tag":45,"props":334,"children":335},{"style":77},[336],{"type":18,"value":337},"AllocationCallbacks",{"type":13,"tag":45,"props":339,"children":340},{"style":52},[341],{"type":18,"value":85},{"type":13,"tag":45,"props":343,"children":344},{"class":47,"line":161},[345,350,354,359,363,367,372],{"type":13,"tag":45,"props":346,"children":347},{"style":52},[348],{"type":18,"value":349}," p_mode",{"type":13,"tag":45,"props":351,"children":352},{"style":110},[353],{"type":18,"value":226},{"type":13,"tag":45,"props":355,"children":356},{"style":110},[357],{"type":18,"value":358}," *mut",{"type":13,"tag":45,"props":360,"children":361},{"style":77},[362],{"type":18,"value":231},{"type":13,"tag":45,"props":364,"children":365},{"style":110},[366],{"type":18,"value":236},{"type":13,"tag":45,"props":368,"children":369},{"style":77},[370],{"type":18,"value":371},"DisplayModeKHR",{"type":13,"tag":45,"props":373,"children":374},{"style":52},[375],{"type":18,"value":85},{"type":13,"tag":45,"props":377,"children":379},{"class":47,"line":378},7,[380,385,390,394,398,403],{"type":13,"tag":45,"props":381,"children":382},{"style":52},[383],{"type":18,"value":384},") ",{"type":13,"tag":45,"props":386,"children":387},{"style":110},[388],{"type":18,"value":389},"->",{"type":13,"tag":45,"props":391,"children":392},{"style":77},[393],{"type":18,"value":231},{"type":13,"tag":45,"props":395,"children":396},{"style":110},[397],{"type":18,"value":236},{"type":13,"tag":45,"props":399,"children":400},{"style":77},[401],{"type":18,"value":402},"Result",{"type":13,"tag":45,"props":404,"children":405},{"style":52},[406],{"type":18,"value":407},";\n",{"type":13,"tag":409,"props":410,"children":411},"ul",{},[412,430,440,460,479],{"type":13,"tag":413,"props":414,"children":415},"li",{},[416,421,423,428],{"type":13,"tag":41,"props":417,"children":419},{"className":418},[],[420],{"type":18,"value":80},{"type":18,"value":422}," is the physical device associated with\n",{"type":13,"tag":41,"props":424,"children":426},{"className":425},[],[427],{"type":18,"value":99},{"type":18,"value":429},".",{"type":13,"tag":413,"props":431,"children":432},{},[433,438],{"type":13,"tag":41,"props":434,"children":436},{"className":435},[],[437],{"type":18,"value":99},{"type":18,"value":439}," is the display to create an additional mode for.",{"type":13,"tag":413,"props":441,"children":442},{},[443,449,451,458],{"type":13,"tag":41,"props":444,"children":446},{"className":445},[],[447],{"type":18,"value":448},"pCreateInfo",{"type":18,"value":450}," is a pointer to a ",{"type":13,"tag":452,"props":453,"children":455},"a",{"href":454},"/man/VkDisplayModeCreateInfoKHR",[456],{"type":18,"value":457},"VkDisplayModeCreateInfoKHR",{"type":18,"value":459},"\nstructure describing the new mode to create.",{"type":13,"tag":413,"props":461,"children":462},{},[463,469,471,477],{"type":13,"tag":41,"props":464,"children":466},{"className":465},[],[467],{"type":18,"value":468},"pAllocator",{"type":18,"value":470}," is the allocator used for host memory allocated for the\ndisplay mode object when there is no more specific allocator available\n(see ",{"type":13,"tag":452,"props":472,"children":474},{"href":473},"/chapters/memory#memory-allocation",[475],{"type":18,"value":476},"Memory Allocation",{"type":18,"value":478},").",{"type":13,"tag":413,"props":480,"children":481},{},[482,488,489,495],{"type":13,"tag":41,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":487},"pMode",{"type":18,"value":450},{"type":13,"tag":452,"props":490,"children":492},{"href":491},"/man/VkDisplayModeKHR",[493],{"type":18,"value":494},"VkDisplayModeKHR",{"type":18,"value":496}," handle in which the\nmode created is returned.",{"type":13,"tag":498,"props":499,"children":501},"validity-group",{"name":500},"Valid Usage (Implicit)",[502,531,555,579,620,643],{"type":13,"tag":503,"props":504,"children":506},"validity-field",{"name":505},"VUID-vkCreateDisplayModeKHR-physicalDevice-parameter",[507],{"type":13,"tag":14,"props":508,"children":509},{},[510,515,517,521,523,529],{"type":13,"tag":41,"props":511,"children":513},{"className":512},[],[514],{"type":18,"value":80},{"type":18,"value":516}," ",{"type":13,"tag":21,"props":518,"children":520},{"type":519},"must",[],{"type":18,"value":522}," be a valid ",{"type":13,"tag":452,"props":524,"children":526},{"href":525},"/man/VkPhysicalDevice",[527],{"type":18,"value":528},"VkPhysicalDevice",{"type":18,"value":530}," handle",{"type":13,"tag":503,"props":532,"children":534},{"name":533},"VUID-vkCreateDisplayModeKHR-display-parameter",[535],{"type":13,"tag":14,"props":536,"children":537},{},[538,543,544,547,548,554],{"type":13,"tag":41,"props":539,"children":541},{"className":540},[],[542],{"type":18,"value":99},{"type":18,"value":516},{"type":13,"tag":21,"props":545,"children":546},{"type":519},[],{"type":18,"value":522},{"type":13,"tag":452,"props":549,"children":551},{"href":550},"/man/VkDisplayKHR",[552],{"type":18,"value":553},"VkDisplayKHR",{"type":18,"value":530},{"type":13,"tag":503,"props":556,"children":558},{"name":557},"VUID-vkCreateDisplayModeKHR-pCreateInfo-parameter",[559],{"type":13,"tag":14,"props":560,"children":561},{},[562,567,568,571,573,577],{"type":13,"tag":41,"props":563,"children":565},{"className":564},[],[566],{"type":18,"value":448},{"type":18,"value":516},{"type":13,"tag":21,"props":569,"children":570},{"type":519},[],{"type":18,"value":572}," be a valid pointer to a valid ",{"type":13,"tag":452,"props":574,"children":575},{"href":454},[576],{"type":18,"value":457},{"type":18,"value":578}," structure",{"type":13,"tag":503,"props":580,"children":582},{"name":581},"VUID-vkCreateDisplayModeKHR-pAllocator-parameter",[583],{"type":13,"tag":14,"props":584,"children":585},{},[586,588,593,595,601,603,608,609,612,613,619],{"type":18,"value":587},"If ",{"type":13,"tag":41,"props":589,"children":591},{"className":590},[],[592],{"type":18,"value":468},{"type":18,"value":594}," is not ",{"type":13,"tag":41,"props":596,"children":598},{"className":597},[],[599],{"type":18,"value":600},"NULL",{"type":18,"value":602},", ",{"type":13,"tag":41,"props":604,"children":606},{"className":605},[],[607],{"type":18,"value":468},{"type":18,"value":516},{"type":13,"tag":21,"props":610,"children":611},{"type":519},[],{"type":18,"value":572},{"type":13,"tag":452,"props":614,"children":616},{"href":615},"/man/VkAllocationCallbacks",[617],{"type":18,"value":618},"VkAllocationCallbacks",{"type":18,"value":578},{"type":13,"tag":503,"props":621,"children":623},{"name":622},"VUID-vkCreateDisplayModeKHR-pMode-parameter",[624],{"type":13,"tag":14,"props":625,"children":626},{},[627,632,633,636,638,642],{"type":13,"tag":41,"props":628,"children":630},{"className":629},[],[631],{"type":18,"value":487},{"type":18,"value":516},{"type":13,"tag":21,"props":634,"children":635},{"type":519},[],{"type":18,"value":637}," be a valid pointer to a ",{"type":13,"tag":452,"props":639,"children":640},{"href":491},[641],{"type":18,"value":494},{"type":18,"value":530},{"type":13,"tag":503,"props":644,"children":646},{"name":645},"VUID-vkCreateDisplayModeKHR-display-parent",[647],{"type":13,"tag":14,"props":648,"children":649},{},[650,655,656,659,661],{"type":13,"tag":41,"props":651,"children":653},{"className":652},[],[654],{"type":18,"value":99},{"type":18,"value":516},{"type":13,"tag":21,"props":657,"children":658},{"type":519},[],{"type":18,"value":660}," have been created, allocated, or retrieved from ",{"type":13,"tag":41,"props":662,"children":664},{"className":663},[],[665],{"type":18,"value":80},{"type":13,"tag":667,"props":668,"children":670},"validity-box",{"name":669},"Host Synchronization",[671],{"type":13,"tag":409,"props":672,"children":673},{},[674],{"type":13,"tag":413,"props":675,"children":676},{},[677,679,684,685,688],{"type":18,"value":678},"Host access to ",{"type":13,"tag":41,"props":680,"children":682},{"className":681},[],[683],{"type":18,"value":99},{"type":18,"value":516},{"type":13,"tag":21,"props":686,"children":687},{"type":519},[],{"type":18,"value":689}," be externally synchronized\n::",{"type":13,"tag":691,"props":692,"children":693},"style",{},[694],{"type":18,"value":695},"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":38,"searchDepth":68,"depth":68,"links":697},[],"markdown",1725732612755]