[{"data":1,"prerenderedAt":480},["ShallowReactive",2],{"9s6wxOfnui":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":479,"_id":4},"VkImportScreenBufferInfoQNX","Import memory from a QNX Screen buffer","VK_QNX_external_memory_screen_buffer","structs",[],{"type":10,"children":11,"toc":477},"root",[12,52,270,339,364,443,471],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,34,36,43,45,50],{"type":18,"value":19},"text","To import memory created outside of the current Vulkan instance from a QNX\nScreen buffer, add a ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure to the\n",{"type":13,"tag":21,"props":29,"children":31},{"className":30},[],[32],{"type":18,"value":33},"pNext",{"type":18,"value":35}," chain of the ",{"type":13,"tag":37,"props":38,"children":40},"a",{"href":39},"/man/VkMemoryAllocateInfo",[41],{"type":18,"value":42},"VkMemoryAllocateInfo",{"type":18,"value":44}," structure.\nThe ",{"type":13,"tag":21,"props":46,"children":48},{"className":47},[],[49],{"type":18,"value":4},{"type":18,"value":51}," structure is defined as:",{"type":13,"tag":53,"props":54,"children":55},"code-group",{},[56,152],{"type":13,"tag":57,"props":58,"children":64},"pre",{"className":59,"code":60,"filename":61,"language":62,"meta":63,"style":63},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkImportScreenBufferInfoQNX {\n VkStructureType sType;\n const void* pNext;\n struct _screen_buffer* buffer;\n} VkImportScreenBufferInfoQNX;\n","C","c","",[65],{"type":13,"tag":21,"props":66,"children":67},{"__ignoreMap":63},[68,91,100,119,143],{"type":13,"tag":69,"props":70,"children":73},"span",{"class":71,"line":72},"line",1,[74,80,85],{"type":13,"tag":69,"props":75,"children":77},{"style":76},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[78],{"type":18,"value":79},"typedef",{"type":13,"tag":69,"props":81,"children":82},{"style":76},[83],{"type":18,"value":84}," struct",{"type":13,"tag":69,"props":86,"children":88},{"style":87},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[89],{"type":18,"value":90}," VkImportScreenBufferInfoQNX {\n",{"type":13,"tag":69,"props":92,"children":94},{"class":71,"line":93},2,[95],{"type":13,"tag":69,"props":96,"children":97},{"style":87},[98],{"type":18,"value":99}," VkStructureType sType;\n",{"type":13,"tag":69,"props":101,"children":103},{"class":71,"line":102},3,[104,109,114],{"type":13,"tag":69,"props":105,"children":106},{"style":76},[107],{"type":18,"value":108}," const",{"type":13,"tag":69,"props":110,"children":111},{"style":76},[112],{"type":18,"value":113}," void*",{"type":13,"tag":69,"props":115,"children":116},{"style":87},[117],{"type":18,"value":118}," pNext;\n",{"type":13,"tag":69,"props":120,"children":122},{"class":71,"line":121},4,[123,128,133,138],{"type":13,"tag":69,"props":124,"children":125},{"style":76},[126],{"type":18,"value":127}," struct",{"type":13,"tag":69,"props":129,"children":130},{"style":87},[131],{"type":18,"value":132}," _screen_buffer",{"type":13,"tag":69,"props":134,"children":135},{"style":76},[136],{"type":18,"value":137},"*",{"type":13,"tag":69,"props":139,"children":140},{"style":87},[141],{"type":18,"value":142}," buffer;\n",{"type":13,"tag":69,"props":144,"children":146},{"class":71,"line":145},5,[147],{"type":13,"tag":69,"props":148,"children":149},{"style":87},[150],{"type":18,"value":151},"} VkImportScreenBufferInfoQNX;\n",{"type":13,"tag":57,"props":153,"children":158},{"className":154,"code":155,"filename":156,"language":157,"meta":63,"style":63},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ImportScreenBufferInfoQNX {\n s_type: vk::StructureType,\n p_next: *const c_void,\n buffer: *mut _screen_buffer,\n}\n","Rust","rs",[159],{"type":13,"tag":21,"props":160,"children":161},{"__ignoreMap":63},[162,185,218,240,262],{"type":13,"tag":69,"props":163,"children":164},{"class":71,"line":72},[165,170,174,180],{"type":13,"tag":69,"props":166,"children":167},{"style":76},[168],{"type":18,"value":169},"pub",{"type":13,"tag":69,"props":171,"children":172},{"style":76},[173],{"type":18,"value":84},{"type":13,"tag":69,"props":175,"children":177},{"style":176},"--shiki-default:#953800;--shiki-dark:#FFA657",[178],{"type":18,"value":179}," ImportScreenBufferInfoQNX",{"type":13,"tag":69,"props":181,"children":182},{"style":87},[183],{"type":18,"value":184}," {\n",{"type":13,"tag":69,"props":186,"children":187},{"class":71,"line":93},[188,193,198,203,208,213],{"type":13,"tag":69,"props":189,"children":190},{"style":87},[191],{"type":18,"value":192}," s_type",{"type":13,"tag":69,"props":194,"children":195},{"style":76},[196],{"type":18,"value":197},":",{"type":13,"tag":69,"props":199,"children":200},{"style":176},[201],{"type":18,"value":202}," vk",{"type":13,"tag":69,"props":204,"children":205},{"style":76},[206],{"type":18,"value":207},"::",{"type":13,"tag":69,"props":209,"children":210},{"style":176},[211],{"type":18,"value":212},"StructureType",{"type":13,"tag":69,"props":214,"children":215},{"style":87},[216],{"type":18,"value":217},",\n",{"type":13,"tag":69,"props":219,"children":220},{"class":71,"line":102},[221,226,230,235],{"type":13,"tag":69,"props":222,"children":223},{"style":87},[224],{"type":18,"value":225}," p_next",{"type":13,"tag":69,"props":227,"children":228},{"style":76},[229],{"type":18,"value":197},{"type":13,"tag":69,"props":231,"children":232},{"style":76},[233],{"type":18,"value":234}," *const",{"type":13,"tag":69,"props":236,"children":237},{"style":87},[238],{"type":18,"value":239}," c_void,\n",{"type":13,"tag":69,"props":241,"children":242},{"class":71,"line":121},[243,248,252,257],{"type":13,"tag":69,"props":244,"children":245},{"style":87},[246],{"type":18,"value":247}," buffer",{"type":13,"tag":69,"props":249,"children":250},{"style":76},[251],{"type":18,"value":197},{"type":13,"tag":69,"props":253,"children":254},{"style":76},[255],{"type":18,"value":256}," *mut",{"type":13,"tag":69,"props":258,"children":259},{"style":87},[260],{"type":18,"value":261}," _screen_buffer,\n",{"type":13,"tag":69,"props":263,"children":264},{"class":71,"line":145},[265],{"type":13,"tag":69,"props":266,"children":267},{"style":87},[268],{"type":18,"value":269},"}\n",{"type":13,"tag":271,"props":272,"children":273},"ul",{},[274,294,312],{"type":13,"tag":275,"props":276,"children":277},"li",{},[278,284,286,292],{"type":13,"tag":21,"props":279,"children":281},{"className":280},[],[282],{"type":18,"value":283},"sType",{"type":18,"value":285}," is a ",{"type":13,"tag":37,"props":287,"children":289},{"href":288},"/man/VkStructureType",[290],{"type":18,"value":291},"VkStructureType",{"type":18,"value":293}," value identifying this structure.",{"type":13,"tag":275,"props":295,"children":296},{},[297,302,304,310],{"type":13,"tag":21,"props":298,"children":300},{"className":299},[],[301],{"type":18,"value":33},{"type":18,"value":303}," is ",{"type":13,"tag":21,"props":305,"children":307},{"className":306},[],[308],{"type":18,"value":309},"NULL",{"type":18,"value":311}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":275,"props":313,"children":314},{},[315,321,323,329,331,337],{"type":13,"tag":21,"props":316,"children":318},{"className":317},[],[319],{"type":18,"value":320},"buffer",{"type":18,"value":322}," is a pointer to a ",{"type":13,"tag":21,"props":324,"children":326},{"className":325},[],[327],{"type":18,"value":328},"struct",{"type":18,"value":330}," ",{"type":13,"tag":21,"props":332,"children":334},{"className":333},[],[335],{"type":18,"value":336},"_screen_buffer",{"type":18,"value":338},", the QNX\nScreen buffer to import",{"type":13,"tag":14,"props":340,"children":341},{},[342,344,349,351,355,357,362],{"type":18,"value":343},"The implementation ",{"type":13,"tag":345,"props":346,"children":348},"normative",{"type":347},"may",[],{"type":18,"value":350}," not acquire a reference to the imported Screen\nbuffer.\nTherefore, the application ",{"type":13,"tag":345,"props":352,"children":354},{"type":353},"must",[],{"type":18,"value":356}," ensure that the object referred to by\n",{"type":13,"tag":21,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":320},{"type":18,"value":363}," stays valid as long as the device memory to which it is\nimported is being used.",{"type":13,"tag":365,"props":366,"children":368},"validity-group",{"name":367},"Valid Usage",[369,412],{"type":13,"tag":370,"props":371,"children":373},"validity-field",{"name":372},"VUID-VkImportScreenBufferInfoQNX-buffer-08966",[374],{"type":13,"tag":14,"props":375,"children":376},{},[377,379,384,386,391,393,396,398,404,406],{"type":18,"value":378},"If ",{"type":13,"tag":21,"props":380,"children":382},{"className":381},[],[383],{"type":18,"value":320},{"type":18,"value":385}," is not ",{"type":13,"tag":21,"props":387,"children":389},{"className":388},[],[390],{"type":18,"value":309},{"type":18,"value":392},", QNX Screen Buffers ",{"type":13,"tag":345,"props":394,"children":395},{"type":353},[],{"type":18,"value":397}," be supported for\nimport, as reported by ",{"type":13,"tag":37,"props":399,"children":401},{"href":400},"/man/VkExternalImageFormatProperties",[402],{"type":18,"value":403},"VkExternalImageFormatProperties",{"type":18,"value":405}," or\n",{"type":13,"tag":37,"props":407,"children":409},{"href":408},"/man/VkExternalBufferProperties",[410],{"type":18,"value":411},"VkExternalBufferProperties",{"type":13,"tag":370,"props":413,"children":415},{"name":414},"VUID-VkImportScreenBufferInfoQNX-buffer-08967",[416],{"type":13,"tag":14,"props":417,"children":418},{},[419,424,425,430,432,435,437],{"type":13,"tag":21,"props":420,"children":422},{"className":421},[],[423],{"type":18,"value":320},{"type":18,"value":385},{"type":13,"tag":21,"props":426,"children":428},{"className":427},[],[429],{"type":18,"value":309},{"type":18,"value":431},", it ",{"type":13,"tag":345,"props":433,"children":434},{"type":353},[],{"type":18,"value":436}," be a pointer to\n",{"type":13,"tag":37,"props":438,"children":440},{"href":439},"/chapters/memory#memory-external-screen-buffer-validity",[441],{"type":18,"value":442},"valid QNX Screen buffer",{"type":13,"tag":365,"props":444,"children":446},{"name":445},"Valid Usage (Implicit)",[447],{"type":13,"tag":370,"props":448,"children":450},{"name":449},"VUID-VkImportScreenBufferInfoQNX-sType-sType",[451],{"type":13,"tag":14,"props":452,"children":453},{},[454,459,460,463,465],{"type":13,"tag":21,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":283},{"type":18,"value":330},{"type":13,"tag":345,"props":461,"children":462},{"type":353},[],{"type":18,"value":464}," be ",{"type":13,"tag":21,"props":466,"children":468},{"className":467},[],[469],{"type":18,"value":470},"VK_STRUCTURE_TYPE_IMPORT_SCREEN_BUFFER_INFO_QNX",{"type":13,"tag":472,"props":473,"children":474},"style",{},[475],{"type":18,"value":476},"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":63,"searchDepth":93,"depth":93,"links":478},[],"markdown",1725732559794]