Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 1936

qtbase5-doc-5.12.6-2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qvulkanfunctions.cpp -->
  <title>QVulkanFunctions Class | Qt GUI 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QVulkanFunctions</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QVulkanFunctions Class</h1>
<!-- $$$QVulkanFunctions-brief -->
<p>The <a href="qvulkanfunctions.html">QVulkanFunctions</a> class provides cross-platform access to the instance level core Vulkan 1.0 API. <a href="#details">More...</a></p>
<!-- @@@QVulkanFunctions -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QVulkanFunctions&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.10</td></tr></table></div><ul>
<li><a href="qvulkanfunctions-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#dtor.QVulkanFunctions">~QVulkanFunctions</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkCreateDevice">vkCreateDevice</a></b>(<i>int</i>, <i>const int *</i>, <i>const int *</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkEnumerateDeviceExtensionProperties">vkEnumerateDeviceExtensionProperties</a></b>(<i>int</i>, <i>const char *</i>, <i>uint32_t *</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkEnumerateDeviceLayerProperties">vkEnumerateDeviceLayerProperties</a></b>(<i>int</i>, <i>uint32_t *</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkEnumerateInstanceExtensionProperties">vkEnumerateInstanceExtensionProperties</a></b>(<i>const char *</i>, <i>uint32_t *</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkEnumerateInstanceLayerProperties">vkEnumerateInstanceLayerProperties</a></b>(<i>uint32_t *</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkEnumeratePhysicalDevices">vkEnumeratePhysicalDevices</a></b>(<i>int</i>, <i>uint32_t *</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetDeviceProcAddr">vkGetDeviceProcAddr</a></b>(<i>int</i>, <i>const char *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceFeatures">vkGetPhysicalDeviceFeatures</a></b>(int <i>physicalDevice</i>, int *<i>pFeatures</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceFormatProperties">vkGetPhysicalDeviceFormatProperties</a></b>(int <i>physicalDevice</i>, int <i>format</i>, int *<i>pFormatProperties</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceImageFormatProperties">vkGetPhysicalDeviceImageFormatProperties</a></b>(<i>int</i>, <i>int</i>, <i>int</i>, <i>int</i>, <i>int</i>, <i>int</i>, <i>int *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceMemoryProperties">vkGetPhysicalDeviceMemoryProperties</a></b>(int <i>physicalDevice</i>, int *<i>pMemoryProperties</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceProperties">vkGetPhysicalDeviceProperties</a></b>(int <i>physicalDevice</i>, int *<i>pProperties</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceQueueFamilyProperties">vkGetPhysicalDeviceQueueFamilyProperties</a></b>(int <i>physicalDevice</i>, uint32_t *<i>pQueueFamilyPropertyCount</i>, int *<i>pQueueFamilyProperties</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvulkanfunctions.html#vkGetPhysicalDeviceSparseImageFormatProperties">vkGetPhysicalDeviceSparseImageFormatProperties</a></b>(int <i>physicalDevice</i>, int <i>format</i>, int <i>type</i>, int <i>samples</i>, int <i>usage</i>, int <i>tiling</i>, uint32_t *<i>pPropertyCount</i>, int *<i>pProperties</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QVulkanFunctions-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qvulkanfunctions.html">QVulkanFunctions</a> class provides cross-platform access to the instance level core Vulkan 1.0 API.</p>
<p>Qt and Qt applications do not link to any Vulkan libraries by default. Instead, all functions are resolved dynamically at run time. Each <a href="qvulkaninstance.html">QVulkanInstance</a> provides a <a href="qvulkanfunctions.html">QVulkanFunctions</a> object retrievable via <a href="qvulkaninstance.html#functions">QVulkanInstance::functions</a>(). This does not contain device level functions in order to avoid the potential overhead of an internal dispatching. Instead, functions that rely on a device, or a dispatchable child object of a device, are exposed via <a href="qvulkandevicefunctions.html">QVulkanDeviceFunctions</a> and <a href="qvulkaninstance.html#deviceFunctions">QVulkanInstance::deviceFunctions</a>(). <a href="qvulkanfunctions.html">QVulkanFunctions</a> and <a href="qvulkandevicefunctions.html">QVulkanDeviceFunctions</a> together provides access to the full core Vulkan API, excluding any extensions.</p>
<p><b>Note: </b><a href="qvulkanfunctions.html">QVulkanFunctions</a> instances cannot be constructed directly.</p><p>The typical usage is the following:</p>
<pre class="cpp">

      <span class="type">void</span> Window<span class="operator">::</span>render()
      {
          <span class="type"><a href="qvulkaninstance.html">QVulkanInstance</a></span> <span class="operator">*</span>inst <span class="operator">=</span> vulkanInstance();
          <span class="type">QVulkanFunctions</span> <span class="operator">*</span>f <span class="operator">=</span> inst<span class="operator">-</span><span class="operator">&gt;</span>functions();
          <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
          VkResult err <span class="operator">=</span> f<span class="operator">-</span><span class="operator">&gt;</span>vkAllocateCommandBuffers(device<span class="operator">,</span> <span class="operator">&amp;</span>cmdBufInfo<span class="operator">,</span> <span class="operator">&amp;</span>cmdBuf);
          <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
      }

</pre>
<p><b>Note: </b>Windowing system interface (WSI) specifics and extensions are excluded. This class only covers core Vulkan commands, with the exception of instance creation, destruction, and function resolving, since such functionality is covered by <a href="qvulkaninstance.html">QVulkanInstance</a> itself.</p><p>To access additional functions, applications can use <a href="qvulkaninstance.html#getInstanceProcAddr">QVulkanInstance::getInstanceProcAddr</a>() and <a href="qvulkanfunctions.html#vkGetDeviceProcAddr">vkGetDeviceProcAddr</a>(). Applications can also decide to link to a Vulkan library directly, as platforms with an appropriate loader will typically export function symbols for the core commands. See <a href="https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetInstanceProcAddr.html">the man page for vkGetInstanceProcAddr</a> for more information.</p>
</div>
<p><b>See also </b><a href="qvulkaninstance.html">QVulkanInstance</a>, <a href="qvulkandevicefunctions.html">QVulkanDeviceFunctions</a>, <a href="qwindow.html#setVulkanInstance">QWindow::setVulkanInstance</a>(), and <a href="qwindow.html#setSurfaceType">QWindow::setSurfaceType</a>().</p>
<!-- @@@QVulkanFunctions -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QVulkanFunctions[overload1]$$$~QVulkanFunctions -->
<h3 class="fn" id="dtor.QVulkanFunctions"><a name="dtor.QVulkanFunctions"></a>QVulkanFunctions::<span class="name">~QVulkanFunctions</span>()</h3>
<p>Destroys the instance of QVulkanFunctions.</p><!-- @@@~QVulkanFunctions -->
<!-- $$$vkCreateDevice[overload1]$$$vkCreateDeviceintconstint*constint*int* -->
<h3 class="fn" id="vkCreateDevice"><a name="vkCreateDevice"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkCreateDevice</span>(<i>int</i>, <i>const int *</i>, <i>const int *</i>, <i>int *</i>)</h3>
<!-- @@@vkCreateDevice -->
<!-- $$$vkEnumerateDeviceExtensionProperties[overload1]$$$vkEnumerateDeviceExtensionPropertiesintconstchar*uint32_t*int* -->
<h3 class="fn" id="vkEnumerateDeviceExtensionProperties"><a name="vkEnumerateDeviceExtensionProperties"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkEnumerateDeviceExtensionProperties</span>(<i>int</i>, <i>const char *</i>, <i>uint32_t *</i>, <i>int *</i>)</h3>
<!-- @@@vkEnumerateDeviceExtensionProperties -->
<!-- $$$vkEnumerateDeviceLayerProperties[overload1]$$$vkEnumerateDeviceLayerPropertiesintuint32_t*int* -->
<h3 class="fn" id="vkEnumerateDeviceLayerProperties"><a name="vkEnumerateDeviceLayerProperties"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkEnumerateDeviceLayerProperties</span>(<i>int</i>, <i>uint32_t *</i>, <i>int *</i>)</h3>
<!-- @@@vkEnumerateDeviceLayerProperties -->
<!-- $$$vkEnumerateInstanceExtensionProperties[overload1]$$$vkEnumerateInstanceExtensionPropertiesconstchar*uint32_t*int* -->
<h3 class="fn" id="vkEnumerateInstanceExtensionProperties"><a name="vkEnumerateInstanceExtensionProperties"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkEnumerateInstanceExtensionProperties</span>(<i>const char *</i>, <i>uint32_t *</i>, <i>int *</i>)</h3>
<!-- @@@vkEnumerateInstanceExtensionProperties -->
<!-- $$$vkEnumerateInstanceLayerProperties[overload1]$$$vkEnumerateInstanceLayerPropertiesuint32_t*int* -->
<h3 class="fn" id="vkEnumerateInstanceLayerProperties"><a name="vkEnumerateInstanceLayerProperties"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkEnumerateInstanceLayerProperties</span>(<i>uint32_t *</i>, <i>int *</i>)</h3>
<!-- @@@vkEnumerateInstanceLayerProperties -->
<!-- $$$vkEnumeratePhysicalDevices[overload1]$$$vkEnumeratePhysicalDevicesintuint32_t*int* -->
<h3 class="fn" id="vkEnumeratePhysicalDevices"><a name="vkEnumeratePhysicalDevices"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkEnumeratePhysicalDevices</span>(<i>int</i>, <i>uint32_t *</i>, <i>int *</i>)</h3>
<!-- @@@vkEnumeratePhysicalDevices -->
<!-- $$$vkGetDeviceProcAddr[overload1]$$$vkGetDeviceProcAddrintconstchar* -->
<h3 class="fn" id="vkGetDeviceProcAddr"><a name="vkGetDeviceProcAddr"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkGetDeviceProcAddr</span>(<i>int</i>, <i>const char *</i>)</h3>
<!-- @@@vkGetDeviceProcAddr -->
<!-- $$$vkGetPhysicalDeviceFeatures[overload1]$$$vkGetPhysicalDeviceFeaturesintint* -->
<h3 class="fn" id="vkGetPhysicalDeviceFeatures"><a name="vkGetPhysicalDeviceFeatures"></a><span class="type">void</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceFeatures</span>(<span class="type">int</span> <i>physicalDevice</i>, <span class="type">int</span> *<i>pFeatures</i>)</h3>
<!-- @@@vkGetPhysicalDeviceFeatures -->
<!-- $$$vkGetPhysicalDeviceFormatProperties[overload1]$$$vkGetPhysicalDeviceFormatPropertiesintintint* -->
<h3 class="fn" id="vkGetPhysicalDeviceFormatProperties"><a name="vkGetPhysicalDeviceFormatProperties"></a><span class="type">void</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceFormatProperties</span>(<span class="type">int</span> <i>physicalDevice</i>, <span class="type">int</span> <i>format</i>, <span class="type">int</span> *<i>pFormatProperties</i>)</h3>
<!-- @@@vkGetPhysicalDeviceFormatProperties -->
<!-- $$$vkGetPhysicalDeviceImageFormatProperties[overload1]$$$vkGetPhysicalDeviceImageFormatPropertiesintintintintintintint* -->
<h3 class="fn" id="vkGetPhysicalDeviceImageFormatProperties"><a name="vkGetPhysicalDeviceImageFormatProperties"></a><span class="type">int</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceImageFormatProperties</span>(<i>int</i>, <i>int</i>, <i>int</i>, <i>int</i>, <i>int</i>, <i>int</i>, <i>int *</i>)</h3>
<!-- @@@vkGetPhysicalDeviceImageFormatProperties -->
<!-- $$$vkGetPhysicalDeviceMemoryProperties[overload1]$$$vkGetPhysicalDeviceMemoryPropertiesintint* -->
<h3 class="fn" id="vkGetPhysicalDeviceMemoryProperties"><a name="vkGetPhysicalDeviceMemoryProperties"></a><span class="type">void</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceMemoryProperties</span>(<span class="type">int</span> <i>physicalDevice</i>, <span class="type">int</span> *<i>pMemoryProperties</i>)</h3>
<!-- @@@vkGetPhysicalDeviceMemoryProperties -->
<!-- $$$vkGetPhysicalDeviceProperties[overload1]$$$vkGetPhysicalDevicePropertiesintint* -->
<h3 class="fn" id="vkGetPhysicalDeviceProperties"><a name="vkGetPhysicalDeviceProperties"></a><span class="type">void</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceProperties</span>(<span class="type">int</span> <i>physicalDevice</i>, <span class="type">int</span> *<i>pProperties</i>)</h3>
<!-- @@@vkGetPhysicalDeviceProperties -->
<!-- $$$vkGetPhysicalDeviceQueueFamilyProperties[overload1]$$$vkGetPhysicalDeviceQueueFamilyPropertiesintuint32_t*int* -->
<h3 class="fn" id="vkGetPhysicalDeviceQueueFamilyProperties"><a name="vkGetPhysicalDeviceQueueFamilyProperties"></a><span class="type">void</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceQueueFamilyProperties</span>(<span class="type">int</span> <i>physicalDevice</i>, <span class="type">uint32_t</span> *<i>pQueueFamilyPropertyCount</i>, <span class="type">int</span> *<i>pQueueFamilyProperties</i>)</h3>
<!-- @@@vkGetPhysicalDeviceQueueFamilyProperties -->
<!-- $$$vkGetPhysicalDeviceSparseImageFormatProperties[overload1]$$$vkGetPhysicalDeviceSparseImageFormatPropertiesintintintintintintuint32_t*int* -->
<h3 class="fn" id="vkGetPhysicalDeviceSparseImageFormatProperties"><a name="vkGetPhysicalDeviceSparseImageFormatProperties"></a><span class="type">void</span> QVulkanFunctions::<span class="name">vkGetPhysicalDeviceSparseImageFormatProperties</span>(<span class="type">int</span> <i>physicalDevice</i>, <span class="type">int</span> <i>format</i>, <span class="type">int</span> <i>type</i>, <span class="type">int</span> <i>samples</i>, <span class="type">int</span> <i>usage</i>, <span class="type">int</span> <i>tiling</i>, <span class="type">uint32_t</span> *<i>pPropertyCount</i>, <span class="type">int</span> *<i>pProperties</i>)</h3>
<!-- @@@vkGetPhysicalDeviceSparseImageFormatProperties -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>