text
stringlengths
2
1.04M
meta
dict
namespace oless { namespace excel { namespace records { class CF12Record : public Record { public: CF12Record(unsigned short type, std::vector<uint8_t> data) : Record(type, data) { } }; } } }
{ "content_hash": "4e5f75c53874f18f28c10f556b382e78", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 85, "avg_line_length": 16.692307692307693, "alnum_prop": 0.631336405529954, "repo_name": "DBHeise/fileid", "id": "30b65c66d10d75ed767e57146345c565842fdc46", "size": "254", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "fileid/document/excel/records/CF12Record.hpp", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "1263238" }, { "name": "Makefile", "bytes": "1186" }, { "name": "PowerShell", "bytes": "17765" }, { "name": "Python", "bytes": "2380" }, { "name": "Shell", "bytes": "209" } ], "symlink_target": "" }
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>thread_pool::basic_executor_type::context</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../thread_pool__basic_executor_type.html" title="thread_pool::basic_executor_type"> <link rel="prev" href="connect.html" title="thread_pool::basic_executor_type::connect"> <link rel="next" href="defer.html" title="thread_pool::basic_executor_type::defer"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="connect.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool__basic_executor_type.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="defer.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="boost_asio.reference.thread_pool__basic_executor_type.context"></a><a class="link" href="context.html" title="thread_pool::basic_executor_type::context">thread_pool::basic_executor_type::context</a> </h4></div></div></div> <p> <a class="indexterm" name="boost_asio.indexterm.thread_pool__basic_executor_type.context"></a> Obtain the underlying execution context. </p> <pre class="programlisting">thread_pool &amp; context() const; </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2003-2021 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="connect.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool__basic_executor_type.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="defer.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
{ "content_hash": "33c3af6d4cadd90faf930e8719127f1c", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 442, "avg_line_length": 64.54901960784314, "alnum_prop": 0.6327460510328068, "repo_name": "davehorton/drachtio-server", "id": "eb13157f8b4baa070a9e0842c4da1b66cca74216", "size": "3293", "binary": false, "copies": "2", "ref": "refs/heads/main", "path": "deps/boost_1_77_0/doc/html/boost_asio/reference/thread_pool__basic_executor_type/context.html", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "662596" }, { "name": "Dockerfile", "bytes": "1330" }, { "name": "JavaScript", "bytes": "60639" }, { "name": "M4", "bytes": "35273" }, { "name": "Makefile", "bytes": "5960" }, { "name": "Shell", "bytes": "47298" } ], "symlink_target": "" }
""" Objects shared by all the test cases """ import os import glob import unittest import numpy as np class BaseTestCase(unittest.TestCase): """ Superclass for all neukrill-net test cases """ @classmethod def setUpClass(self): self.test_dir = os.path.join('neukrill_net', 'tests', 'resources') self.classes = ('acantharia_protist', 'acantharia_protist_halo', 'artifacts_edge', 'fecal_pellet') self.image_fname_dict = {'test': sorted(glob.glob(os.path.join(self.test_dir, 'test', '*.jpg'))), 'train': {class_dir: sorted(glob.glob(os.path.join(self.test_dir, 'train', class_dir, '*.jpg'))) \ for class_dir in self.classes}} def __init__(self, *args, **kw): """Add test for numpy type""" # super(self).__init__(*args, **kw) # Only works on Python3 super(BaseTestCase, self).__init__(*args, **kw) # Works on Python2 self.addTypeEqualityFunc(np.ndarray, self.assertNumpyEqual) def IsNumpy(self, x): return type(x).__module__ == np.__name__ def assertNumpyEqual(self, x, y, msg=None): if not self.IsNumpy(x) or not self.IsNumpy(y): # This is how you are supposed to do it # but does not work for me in Python 2.7 self.failureException("This isn't a numpy array. %s" % msg) # This always works self.fail("This isn't a numpy array. %s" % msg) if not x.shape == y.shape: # This is how you are supposed to do it # but does not work for me in Python 2.7 self.failureException("Shapes don't match. %s" % msg) # This always works self.fail("Shapes don't match. %s" % msg) if not np.allclose(x, y): # This is how you are supposed to do it # but does not work for me in Python 2.7 self.failureException("Elements don't match. %s" % msg) # This always works self.fail("Elements don't match. %s" % msg) def assertListOfNumpyArraysEqual(self, x, y): if len(x) != len(y): raise AssertionError("Number of elements don't match") for index in range(len(x)): if type(x[index]) != type(y[index]): raise AssertionError("Class types don't match") if self.IsNumpy(type(x[index])): self.assertNumpyEqual(self, x[index], y[index]) else: self.assertEqual(x[index], y[index])
{ "content_hash": "2733b70b7b8ef823166309dae15ded3b", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 89, "avg_line_length": 40.054794520547944, "alnum_prop": 0.49316005471956226, "repo_name": "Neuroglycerin/neukrill-net-tools", "id": "a921c115edf46e9e1e9cd00a7e63474366000685", "size": "2946", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "neukrill_net/tests/base.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "269195" }, { "name": "Shell", "bytes": "5650" } ], "symlink_target": "" }
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNet.Identity; using Microsoft.Owin.Security; namespace EZOper.TechTester.OWINOAuthWebSI.Areas.Home { public class IndexViewModel { public bool HasPassword { get; set; } public IList<UserLoginInfo> Logins { get; set; } public string PhoneNumber { get; set; } public bool TwoFactor { get; set; } public bool BrowserRemembered { get; set; } } public class ManageLoginsViewModel { public IList<UserLoginInfo> CurrentLogins { get; set; } public IList<AuthenticationDescription> OtherLogins { get; set; } } public class FactorViewModel { public string Purpose { get; set; } } public class SetPasswordViewModel { [Required] [StringLength(100, ErrorMessage = "{0} 必须至少包含 {2} 个字符。", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "新密码")] public string NewPassword { get; set; } [DataType(DataType.Password)] [Display(Name = "确认新密码")] [Compare("NewPassword", ErrorMessage = "新密码和确认密码不匹配。")] public string ConfirmPassword { get; set; } } public class ChangePasswordViewModel { [Required] [DataType(DataType.Password)] [Display(Name = "当前密码")] public string OldPassword { get; set; } [Required] [StringLength(100, ErrorMessage = "{0} 必须至少包含 {2} 个字符。", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "新密码")] public string NewPassword { get; set; } [DataType(DataType.Password)] [Display(Name = "确认新密码")] [Compare("NewPassword", ErrorMessage = "新密码和确认密码不匹配。")] public string ConfirmPassword { get; set; } } public class AddPhoneNumberViewModel { [Required] [Phone] [Display(Name = "电话号码")] public string Number { get; set; } } public class VerifyPhoneNumberViewModel { [Required] [Display(Name = "代码")] public string Code { get; set; } [Required] [Phone] [Display(Name = "电话号码")] public string PhoneNumber { get; set; } } public class ConfigureTwoFactorViewModel { public string SelectedProvider { get; set; } public ICollection<System.Web.Mvc.SelectListItem> Providers { get; set; } } }
{ "content_hash": "fa0ee81272f3a07b7693e6b8d89b3f18", "timestamp": "", "source": "github", "line_count": 86, "max_line_length": 84, "avg_line_length": 28.627906976744185, "alnum_prop": 0.6096669374492283, "repo_name": "erikzhouxin/CSharpSolution", "id": "bce8638dddf8a85484f8e03fba45890e4f5b58ba", "size": "2612", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "TechTester/OWINOAuthWebSI/Areas/Home/Models/ManageViewModels.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "153832" }, { "name": "Batchfile", "bytes": "104" }, { "name": "C#", "bytes": "16507100" }, { "name": "CSS", "bytes": "1339701" }, { "name": "HTML", "bytes": "25059213" }, { "name": "Java", "bytes": "10698" }, { "name": "JavaScript", "bytes": "53532704" }, { "name": "PHP", "bytes": "48348" }, { "name": "PLSQL", "bytes": "8976" }, { "name": "PowerShell", "bytes": "471" }, { "name": "Ruby", "bytes": "1030" } ], "symlink_target": "" }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("06. Fold and Sum")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("06. Fold and Sum")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b3fd4ea0-192f-4bb2-8ae5-8a26db092528")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
{ "content_hash": "4bdbe54fa5a769b675311c9287170210", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 84, "avg_line_length": 38.888888888888886, "alnum_prop": 0.7435714285714285, "repo_name": "Stradjazz/SoftUni", "id": "70e094de819a93a105965e6c1b5b5d1a44378592", "size": "1403", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Programming Fundamentals/20. Dictionaries, Lambda and LINQ Lab/06. Fold and Sum/Properties/AssemblyInfo.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "197" }, { "name": "C#", "bytes": "1572299" }, { "name": "CSS", "bytes": "1026" }, { "name": "HTML", "bytes": "64349" }, { "name": "JavaScript", "bytes": "452482" } ], "symlink_target": "" }
import packages.rmnetwork as network import packages.rmutil as rmutil from packages.rmgui import * import SettingsFrame as prefs import GroupEditDialog as groupDlg import PlayerInfoDialog as playerDlg import ActionEditFrame as actionFrame from packages.rmnetwork.constants import * from packages.lang.Localizer import * import os, sys, platform, ast, time, threading, shutil, copy import wx if platform.system() == "Linux": from wx.lib.pubsub import setupkwargs from wx.lib.pubsub import pub as Publisher else: from wx.lib.pubsub import pub as Publisher from wx.lib.wordwrap import wordwrap HOST_WIN = 1 HOST_MAC = 2 HOST_LINUX = 3 HOST_SYS = None BASE_PATH = None ################################################################################ # RASP MEDIA ALL PLAYERS PANEL ################################################# ################################################################################ class RaspMediaAllPlayersPanel(wx.Panel): def __init__(self,parent,id,title,index,hosts,host_sys): #wx.Panel.__init__(self,parent,id,title) wx.Panel.__init__(self,parent,-1) global HOST_SYS, BASE_PATH HOST_SYS = host_sys BASE_PATH = parent.parent.base_path self.parent = parent self.index = index self.host = None self.settingsHost = None self.hosts = sorted(hosts) self.memberHosts = [] self.availableHosts = list(self.hosts) self.nameLabels = {} self.groupConfigs = [] self.groups = {} self.groupDeletion = False self.groupLoading = True self.mainSizer = wx.GridBagSizer() self.leftSizer = wx.GridBagSizer() self.rightSizer = wx.GridBagSizer() self.groupSizer = wx.GridBagSizer() self.notebook_event = None self.prgDialog = None self.Initialize() def SetHost(self, hostAddress): self.host = hostAddress def LoadData(self): for host in self.parent.hosts: for curHost in self.hosts: if host['addr'] == curHost['addr']: curHost['name'] = host['name'] self.nameLabels[curHost['addr']].SetLabel(curHost['name']) self.LoadGroupConfig() def PageChanged(self, event): old = event.GetOldSelection() new = event.GetSelection() sel = self.parent.GetSelection() self.notebook_event = event newPage = self.parent.GetPage(new) if self.index == newPage.index: self.pageDataLoading = True self.LoadData() def Initialize(self): # setup UI in sizers self.SetupPlayerSection() self.SetupControlSection() self.SetupGroupSection() # add sizers to main sizer self.mainSizer.Add(self.scroll ,(0,0), span=(2,1), flag=wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.RIGHT, border=15) self.mainSizer.Add(self.rightSizer, (0,2), flag = wx.ALL, border=10) self.mainSizer.Add(self.groupScroll, (1,2), flag = wx.TOP | wx.RIGHT | wx.LEFT, border=10) self.SetSizerAndFit(self.mainSizer) line = wx.StaticLine(self,-1,size=(2,565),style=wx.LI_VERTICAL) self.mainSizer.Add(line,(0,1), span=(2,1), flag=wx.LEFT | wx.RIGHT, border=5) self.LayoutAndFit() self.Show(True) def LayoutAndFit(self): self.mainSizer.Layout() self.Fit() self.parent.Fit() self.parent.parent.Fit() self.parent.parent.Center() def SetupPlayerSection(self): # scrolled panel to show player status list self.scroll = wx.lib.scrolledpanel.ScrolledPanel(self, -1, size=(280,565)) self.scroll.SetAutoLayout(1) self.scroll.SetupScrolling(scroll_x=False, scroll_y=True) self.scroll.SetSizer(self.leftSizer) # icon used for settings buttons img = wx.Image(resource_path("img/ic_settings.png"), wx.BITMAP_TYPE_PNG).Rescale(20,20,wx.IMAGE_QUALITY_HIGH) setBitmap = img.ConvertToBitmap() index = 0 # name, ip and a rename button for each host for host in reversed(self.hosts): playerBox = wx.StaticBox(self.scroll,-1,label=host['name']) boxSizer = wx.StaticBoxSizer(playerBox, wx.VERTICAL) self.nameLabels[host['addr']] = playerBox ip = wx.StaticText(self.scroll,-1,label=host['addr'],size=(75,25)) setName = wx.Button(self.scroll,-1,label="Player Name",size=(110,25)) identify = wx.Button(self.scroll,-1,label=tr("identify"),size=(110,25)) settingsBtn = wx.BitmapButton(self.scroll,-1,setBitmap) ipLabel = wx.StaticText(self.scroll,-1,label="Player IP:",size=(110,25)) ipSizer = wx.BoxSizer() ipSizer.Add(ipLabel,flag=wx.ALL, border = 5) ipSizer.Add(ip, flag=wx.ALL, border = 5) ipSizer.Add(settingsBtn, flag=wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_RIGHT|wx.ALL, border = 5) btnSizer = wx.BoxSizer() btnSizer.Add(identify, flag=wx.ALL, border = 5) btnSizer.Add(setName, flag=wx.ALL, border = 5) # add UI elements to box boxSizer.Add(ipSizer) boxSizer.Add(btnSizer) # add status UI for current host self.leftSizer.Add(boxSizer, (index,0), flag=wx.ALL, border=5) index += 1 self.Bind(wx.EVT_BUTTON, lambda event, host=host: self.UpdatePlayerName(event,host), setName) self.Bind(wx.EVT_BUTTON, lambda event, host=host: self.IdentifyPlayer(event,host), identify) self.Bind(wx.EVT_BUTTON, lambda event, host=host: self.LoadPlayerSettings(event,host), settingsBtn) def SetupControlSection(self): ctrlBox = wx.StaticBox(self,-1,label="Master Control") boxSizer = wx.StaticBoxSizer(ctrlBox, wx.VERTICAL) # setup controls startAll = wx.Button(self,-1,label=tr("restart_all"), size=(200,25)) stopAll = wx.Button(self,-1,label=tr("stop_all"), size=(200,25)) identAll = wx.Button(self,-1,label=tr("identify_all"), size=(200,25)) rebootAll = wx.Button(self,-1,label=tr("reboot_all"), size=(200,25)) update = wx.Button(self,-1,label="Update All", size=(200,25)) # bind events self.Bind(wx.EVT_BUTTON, self.RestartAllPlayers, startAll) self.Bind(wx.EVT_BUTTON, self.StopAllPlayers, stopAll) self.Bind(wx.EVT_BUTTON, self.IdentifyAllPlayers, identAll) self.Bind(wx.EVT_BUTTON, self.RebootAllPlayers, rebootAll) self.Bind(wx.EVT_BUTTON, self.UpdateAllPlayers, update) line = wx.StaticLine(self,-1,size=(260,2)) boxSizer.Add(startAll, flag=wx.LEFT, border=5) boxSizer.Add(stopAll, flag=wx.ALL, border=5) boxSizer.Add(identAll, flag=wx.LEFT, border=5) boxSizer.Add(rebootAll, flag=wx.ALL, border=5) boxSizer.Add(update, flag=wx.LEFT, border=5) self.rightSizer.Add(boxSizer,(0,0)) self.rightSizer.Add(line, (1,0), flag=wx.ALL, border=5) def UpdateAllPlayers(self, event=None): dlg = wx.MessageDialog(self, "Updating all players, RaspMedia Control needs to be closed. Restart application when players have updated and rebooted.", "Update all players", style = wx.YES_NO) if dlg.ShowModal() == wx.ID_YES: msgData = network.messages.getMessage(PLAYER_UPDATE) network.udpconnector.sendMessage(msgData) if HOST_SYS == HOST_WIN: dlg.Destroy() self.parent.parent.Close() def SetupGroupSection(self): # scrolled panel to show player groups self.groupScroll = wx.lib.scrolledpanel.ScrolledPanel(self, -1, size=(290,345)) self.groupScroll.SetAutoLayout(1) self.groupScroll.SetupScrolling(scroll_x=False, scroll_y=True) self.groupSizer.SetMinSize((300,250)) self.groupScroll.SetSizer(self.groupSizer) def LoadGroupUI(self): # clear sizer when updating group configurations in UI self.groupSizer.Clear(True) # add new group button gNew = wx.Button(self.groupScroll,-1,label=tr("new_group")) self.Bind(wx.EVT_BUTTON, self.NewGroupClicked, gNew) #self.groupSizer.Add(gLabel, (0,0)) self.groupSizer.Add(gNew, (0,0), flag = wx.LEFT, border = 5) # parse group configurations and create UI elements self.ParseGroups() index = 1 for group in self.groups: name = self.groups[group]["name"] box = wx.StaticBox(self.groupScroll,-1,name) groupSizer = wx.StaticBoxSizer(box, wx.VERTICAL) memberList = wx.ListCtrl(self.groupScroll,-1,size=(255,80), style=wx.LC_REPORT|wx.SUNKEN_BORDER) memberList.Show(True) memberList.InsertColumn(0,tr("player_name"), width = 145) memberList.InsertColumn(1,"Master", width = 50, format = wx.LIST_FORMAT_CENTER) memberList.InsertColumn(2,"Member", width = 50, format = wx.LIST_FORMAT_CENTER) members = self.groups[group]['members'] for member in members: idx = memberList.InsertStringItem(memberList.GetItemCount(), member['player_name']) if member['master']: memberList.SetStringItem(idx, 1, "*") else: memberList.SetStringItem(idx, 2, "*") editGroup = wx.Button(self.groupScroll,-1,label=tr("edit"),size=(85,25)) editAct = wx.Button(self.groupScroll,-1,label=tr("actions"),size=(85,25)) delGroup = wx.Button(self.groupScroll,-1,label=tr("delete"),size=(85,25)) self.Bind(wx.EVT_BUTTON, lambda event, group=self.groups[group]: self.EditGroup(event,group), editGroup) self.Bind(wx.EVT_BUTTON, lambda event, group=self.groups[group]: self.EditActions(event,group), editAct) self.Bind(wx.EVT_BUTTON, lambda event, group=self.groups[group]: self.DeleteGroup(event,group), delGroup) self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, lambda event, group=self.groups[group], list=memberList: self.MemberDetails(event,group,list), memberList) # add UI elements groupSizer.Add(memberList) btnSizer = wx.GridBagSizer() btnSizer.Add(editGroup, (0,0)) btnSizer.Add(editAct, (0,1)) btnSizer.Add(delGroup, (0,2)) groupSizer.Add(btnSizer) index +=1 self.groupSizer.Add(groupSizer, (index, 0), span=(1,2)) self.groupSizer.Layout() self.groupScroll.SetupScrolling(scroll_x=False, scroll_y=True) def EditGroup(self, event, group): editHosts = list(self.availableHosts) for host in group['members']: editHosts.append({'addr': host['ip'], 'name': host['player_name']}) dlg = groupDlg.GroupEditDialog(self,-1,tr("edit"),editHosts,group=group) if dlg.ShowModal() == wx.ID_OK: dlg = wx.ProgressDialog(tr("saving"), tr("saving_group"), parent = self, style = wx.PD_AUTO_HIDE) dlg.Pulse() time.sleep(len(self.hosts)) dlg.Update(100) if HOST_SYS == HOST_WIN: dlg.Destroy() self.LoadGroupConfig() def EditActions(self, event, group): frame = actionFrame.ActionEditFrame(self,-1,tr("actions"),self.hosts,group=group) frame.Show(True) frame.MakeModal(True) def DeleteGroup(self, event, group): qDlg = wx.MessageDialog(self,tr("delete_group") % group['name'], tr("delete"), style = wx.YES_NO) if qDlg.ShowModal() == wx.ID_YES: self.groupDeletion = True msgData = network.messages.getMessage(GROUP_DELETE, ["-s", group['name']]) Publisher.subscribe(self.UdpListenerStopped, 'listener_stop') dlgStyle = wx.PD_AUTO_HIDE self.prgDialog = wx.ProgressDialog(tr("deleting_group") % group['name'], tr("delete"), parent = self, style = dlgStyle) self.prgDialog.Pulse() network.udpconnector.sendMessage(msgData) def MemberDetails(self, event, group, list): item = event.GetItem() index = list.GetFirstSelected() dlg = playerDlg.PlayerInfoDialog(self,-1,"Player Info",group['members'][index]) dlg.ShowModal() def NewGroupClicked(self, event=None): dlg = groupDlg.GroupEditDialog(self,-1,tr("new_group"),self.availableHosts) if dlg.ShowModal() == wx.ID_OK: dlg = wx.ProgressDialog(tr("saving"), tr("saving_group"), parent = self, style = wx.PD_AUTO_HIDE) dlg.Pulse() time.sleep(len(self.hosts)) dlg.Update(100) if HOST_SYS == HOST_WIN: dlg.Destroy() self.LoadGroupConfig() def LoadGroupConfig(self, event=None): # reset previously loaded group config data self.groups = {} self.groupConfigs = [] self.availableHosts = list(self.hosts) self.memberHosts = [] self.groupLoading = True Publisher.subscribe(self.GroupConfigReceived, 'group_config') Publisher.subscribe(self.UdpListenerStopped, 'listener_stop') msgData = network.messages.getMessage(GROUP_CONFIG_REQUEST) dlgStyle = wx.PD_AUTO_HIDE self.prgDialog = wx.ProgressDialog(tr("loading"), tr("loading_group_config"), parent = self, style = dlgStyle) self.prgDialog.Pulse() network.udpconnector.sendMessage(msgData) def UpdatePlayerName(self, event, host): dlg = wx.TextEntryDialog(self, tr("new_name")+":", tr("player_name"), host['name']) if dlg.ShowModal() == wx.ID_OK: newName = dlg.GetValue() oldName = host['name'] host['name'] = newName # set new name in player box and page tab self.nameLabels[host['addr']].SetLabel(newName) self.parent.UpdatePageName(oldName,newName) # send new name to player msgData = network.messages.getConfigUpdateMessage("player_name", str(newName)) network.udpconnector.sendMessage(msgData, host['addr']) time.sleep(0.2) self.LoadGroupConfig() dlg.Destroy() def RestartAllPlayers(self, event=None): msgData = network.messages.getMessage(PLAYER_RESTART) network.udpconnector.sendMessage(msgData) def StopAllPlayers(self, event=None): msgData = network.messages.getMessage(PLAYER_STOP) network.udpconnector.sendMessage(msgData) def RebootAllPlayers(self, event=None): dlg = wx.MessageDialog(self, tr("reboot_all_info"), tr("reboot_all"), style = wx.YES_NO) if dlg.ShowModal() == wx.ID_YES: msgData = network.messages.getMessage(PLAYER_REBOOT) network.udpconnector.sendMessage(msgData) if HOST_SYS == HOST_WIN: dlg.Destroy() self.parent.parent.Close() def LoadPlayerSettings(self, event, host): self.settingsHost = host Publisher.subscribe(self.ShowPlayerSettings, 'config') msgData = network.messages.getMessage(CONFIG_REQUEST) network.udpconnector.sendMessage(msgData, host['addr']) def ShowPlayerSettings(self, config, isDict=False): if isDict: configDict = config else: configDict = ast.literal_eval(config) config = configDict settings = prefs.SettingsFrame(self,-1,tr("player_settings"),self.settingsHost, config) settings.Center() settings.SetBackgroundColour('WHITE') settings.Refresh() settings.Show() wx.CallAfter(Publisher.unsubscribe, self.ShowPlayerSettings, 'config') def SettingsClosedWithConfig(self, config): self.nameLabels[self.settingsHost['addr']].SetLabel(config['player_name']) self.parent.UpdatePlayerConfig(config, self.settingsHost) def IdentifyPlayer(self, event, host): msgData = network.messages.getMessage(PLAYER_IDENTIFY) network.udpconnector.sendMessage(msgData, host['addr']) msg = tr("dlg_msg_identify") dlg = wx.MessageDialog(self, msg, tr("dlg_title_identify"), wx.OK | wx.ICON_EXCLAMATION) if dlg.ShowModal() == wx.ID_OK: msgData2 = network.messages.getMessage(PLAYER_IDENTIFY_DONE) network.udpconnector.sendMessage(msgData2, host['addr']) dlg.Destroy() def IdentifyAllPlayers(self, event=None): msgData = network.messages.getMessage(PLAYER_IDENTIFY) network.udpconnector.sendMessage(msgData) msg = tr("dlg_msg_identify") dlg = wx.MessageDialog(self, msg, tr("dlg_title_identify"), wx.OK | wx.ICON_EXCLAMATION) if dlg.ShowModal() == wx.ID_OK: msgData2 = network.messages.getMessage(PLAYER_IDENTIFY_DONE) network.udpconnector.sendMessage(msgData2) dlg.Destroy() def GroupConfigReceived(self, group_config, playerIP, isDict=False): global HOST_SYS if isDict: configDict = group_config else: configDict = ast.literal_eval(group_config) configDict["player_ip"] = playerIP # save group configuration, parsing is done when all configs are loaded self.groupConfigs.append(configDict) def UdpListenerStopped(self): global HOST_SYS if self.prgDialog: self.prgDialog.Update(100) if HOST_SYS == HOST_WIN: self.prgDialog.Destroy() if self.groupLoading: self.LoadGroupUI() self.groupLoading = False elif self.groupDeletion: self.LoadGroupConfig() self.groupDeletion = False def ParseGroups(self): # parse configurations for conf in self.groupConfigs: # read current config name = conf['group'] if not name == None: actions = [] if "actions" in conf: actions = conf['actions'] ip = conf['player_ip'] master = conf['group_master'] member = {} member['ip'] = ip found = False for host in self.hosts: if ip == host['addr']: member['player_name'] = host['name'] found = True self.memberHosts.append(host) if found: member['master'] = master members = [] group = {} if not name in self.groups: group['name'] = name group['members'] = members group['members'].append(member) group['actions'] = actions self.groups[name] = group else: self.groups[name]['members'].append(member) if len(actions) > 0: self.groups[name]['actions'] = actions for group in self.groups: self.groups[group]['members'] = sorted(self.groups[group]['members']) self.UpdateAvailableHosts() def UpdateAvailableHosts(self): for host in self.memberHosts: if host in self.availableHosts: ind = self.availableHosts.index(host) del self.availableHosts[ind] def ButtonClicked(self, event): button = event.GetEventObject() if button.GetName() == 'btn_identify': msgData = network.messages.getMessage(PLAYER_IDENTIFY) network.udpconnector.sendMessage(msgData, self.host) msg = tr("dlg_msg_identify") dlg = wx.MessageDialog(self, msg, tr("dlg_title_identify"), wx.OK | wx.ICON_EXCLAMATION) if dlg.ShowModal() == wx.ID_OK: msgData2 = network.messages.getMessage(PLAYER_IDENTIFY_DONE) network.udpconnector.sendMessage(msgData2, self.host) dlg.Destroy() elif button.GetName() == 'btn_reboot': self.RebootPlayer() def RebootPlayer(self): self.prgDialog = wx.ProgressDialog(tr("dlg_title_reboot"), wordwrap(tr("dlg_msg_reboot"), 350, wx.ClientDC(self)), parent = self) Publisher.subscribe(self.RebootComplete, "boot_complete") self.prgDialog.Pulse() msgData = network.messages.getMessage(PLAYER_REBOOT) network.udpconnector.sendMessage(msgData, self.host, UDP_REBOOT_TIMEOUT) def RebootComplete(self): self.prgDialog.Update(100) if HOST_SYS == HOST_WIN: self.prgDialog.Destroy() dlg = wx.MessageDialog(self,"Reboot complete!","",style=wx.OK) dlg.Show() if HOST_SYS == HOST_WIN: dlg.Destroy() def OnPlayerUpdated(self, result): self.prgDialog.Destroy() dlg = wx.MessageDialog(self,str(result),"Player Update",style=wx.OK) def PlayClicked(self, event): msgData = network.messages.getMessage(PLAYER_START) network.udpconnector.sendMessage(msgData, self.host) def StopClicked(self, event): msgData = network.messages.getMessage(PLAYER_STOP) network.udpconnector.sendMessage(msgData, self.host) # HELPER METHOD to get correct resource path for image file def resource_path(relative_path): global BASE_PATH """ Get absolute path to resource, works for dev and for PyInstaller """ try: # PyInstaller creates a temp folder and stores path in _MEIPASS base_path = sys._MEIPASS except Exception: base_path = BASE_PATH #print "JOINING " + base_path + " WITH " + relative_path resPath = os.path.normcase(os.path.join(base_path, relative_path)) #resPath = base_path + relative_path #print resPath return resPath
{ "content_hash": "11d22cbd6840b54e795906320cd8f56f", "timestamp": "", "source": "github", "line_count": 532, "max_line_length": 200, "avg_line_length": 41.21804511278196, "alnum_prop": 0.6074881430134987, "repo_name": "xserty/piDS", "id": "ad3d15e6a975664072e876665bd1825fb58e1280", "size": "21928", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Desktop/packages/rmgui/RaspMediaAllPlayersPanel.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "740" }, { "name": "CSS", "bytes": "3503" }, { "name": "HTML", "bytes": "2444" }, { "name": "PHP", "bytes": "282" }, { "name": "Python", "bytes": "291817" }, { "name": "Shell", "bytes": "17406" } ], "symlink_target": "" }
#import "CC3BitmapLabelNode.h" #import "CC3CC2Extensions.h" #import "CC3ParametricMeshNodes.h" #import "CGPointExtension.h" #pragma mark - #pragma mark CC3BitmapFontConfiguration @implementation CC3BitmapFontConfiguration @synthesize atlasName=_atlasName, fontSize=_fontSize, baseline=_baseline; @synthesize commonHeight=_commonHeight, padding=_padding, textureSize=_textureSize; -(void) dealloc { [self purgeCharDefDictionary]; [self purgeKerningDictionary]; [_characterSet release]; [_atlasName release]; [super dealloc]; } -(void) purgeCharDefDictionary { CC3BitmapCharDefHashElement *current, *tmp; HASH_ITER(hh, _charDefDictionary, current, tmp) { HASH_DEL(_charDefDictionary, current); free(current); } } -(void) purgeKerningDictionary { CC3KerningHashElement *current; while(_kerningDictionary) { current = _kerningDictionary; HASH_DEL(_kerningDictionary, current); free(current); } } #pragma mark Character definitions -(CC3BitmapCharDef*) characterSpecFor: (unichar) c { CC3BitmapCharDefHashElement *element = NULL; GLuint key = (GLuint)c; HASH_FIND_INT(_charDefDictionary , &key, element); return element ? &(element->charDef) : NULL; } -(NSInteger) kerningBetween: (unichar) firstChar and: (unichar) secondChar { if(_kerningDictionary) { unsigned int key = (firstChar << 16) | (secondChar & 0xffff); CC3KerningHashElement* element = NULL; HASH_FIND_INT(_kerningDictionary, &key, element); if(element) return element->amount; } return 0; } #pragma mark Allocation and initialization -(id) initFromFontFile: (NSString*) fontFile { if( (self = [super init]) ) { _kerningDictionary = NULL; _charDefDictionary = NULL; NSString *validChars = [self parseConfigFile: fontFile]; if( !validChars ) { [self release]; return nil; } _characterSet = [[NSCharacterSet characterSetWithCharactersInString: validChars] retain]; } return self; } static NSMutableDictionary* _fontConfigurations = nil; +(id) configurationFromFontFile: (NSString*) fontFile { CC3BitmapFontConfiguration *fontConfig = nil; if( _fontConfigurations == nil ) _fontConfigurations = [[NSMutableDictionary dictionaryWithCapacity: 4] retain]; fontConfig = [_fontConfigurations objectForKey: fontFile]; if(!fontConfig) { fontConfig = [[self alloc] initFromFontFile: fontFile]; if (fontConfig) [_fontConfigurations setObject: fontConfig forKey: fontFile]; [fontConfig release]; } return fontConfig; } +(void) clearFontConfigurations { [_fontConfigurations removeAllObjects]; } - (NSString*) description { return [NSString stringWithFormat:@"%@ with glphys: %d, kernings:%d, image = %@", [self class], HASH_COUNT(_charDefDictionary), HASH_COUNT(_kerningDictionary), _atlasName]; } #pragma mark Parsing /** Parses the configuration file, line by line. */ -(NSString*) parseConfigFile: (NSString*) fontFile { NSString *fullpath = [CCFileUtils.sharedFileUtils fullPathFromRelativePath: fontFile]; NSError *error; NSMutableString *validCharsString = [NSMutableString stringWithCapacity: 512]; NSString *contents = [NSString stringWithContentsOfFile: fullpath encoding: NSUTF8StringEncoding error: &error]; CC3Assert(contents, @"Could not load font file %@ because %@", fullpath, error); // Separate the lines into an array and create an enumerator on it NSArray *lines = [[NSArray alloc] initWithArray: [contents componentsSeparatedByString:@"\n"]]; NSEnumerator *nse = [lines objectEnumerator]; NSString *line; // Loop through all the lines in the lines array processing each one based on its first chars while( (line = [nse nextObject]) ) { if([line hasPrefix:@"char id"]) [self parseCharacterDefinition: line validChars: validCharsString]; else if([line hasPrefix:@"kerning"]) [self parseKerningEntry: line]; else if([line hasPrefix:@"info"]) [self parseInfoArguments: line]; else if([line hasPrefix:@"common"]) [self parseCommonArguments: line]; else if([line hasPrefix:@"page"]) [self parseImageFileName: line fntFile: fontFile]; else if([line hasPrefix:@"chars count"]) {} } [lines release]; // Finished with lines so release it return validCharsString; } /** Parses a character definition line. */ -(void) parseCharacterDefinition:(NSString*)line validChars: (NSMutableString*) validChars { CC3BitmapCharDefHashElement *element = calloc(sizeof(CC3BitmapCharDefHashElement), 1); NSArray *values = [line componentsSeparatedByString:@"="]; NSEnumerator *nse = [values objectEnumerator]; NSString *propertyValue; [nse nextObject]; // Skip line header propertyValue = [nse nextObject]; // Character unicode value propertyValue = [propertyValue substringToIndex: [propertyValue rangeOfString: @" "].location]; element->charDef.charCode = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character rect x element->charDef.rect.origin.x = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character rect y element->charDef.rect.origin.y = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character rect width element->charDef.rect.size.width = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character rect height element->charDef.rect.size.height = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character xoffset element->charDef.xOffset = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character yoffset element->charDef.yOffset = [propertyValue intValue]; propertyValue = [nse nextObject]; // Character xadvance element->charDef.xAdvance = [propertyValue intValue]; element->key = element->charDef.charCode; HASH_ADD_INT(_charDefDictionary, key, element); [validChars appendString: [NSString stringWithFormat: @"%C", element->charDef.charCode]]; } /** Parses a kerning line. */ -(void) parseKerningEntry:(NSString*) line { NSArray *values = [line componentsSeparatedByString:@"="]; NSEnumerator *nse = [values objectEnumerator]; NSString *propertyValue; [nse nextObject]; // Skip line header propertyValue = [nse nextObject]; // First character int first = [propertyValue intValue]; propertyValue = [nse nextObject]; // Second character int second = [propertyValue intValue]; propertyValue = [nse nextObject]; // Kerning amount int amount = [propertyValue intValue]; CC3KerningHashElement *element = calloc(sizeof(CC3KerningHashElement), 1); element->key = (first<<16) | (second&0xffff); element->amount = amount; HASH_ADD_INT(_kerningDictionary,key, element); } /** Parses the info line. */ -(void) parseInfoArguments: (NSString*) line { // // possible lines to parse: // info face="Script" size=32 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=1,4,3,2 spacing=0,0 outline=0 // info face="Cracked" size=36 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 // NSArray *values = [line componentsSeparatedByString:@"="]; NSEnumerator *nse = [values objectEnumerator]; NSString *propertyValue = nil; [nse nextObject]; // Skip line header [nse nextObject]; // Font face (ignore) propertyValue = [nse nextObject]; // Font size _fontSize = [propertyValue floatValue]; [nse nextObject]; // Bold flag (ignore) [nse nextObject]; // Italic (ignore) [nse nextObject]; // Character set (ignore) [nse nextObject]; // Unicode (ignore) [nse nextObject]; // Horizontal stretch (ignore) [nse nextObject]; // Smoothing (ignore) [nse nextObject]; // aa (ignore) // Padding is a combined element. Create a parser for it. propertyValue = [nse nextObject]; NSArray *paddingValues = [propertyValue componentsSeparatedByString:@","]; NSEnumerator *paddingEnum = [paddingValues objectEnumerator]; propertyValue = [paddingEnum nextObject]; // Padding top _padding.top = [propertyValue intValue]; propertyValue = [paddingEnum nextObject]; // Padding right _padding.right = [propertyValue intValue]; propertyValue = [paddingEnum nextObject]; // Padding bottom _padding.bottom = [propertyValue intValue]; propertyValue = [paddingEnum nextObject]; // Padding left _padding.left = [propertyValue intValue]; [nse nextObject]; // Spacing (ignore) } /** Parses the common line. */ -(void) parseCommonArguments: (NSString*) line { // // line to parse: // common lineHeight=104 base=26 scaleW=1024 scaleH=512 pages=1 packed=0 // NSArray *values = [line componentsSeparatedByString:@"="]; NSEnumerator *nse = [values objectEnumerator]; NSString *propertyValue = nil; [nse nextObject]; // Skip line header propertyValue = [nse nextObject]; // Line height _commonHeight = [propertyValue intValue]; propertyValue = [nse nextObject]; // Baseline _baseline = [propertyValue intValue]; propertyValue = [nse nextObject]; // Width scale _textureSize.width = [propertyValue intValue]; propertyValue = [nse nextObject]; // Height scale _textureSize.height = [propertyValue intValue]; CC3Assert(_textureSize.width <= CCConfiguration.sharedConfiguration.maxTextureSize && _textureSize.height <= CCConfiguration.sharedConfiguration.maxTextureSize, @"Font texture can't be larger than supported"); propertyValue = [nse nextObject]; // Pages sanity check CC3Assert( [propertyValue intValue] == 1, @"%@ does not support font files with multiple pages", self); // packed (ignore) What does this mean ?? } /** Parses the image file line. */ -(void) parseImageFileName: (NSString*) line fntFile: (NSString*) fontFile { NSArray *values = [line componentsSeparatedByString:@"="]; NSEnumerator *nse = [values objectEnumerator]; NSString *propertyValue = nil; [nse nextObject]; // Skip line header propertyValue = [nse nextObject]; // Page ID. Sanity check CC3Assert( [propertyValue intValue] == 0, @"%@ does not support font files with multiple pages", self); propertyValue = [nse nextObject]; // Texture file na,e NSArray *array = [propertyValue componentsSeparatedByString: @"\""]; propertyValue = [array objectAtIndex: 1]; CC3Assert(propertyValue, @"%@ could not extract font atlas file name", self.class); // Supports subdirectories NSString *dir = [fontFile stringByDeletingLastPathComponent]; _atlasName = [[dir stringByAppendingPathComponent: propertyValue] retain]; // retained } @end #pragma mark - #pragma mark CC3MeshNode bitmapped label extension @implementation CC3MeshNode (BitmapLabel) #pragma mark Populating for bitmapped font textures -(void) populateAsBitmapFontLabelFromString: (NSString*) lblString fromFontFile: (NSString*) fontFileName andLineHeight: (GLfloat) lineHeight andTextAlignment: (NSTextAlignment) textAlignment andRelativeOrigin: (CGPoint) origin andTessellation: (CC3Tessellation) divsPerChar { CC3BitmapFontConfiguration* fontConfig = [CC3BitmapFontConfiguration configurationFromFontFile: fontFileName]; [[self prepareParametricMesh] populateAsBitmapFontLabelFromString: lblString andFont: fontConfig andLineHeight: lineHeight andTextAlignment: textAlignment andRelativeOrigin: origin andTessellation: divsPerChar]; // Set texture after mesh to avoid mesh setter from clearing texture self.texture = [CC3Texture textureFromFile: fontConfig.atlasName]; // By definition, characters have significant transparency, so turn alpha blending on. // Since characters can overlap with kerning, don't draw the transparent parts to avoid Z-fighting // between the characters. Set the alpha tolerance higher than zero so that non-zero alpha at // character edges due to anti-aliasing won't be drawn. self.isOpaque = NO; self.shouldDrawLowAlpha = NO; self.material.alphaTestReference = 0.05; } @end #pragma mark - #pragma mark CC3BitmapLabelNode @implementation CC3BitmapLabelNode -(void) dealloc { [labelString release]; [fontFileName release]; [fontConfig release]; [super dealloc]; } -(GLfloat) lineHeight { return lineHeight ? lineHeight : fontConfig.commonHeight; } -(void) setLineHeight: (GLfloat) lineHt { if (lineHt != lineHeight) { lineHeight = lineHt; [self populateLabelMesh]; } } -(NSString*) labelString { return labelString; } -(void) setLabelString: (NSString*) aString { if ( ![aString isEqualToString: labelString] ) { [labelString release]; labelString = [aString retain]; [self populateLabelMesh]; } } -(NSString*) fontFileName { return fontFileName; } -(void) setFontFileName: (NSString*) aFileName { if ( ![aFileName isEqualToString: fontFileName] ) { [fontFileName release]; fontFileName = [aFileName retain]; [fontConfig release]; fontConfig = [[CC3BitmapFontConfiguration configurationFromFontFile: fontFileName] retain]; [self populateLabelMesh]; } } -(NSTextAlignment) textAlignment { return textAlignment; } -(void) setTextAlignment: (NSTextAlignment) alignment { if (alignment != textAlignment) { textAlignment = alignment; [self populateLabelMesh]; } } -(CGPoint) relativeOrigin { return relativeOrigin; } -(void) setRelativeOrigin: (CGPoint) relOrigin { if ( !CGPointEqualToPoint(relOrigin, relativeOrigin) ) { relativeOrigin = relOrigin; [self populateLabelMesh]; } } -(CC3Tessellation) tessellation { return tessellation; } -(void) setTessellation: (CC3Tessellation) aGrid { if ( !((aGrid.x == tessellation.x) && (aGrid.y == tessellation.y)) ) { tessellation = aGrid; [self populateLabelMesh]; } } -(GLfloat) fontSize { return fontConfig ? fontConfig.fontSize : 0; } -(GLfloat) baseline { if ( !fontConfig ) return 0.0f; return 1.0f - (GLfloat)fontConfig.baseline / (GLfloat)fontConfig.commonHeight; } #pragma mark Mesh population -(void) populateLabelMesh { if (fontFileName && labelString) { [self populateAsBitmapFontLabelFromString: self.labelString fromFontFile: self.fontFileName andLineHeight: self.lineHeight andTextAlignment: self.textAlignment andRelativeOrigin: self.relativeOrigin andTessellation: self.tessellation]; [self markBoundingVolumeDirty]; if (mesh.isUsingGLBuffers) { [mesh deleteGLBuffers]; [mesh createGLBuffers]; } } } #pragma mark Allocation and initialization -(id) initWithTag: (GLuint) aTag withName: (NSString*) aName { if ( (self = [super initWithTag: aTag withName: aName]) ) { labelString = @"hello, world"; // Fail-safe to display if nothing set fontFileName = nil; fontConfig = nil; lineHeight = 0; textAlignment = NSTextAlignmentLeft; relativeOrigin = ccp(0,0); tessellation = CC3TessellationMake(1,1); } return self; } -(void) populateFrom: (CC3BitmapLabelNode*) another { [super populateFrom: another]; relativeOrigin = another.relativeOrigin; textAlignment = another.textAlignment; tessellation = another.tessellation; lineHeight = another.lineHeight; self.fontFileName = another.fontFileName; self.labelString = another.labelString; // Will trigger repopulation } -(NSString*) description { return [NSString stringWithFormat: @"%@ '%@'", super.description, self.labelString]; } @end #pragma mark - #pragma mark CC3Mesh bitmapped label extension typedef struct { GLfloat lineWidth; GLuint lastVertexIndex; } CC3BMLineSpec; /** CC3MeshNode extension to support bitmapped labels. */ @implementation CC3Mesh (BitmapLabel) -(void) populateAsBitmapFontLabelFromString: (NSString*) lblString andFont: (CC3BitmapFontConfiguration*) fontConfig andLineHeight: (GLfloat) lineHeight andTextAlignment: (NSTextAlignment) textAlignment andRelativeOrigin: (CGPoint) origin andTessellation: (CC3Tessellation) divsPerChar { CGPoint charPos, adjCharPos; CGSize layoutSize; NSInteger kerningAmount; unichar prevChar = -1; NSUInteger strLen = [lblString length]; if (lineHeight == 0.0f) lineHeight = fontConfig.commonHeight; GLfloat fontScale = lineHeight / (GLfloat)fontConfig.commonHeight; // Line count needs to be calculated before parsing the lines to get Y position GLuint charCount = 0; GLuint lineCount = 1; for(NSUInteger i = 0; i < strLen; i++) ([lblString characterAtIndex: i] == '\n') ? lineCount++ : charCount++; // Create a local array to hold the dimensional characteristics of each line of text CC3BMLineSpec lineSpecs[lineCount]; // We now know the height of the layout. Width will be determined as the lines are laid out. layoutSize.width = 0; layoutSize.height = lineHeight * lineCount; // Prepare the vertex content and allocate space for the vertices and indexes. [self ensureVertexContent]; GLuint vtxCountPerChar = (divsPerChar.x + 1) * (divsPerChar.y + 1); GLuint triCountPerChar = divsPerChar.x * divsPerChar.y * 2; self.allocatedVertexCapacity = vtxCountPerChar * charCount; self.allocatedVertexIndexCapacity = triCountPerChar * 3 * charCount; LogTrace(@"Creating label %@ with %i (%i) vertices and %i (%i) vertex indices from %i chars on %i lines in text %@", self, self.vertexCount, self.allocatedVertexCapacity, self.vertexIndexCount, self.allocatedVertexIndexCapacity, charCount, lineCount, lblString); // Start at the top-left corner of the label, above the first line. // Place the first character at the left of the first line. charPos.x = 0; charPos.y = lineCount * lineHeight; GLuint lineIndx = 0; GLuint vIdx = 0; GLuint iIdx = 0; // Iterate through the characters for (NSUInteger i = 0; i < strLen; i++) { unichar c = [lblString characterAtIndex: i]; // If the character is a newline, don't draw anything and move down a line if (c == '\n') { lineIndx++; charPos.x = 0; charPos.y -= lineHeight; continue; } // Get the font specification and for the character, the kerning between the previous // character and this character, and determine a positioning adjustment for the character. CC3BitmapCharDef* charSpec = [fontConfig characterSpecFor: c]; CC3Assert(charSpec, @"%@: no font specification loaded for character %i", self, c); kerningAmount = [fontConfig kerningBetween: prevChar and: c] * fontScale; adjCharPos.x = charPos.x + (charSpec->xOffset * fontScale) + kerningAmount; adjCharPos.y = charPos.y - (charSpec->yOffset * fontScale); // Determine the size of each tesselation division for this character. // This is specified in terms of the unscaled font config. It will be scaled later. CGSize divSize = CGSizeMake(charSpec->rect.size.width / divsPerChar.x, charSpec->rect.size.height / divsPerChar.y); // Initialize the current line spec lineSpecs[lineIndx].lastVertexIndex = 0; lineSpecs[lineIndx].lineWidth = 0.0f; // Populate the tesselated vertex locations, normals & texture coordinates for a single // character. Iterate through the rows and columns of the tesselation grid, from the top-left // corner downwards. This orientation aligns with the texture coords in the font file. // Set the location of each vertex and tex coords to be proportional to its position in the // grid, and set the normal of each vertex to point up the Z-axis. for (GLuint iy = 0; iy <= divsPerChar.y; iy++) { for (GLuint ix = 0; ix <= divsPerChar.x; ix++, vIdx++) { // Cache the index of the last vertex of this line. Since the vertices are accessed // in consecutive, ascending order, this is done by simply setting it each time. lineSpecs[lineIndx].lastVertexIndex = vIdx; // Vertex location GLfloat vx = adjCharPos.x + (divSize.width * ix * fontScale); GLfloat vy = adjCharPos.y - (divSize.height * iy * fontScale); [self setVertexLocation: cc3v(vx, vy, 0.0) at: vIdx]; // If needed, expand the line and layout width to account for the vertices lineSpecs[lineIndx].lineWidth = MAX(lineSpecs[lineIndx].lineWidth, vx); layoutSize.width = MAX(layoutSize.width, vx); // Vertex normal. Will do nothing if this mesh does not include normals. [self setVertexNormal: kCC3VectorUnitZPositive at: vIdx]; // Vertex texture coordinates, inverted vertically, because we're working top-down. CGSize texSize = fontConfig.textureSize; GLfloat u = (charSpec->rect.origin.x + (divSize.width * ix)) / texSize.width; GLfloat v = (charSpec->rect.origin.y + (divSize.height * iy)) / texSize.height; [self setVertexTexCoord2F: cc3tc(u, (1.0f - v)) at: vIdx]; // In the grid of division quads for each character, each vertex that is not // in either the top-most row or the right-most column is the bottom-left corner // of a division. Break the division into two triangles. if (iy < divsPerChar.y && ix < divsPerChar.x) { // First triangle of face wound counter-clockwise [self setVertexIndex: vIdx at: iIdx++]; // TL [self setVertexIndex: (vIdx + divsPerChar.x + 1) at: iIdx++]; // BL [self setVertexIndex: (vIdx + divsPerChar.x + 2) at: iIdx++]; // BR // Second triangle of face wound counter-clockwise [self setVertexIndex: (vIdx + divsPerChar.x + 2) at: iIdx++]; // BR [self setVertexIndex: (vIdx + 1) at: iIdx++]; // TR [self setVertexIndex: vIdx at: iIdx++]; // TL } } } // Horizontal position of the next character charPos.x += (charSpec->xAdvance * fontScale) + kerningAmount; prevChar = c; // Remember the current character before moving on to the next } // Iterate through the lines, calculating the width adjustment to correctly align each line, // and applying that adjustment to the X-component of the location of each vertex that is // contained within that text line. for (GLuint i = 0; i < lineCount; i++) { GLfloat widthAdj; switch (textAlignment) { case NSTextAlignmentCenter: // Adjust vertices so half the white space is on each side widthAdj = (layoutSize.width - lineSpecs[i].lineWidth) * 0.5f; break; case NSTextAlignmentRight: // Adjust vertices so all the white space is on the left side widthAdj = layoutSize.width - lineSpecs[i].lineWidth; break; case NSTextAlignmentLeft: default: // Leave all vertices where they are widthAdj = 0.0f; break; } if (widthAdj) { GLuint startVtxIdx = (i > 0) ? (lineSpecs[i - 1].lastVertexIndex + 1) : 0; GLuint endVtxIdx = lineSpecs[i].lastVertexIndex; LogTrace(@"%@ adjusting line %i by %.3f (from line width %i in layout width %i) from vertex %i to %i", self, i, widthAdj, lineSpecs[i].lineWidth, layoutSize.width, startVtxIdx, endVtxIdx); for (vIdx = startVtxIdx; vIdx <= endVtxIdx; vIdx++) { CC3Vector vtxLoc = [self vertexLocationAt: vIdx]; vtxLoc.x += widthAdj; [self setVertexLocation: vtxLoc at: vIdx]; } } } // Move all vertices so that the origin of the vertex coordinate system is aligned // with a location derived from the origin factor. GLuint vtxCnt = self.vertexCount; CC3Vector originLoc = cc3v((layoutSize.width * origin.x), (layoutSize.height * origin.y), 0); for (vIdx = 0; vIdx < vtxCnt; vIdx++) { CC3Vector locOld = [self vertexLocationAt: vIdx]; CC3Vector locNew = CC3VectorDifference(locOld, originLoc); [self setVertexLocation: locNew at: vIdx]; } } @end
{ "content_hash": "328318a1beab0c66affbac98ce66fe82", "timestamp": "", "source": "github", "line_count": 664, "max_line_length": 132, "avg_line_length": 35.1566265060241, "alnum_prop": 0.7165010281014393, "repo_name": "MattChoiNMI/MC-cocos3d-GPUImage", "id": "e7c92c2b8c5f595da146cac57bb4ee6018cc48c7", "size": "24717", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "cocos3d/cocos3d/Nodes/CC3BitmapLabelNode.m", "mode": "33261", "license": "mit", "language": [], "symlink_target": "" }
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 15.5.4.20-1-2 description: String.prototype.trim throws TypeError when string is null ---*/ assert.throws(TypeError, function() { String.prototype.trim.call(null); });
{ "content_hash": "2b21941f126643af6778fabb8514b65b", "timestamp": "", "source": "github", "line_count": 12, "max_line_length": 71, "avg_line_length": 26.916666666666668, "alnum_prop": 0.718266253869969, "repo_name": "baslr/ArangoDB", "id": "d91241da246fe1756b0e08c25fc284438b8827da", "size": "323", "binary": false, "copies": "3", "ref": "refs/heads/3.1-silent", "path": "3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Ada", "bytes": "89080" }, { "name": "Assembly", "bytes": "391227" }, { "name": "Awk", "bytes": "4272" }, { "name": "Batchfile", "bytes": "62892" }, { "name": "C", "bytes": "7932707" }, { "name": "C#", "bytes": "96430" }, { "name": "C++", "bytes": "284363933" }, { "name": "CLIPS", "bytes": "5291" }, { "name": "CMake", "bytes": "681903" }, { "name": "CSS", "bytes": "1036656" }, { "name": "CWeb", "bytes": "174166" }, { "name": "Cuda", "bytes": "52444" }, { "name": "DIGITAL Command Language", "bytes": "259402" }, { "name": "Emacs Lisp", "bytes": "14637" }, { "name": "Fortran", "bytes": "1856" }, { "name": "Groovy", "bytes": "131" }, { "name": "HTML", "bytes": "2318016" }, { "name": "Java", "bytes": "2325801" }, { "name": "JavaScript", "bytes": "67878359" }, { "name": "LLVM", "bytes": "24129" }, { "name": "Lex", "bytes": "1231" }, { "name": "Lua", "bytes": "16189" }, { "name": "M4", "bytes": "600550" }, { "name": "Makefile", "bytes": "509612" }, { "name": "Max", "bytes": "36857" }, { "name": "Module Management System", "bytes": "1545" }, { "name": "NSIS", "bytes": "28404" }, { "name": "Objective-C", "bytes": "19321" }, { "name": "Objective-C++", "bytes": "2503" }, { "name": "PHP", "bytes": "98503" }, { "name": "Pascal", "bytes": "145688" }, { "name": "Perl", "bytes": "720157" }, { "name": "Perl 6", "bytes": "9918" }, { "name": "Python", "bytes": "5859911" }, { "name": "QMake", "bytes": "16692" }, { "name": "R", "bytes": "5123" }, { "name": "Rebol", "bytes": "354" }, { "name": "Roff", "bytes": "1010686" }, { "name": "Ruby", "bytes": "922159" }, { "name": "SAS", "bytes": "1847" }, { "name": "Scheme", "bytes": "10604" }, { "name": "Shell", "bytes": "511077" }, { "name": "Swift", "bytes": "116" }, { "name": "Tcl", "bytes": "1172" }, { "name": "TeX", "bytes": "32117" }, { "name": "Vim script", "bytes": "4075" }, { "name": "Visual Basic", "bytes": "11568" }, { "name": "XSLT", "bytes": "551977" }, { "name": "Yacc", "bytes": "53005" } ], "symlink_target": "" }
TEST(Core, GetTips) { IOTA::API::Core api(get_proxy_host(), get_proxy_port()); auto res = api.getTips(); EXPECT_GE(res.getDuration(), 0); EXPECT_GE(res.getHashes().size(), 0UL); }
{ "content_hash": "d09dcb92c45a00162be4a8e2abb5a1f2", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 58, "avg_line_length": 28.571428571428573, "alnum_prop": 0.6, "repo_name": "thibault-martinez/iota.lib.cpp", "id": "0be7d230d1ca1d864aed50c627db92a82491c6cb", "size": "1503", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/source/api/core/get_tips_test.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "1032492" }, { "name": "CMake", "bytes": "23623" }, { "name": "Python", "bytes": "38652" }, { "name": "Shell", "bytes": "7662" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Astrix Framework API</title> </head> <body> The Astrix Framework simplifies development and maintenance of microservices. </body> </html>
{ "content_hash": "14f72cfce22b0a63d433877d89055717", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 81, "avg_line_length": 26.333333333333332, "alnum_prop": 0.6877637130801688, "repo_name": "AvanzaBank/astrix", "id": "9e7990c6dbbf65ec7b6b0a76afbbec4311766a47", "size": "237", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "src/main/javadoc/overview.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "966" }, { "name": "Java", "bytes": "1470625" }, { "name": "Shell", "bytes": "314" } ], "symlink_target": "" }
/* grayscale style (c) MY Sun <simonmysun@gmail.com> */ .highlight { color: #333; background: #fff; } .highlight .code .comment, .highlight .code .quote { color: #777; font-style: italic; } .highlight .code .keyword, .highlight .code .selector-tag, .highlight .code .subst { color: #333; font-weight: bold; } .highlight .code .number, .highlight .code .literal { color: #777; } .highlight .code .string, .highlight .code .doctag, .highlight .code .formula { color: #333; background: url("data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJ0lEQVQIW2O8e/fufwYGBgZBQUEQxcCIIfDu3Tuwivfv30NUoAsAALHpFMMLqZlPAAAAAElFTkSuQmCC") repeat; } .highlight .code .title, .highlight .code .section, .highlight .code .selector-id { color: #000; font-weight: bold; } .highlight .code .subst { font-weight: normal; } .highlight .code .class .title, .highlight .code .type, .highlight .code .name { color: #333; font-weight: bold; } .highlight .code .tag { color: #333; } .highlight .code .regexp { color: #333; background: url("data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAPUlEQVQYV2NkQAN37979r6yszIgujiIAU4RNMVwhuiQ6H6wQl3XI4oy4FMHcCJPHcDS6J2A2EqUQpJhohQDexSef15DBCwAAAABJRU5ErkJggg==") repeat; } .highlight .code .symbol, .highlight .code .bullet, .highlight .code .link { color: #000; background: url("data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAKElEQVQIW2NkQAO7d+/+z4gsBhJwdXVlhAvCBECKwIIwAbhKZBUwBQA6hBpm5efZsgAAAABJRU5ErkJggg==") repeat; } .highlight .code .built_in, .highlight .code .builtin-name { color: #000; text-decoration: underline; } .highlight .code .meta { color: #999; font-weight: bold; } .highlight .code .deletion { color: #fff; background: url("data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAADCAYAAABS3WWCAAAAE0lEQVQIW2MMDQ39zzhz5kwIAQAyxweWgUHd1AAAAABJRU5ErkJggg==") repeat; } .highlight .code .addition { color: #000; background: url("data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAALUlEQVQYV2N89+7dfwYk8P79ewZBQUFkIQZGOiu6e/cuiptQHAPl0NtNxAQBAM97Oejj3Dg7AAAAAElFTkSuQmCC") repeat; } .highlight .code .emphasis { font-style: italic; } .highlight .code .strong { font-weight: bold; }
{ "content_hash": "d8dbbfac97f043e95bdeed818559faa7", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 214, "avg_line_length": 45.666666666666664, "alnum_prop": 0.7333619579218549, "repo_name": "HyunSeob/hexo-theme-overdose", "id": "7c0914b673e9b39d9b383e4a80979d5c402a7186", "size": "2329", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "source/css/highlights/grayscale.css", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "273071" }, { "name": "HTML", "bytes": "13029" }, { "name": "JavaScript", "bytes": "5155" } ], "symlink_target": "" }
package mesosphere.marathon package core.launcher.impl import java.util import java.util.Collections import mesosphere.UnitTest import mesosphere.marathon.core.instance.update.InstanceUpdateOperation import mesosphere.marathon.core.instance.{Instance, TestInstanceBuilder} import mesosphere.marathon.core.launcher.{InstanceOp, TaskLauncher} import mesosphere.marathon.core.task.Task import mesosphere.marathon.metrics.Metrics import mesosphere.marathon.metrics.dummy.DummyMetrics import mesosphere.marathon.state.{PathId, Timestamp} import mesosphere.marathon.stream.Implicits._ import mesosphere.marathon.test.MarathonTestHelper import mesosphere.mesos.protos.Implicits._ import mesosphere.mesos.protos.OfferID import org.apache.mesos.Protos.TaskInfo import org.apache.mesos.{Protos, SchedulerDriver} import org.mockito.Mockito import org.mockito.Mockito.when class TaskLauncherImplTest extends UnitTest { private[this] val offerId = OfferID("offerId") private[this] val offerIdAsJava: util.Collection[Protos.OfferID] = Collections.singleton[Protos.OfferID](offerId) private[this] val metrics: Metrics = DummyMetrics private[this] def launch(taskInfoBuilder: TaskInfo.Builder): InstanceOp.LaunchTask = { val taskInfo = taskInfoBuilder.build() val instance = TestInstanceBuilder.newBuilderWithInstanceId(instanceId).addTaskWithBuilder().taskFromTaskInfo(taskInfo).build().getInstance() val stateOp = InstanceUpdateOperation.Provision(instanceId, instance.agentInfo.get, instance.runSpec, instance.tasksMap, Timestamp.now()) new InstanceOpFactoryHelper(metrics, Some("principal"), Some("role")).provision(taskInfo, stateOp) } private[this] val appId = PathId("/test") private[this] val instanceId = Instance.Id.forRunSpec(appId) private[this] val launch1 = launch(MarathonTestHelper.makeOneCPUTask(Task.Id(instanceId))) private[this] val launch2 = launch(MarathonTestHelper.makeOneCPUTask(Task.Id(instanceId))) private[this] val ops = Seq(launch1, launch2) private[this] val opsAsJava = ops.flatMap(_.offerOperations).asJava private[this] val filter = Protos.Filters.newBuilder().setRefuseSeconds(0).build() case class Fixture(driver: Option[SchedulerDriver] = Some(mock[SchedulerDriver])) { val driverHolder: MarathonSchedulerDriverHolder = new MarathonSchedulerDriverHolder driverHolder.driver = driver val launcher: TaskLauncher = new TaskLauncherImpl(metrics, driverHolder) def verifyClean(): Unit = { driverHolder.driver.foreach(Mockito.verifyNoMoreInteractions(_)) } } "TaskLauncherImpl" should { "launchTasks without driver" in new Fixture(driver = None) { assert(!launcher.acceptOffer(offerId, ops)) verifyClean() } "unsuccessful launchTasks" in new Fixture { when(driverHolder.driver.get.acceptOffers(offerIdAsJava, opsAsJava, filter)) .thenReturn(Protos.Status.DRIVER_ABORTED) assert(!launcher.acceptOffer(offerId, ops)) verify(driverHolder.driver.get).acceptOffers(offerIdAsJava, opsAsJava, filter) verifyClean() } "successful launchTasks" in new Fixture { when(driverHolder.driver.get.acceptOffers(offerIdAsJava, opsAsJava, filter)) .thenReturn(Protos.Status.DRIVER_RUNNING) assert(launcher.acceptOffer(offerId, ops)) verify(driverHolder.driver.get).acceptOffers(offerIdAsJava, opsAsJava, filter) verifyClean() } "declineOffer without driver" in new Fixture(driver = None) { launcher.declineOffer(offerId, refuseMilliseconds = None) verifyClean() } "declineOffer with driver" in new Fixture { launcher.declineOffer(offerId, refuseMilliseconds = None) verify(driverHolder.driver.get).declineOffer(offerId, Protos.Filters.getDefaultInstance) verifyClean() } "declineOffer with driver and defined refuse seconds" in new Fixture { launcher.declineOffer(offerId, Some(123)) val filter = Protos.Filters.newBuilder().setRefuseSeconds(123 / 1000.0).build() verify(driverHolder.driver.get).declineOffer(offerId, filter) verifyClean() } } }
{ "content_hash": "b15357f12a09523be68bf6489e04413c", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 145, "avg_line_length": 42.371134020618555, "alnum_prop": 0.7666666666666667, "repo_name": "gsantovena/marathon", "id": "3db9bc33a43a201fafcbf8d2a06994618d281571", "size": "4110", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/scala/mesosphere/marathon/core/launcher/impl/TaskLauncherImplTest.scala", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Clojure", "bytes": "59278" }, { "name": "Dockerfile", "bytes": "6958" }, { "name": "Groovy", "bytes": "17238" }, { "name": "HTML", "bytes": "16356" }, { "name": "Java", "bytes": "36549" }, { "name": "Liquid", "bytes": "1484" }, { "name": "Makefile", "bytes": "9396" }, { "name": "Python", "bytes": "425193" }, { "name": "RAML", "bytes": "356" }, { "name": "Ruby", "bytes": "772" }, { "name": "Scala", "bytes": "4614713" }, { "name": "Shell", "bytes": "47966" } ], "symlink_target": "" }
using AzureBlog.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.ApplicationModel.DataTransfer; using Windows.Storage.Streams; namespace AzureBlog.Helpers { class ShareHelper { public ShareHelper(IArticle article) { } private Article _article; private DataRequest request; public Article Article { get { return _article; } set { _article = value; } } public DataRequest Request { get { return request; } set { request = value; parseRequest(); } } private void parseRequest() { request.Data.Properties.Title = dataPackageTitle(); request.Data.SetText(dataPackageText()); } private string dataPackageText() { string messageText = "I found this article using the News Reader for Azure app for Windows 10."; messageText = string.Format("{0}{1}{2}{3}", messageText, Environment.NewLine, _article.OriginalArticleUriString, Environment.NewLine); return messageText; } private string dataPackageTitle() { return _article.Title; } private string dataPackageDescription() { //return the first 1000 characters of the article string description = string.Format("{0}{1}",_article.Content.Substring(1000),"..."); return description; } private void dataPackageHTML() { DataRequestDeferral dataRequestDeferral = request.GetDeferral(); request.Data.Properties.Description = dataPackageDescription(); //string localImage = "ms-appx:///Assets/StoreLogo.png"; string localImage = _article.ImageUriString; string htmlExample = "<p>Here is a local image: <img src=\"" + localImage + "\">.</p>"; string htmlFormat = HtmlFormatHelper.CreateHtmlFormat(htmlExample); request.Data.SetHtmlFormat(htmlFormat); // Because the HTML contains a local image, we need to add it to the ResourceMap. RandomAccessStreamReference streamRef = RandomAccessStreamReference.CreateFromUri(new Uri(localImage)); request.Data.ResourceMap[localImage] = streamRef; dataRequestDeferral.Complete(); } } }
{ "content_hash": "0057b0f89f1fc5a2ef731c2baaa4cc9f", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 146, "avg_line_length": 26.85, "alnum_prop": 0.5653631284916201, "repo_name": "simonbrown-microsoft/AzureBlog", "id": "e003ce4badcdc3eeac6de1f18c7609621c82df63", "size": "2687", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "AzureBlog/AzureBlog/Helpers/ShareHelper.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "89155" } ], "symlink_target": "" }
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.TestWindow.Extensibility; using Microsoft.VisualStudio.Workspace; using Microsoft.VisualStudio.Workspace.Indexing; using Microsoft.VisualStudio.Workspace.VSIntegration.Contracts; namespace Microsoft.NodejsTools.Workspace { [Export(typeof(ITestContainerDiscoverer))] public sealed class PackageJsonTestContainerDiscoverer : ITestContainerDiscoverer { private readonly IVsFolderWorkspaceService workspaceService; private readonly List<PackageJsonTestContainer> containers = new List<PackageJsonTestContainer>(); private readonly object containerLock = new object(); private IWorkspace activeWorkspace; [ImportingConstructor] public PackageJsonTestContainerDiscoverer(IVsFolderWorkspaceService workspaceService) { this.workspaceService = workspaceService; this.workspaceService.OnActiveWorkspaceChanged += this.OnActiveWorkspaceChangedAsync; if (this.workspaceService.CurrentWorkspace != null) { this.activeWorkspace = this.workspaceService.CurrentWorkspace; this.RegisterEvents(); this.activeWorkspace.JTF.RunAsync(async () => { // Yield so we don't do this now. Don't want to block the constructor. await Task.Yield(); // See if we have an update await AttemptUpdateAsync(); }); } } public Uri ExecutorUri => NodejsConstants.PackageJsonExecutorUri; public IEnumerable<ITestContainer> TestContainers { get { lock (this.containerLock) { return this.containers.ToArray(); } } } public event EventHandler TestContainersUpdated; private async Task AttemptUpdateAsync() { var workspace = this.activeWorkspace; if (workspace != null) { var indexService = workspace.GetIndexWorkspaceService(); // This returns null for LiveShare workspace so adding a check. // TestExplorer support with LiveShare is currently only enabled for LiveShare insiders and is still a little buggy for C#. // We should revisit this to light it up when it becomes stable and we hear feedback. // Disabling this now means no tests will be discovered and TestExplorer will be empty while LiveSharing. if (indexService != null) { var filesDataValues = await indexService.GetFilesDataValuesAsync<string>(NodejsConstants.TestRootDataValueGuid); lock (this.containerLock) { this.containers.Clear(); foreach (var dataValue in filesDataValues) { var rootFilePath = workspace.MakeRooted(dataValue.Key); var testRoot = dataValue.Value.Where(f => f.Name == NodejsConstants.TestRootDataValueName).FirstOrDefault()?.Value; if (!string.IsNullOrEmpty(testRoot)) { var testRootPath = workspace.MakeRooted(testRoot); this.containers.Add(new PackageJsonTestContainer(this, rootFilePath, testRootPath)); } } } } } this.TestContainersUpdated?.Invoke(this, EventArgs.Empty); } private async Task OnActiveWorkspaceChangedAsync(object sender, EventArgs e) { this.UnRegisterEvents(); this.activeWorkspace = this.workspaceService.CurrentWorkspace; this.RegisterEvents(); await AttemptUpdateAsync(); } private void RegisterEvents() { var workspace = this.activeWorkspace; if (workspace != null) { var fileWatcherService = workspace.GetFileWatcherService(); if (fileWatcherService != null) { fileWatcherService.OnFileSystemChanged += this.FileSystemChangedAsync; } var indexService = workspace.GetIndexWorkspaceService(); if (indexService != null) { indexService.OnFileScannerCompleted += this.FileScannerCompletedAsync; } } } private void UnRegisterEvents() { var fileWatcherService = this.activeWorkspace?.GetFileWatcherService(); if (fileWatcherService != null) { fileWatcherService.OnFileSystemChanged -= this.FileSystemChangedAsync; } var indexService = this.activeWorkspace?.GetIndexWorkspaceService(); if (indexService != null) { indexService.OnFileScannerCompleted -= this.FileScannerCompletedAsync; } } private Task FileSystemChangedAsync(object sender, FileSystemEventArgs args) { // We only need to raise the containers updated event in case a js file contained in the // test root is updated. // Any changes to the 'package.json' will be handled by the FileScannerCompleted event. if (IsJavaScriptFile(args.FullPath) || args.IsDirectoryChanged()) { // use a flag so we don't raise the event while under the lock var testsUpdated = false; lock (this.containerLock) { foreach (var container in this.containers) { if (container.IsContained(args.FullPath)) { container.IncreaseVersion(); testsUpdated = true; break; } } } if (testsUpdated) { this.TestContainersUpdated?.Invoke(this, EventArgs.Empty); } } return Task.CompletedTask; } private async Task FileScannerCompletedAsync(object sender, FileScannerEventArgs args) { await AttemptUpdateAsync(); } private static bool IsJavaScriptFile(string path) { var ext = Path.GetExtension(path); if (StringComparer.OrdinalIgnoreCase.Equals(ext, ".js") || StringComparer.OrdinalIgnoreCase.Equals(ext, ".jsx")) { return true; } return false; } } }
{ "content_hash": "12f528bbea1af97f17189b17dfb767a8", "timestamp": "", "source": "github", "line_count": 188, "max_line_length": 161, "avg_line_length": 38.3936170212766, "alnum_prop": 0.5674702133555002, "repo_name": "Microsoft/nodejstools", "id": "18fb4be01bf9c5e7e1b0b11921ca79bafd26a29a", "size": "7220", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "Nodejs/Product/Nodejs/Workspace/PackageJsonTestContainerDiscoverer.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP", "bytes": "112" }, { "name": "Batchfile", "bytes": "4018" }, { "name": "C#", "bytes": "5391886" }, { "name": "CSS", "bytes": "504" }, { "name": "HTML", "bytes": "7741" }, { "name": "JavaScript", "bytes": "75997" }, { "name": "PowerShell", "bytes": "9002" }, { "name": "Python", "bytes": "2462" }, { "name": "TypeScript", "bytes": "8313" }, { "name": "Vue", "bytes": "1791" } ], "symlink_target": "" }
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may */ /* not use this file except in compliance with the License. You may obtain */ /* a copy of the License at */ /* */ /* http://www.apache.org/licenses/LICENSE-2.0 */ /* */ /* Unless required by applicable law or agreed to in writing, software */ /* distributed under the License is distributed on an "AS IS" BASIS, */ /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /* See the License for the specific language governing permissions and */ /* limitations under the License. */ /* -------------------------------------------------------------------------- */ #include "RequestManager.h" #include "Nebula.h" /* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */ void RequestManager::VirtualNetworkDelete::execute( xmlrpc_c::paramList const& paramList, xmlrpc_c::value * const retval) { string session; string name; int nid; int uid; VirtualNetwork * vn; int rc; ostringstream oss; /* -- RPC specific vars -- */ vector<xmlrpc_c::value> arrayData; xmlrpc_c::value_array * arrayresult; Nebula::log("ReM",Log::DEBUG,"VirtualNetworkDelete method invoked"); // Get the parameters & host session = xmlrpc_c::value_string(paramList.getString(0)); nid = xmlrpc_c::value_int (paramList.getInt (1)); // Retrieve VN from the pool vn = vnpool->get(nid,true); if ( vn == 0 ) { goto error_vn_get; } uid = vn->get_uid(); // Only oneadmin or the VN owner can perform operations upon the VN rc = VirtualNetworkDelete::upool->authenticate(session); if ( rc != 0 && rc != uid) { goto error_authenticate; } rc = vnpool->drop(vn); vn->unlock(); // All nice, return the host info to the client arrayData.push_back(xmlrpc_c::value_boolean( rc == 0 )); // SUCCESS arrayresult = new xmlrpc_c::value_array(arrayData); // Copy arrayresult into retval mem space *retval = *arrayresult; // and get rid of the original delete arrayresult; return; error_authenticate: vn->unlock(); oss << "User cannot delete VN"; goto error_common; error_vn_get: oss << "Error getting Virtual Network with NID = " << nid; goto error_common; error_common: Nebula::log ("Rem",Log::ERROR,oss); arrayData.push_back(xmlrpc_c::value_boolean(false)); // FAILURE arrayData.push_back(xmlrpc_c::value_string(oss.str())); xmlrpc_c::value_array arrayresult_error(arrayData); *retval = arrayresult_error; return; } /* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
{ "content_hash": "c89d371f0bf1c7df4c96fab3ff9e3ead", "timestamp": "", "source": "github", "line_count": 104, "max_line_length": 80, "avg_line_length": 36.10576923076923, "alnum_prop": 0.4394141145139814, "repo_name": "fairchild/one-mirror", "id": "8b390dfd590f2a9c4a598bd48f29024913ada7ed", "size": "3755", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/rm/RequestManagerVirtualNetworkDelete.cc", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "151453" }, { "name": "C++", "bytes": "1090346" }, { "name": "Java", "bytes": "150202" }, { "name": "Python", "bytes": "6344" }, { "name": "Ruby", "bytes": "232039" }, { "name": "Shell", "bytes": "101503" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context=".AboutActivity" tools:showIn="@layout/activity_about"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="13sp" android:layout_margin="@dimen/text_margin" android:text="@string/app_description" android:lineSpacingExtra="2dp" /> <View android:layout_width="match_parent" android:layout_height="1px" android:layout_marginLeft="@dimen/text_margin" android:layout_marginRight="@dimen/text_margin" android:background="@color/divider_line"/> <TextView android:layout_margin="@dimen/text_margin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="16sp" android:textColor="@color/textPrimary" android:text="@string/open_source"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="13sp" android:layout_marginLeft="@dimen/text_margin" android:layout_marginRight="@dimen/text_margin" android:layout_marginBottom="@dimen/text_margin" android:text="@string/open_source_list"/> <View android:layout_width="match_parent" android:layout_height="1px" android:layout_marginLeft="@dimen/text_margin" android:layout_marginRight="@dimen/text_margin" android:background="@color/divider_line"/> </LinearLayout> </android.support.v4.widget.NestedScrollView>
{ "content_hash": "6720e7b09963bdcfc4fcc90c115b3c06", "timestamp": "", "source": "github", "line_count": 54, "max_line_length": 102, "avg_line_length": 42.388888888888886, "alnum_prop": 0.6273481869812145, "repo_name": "HStanN/TakeRest", "id": "5ccd87a128ffd16908766dccc6e3360bfac4a64f", "size": "2289", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/res/layout/content_about.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "274409" } ], "symlink_target": "" }
******************************** Custom Horizon pages for Savanna ******************************** Some pages has been implemented and there are some screenshots of it. Screencast and sources of customized Horizon will be published at an early date. 1. Base page with Hadoop clusters list (empty cluster list). .. image:: ../images/horizon/01-savanna-empty.png :width: 800 px :scale: 99 % :align: left 2. Node template details page .. image:: ../images/horizon/02-savanna-tmpl.png :width: 800 px :scale: 99 % :align: left 3. Hadoop cluster creation wizard .. image:: ../images/horizon/03-savanna-create.png :width: 800 px :scale: 99 % :align: left 4. Hadoop clusters page with new cluster in 'Starting' state .. image:: ../images/horizon/04-savanna-starting.png :width: 800 px :scale: 99 % :align: left 5. After some time, cluster is active .. image:: ../images/horizon/05-savanna-active.png :width: 800 px :scale: 99 % :align: left 6. Hadoop cluster details page .. image:: ../images/horizon/06-savanna-details.png :width: 800 px :scale: 99 % :align: left
{ "content_hash": "ec7e456328ae1d9c78720b90172a5b35", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 80, "avg_line_length": 23.3265306122449, "alnum_prop": 0.6342957130358705, "repo_name": "darionyaphets/savanna", "id": "5751515efad896b0395107177ebcceb341deed63", "size": "1143", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "doc/source/horizon/index.rst", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
$packageName = "datacrow" if (Test-Path "${Env:ProgramFiles(x86)}\Data Crow\") { $unPath = "${Env:ProgramFiles(x86)}\Data Crow\Uninstaller\uninstaller.jar" } elseif (Test-Path "$Env:ProgramFiles\Data Crow\") { $unPath = "$Env:ProgramFiles\Data Crow\Uninstaller\uninstaller.jar" } else { Write-Warning "Data Crow install location not found." } $uninstallCmd = "/c `"$unPath`" -c -f" try { Start-ChocolateyProcessAsAdmin -Statements "$uninstallCmd" ` -ExeToRun "cmd.exe" } catch { throw $_.Exception }
{ "content_hash": "9a46dacf4905dd3a19d45ebcc9045547", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 76, "avg_line_length": 32, "alnum_prop": 0.6580882352941176, "repo_name": "dtgm/chocolatey-packages", "id": "4dacf2bbb3b72a18b79569d601456abedfbfc7e1", "size": "544", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "automatic/_output/datacrow/4.1.0/tools/chocolateyUninstall.ps1", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "AutoHotkey", "bytes": "347616" }, { "name": "AutoIt", "bytes": "13530" }, { "name": "Batchfile", "bytes": "1404" }, { "name": "C#", "bytes": "8134" }, { "name": "HTML", "bytes": "80818" }, { "name": "PowerShell", "bytes": "13124493" } ], "symlink_target": "" }
package com.piticlistudio.playednext.game.model.entity.datasource; import com.fernandocejas.arrow.optional.Optional; import com.piticlistudio.playednext.GameFactory; import com.piticlistudio.playednext.company.model.entity.datasource.ICompanyData; import com.piticlistudio.playednext.company.model.entity.datasource.RealmCompany; import com.piticlistudio.playednext.gamerelease.model.entity.datasource.IGameReleaseDateData; import com.piticlistudio.playednext.gamerelease.model.entity.datasource.RealmGameRelease; import com.piticlistudio.playednext.genre.model.entity.datasource.IGenreData; import com.piticlistudio.playednext.genre.model.entity.datasource.RealmGenre; import com.piticlistudio.playednext.image.model.entity.datasource.IImageData; import com.piticlistudio.playednext.image.model.entity.datasource.RealmImageData; import com.piticlistudio.playednext.mvp.model.entity.NetworkEntityIdRelation; import com.piticlistudio.playednext.platform.model.entity.datasource.IPlatformData; import com.piticlistudio.playednext.platform.model.entity.datasource.RealmPlatform; import com.piticlistudio.playednext.releasedate.model.entity.datasource.RealmReleaseDate; import org.junit.Test; import java.util.List; import io.realm.RealmList; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; /** * Test cases * Created by jorge.garcia on 10/02/2017. */ public class RealmGameTest { RealmGame data = GameFactory.provideRealmGame(60, "title"); @Test public void getId() throws Exception { assertEquals(60, data.getId()); } @Test public void getName() throws Exception { assertEquals("title", data.getName()); } @Test public void getSummary() throws Exception { data.setSummary("summary"); assertEquals("summary", data.getSummary()); } @Test public void getStoryline() throws Exception { data.setStoryline("storyline"); assertEquals("storyline", data.getStoryline()); } @Test public void getCollection() throws Exception { assertNotNull(data.getCollection()); assertTrue(data.getCollection().isPresent()); assertTrue(data.getCollection().get().data.isPresent()); // Arrange data.setCollection(null); // Assert assertNotNull(data.getCollection()); assertFalse(data.getCollection().isPresent()); } @Test public void getCover() throws Exception { RealmImageData cover = new RealmImageData("id", "url", 200, 500); data.setCover(cover); // Act Optional<IImageData> result = data.getCover(); assertNotNull(result); assertTrue(result.isPresent()); assertEquals(cover, data.getCover().get()); // Arrange data.setCover(null); // Act result = data.getCover(); // Assert assertNotNull(result); assertFalse(result.isPresent()); } @Test public void getScreenshots() throws Exception { RealmImageData screen1 = new RealmImageData("id1", "url", 200, 33); RealmImageData screen2 = new RealmImageData("id2", "url2", 200, 33); RealmImageData screen3 = new RealmImageData("id3", "url3", 200, 33); RealmList<RealmImageData> screens = new RealmList<>(); screens.add(screen1); screens.add(screen2); screens.add(screen3); data.setScreenshots(screens); // Act List<IImageData> result = data.getScreenshots(); // Assert assertNotNull(result); assertEquals(screens, result); // Arrange data.setScreenshots(null); // Act result = data.getScreenshots(); // Assert assertNotNull(result); assertTrue(result.isEmpty()); } @Test public void given_nullDevelopers_When_getDevelopers_Then_ReturnsEmptyList() throws Exception { data.setDevelopers(null); // Act List<NetworkEntityIdRelation<ICompanyData>> result = data.getDevelopers(); // Assert assertNotNull(result); assertTrue(result.isEmpty()); } @Test public void getDevelopers() throws Exception { RealmList<RealmCompany> developers = new RealmList<>(); developers.add(new RealmCompany(1, "1")); developers.add(new RealmCompany(2, "2")); developers.add(new RealmCompany(3, "3")); data.setDevelopers(developers); // Act List<NetworkEntityIdRelation<ICompanyData>> result = data.getDevelopers(); // Assert assertNotNull(result); assertEquals(developers.size(), result.size()); for (int i = 0; i < result.size(); i++) { assertTrue(result.get(i).data.isPresent()); assertEquals(result.get(i).getData(), developers.get(i)); assertEquals(result.get(i).id, developers.get(i).getId()); } } @Test public void given_nullPublishers_When_getPublishers_Then_ReturnsEmptyList() throws Exception { data.setPublishers(null); // Act List<NetworkEntityIdRelation<ICompanyData>> result = data.getPublishers(); // Assert assertNotNull(result); assertTrue(result.isEmpty()); } @Test public void getPublishers() throws Exception { RealmList<RealmCompany> publishers = new RealmList<>(); publishers.add(new RealmCompany(1, "1")); publishers.add(new RealmCompany(2, "2")); publishers.add(new RealmCompany(3, "3")); data.setPublishers(publishers); // Act List<NetworkEntityIdRelation<ICompanyData>> result = data.getPublishers(); // Assert assertNotNull(result); assertEquals(publishers.size(), result.size()); for (int i = 0; i < result.size(); i++) { assertTrue(result.get(i).data.isPresent()); assertEquals(result.get(i).getData(), publishers.get(i)); assertEquals(result.get(i).id, publishers.get(i).getId()); } } @Test public void given_nullGenres_When_getGenres_Then_ReturnsEmptyList() throws Exception { data.setGenres(null); // Act List<NetworkEntityIdRelation<IGenreData>> result = data.getGenres(); // Assert assertNotNull(result); assertTrue(result.isEmpty()); } @Test public void getGenres() throws Exception { RealmList<RealmGenre> genres = new RealmList<>(); genres.add(new RealmGenre(1, "1")); genres.add(new RealmGenre(2, "2")); genres.add(new RealmGenre(3, "3")); data.setGenres(genres); // Act List<NetworkEntityIdRelation<IGenreData>> result = data.getGenres(); // Assert assertNotNull(result); assertEquals(genres.size(), result.size()); for (int i = 0; i < result.size(); i++) { assertTrue(result.get(i).data.isPresent()); assertEquals(genres.get(i), result.get(i).getData()); assertEquals(genres.get(i).getId(), result.get(i).id); } } @Test public void given_nullReleases_When_getReleases_Then_ReturnsEmptyList() throws Exception { data.setReleases(null); // ACt List<IGameReleaseDateData> result = data.getReleases(); // Assert assertNotNull(result); assertTrue(result.isEmpty()); } @Test public void getReleases() throws Exception { RealmList<RealmGameRelease> releases = new RealmList<>(); for (int i = 0; i < 3; i++) { RealmPlatform platform = new RealmPlatform(i, "platform_" + i); RealmReleaseDate date = new RealmReleaseDate("date_" + i, (i + 1) * 1000); releases.add(new RealmGameRelease(platform, date)); } data.setReleases(releases); // ACt List<IGameReleaseDateData> result = data.getReleases(); // Assert assertNotNull(result); assertEquals(releases.size(), result.size()); for (int i = 0; i < result.size(); i++) { assertEquals(releases.get(i), result.get(i)); } } @Test public void given_nullPlatforms_When_getPlatforms_Then_ReturnsEmptyList() throws Exception { data.setPlatforms(null); // Act List<NetworkEntityIdRelation<IPlatformData>> result = data.getPlatforms(); // Assert assertNotNull(result); assertTrue(result.isEmpty()); } @Test public void getPlatforms() throws Exception { RealmList<RealmPlatform> platforms = new RealmList<>(); for (int i = 0; i < 5; i++) { RealmPlatform platform = new RealmPlatform(i, "platform_" + i); platforms.add(platform); } data.setPlatforms(platforms); // Act List<NetworkEntityIdRelation<IPlatformData>> result = data.getPlatforms(); // Assert assertNotNull(result); assertEquals(result.size(), platforms.size()); for (int i = 0; i < result.size(); i++) { assertEquals(platforms.get(i).getId(), result.get(i).id); assertTrue(result.get(i).data.isPresent()); assertEquals(platforms.get(i), result.get(i).getData()); } } }
{ "content_hash": "cc8500bf2f971ff4f89212907c3deb32", "timestamp": "", "source": "github", "line_count": 302, "max_line_length": 98, "avg_line_length": 31.119205298013245, "alnum_prop": 0.6377952755905512, "repo_name": "Yorxxx/playednext", "id": "da1a3da29536bdacda8242728fe660db6519446c", "size": "9398", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/test/java/com/piticlistudio/playednext/game/model/entity/datasource/RealmGameTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "798466" } ], "symlink_target": "" }
 #pragma once #include <aws/mwaa/MWAA_EXPORTS.h> #include <aws/core/utils/DateTime.h> #include <aws/mwaa/model/UpdateError.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/mwaa/model/UpdateStatus.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MWAA { namespace Model { /** * <p>Describes the status of the last update on the environment, and any errors * that were encountered.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/LastUpdate">AWS API * Reference</a></p> */ class AWS_MWAA_API LastUpdate { public: LastUpdate(); LastUpdate(Aws::Utils::Json::JsonView jsonValue); LastUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The day and time of the last update on the environment.</p> */ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** * <p>The day and time of the last update on the environment.</p> */ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** * <p>The day and time of the last update on the environment.</p> */ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** * <p>The day and time of the last update on the environment.</p> */ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** * <p>The day and time of the last update on the environment.</p> */ inline LastUpdate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** * <p>The day and time of the last update on the environment.</p> */ inline LastUpdate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** * <p>The error that was encountered during the last update of the environment.</p> */ inline const UpdateError& GetError() const{ return m_error; } /** * <p>The error that was encountered during the last update of the environment.</p> */ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** * <p>The error that was encountered during the last update of the environment.</p> */ inline void SetError(const UpdateError& value) { m_errorHasBeenSet = true; m_error = value; } /** * <p>The error that was encountered during the last update of the environment.</p> */ inline void SetError(UpdateError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** * <p>The error that was encountered during the last update of the environment.</p> */ inline LastUpdate& WithError(const UpdateError& value) { SetError(value); return *this;} /** * <p>The error that was encountered during the last update of the environment.</p> */ inline LastUpdate& WithError(UpdateError&& value) { SetError(std::move(value)); return *this;} /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline const Aws::String& GetSource() const{ return m_source; } /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline LastUpdate& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline LastUpdate& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** * <p>The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.</p> */ inline LastUpdate& WithSource(const char* value) { SetSource(value); return *this;} /** * <p>The status of the last update on the environment.</p> */ inline const UpdateStatus& GetStatus() const{ return m_status; } /** * <p>The status of the last update on the environment.</p> */ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** * <p>The status of the last update on the environment.</p> */ inline void SetStatus(const UpdateStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** * <p>The status of the last update on the environment.</p> */ inline void SetStatus(UpdateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** * <p>The status of the last update on the environment.</p> */ inline LastUpdate& WithStatus(const UpdateStatus& value) { SetStatus(value); return *this;} /** * <p>The status of the last update on the environment.</p> */ inline LastUpdate& WithStatus(UpdateStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; UpdateError m_error; bool m_errorHasBeenSet; Aws::String m_source; bool m_sourceHasBeenSet; UpdateStatus m_status; bool m_statusHasBeenSet; }; } // namespace Model } // namespace MWAA } // namespace Aws
{ "content_hash": "0dc52a9c201c4609f493844841427fe3", "timestamp": "", "source": "github", "line_count": 199, "max_line_length": 124, "avg_line_length": 33.653266331658294, "alnum_prop": 0.6610422577273406, "repo_name": "cedral/aws-sdk-cpp", "id": "028e4c78bc4338bcfac5028d6504ac0f8fe58dd4", "size": "6816", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-cpp-sdk-mwaa/include/aws/mwaa/model/LastUpdate.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "294220" }, { "name": "C++", "bytes": "428637022" }, { "name": "CMake", "bytes": "862025" }, { "name": "Dockerfile", "bytes": "11688" }, { "name": "HTML", "bytes": "7904" }, { "name": "Java", "bytes": "352201" }, { "name": "Python", "bytes": "106761" }, { "name": "Shell", "bytes": "10891" } ], "symlink_target": "" }
package pl.softronic.szkolenie.gui; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JPanel; public class DrawPanel extends JPanel { public int margin = 10; public DrawPanel(){ super(); setPreferredSize(new Dimension(150, 100)); } @Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g; Dimension dim = getSize(); g2d.setColor(Color.red); g2d.fillRect(margin, margin, dim.width - margin * 2, dim.height - margin * 2); g2d.setColor(Color.green); g2d.fillRect(margin* 2, margin* 2, dim.width - margin * 4, dim.height - margin * 4); g2d.setColor(Color.blue); g2d.fillRect(margin* 3, margin* 3, dim.width - margin * 6, dim.height - margin * 6); } }
{ "content_hash": "6cf66eb2629586b5bbdc0f9b7ebbdb68", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 86, "avg_line_length": 27.06451612903226, "alnum_prop": 0.6793802145411204, "repo_name": "szkolenie-softronic/szkolenie", "id": "b0b5bb3c2a8218c4af3f94b68fd8da836c96b367", "size": "839", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/pl/softronic/szkolenie/gui/DrawPanel.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "66047" } ], "symlink_target": "" }
""" NumPy ===== Provides 1. An array object of arbitrary homogeneous items 2. Fast mathematical operations over arrays 3. Linear Algebra, Fourier Transforms, Random Number Generation How to use the documentation ---------------------------- Documentation is available in two forms: docstrings provided with the code, and a loose standing reference guide, available from `the NumPy homepage <http://www.scipy.org>`_. We recommend exploring the docstrings using `IPython <http://ipython.scipy.org>`_, an advanced Python shell with TAB-completion and introspection capabilities. See below for further instructions. The docstring examples assume that `numpy` has been imported as `np`:: >>> import numpy as np Code snippets are indicated by three greater-than signs:: >>> x = x + 1 Use the built-in ``help`` function to view a function's docstring:: >>> help(np.sort) For some objects, ``np.info(obj)`` may provide additional help. This is particularly true if you see the line "Help on ufunc object:" at the top of the help() page. Ufuncs are implemented in C, not Python, for speed. The native Python help() does not know how to view their help, but our np.info() function does. To search for documents containing a keyword, do:: >>> np.lookfor('keyword') General-purpose documents like a glossary and help on the basic concepts of numpy are available under the ``doc`` sub-module:: >>> from numpy import doc >>> help(doc) Available subpackages --------------------- doc Topical documentation on broadcasting, indexing, etc. lib Basic functions used by several sub-packages. random Core Random Tools linalg Core Linear Algebra Tools fft Core FFT routines polynomial Polynomial tools testing Numpy testing tools f2py Fortran to Python Interface Generator. distutils Enhancements to distutils with support for Fortran compilers support and more. Utilities --------- test Run numpy unittests show_config Show numpy build configuration dual Overwrite certain functions with high-performance Scipy tools matlib Make everything matrices. __version__ Numpy version string Viewing documentation using IPython ----------------------------------- Start IPython with the NumPy profile (``ipython -p numpy``), which will import `numpy` under the alias `np`. Then, use the ``cpaste`` command to paste examples into the shell. To see which functions are available in `numpy`, type ``np.<TAB>`` (where ``<TAB>`` refers to the TAB key), or use ``np.*cos*?<ENTER>`` (where ``<ENTER>`` refers to the ENTER key) to narrow down the list. To view the docstring for a function, use ``np.cos?<ENTER>`` (to view the docstring) and ``np.cos??<ENTER>`` (to view the source code). Copies vs. in-place operation ----------------------------- Most of the functions in `numpy` return a copy of the array argument (e.g., `np.sort`). In-place versions of these functions are often available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. Exceptions to this rule are documented. """ # We first need to detect if we're being called as part of the numpy setup # procedure itself in a reliable manner. try: __NUMPY_SETUP__ except NameError: __NUMPY_SETUP__ = False if __NUMPY_SETUP__: import sys as _sys print >> _sys.stderr, 'Running from numpy source directory.' del _sys else: try: from numpy.__config__ import show as show_config except ImportError, e: msg = """Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python intepreter from there.""" raise ImportError(msg) from version import version as __version__ from _import_tools import PackageLoader def pkgload(*packages, **options): loader = PackageLoader(infunc=True) return loader(*packages, **options) import add_newdocs __all__ = ['add_newdocs'] pkgload.__doc__ = PackageLoader.__call__.__doc__ from testing import Tester test = Tester().test bench = Tester().bench import core from core import * import compat import lib from lib import * import linalg import fft import polynomial import random import ctypeslib import ma import matrixlib as _mat from matrixlib import * # Make these accessible from numpy name-space # but not imported in from numpy import * from __builtin__ import bool, int, long, float, complex, \ object, unicode, str from core import round, abs, max, min __all__.extend(['__version__', 'pkgload', 'PackageLoader', 'show_config']) __all__.extend(core.__all__) __all__.extend(_mat.__all__) __all__.extend(lib.__all__) __all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma'])
{ "content_hash": "ab4c1c5ecac852dab586ba37afccf70a", "timestamp": "", "source": "github", "line_count": 166, "max_line_length": 79, "avg_line_length": 29.367469879518072, "alnum_prop": 0.6773333333333333, "repo_name": "NirBenTalLab/proorigami-cde-package", "id": "3f6695a8c1501f5a3163ffa4bbdce3539f64a29b", "size": "4875", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "cde-root/usr/lib64/python2.4/site-packages/numpy/__init__.py", "mode": "33188", "license": "mit", "language": [ { "name": "Perl", "bytes": "16762" }, { "name": "Python", "bytes": "4730244" }, { "name": "Shell", "bytes": "9915" } ], "symlink_target": "" }
.. _installing_zephyr_mac: Development Environment Setup on Mac OS ####################################### This section describes how to set up a Mac OS development system. After completing these steps, you will be able to compile and run your Zephyr applications on the following Mac OS version: Mac OS X 10.11 (El Capitan) Update Your Operating System **************************** Before proceeding with the build, ensure your OS is up to date. .. _mac_requirements: Installing Requirements and Dependencies **************************************** To install the software components required to build the Zephyr kernel on a Mac, you will need to build a cross compiler for the target devices you wish to build for and install tools that the build system requires. .. note:: Minor version updates of the listed required packages might also work. .. attention:: Check your firewall and proxy configurations to ensure that Internet access is available before attempting to install the required packages. First, install the :program:`Homebrew` (The missing package manager for OS X). Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's OS X operating system. To install :program:`Homebrew`, visit the `Homebrew site`_ and follow the installation instructions on the site. To complete the Homebrew installation, you might be prompted to install some missing dependency. If so, follow please follow the instructions provided. After Homebrew was successfully installed, install the following tools using the brew command line. .. code-block:: console $ brew install gettext qemu help2man mpfr gmp coreutils wget $ brew tap homebrew/dupes $ brew install grep --default-names .. code-block:: console $ brew install crosstool-ng Alternatively you can install the latest version of :program:`crosstool-ng` from source. Download the latest version from the `crosstool-ng site`_. The latest version usually supports the latest released compilers. .. code-block:: console $ wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.22.0.tar.bz2 $ tar xvf crosstool-ng-1.22.0.tar.bz2 $ cd crosstool-ng/ $ ./configure $ make $ make install .. _setting_up_mac_toolchain: Setting Up the Toolchain ************************ Creating a Case-sensitive File System ===================================== Building the compiler requires a case-senstive file system. Therefore, use :program:`diskutil` to create an 8 GB blank sparse image making sure you select case-sensitive file system (OS X Extended (Case-sensitive, Journaled) and mount it. Alternatively you can use the script below to create the image: .. code-block:: bash #!/bin/bash ImageName=CrossToolNG ImageNameExt=${ImageName}.sparseimage diskutil umount force /Volumes/${ImageName} && true rm -f ${ImageNameExt} && true hdiutil create ${ImageName} -volname ${ImageName} -type SPARSE -size 8g -fs HFSX hdiutil mount ${ImageNameExt} cd /Volumes/$ImageName When mounted, the file system of the image will be available under :file:`/Volumes`. Change to the mounted directory: .. code-block:: console $ cd /Volumes/CrossToolNG $ mkdir build $ cd build Setting the Toolchain Options ============================= In the Zephyr kernel source tree we provide two configurations for both ARM and X86 that can be used to pre-select the options needed for building the toolchain. The configuration files can be found in :file:`${ZEPHYR_BASE}/scripts/cross_compiler/`. .. code-block:: console $ cp ${ZEPHYR_BASE}/scripts/cross_compiler/x86.config .config You can create a toolchain configuration or customize an existing configuration yourself using the configuration menus: .. code-block:: console $ ct-ng menuconfig Verifying the Configuration of the Toolchain ============================================ Before building the toolchain it is advisable to perform a quick verification of the configuration set for the toolchain. 1. Open the generated :file:`.config` file. 2. Verify the following lines are present, assuming the sparse image was mounted under :file:`/Volumes/CrossToolNG`: .. code-block:: bash ... CT_LOCAL_TARBALLS_DIR="/Volumes/CrossToolNG/src" # CT_SAVE_TARBALLS is not set CT_WORK_DIR="${CT_TOP_DIR}/.build" CT_PREFIX_DIR="/Volumes/CrossToolNG/x-tools/${CT_TARGET}" CT_INSTALL_DIR="${CT_PREFIX_DIR}" ... Building the Toolchain ====================== To build the toolchain, enter: .. code-block:: console $ ct-ng build The above process takes a while. When finished, the toolchain will be available under :file:`/Volumes/CrossToolNG/x-tools`. Repeat the step for all architectures you want to support in your environment. To use the toolchain with Zephyr, export the following environment variables and use the target location where the toolchain was installed, type: .. code-block:: console $ export ZEPHYR_GCC_VARIANT=xtools $ export ZEPHYR_SDK_INSTALL_DIR=/Volumes/CrossToolNG/x-tools To use the same toolchain in new sessions in the future you can set the variables in the file :file:`${HOME}/.zephyrrc`, for example: .. code-block:: console $ cat <<EOF > ~/.zephyrrc export ZEPHYR_SDK_INSTALL_DIR=/Volumes/CrossToolNG/x-tools export ZEPHYR_GCC_VARIANT=xtools EOF .. _Homebrew site: http://brew.sh/ .. _crosstool-ng site: http://crosstool-ng.org
{ "content_hash": "23942145df282df6bed6768b26336e59", "timestamp": "", "source": "github", "line_count": 189, "max_line_length": 87, "avg_line_length": 28.941798941798943, "alnum_prop": 0.7175502742230347, "repo_name": "coldnew/zephyr-project-fork", "id": "0d6e681582788ad919d4b65aec2f8ec93e43a15d", "size": "5470", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "doc/getting_started/installation_mac.rst", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Assembly", "bytes": "160327" }, { "name": "Batchfile", "bytes": "28019" }, { "name": "C", "bytes": "6069127" }, { "name": "C++", "bytes": "213558" }, { "name": "Lex", "bytes": "11196" }, { "name": "Makefile", "bytes": "132066" }, { "name": "Objective-C", "bytes": "1912" }, { "name": "Perl", "bytes": "213268" }, { "name": "Python", "bytes": "109645" }, { "name": "Shell", "bytes": "44817" }, { "name": "Yacc", "bytes": "15396" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_111) on Sun Jan 15 22:55:06 CET 2017 --> <title>Y-Index</title> <meta name="date" content="2017-01-15"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <script type="text/javascript" src="../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Y-Index"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="index-19.html">Prev Letter</a></li> <li>Next Letter</li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-20.html" target="_top">Frames</a></li> <li><a href="index-20.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="contentContainer"><a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">D</a>&nbsp;<a href="index-5.html">E</a>&nbsp;<a href="index-6.html">F</a>&nbsp;<a href="index-7.html">G</a>&nbsp;<a href="index-8.html">I</a>&nbsp;<a href="index-9.html">J</a>&nbsp;<a href="index-10.html">L</a>&nbsp;<a href="index-11.html">M</a>&nbsp;<a href="index-12.html">N</a>&nbsp;<a href="index-13.html">O</a>&nbsp;<a href="index-14.html">P</a>&nbsp;<a href="index-15.html">R</a>&nbsp;<a href="index-16.html">S</a>&nbsp;<a href="index-17.html">T</a>&nbsp;<a href="index-18.html">U</a>&nbsp;<a href="index-19.html">W</a>&nbsp;<a href="index-20.html">Y</a>&nbsp;<a name="I:Y"> <!-- --> </a> <h2 class="title">Y</h2> <dl> <dt><span class="memberNameLink"><a href="../entity/language/Dansk.html#yes--">yes()</a></span> - Method in class entity.language.<a href="../entity/language/Dansk.html" title="class in entity.language">Dansk</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Language.html#yes--">yes()</a></span> - Method in interface entity.language.<a href="../entity/language/Language.html" title="interface in entity.language">Language</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/LanguageHandler.html#yes--">yes()</a></span> - Method in class entity.language.<a href="../entity/language/LanguageHandler.html" title="class in entity.language">LanguageHandler</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Dansk.html#youAreInJailMsg-entity.Player-">youAreInJailMsg(Player)</a></span> - Method in class entity.language.<a href="../entity/language/Dansk.html" title="class in entity.language">Dansk</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Language.html#youAreInJailMsg-entity.Player-">youAreInJailMsg(Player)</a></span> - Method in interface entity.language.<a href="../entity/language/Language.html" title="interface in entity.language">Language</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/LanguageHandler.html#youAreInJailMsg-entity.Player-">youAreInJailMsg(Player)</a></span> - Method in class entity.language.<a href="../entity/language/LanguageHandler.html" title="class in entity.language">LanguageHandler</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Dansk.html#youGetJailedForThreeTimesEqual--">youGetJailedForThreeTimesEqual()</a></span> - Method in class entity.language.<a href="../entity/language/Dansk.html" title="class in entity.language">Dansk</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Language.html#youGetJailedForThreeTimesEqual--">youGetJailedForThreeTimesEqual()</a></span> - Method in interface entity.language.<a href="../entity/language/Language.html" title="interface in entity.language">Language</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/LanguageHandler.html#youGetJailedForThreeTimesEqual--">youGetJailedForThreeTimesEqual()</a></span> - Method in class entity.language.<a href="../entity/language/LanguageHandler.html" title="class in entity.language">LanguageHandler</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Dansk.html#youOwnThisField--">youOwnThisField()</a></span> - Method in class entity.language.<a href="../entity/language/Dansk.html" title="class in entity.language">Dansk</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Language.html#youOwnThisField--">youOwnThisField()</a></span> - Method in interface entity.language.<a href="../entity/language/Language.html" title="interface in entity.language">Language</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/LanguageHandler.html#youOwnThisField--">youOwnThisField()</a></span> - Method in class entity.language.<a href="../entity/language/LanguageHandler.html" title="class in entity.language">LanguageHandler</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Dansk.html#youPaidThisMuchToThisPerson-int-entity.Player-">youPaidThisMuchToThisPerson(int, Player)</a></span> - Method in class entity.language.<a href="../entity/language/Dansk.html" title="class in entity.language">Dansk</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/Language.html#youPaidThisMuchToThisPerson-int-entity.Player-">youPaidThisMuchToThisPerson(int, Player)</a></span> - Method in interface entity.language.<a href="../entity/language/Language.html" title="interface in entity.language">Language</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../entity/language/LanguageHandler.html#youPaidThisMuchToThisPerson-int-entity.Player-">youPaidThisMuchToThisPerson(int, Player)</a></span> - Method in class entity.language.<a href="../entity/language/LanguageHandler.html" title="class in entity.language">LanguageHandler</a></dt> <dd>&nbsp;</dd> </dl> <a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">D</a>&nbsp;<a href="index-5.html">E</a>&nbsp;<a href="index-6.html">F</a>&nbsp;<a href="index-7.html">G</a>&nbsp;<a href="index-8.html">I</a>&nbsp;<a href="index-9.html">J</a>&nbsp;<a href="index-10.html">L</a>&nbsp;<a href="index-11.html">M</a>&nbsp;<a href="index-12.html">N</a>&nbsp;<a href="index-13.html">O</a>&nbsp;<a href="index-14.html">P</a>&nbsp;<a href="index-15.html">R</a>&nbsp;<a href="index-16.html">S</a>&nbsp;<a href="index-17.html">T</a>&nbsp;<a href="index-18.html">U</a>&nbsp;<a href="index-19.html">W</a>&nbsp;<a href="index-20.html">Y</a>&nbsp;</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="index-19.html">Prev Letter</a></li> <li>Next Letter</li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-20.html" target="_top">Frames</a></li> <li><a href="index-20.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
{ "content_hash": "8f074529e63986363fa1626f37aac7f6", "timestamp": "", "source": "github", "line_count": 155, "max_line_length": 735, "avg_line_length": 60.07096774193548, "alnum_prop": 0.6751154548383632, "repo_name": "DTU-GROUP32/CDIO4", "id": "c4f0067c414ce9511f277f9d22a3a838335af606", "size": "9311", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "docs/index-files/index-20.html", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "143715" } ], "symlink_target": "" }
<?php namespace Transfer\Tests\Storage; use Transfer\Storage\StorageInterface; use Transfer\Storage\StorageStack; class StorageStackTest extends \PHPUnit_Framework_TestCase { /** * Tests constructor. */ public function testConstructor() { $stack = new StorageStack(array( 'local' => $this->getMock('Transfer\Storage\StorageInterface'), 'global' => $this->getMock('Transfer\Storage\StorageInterface'), )); $this->assertCount(2, $stack->getScopes()); } /** * Tests set and get methods. */ public function testSetGetScope() { $stack = new StorageStack(); $this->assertCount(0, $stack->getScopes()); /** @var StorageInterface $storage */ $storage = $this->getMock('Transfer\Storage\StorageInterface'); $stack->setScope('local', $storage); $this->assertCount(1, $stack->getScopes()); $this->assertSame($storage, $stack->getScope('local')); } /** * Tests remove method. */ public function testRemoveScope() { $stack = new StorageStack(array( 'local' => $this->getMock('Transfer\Storage\StorageInterface'), 'global' => $this->getMock('Transfer\Storage\StorageInterface'), )); $stack->removeScope('local'); $this->assertCount(1, $stack->getScopes()); } }
{ "content_hash": "2a941b8df55e51cadd0cbd1eddc8fb61", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 76, "avg_line_length": 24.54385964912281, "alnum_prop": 0.592566118656183, "repo_name": "transfer-framework/transfer", "id": "69b884e87c8c9bb693d648cefd4ad7d525dc7e6e", "size": "1556", "binary": false, "copies": "1", "ref": "refs/heads/1.0", "path": "tests/unit/Transfer/Tests/Storage/StorageStackTest.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "159527" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en-us" dir="ltr" itemscope itemtype="http://schema.org/Article"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Screenland</title> <meta name="author" content="" /> <meta name="description" content="Essa série parece ter a intenção de reconhecer a genialidade dos gamers em antecipar futuras tendências nos jogos eletrônicos que virão com a melhora da inteligência artificial e a construção de..."/> <meta name="yandex-verification" content="48a8210fc043c5e8" /> <meta name="generator" content="Hugo 0.54.0" /> <meta itemprop="name" content="Screenland"/> <meta itemprop="description" content="Essa série parece ter a intenção de reconhecer a genialidade dos gamers em antecipar futuras tendências nos jogos eletrônicos que virão com a melhora da inteligência artificial e a construção de..."/> <meta itemprop="image" content="/img/logo.svg"/> <meta property="og:title" content="Screenland"/> <meta property="og:type" content="article"/> <meta property="og:url" content="http://www.cinetenisverde.com.br/series/screenland/"/> <meta property="og:image" content="/img/logo.svg"/> <meta property="og:description" content="Essa série parece ter a intenção de reconhecer a genialidade dos gamers em antecipar futuras tendências nos jogos eletrônicos que virão com a melhora da inteligência artificial e a construção de..."/> <meta property="og:site_name" content="Cine Tênis Verde"/> <meta property="article:published_time" content="2018-06-29T15:49:42-03:00"/> <meta property="article:section" content="series"/> <meta name="twitter:card" content="summary"/> <meta name="twitter:site" content=""/> <meta name="twitter:title" content="Screenland"/> <meta name="twitter:description" content="Essa série parece ter a intenção de reconhecer a genialidade dos gamers em antecipar futuras tendências nos jogos eletrônicos que virão com a melhora da inteligência artificial e a construção de..."/> <meta name="twitter:creator" content=""/> <meta name="twitter:image:src" content="/img/logo.svg"/> <link rel="stylesheet" type="text/css" href="/css/capsule.min.css"/> <link rel="stylesheet" type="text/css" href="/css/custom.css"/> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-50557403-1', 'auto'); ga('send', 'pageview'); </script> <link rel="apple-touch-icon" href="/img/apple-touch-icon.png"/> <link rel="icon" href="/img/favicon.ico"/> </head> <body style="min-height:100vh;display:flex;flex-direction:column"> <nav class="navbar has-shadow is-white" role="navigation" aria-label="main navigation"> <div class="container"> <div class="navbar-brand"> <a class="navbar-item" href="/"> <img alt="Brand" src="/img/brand.svg"> <div class="title is-4">&nbsp;Cine Tênis Verde</div> </a> <label class="button navbar-burger is-white" for="navbar-burger-state"> <span></span> <span></span> <span></span> </label> </div> <input type="checkbox" id="navbar-burger-state"/> <div class="navbar-menu"> <div class="navbar-end"> <a href="/post" class="navbar-item ">search </a> <a href="https://twitter.com/cinetenisverde" class="navbar-item ">twitter </a> <a href="/index.xml" class="navbar-item ">rss </a> </div> </div> </div> </nav> <section class="section" style="flex:1"> <div class="container"> <p class="title">Screenland</p> <p class="subtitle"><span class="entry-sidebar-stars"> &#x2605;&#x2605;&#x2606;&#x2606;&#x2606; </span> Wanderley Caloni, <a href="https://github.com/Caloni/cinetenisverde/commits/master/content/post/screenland.md">June 29, 2018</a></p> <p><p> <div class="content"> <p>Essa série parece ter a intenção de reconhecer a genialidade dos gamers em antecipar futuras tendências nos jogos eletrônicos que virão com a melhora da inteligência artificial e a construção de ambientes virtuais, sejam eles realistas ou não.</p> <p>Como o primeiro entrevistado sabiamente formula, a capacidade da mente humana em adaptar e interpretar nossa realidade será colocada à prova. Na verdade, já está sendo, como ele demonstrou em seu primeiro sucesso: um jogo que alia meditação com controle da consciência.</p> <p>O formato desta série-documentário é o que incomoda. Com uma voz robótica e efeitos anos 90 dizendo como será a revolução digital de maneira profética, poética e piegas, a série nos tira a possibilidade de ativar nossa imaginação.</p> <p>A coisa fica pior por causa do detalhamento inadequado da história. Em 20 minutos acompanhamos o desenvolvimento de duas criações experimentais sem saber direito como elas funcionam. Tudo bem existir o mistério do pra quê elas serão usadas (ninguém sabia direito para quê serviria o Twitter até ele começar a bombar), mas sem nos dar a chance de entender os objetivos por trás do autor da máquina de meditação fica difícil se identificar com seu protagonista.</p> <p>Da mesma forma, o projeto patrocinado por George R. Martin, criador da série de livros Game of Thrones, que se passa em um mundo fictício, mas muito semelhante à Idade Média, peca em não estabelecer quando este projeto deverá ser considerado pronto. Mesmo jogos aparentemente sem fim como Minecraft tiveram sua versão 1 lançada para deleite de seus early adopters.</p> <p>Sem saber direito a que veio e sem se destacar de vídeos do YouTube (alguns são melhor produzidos e mais atuais), está série está fadada a ser tão esquecível quanto as incursões de George Lucas em dourar sua pílula em uma galáxia tão distante. E isso ninguém precisa para viver.</p> <a href="https://www.imdb.com/title/tt6148128/mediaviewer/" target="ctvimg">Imagens</a> e créditos no <a title="IMDB: Internet Movie DataBase" href="http://www.imdb.com/title/tt6148128">IMDB</a>. </div> <span class="entry-sidebar-stars"> &#x2605;&#x2605;&#x2606;&#x2606;&#x2606; </span> Screenland &#9679; Idem. EUA, 2017. Com Kate Kneeland. Basicamente é isso. &#9679; Nota: 2/5. Categoria: series. Publicado em 2018-06-29. Texto escrito por Wanderley Caloni. <p><br>Quer <a href="https://twitter.com/search?q=@cinetenisverde Screenland">comentar</a>?<br></p> </div> </section> <section class="section"> <br> <div class="container"> <div class="is-flex"> <span> <a class="button">Share</a> </span> &nbsp; <span> <a class="button" href="https://www.facebook.com/sharer/sharer.php?u=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f"> <span class="icon"><i class="fa fa-facebook"></i></span> </a> <a class="button" href="https://twitter.com/intent/tweet?url=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f&text=Screenland"> <span class="icon"><i class="fa fa-twitter"></i></span> </a> <a class="button" href="https://news.ycombinator.com/submitlink?u=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f"> <span class="icon"><i class="fa fa-hacker-news"></i></span> </a> <a class="button" href="https://reddit.com/submit?url=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f&title=Screenland"> <span class="icon"><i class="fa fa-reddit"></i></span> </a> <a class="button" href="https://plus.google.com/share?url=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f"> <span class="icon"><i class="fa fa-google-plus"></i></span> </a> <a class="button" href="https://www.linkedin.com/shareArticle?url=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f&title=Screenland"> <span class="icon"><i class="fa fa-linkedin"></i></span> </a> <a class="button" href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f&title=Screenland&caption="> <span class="icon"><i class="fa fa-tumblr"></i></span> </a> <a class="button" href="https://pinterest.com/pin/create/bookmarklet/?media=%2fimg%2flogo.svg&url=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f&description=Screenland"> <span class="icon"><i class="fa fa-pinterest"></i></span> </a> <a class="button" href="whatsapp://send?text=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f"> <span class="icon"><i class="fa fa-whatsapp"></i></span> </a> <a class="button" href="https://web.skype.com/share?url=http%3a%2f%2fwww.cinetenisverde.com.br%2fseries%2fscreenland%2f"> <span class="icon"><i class="fa fa-skype"></i></span> </a> </span> </div> </div> <br> </section> <footer class="footer"> <div class="container"> <nav class="level"> <div class="level-right has-text-centered"> <div class="level-item"> <a class="button" href="http://www.cinetenisverde.com.br/"> <span class="icon"><i class="fa fa-home"></i></span> </a> &nbsp; <a class="button" href="/post"> <span class="icon"><i class="fa fa-search"></i></span> </a> &nbsp; <a class="button" href="https://twitter.com/cinetenisverde"> <span class="icon"><i class="fa fa-twitter"></i></span> </a> &nbsp; <a class="button" href="/index.xml"> <span class="icon"><i class="fa fa-rss"></i></span> </a> &nbsp; </div> </div> </nav> </div> </footer> </body> </html>
{ "content_hash": "774c2ece5e278c01fb0edcef316fb870", "timestamp": "", "source": "github", "line_count": 296, "max_line_length": 466, "avg_line_length": 36.689189189189186, "alnum_prop": 0.622744014732965, "repo_name": "cinetenisverde/cinetenisverde.github.io", "id": "553166f416bcc2a14a48ca35841c2fbefc959c53", "size": "10964", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "series/screenland/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "533" }, { "name": "HTML", "bytes": "31113501" }, { "name": "JavaScript", "bytes": "3266" }, { "name": "Python", "bytes": "2943" } ], "symlink_target": "" }
define(['jasmine/jquery', 'jquery', 'oplop/ui', 'oplop/algorithm', 'oplop/ux'], function(jasmine, $, ui, algorithm, impl) { var htmlFixture = '<input id="nickname" class="fakeInput" type=text></input> \ <input id="newNickname"></input> \ <input id="masterPassword" class="fakePassword" type=password></input> \ <input id="masterPasswordAgain" class="fakePassword" style="display: none" type=password></input> \ <input id="accountPasswordField" class="fakeInput" type=password></input>' describe('UI', function() { describe('"New Nickname"', function() { var checkbox; var passwordField; var clickEvent; beforeEach(function() { setFixtures(htmlFixture); checkbox = $('#newNickname') passwordField = $('#masterPasswordAgain'); var data = {checkbox: checkbox, passwordField: passwordField}; clickEvent = jQuery.Event('click', {data: data}); }); it('hides the checkbox', function() { ui.displayValidateMasterPassword(clickEvent); expect(checkbox).not.toBeVisible(); }); it('shows the 2nd password field and focuses it', function() { ui.displayValidateMasterPassword(clickEvent); expect(passwordField).toBeVisible(); expect(passwordField).toBeFocused(); }); }); describe('Validate master password', function() { var firstField; var secondField; beforeEach(function() { setFixtures(htmlFixture); firstField = $('#masterPassword'); secondField = $('#masterPasswordAgain'); }); it('returns true if passwords match', function() { firstField.val('password'); secondField.val('password'); var given = ui.validateMasterPassword(firstField, secondField); expect(given).toBeTruthy(); }); it('returns false if passwords differ', function() { firstField.val('password'); secondField.val('pasword'); var given = ui.validateMasterPassword(firstField, secondField); expect(given).toBeFalsy(); }); it('blanks input fields and sets focus on first field', function() { firstField.val('password'); secondField.val('pasword'); ui.validateMasterPassword(firstField, secondField); expect(firstField).toBeFocused(); expect(firstField).toHaveValue(''); expect(secondField).toHaveValue(''); }); }); describe('Account password', function() { it('can be set', function() { setFixtures(htmlFixture); var field = $('#accountPasswordField'); ui.setAccountPassword(field, 'ABCD'); expect(field).toHaveValue('ABCD'); expect(field).toBeFocused(); }); }); describe('Account password creation', function() { var nickname; var newNickname; var masterPassword; var masterPasswordAgain; var accountPasswordField; var testEvent; beforeEach(function() { setFixtures(htmlFixture); nickname = $('#nickname'); newNickname = $('#newNickname'); masterPassword = $('#masterPassword'); masterPasswordAgain = $('#masterPasswordAgain'); accountPasswordField = $('#accountPasswordField'); var testEventData = { nickname: nickname, newNickname: newNickname, masterPassword: masterPassword, masterPasswordAgain: masterPasswordAgain, accountPasswordField: accountPasswordField }; testEvent = jQuery.Event('click', {data: testEventData}); }); afterEach(function() { impl.clipboardWrite = undefined; }); it('blanks passwords on failure', function() { nickname.val('nickname'); masterPassword.val('password'); masterPasswordAgain.val('pasword'); newNickname[0].checked = true; ui.createAccountPassword(testEvent, true); expect(masterPassword).toHaveValue(''); expect(masterPasswordAgain).toHaveValue(''); expect(accountPasswordField).toHaveValue(''); }); it('blanks all fields on success', function() { nickname.val('nickname'); masterPassword.val('password'); ui.createAccountPassword(testEvent, true); expect(masterPassword).toHaveValue(''); expect(nickname).toHaveValue(''); }); it('sets the account password', function() { nickname.val('nickname'); masterPassword.val('password'); var accountPassword = algorithm.accountPassword( 'nickname', 'password'); ui.createAccountPassword(testEvent, true); expect(accountPasswordField).toHaveValue(accountPassword); }); it('writes to the clipboard if available', function() { impl.clipboardWrite = jasmine.createSpy('clipboardWrite'); impl.clipboardWrite.andReturn(true); nickname.val('nickname'); masterPassword.val('password'); var accountPassword = algorithm.accountPassword( 'nickname', 'password'); ui.createAccountPassword(testEvent, true); expect(impl.clipboardWrite).toHaveBeenCalled(); expect(impl.clipboardWrite).toHaveBeenCalledWith(accountPassword); expect(accountPasswordField).toHaveValue(''); }); it('displays account password if clipboard failed', function() { impl.clipboardWrite = jasmine.createSpy('clipboardWrite'); impl.clipboardWrite.andReturn(false); nickname.val('nickname'); masterPassword.val('password'); var accountPassword = algorithm.accountPassword( 'nickname', 'password'); ui.createAccountPassword(testEvent, true); expect(impl.clipboardWrite).toHaveBeenCalled(); expect(impl.clipboardWrite).toHaveBeenCalledWith(accountPassword); expect(accountPasswordField).toHaveValue(accountPassword); }); }); describe('Nicknames link', function() { it('creates/sets the links', function() { setFixtures('<span class="' + ui.linkToNicknamesClass + '">link</span>'); ui.setNicknamesLink('http://www.example.com'); var links = $('a.' + ui.linkToNicknamesClass); expect(links).not.toBeEmpty(); expect(links).toHaveAttr('href', 'http://www.example.com'); ui.setNicknamesLink('http://2.example.com'); expect(links).toHaveAttr('href', 'http://2.example.com'); }); it('stores the link', function() { var event = {}; event.target = {}; event.target.value = 'http://www.example.com'; var spy = spyOn(impl, 'setStorage'); ui.changedNicknamesLink(event); expect(spy).toHaveBeenCalledWith(ui.nicknamesLinkKey, 'http://www.example.com'); }); it('deletes the storage when unset', function() { var event = {}; event.target = {}; event.target.value = ''; var setSpy = spyOn(impl, 'setStorage'); var removeSpy = spyOn(impl, 'removeStorage'); ui.changedNicknamesLink(event); expect(setSpy).not.toHaveBeenCalled(); expect(removeSpy).toHaveBeenCalledWith(ui.nicknamesLinkKey); }); }); }); });
{ "content_hash": "08f1517e9f7d77013cf2b915af667319", "timestamp": "", "source": "github", "line_count": 223, "max_line_length": 110, "avg_line_length": 38.426008968609864, "alnum_prop": 0.5257322908157311, "repo_name": "brettcannon/oplop", "id": "170f77fcab60c71ea3f4346480971199cafb032f", "size": "8569", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "HTML/tests/specs/uiSpec.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "8372" }, { "name": "Emacs Lisp", "bytes": "2609" }, { "name": "HTML", "bytes": "16985" }, { "name": "Java", "bytes": "61201" }, { "name": "JavaScript", "bytes": "187417" }, { "name": "Makefile", "bytes": "52" }, { "name": "Python", "bytes": "116628" } ], "symlink_target": "" }
/** * Problem Link: https://leetcode.com/problems/remove-linked-list-elements/ * * Iterate every elements in the list, then remove the node with val equals to val. * * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ public class Solution { public ListNode removeElements(ListNode head, int val) { while(head != null && head.val == val) head = head.next; ListNode next = head; while(next != null && next.next != null) { if(next.next.val == val) { next.next = next.next.next; } else { next = next.next; } } return head; } }
{ "content_hash": "904fdd81570b87ecaa5e2392288bf48f", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 83, "avg_line_length": 28.53846153846154, "alnum_prop": 0.5498652291105122, "repo_name": "antonio081014/LeeCode-CodeBase", "id": "7479b6e5a829b8dd155b6637f6f137fcd7ee5ab3", "size": "742", "binary": false, "copies": "2", "ref": "refs/heads/main", "path": "Java/remove-linked-list-elements.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "142461" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.IO; using System.Web.Hosting; namespace PreneticLabs.Websites.IsRonWrong.Models { public class AnswerModel { private static List<string> possibleAnswers = new List<string>(); private static Random rand = new Random(); private static string possibleAnswersPath = HostingEnvironment.MapPath("~/App_Data/possibleAnswers.txt"); static AnswerModel() { possibleAnswers.AddRange(File.ReadAllLines(possibleAnswersPath)); } public string Get() { int r = rand.Next(possibleAnswers.Count); return possibleAnswers[r]; } } }
{ "content_hash": "2c0731a36a5fe347551ce614868f934e", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 113, "avg_line_length": 27.84, "alnum_prop": 0.6551724137931034, "repo_name": "preneticlabs/websites", "id": "38a7e8fc3ff91b506b68951e665bded591ef08f1", "size": "698", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "IsRonWrong/Models/AnswerModel.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "371" }, { "name": "C#", "bytes": "29890" }, { "name": "CSS", "bytes": "1698" }, { "name": "JavaScript", "bytes": "703136" } ], "symlink_target": "" }
ACCEPTED #### According to NUB Generator [autonym] #### Published in null #### Original name null ### Remarks null
{ "content_hash": "b1979d73880c157154ed06293a0a9507", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 23, "avg_line_length": 9.076923076923077, "alnum_prop": 0.6779661016949152, "repo_name": "mdoering/backbone", "id": "1309388beafe4f7b554996c12b0028dba5af8a18", "size": "174", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Ericales/Polemoniaceae/Aliciella/Aliciella leptomeria/Gilia leptomeria leptomeria/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
require 'rails_helper' RSpec.describe Deal, type: :model do pending "add some examples to (or delete) #{__FILE__}" end
{ "content_hash": "f7d32fb196a366bc9bcec89ce3328d95", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 56, "avg_line_length": 24.4, "alnum_prop": 0.6967213114754098, "repo_name": "CucumisSativus/ddd_crm", "id": "44764a1c32e17835ad3978f0791674059e0c8fcd", "size": "122", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/models/deal_spec.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1270" }, { "name": "CoffeeScript", "bytes": "438" }, { "name": "HTML", "bytes": "16990" }, { "name": "JavaScript", "bytes": "20774" }, { "name": "Ruby", "bytes": "109947" } ], "symlink_target": "" }
/** * This packages contains the implementations of the processes * {@link com.sshtools.forker.client.ForkerBuilder} creates. * <p> * There would usually be no need to use the classes directly. */ package com.sshtools.forker.client.impl;
{ "content_hash": "cea26b073b86f3eb814cb69c9afb538f", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 62, "avg_line_length": 30.375, "alnum_prop": 0.7489711934156379, "repo_name": "sshtools/forker", "id": "f5fe47698d4701d6b18414b49480fae1ce9753f8", "size": "876", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "forker-client/src/main/java/com/sshtools/forker/client/impl/package-info.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "148" }, { "name": "Io", "bytes": "66" }, { "name": "Java", "bytes": "878927" }, { "name": "JavaScript", "bytes": "1157" } ], "symlink_target": "" }
<!-- Safe sample input : use proc_open to read /tmp/tainted.txt sanitize : settype (float) File : use of untrusted data in a property value (CSS) --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.--> <!DOCTYPE html> <html> <head> <style> <?php $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $cwd = '/tmp'; $process = proc_open('more /tmp/tainted.txt', $descriptorspec, $pipes, $cwd, NULL); if (is_resource($process)) { fclose($pipes[0]); $tainted = stream_get_contents($pipes[1]); fclose($pipes[1]); $return_value = proc_close($process); } if(settype($tainted, "float")) $tainted = $tainted ; else $tainted = 0.0 ; echo "body { color :". $tainted ." ; }" ; ?> </style> </script> </head> <body> <h1>Hello World!</h1> </body> </html>
{ "content_hash": "fb5bc3140c73edcf6551ac4b2fdf9546", "timestamp": "", "source": "github", "line_count": 75, "max_line_length": 83, "avg_line_length": 22.666666666666668, "alnum_prop": 0.7070588235294117, "repo_name": "stivalet/PHP-Vulnerability-test-suite", "id": "f7d0dab329a815e0d08dc1b16f37afe66a32791a", "size": "1700", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "XSS/CWE_79/safe/CWE_79__proc_open__CAST-func_settype_float__Use_untrusted_data_propertyValue_CSS-property_Value.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "64184004" } ], "symlink_target": "" }
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/foobar0815/guenther/blob/master/LICENSE.md) [![Build Status](https://travis-ci.org/foobar0815/guenther.svg?branch=master)](https://travis-ci.org/foobar0815/guenther) [![Code Climate](https://codeclimate.com/github/foobar0815/guenther/badges/gpa.svg)](https://codeclimate.com/github/foobar0815/guenther) [![Test Coverage](https://codeclimate.com/github/foobar0815/guenther/badges/coverage.svg)](https://codeclimate.com/github/foobar0815/guenther/coverage) [![Issue Count](https://codeclimate.com/github/foobar0815/guenther/badges/issue_count.svg)](https://codeclimate.com/github/foobar0815/guenther) An XMPP quiz bot. ## Licensing This project is licensed under the terms of the MIT license, see LICENSE.md file. [MoxQuizz](http://moxquizz.de) data files are distributed under the terms of the GNU General Public License version 2 (GPLv2). ## TODO * Remember already asked questions * Persistent configuration parameters * Answer command
{ "content_hash": "86cae28a85e235bfee84077afc572a34", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 432, "avg_line_length": 53.94736842105263, "alnum_prop": 0.7824390243902439, "repo_name": "marius/guenther", "id": "d5981b0d0e45d95dbe74cefae9643787521c36a6", "size": "1036", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "14155" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <meta content="IE=edge" http-equiv="X-UA-Compatible"> <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" /> <title>NoSuchFieldException - Android SDK | Android Developers</title> <!-- STYLESHEETS --> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto+Condensed"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" title="roboto"> <link href="../../../assets/css/default.css?v=7" rel="stylesheet" type="text/css"> <!-- FULLSCREEN STYLESHEET --> <link href="../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" type="text/css"> <!-- JAVASCRIPT --> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script src="../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> <script type="text/javascript"> var toRoot = "../../../"; var metaTags = []; var devsite = false; </script> <script src="../../../assets/js/docs.js?v=6" type="text/javascript"></script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-5831155-1', 'android.com'); ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); ga('send', 'pageview'); ga('universal.send', 'pageview'); // Send page view for new tracker. </script> </head> <body class="gc-documentation develop reference" itemscope itemtype="http://schema.org/Article"> <div id="doc-api-level" class="1" style="display:none"></div> <a name="top"></a> <a name="top"></a> <!-- dialog to prompt lang pref change when loaded from hardcoded URL <div id="langMessage" style="display:none"> <div> <div class="lang en"> <p>You requested a page in English, would you like to proceed with this language setting?</p> </div> <div class="lang es"> <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p> </div> <div class="lang ja"> <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p> </div> <div class="lang ko"> <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p> </div> <div class="lang ru"> <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p> </div> <div class="lang zh-cn"> <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p> </div> <div class="lang zh-tw"> <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p> </div> <a href="#" class="button yes" onclick="return false;"> <span class="lang en">Yes</span> <span class="lang es">Sí</span> <span class="lang ja">Yes</span> <span class="lang ko">Yes</span> <span class="lang ru">Yes</span> <span class="lang zh-cn">是的</span> <span class="lang zh-tw">没有</span> </a> <a href="#" class="button" onclick="$('#langMessage').hide();return false;"> <span class="lang en">No</span> <span class="lang es">No</span> <span class="lang ja">No</span> <span class="lang ko">No</span> <span class="lang ru">No</span> <span class="lang zh-cn">没有</span> <span class="lang zh-tw">没有</span> </a> </div> </div> --> <!-- Header --> <div id="header-wrapper"> <div class="dac-header" id="header"> <div class="dac-header-inner"> <a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title="Open navigation"> <span class="dac-nav-hamburger"> <span class="dac-nav-hamburger-top"></span> <span class="dac-nav-hamburger-mid"></span> <span class="dac-nav-hamburger-bot"></span> </span> </a> <a class="dac-header-logo" href="../../../index.html"> <img class="dac-header-logo-image" src="../../../assets/images/android_logo.png" srcset="../../../assets/images/android_logo@2x.png 2x" width="32" height="36" alt="Android" /> Developers </a> <ul class="dac-header-crumbs"> <li class="dac-header-crumbs-item"><span class="dac-header-crumbs-link current ">NoSuchFieldException - Android SDK</a></li> </ul> <div class="dac-header-search" id="search-container"> <div class="dac-header-search-inner"> <div class="dac-sprite dac-search dac-header-search-btn" id="search-btn"></div> <form class="dac-header-search-form" onsubmit="return submit_search()"> <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" onkeydown="return search_changed(event, true, '../../../')" onkeyup="return search_changed(event, false, '../../../')" class="dac-header-search-input" placeholder="Search" /> <a class="dac-header-search-close hide" id="search-close">close</a> </form> </div><!-- end dac-header-search-inner --> </div><!-- end dac-header-search --> <div class="search_filtered_wrapper"> <div class="suggest-card reference no-display"> <ul class="search_filtered"> </ul> </div> <div class="suggest-card develop no-display"> <ul class="search_filtered"> </ul> <div class="child-card guides no-display"> </div> <div class="child-card training no-display"> </div> <div class="child-card samples no-display"> </div> </div> <div class="suggest-card design no-display"> <ul class="search_filtered"> </ul> </div> <div class="suggest-card distribute no-display"> <ul class="search_filtered"> </ul> </div> </div> <a class="dac-header-console-btn" href="https://play.google.com/apps/publish/"> <span class="dac-sprite dac-google-play"></span> <span class="dac-visible-desktop-inline">Developer</span> Console </a> </div><!-- end header-wrap.wrap --> </div><!-- end header --> <div id="searchResults" class="wrap" style="display:none;"> <h2 id="searchTitle">Results</h2> <div id="leftSearchControl" class="search-control">Loading...</div> </div> </div> <!--end header-wrapper --> <!-- Navigation--> <nav class="dac-nav"> <div class="dac-nav-dimmer" data-dac-toggle-nav></div> <ul class="dac-nav-list" data-dac-nav> <li class="dac-nav-item dac-nav-head"> <a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation"> <img class="dac-logo-image" src="../../../assets/images/android_logo.png" srcset="../../../assets/images/android_logo@2x.png 2x" width="32" height="36" alt="Android" /> Developers </a> </li> <li class="dac-nav-item home"> <a class="dac-nav-link dac-visible-mobile-block" href="../../../index.html">Home</a> <ul class="dac-nav-secondary about"> <li class="dac-nav-item about"> <a class="dac-nav-link" href="../../../about/index.html">Android</a> </li> <li class="dac-nav-item wear"> <a class="dac-nav-link" href="../../../wear/index.html">Wear</a> </li> <li class="dac-nav-item tv"> <a class="dac-nav-link" href="../../../tv/index.html">TV</a> </li> <li class="dac-nav-item auto"> <a class="dac-nav-link" href="../../../auto/index.html">Auto</a> </li> </ul> </li> <li class="dac-nav-item design"> <a class="dac-nav-link" href="../../../design/index.html" zh-tw-lang="設計" zh-cn-lang="设计" ru-lang="Проектирование" ko-lang="디자인" ja-lang="設計" es-lang="Diseñar">Design</a> </li> <li class="dac-nav-item develop"> <a class="dac-nav-link" href="../../../develop/index.html" zh-tw-lang="開發" zh-cn-lang="开发" ru-lang="Разработка" ko-lang="개발" ja-lang="開発" es-lang="Desarrollar">Develop</a> <ul class="dac-nav-secondary develop"> <li class="dac-nav-item training"> <a class="dac-nav-link" href="../../../training/index.html" zh-tw-lang="訓練課程" zh-cn-lang="培训" ru-lang="Курсы" ko-lang="교육" ja-lang="トレーニング" es-lang="Capacitación">Training</a> </li> <li class="dac-nav-item guide"> <a class="dac-nav-link" href="../../../guide/index.html" zh-tw-lang="API 指南" zh-cn-lang="API 指南" ru-lang="Руководства по API" ko-lang="API 가이드" ja-lang="API ガイド" es-lang="Guías de la API">API Guides</a> </li> <li class="dac-nav-item reference"> <a class="dac-nav-link" href="../../../reference/packages.html" zh-tw-lang="參考資源" zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス" es-lang="Referencia">Reference</a> </li> <li class="dac-nav-item tools"> <a class="dac-nav-link" href="../../../sdk/index.html" zh-tw-lang="相關工具" zh-cn-lang="工具" ru-lang="Инструменты" ko-lang="도구" ja-lang="ツール" es-lang="Herramientas">Tools</a></li> <li class="dac-nav-item google"> <a class="dac-nav-link" href="../../../google/index.html">Google Services</a> </li> <li class="dac-nav-item preview"> <a class="dac-nav-link" href="../../../preview/index.html">Preview</a> </li> </ul> </li> <li class="dac-nav-item distribute"> <a class="dac-nav-link" href="../../../distribute/googleplay/index.html" zh-tw-lang="發佈" zh-cn-lang="分发" ru-lang="Распространение" ko-lang="배포" ja-lang="配布" es-lang="Distribuir">Distribute</a> <ul class="dac-nav-secondary distribute"> <li class="dac-nav-item googleplay"> <a class="dac-nav-link" href="../../../distribute/googleplay/index.html">Google Play</a></li> <li class="dac-nav-item essentials"> <a class="dac-nav-link" href="../../../distribute/essentials/index.html">Essentials</a></li> <li class="dac-nav-item users"> <a class="dac-nav-link" href="../../../distribute/users/index.html">Get Users</a></li> <li class="dac-nav-item engage"> <a class="dac-nav-link" href="../../../distribute/engage/index.html">Engage &amp; Retain</a></li> <li class="dac-nav-item monetize"> <a class="dac-nav-link" href="../../../distribute/monetize/index.html">Earn</a> </li> <li class="dac-nav-item analyze"> <a class="dac-nav-link" href="../../../distribute/analyze/index.html">Analyze</a> </li> <li class="dac-nav-item stories"> <a class="dac-nav-link" href="../../../distribute/stories/index.html">Stories</a> </li> </ul> </li> </ul> </nav> <!-- end navigation--> <div class="wrap clearfix" id="body-content"><div class="cols"> <div class="col-4 dac-hidden-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> <div id="devdoc-nav"> <div id="api-nav-header"> <div id="api-level-toggle"> <label for="apiLevelCheckbox" class="disabled" title="Select your target API level to dim unavailable APIs">API level: </label> <div class="select-wrapper"> <select id="apiLevelSelector"> <!-- option elements added by buildApiLevelSelector() --> </select> </div> </div><!-- end toggle --> <div id="api-nav-title">Android APIs</div> </div><!-- end nav header --> <script> var SINCE_DATA = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23' ]; buildApiLevelSelector(); </script> <div id="swapper"> <div id="nav-panels"> <div id="resize-packages-nav"> <div id="packages-nav" class="scroll-pane"> <ul> <li class="api apilevel-1"> <a href="../../../reference/android/package-summary.html">android</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/accessibilityservice/package-summary.html">android.accessibilityservice</a></li> <li class="api apilevel-5"> <a href="../../../reference/android/accounts/package-summary.html">android.accounts</a></li> <li class="api apilevel-11"> <a href="../../../reference/android/animation/package-summary.html">android.animation</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/annotation/package-summary.html">android.annotation</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/app/package-summary.html">android.app</a></li> <li class="api apilevel-8"> <a href="../../../reference/android/app/admin/package-summary.html">android.app.admin</a></li> <li class="api apilevel-23"> <a href="../../../reference/android/app/assist/package-summary.html">android.app.assist</a></li> <li class="api apilevel-8"> <a href="../../../reference/android/app/backup/package-summary.html">android.app.backup</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/app/job/package-summary.html">android.app.job</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/app/usage/package-summary.html">android.app.usage</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/appwidget/package-summary.html">android.appwidget</a></li> <li class="api apilevel-5"> <a href="../../../reference/android/bluetooth/package-summary.html">android.bluetooth</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/bluetooth/le/package-summary.html">android.bluetooth.le</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/content/package-summary.html">android.content</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/content/pm/package-summary.html">android.content.pm</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/content/res/package-summary.html">android.content.res</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/database/package-summary.html">android.database</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/database/sqlite/package-summary.html">android.database.sqlite</a></li> <li class="api apilevel-"> <a href="../../../reference/android/databinding/package-summary.html">android.databinding</a></li> <li class="api apilevel-11"> <a href="../../../reference/android/drm/package-summary.html">android.drm</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/gesture/package-summary.html">android.gesture</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/graphics/package-summary.html">android.graphics</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/graphics/drawable/package-summary.html">android.graphics.drawable</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/graphics/drawable/shapes/package-summary.html">android.graphics.drawable.shapes</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/graphics/pdf/package-summary.html">android.graphics.pdf</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/hardware/package-summary.html">android.hardware</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/hardware/camera2/package-summary.html">android.hardware.camera2</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/hardware/camera2/params/package-summary.html">android.hardware.camera2.params</a></li> <li class="api apilevel-17"> <a href="../../../reference/android/hardware/display/package-summary.html">android.hardware.display</a></li> <li class="api apilevel-23"> <a href="../../../reference/android/hardware/fingerprint/package-summary.html">android.hardware.fingerprint</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/hardware/input/package-summary.html">android.hardware.input</a></li> <li class="api apilevel-12"> <a href="../../../reference/android/hardware/usb/package-summary.html">android.hardware.usb</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/inputmethodservice/package-summary.html">android.inputmethodservice</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/location/package-summary.html">android.location</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/media/package-summary.html">android.media</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/media/audiofx/package-summary.html">android.media.audiofx</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/media/browse/package-summary.html">android.media.browse</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/media/effect/package-summary.html">android.media.effect</a></li> <li class="api apilevel-23"> <a href="../../../reference/android/media/midi/package-summary.html">android.media.midi</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/media/projection/package-summary.html">android.media.projection</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/media/session/package-summary.html">android.media.session</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/media/tv/package-summary.html">android.media.tv</a></li> <li class="api apilevel-12"> <a href="../../../reference/android/mtp/package-summary.html">android.mtp</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/net/package-summary.html">android.net</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/net/http/package-summary.html">android.net.http</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/net/nsd/package-summary.html">android.net.nsd</a></li> <li class="api apilevel-12"> <a href="../../../reference/android/net/rtp/package-summary.html">android.net.rtp</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/net/sip/package-summary.html">android.net.sip</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/net/wifi/package-summary.html">android.net.wifi</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/net/wifi/p2p/package-summary.html">android.net.wifi.p2p</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/net/wifi/p2p/nsd/package-summary.html">android.net.wifi.p2p.nsd</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/nfc/package-summary.html">android.nfc</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/nfc/cardemulation/package-summary.html">android.nfc.cardemulation</a></li> <li class="api apilevel-10"> <a href="../../../reference/android/nfc/tech/package-summary.html">android.nfc.tech</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/opengl/package-summary.html">android.opengl</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/os/package-summary.html">android.os</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/os/storage/package-summary.html">android.os.storage</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/preference/package-summary.html">android.preference</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/print/package-summary.html">android.print</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/print/pdf/package-summary.html">android.print.pdf</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/printservice/package-summary.html">android.printservice</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/provider/package-summary.html">android.provider</a></li> <li class="api apilevel-11"> <a href="../../../reference/android/renderscript/package-summary.html">android.renderscript</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/sax/package-summary.html">android.sax</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/security/package-summary.html">android.security</a></li> <li class="api apilevel-23"> <a href="../../../reference/android/security/keystore/package-summary.html">android.security.keystore</a></li> <li class="api apilevel-22"> <a href="../../../reference/android/service/carrier/package-summary.html">android.service.carrier</a></li> <li class="api apilevel-23"> <a href="../../../reference/android/service/chooser/package-summary.html">android.service.chooser</a></li> <li class="api apilevel-17"> <a href="../../../reference/android/service/dreams/package-summary.html">android.service.dreams</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/service/media/package-summary.html">android.service.media</a></li> <li class="api apilevel-18"> <a href="../../../reference/android/service/notification/package-summary.html">android.service.notification</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/service/restrictions/package-summary.html">android.service.restrictions</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/service/textservice/package-summary.html">android.service.textservice</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/service/voice/package-summary.html">android.service.voice</a></li> <li class="api apilevel-7"> <a href="../../../reference/android/service/wallpaper/package-summary.html">android.service.wallpaper</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/speech/package-summary.html">android.speech</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/speech/tts/package-summary.html">android.speech.tts</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/annotation/package-summary.html">android.support.annotation</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/app/recommendation/package-summary.html">android.support.app.recommendation</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/customtabs/package-summary.html">android.support.customtabs</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/design/package-summary.html">android.support.design</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/design/widget/package-summary.html">android.support.design.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/multidex/package-summary.html">android.support.multidex</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/percent/package-summary.html">android.support.percent</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v13/app/package-summary.html">android.support.v13.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v14/preference/package-summary.html">android.support.v14.preference</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/leanback/package-summary.html">android.support.v17.leanback</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/leanback/app/package-summary.html">android.support.v17.leanback.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/leanback/database/package-summary.html">android.support.v17.leanback.database</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/leanback/graphics/package-summary.html">android.support.v17.leanback.graphics</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/leanback/system/package-summary.html">android.support.v17.leanback.system</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/leanback/widget/package-summary.html">android.support.v17.leanback.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v17/preference/package-summary.html">android.support.v17.preference</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/accessibilityservice/package-summary.html">android.support.v4.accessibilityservice</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/animation/package-summary.html">android.support.v4.animation</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/app/package-summary.html">android.support.v4.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/content/package-summary.html">android.support.v4.content</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/content/pm/package-summary.html">android.support.v4.content.pm</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/content/res/package-summary.html">android.support.v4.content.res</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/database/package-summary.html">android.support.v4.database</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/graphics/package-summary.html">android.support.v4.graphics</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/graphics/drawable/package-summary.html">android.support.v4.graphics.drawable</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/hardware/display/package-summary.html">android.support.v4.hardware.display</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/hardware/fingerprint/package-summary.html">android.support.v4.hardware.fingerprint</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/media/package-summary.html">android.support.v4.media</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/media/session/package-summary.html">android.support.v4.media.session</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/net/package-summary.html">android.support.v4.net</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/os/package-summary.html">android.support.v4.os</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/print/package-summary.html">android.support.v4.print</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/provider/package-summary.html">android.support.v4.provider</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/text/package-summary.html">android.support.v4.text</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/util/package-summary.html">android.support.v4.util</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/view/package-summary.html">android.support.v4.view</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/view/accessibility/package-summary.html">android.support.v4.view.accessibility</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/view/animation/package-summary.html">android.support.v4.view.animation</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/widget/package-summary.html">android.support.v4.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/app/package-summary.html">android.support.v7.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/appcompat/package-summary.html">android.support.v7.appcompat</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/cardview/package-summary.html">android.support.v7.cardview</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/graphics/package-summary.html">android.support.v7.graphics</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/graphics/drawable/package-summary.html">android.support.v7.graphics.drawable</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/gridlayout/package-summary.html">android.support.v7.gridlayout</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/media/package-summary.html">android.support.v7.media</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/mediarouter/package-summary.html">android.support.v7.mediarouter</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/preference/package-summary.html">android.support.v7.preference</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/recyclerview/package-summary.html">android.support.v7.recyclerview</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/util/package-summary.html">android.support.v7.util</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/view/package-summary.html">android.support.v7.view</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/widget/package-summary.html">android.support.v7.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/widget/helper/package-summary.html">android.support.v7.widget.helper</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/widget/util/package-summary.html">android.support.v7.widget.util</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v8/renderscript/package-summary.html">android.support.v8.renderscript</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/system/package-summary.html">android.system</a></li> <li class="api apilevel-21"> <a href="../../../reference/android/telecom/package-summary.html">android.telecom</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/telephony/package-summary.html">android.telephony</a></li> <li class="api apilevel-5"> <a href="../../../reference/android/telephony/cdma/package-summary.html">android.telephony.cdma</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/telephony/gsm/package-summary.html">android.telephony.gsm</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/package-summary.html">android.test</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/mock/package-summary.html">android.test.mock</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/suitebuilder/package-summary.html">android.test.suitebuilder</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/suitebuilder/annotation/package-summary.html">android.test.suitebuilder.annotation</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/package-summary.html">android.text</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/text/format/package-summary.html">android.text.format</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/method/package-summary.html">android.text.method</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/style/package-summary.html">android.text.style</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/util/package-summary.html">android.text.util</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/transition/package-summary.html">android.transition</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/util/package-summary.html">android.util</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/view/package-summary.html">android.view</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/view/accessibility/package-summary.html">android.view.accessibility</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/view/animation/package-summary.html">android.view.animation</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/view/inputmethod/package-summary.html">android.view.inputmethod</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/view/textservice/package-summary.html">android.view.textservice</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/webkit/package-summary.html">android.webkit</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/widget/package-summary.html">android.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/com/android/internal/backup/package-summary.html">com.android.internal.backup</a></li> <li class="api apilevel-"> <a href="../../../reference/com/android/internal/logging/package-summary.html">com.android.internal.logging</a></li> <li class="api apilevel-"> <a href="../../../reference/com/android/internal/os/package-summary.html">com.android.internal.os</a></li> <li class="api apilevel-"> <a href="../../../reference/com/android/internal/statusbar/package-summary.html">com.android.internal.statusbar</a></li> <li class="api apilevel-"> <a href="../../../reference/com/android/internal/widget/package-summary.html">com.android.internal.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/com/android/test/runner/package-summary.html">com.android.test.runner</a></li> <li class="api apilevel-1"> <a href="../../../reference/dalvik/annotation/package-summary.html">dalvik.annotation</a></li> <li class="api apilevel-1"> <a href="../../../reference/dalvik/bytecode/package-summary.html">dalvik.bytecode</a></li> <li class="api apilevel-1"> <a href="../../../reference/dalvik/system/package-summary.html">dalvik.system</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/awt/font/package-summary.html">java.awt.font</a></li> <li class="api apilevel-3"> <a href="../../../reference/java/beans/package-summary.html">java.beans</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/io/package-summary.html">java.io</a></li> <li class="selected api apilevel-1"> <a href="../../../reference/java/lang/package-summary.html">java.lang</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/annotation/package-summary.html">java.lang.annotation</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/ref/package-summary.html">java.lang.ref</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/reflect/package-summary.html">java.lang.reflect</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/math/package-summary.html">java.math</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/net/package-summary.html">java.net</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/package-summary.html">java.nio</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/channels/package-summary.html">java.nio.channels</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/channels/spi/package-summary.html">java.nio.channels.spi</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/charset/package-summary.html">java.nio.charset</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/charset/spi/package-summary.html">java.nio.charset.spi</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/package-summary.html">java.security</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/acl/package-summary.html">java.security.acl</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/cert/package-summary.html">java.security.cert</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/interfaces/package-summary.html">java.security.interfaces</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/spec/package-summary.html">java.security.spec</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/sql/package-summary.html">java.sql</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/text/package-summary.html">java.text</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/package-summary.html">java.util</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/concurrent/package-summary.html">java.util.concurrent</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/concurrent/atomic/package-summary.html">java.util.concurrent.atomic</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/concurrent/locks/package-summary.html">java.util.concurrent.locks</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/jar/package-summary.html">java.util.jar</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/logging/package-summary.html">java.util.logging</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/prefs/package-summary.html">java.util.prefs</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/regex/package-summary.html">java.util.regex</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/zip/package-summary.html">java.util.zip</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/crypto/package-summary.html">javax.crypto</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/crypto/interfaces/package-summary.html">javax.crypto.interfaces</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/crypto/spec/package-summary.html">javax.crypto.spec</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/microedition/khronos/egl/package-summary.html">javax.microedition.khronos.egl</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/microedition/khronos/opengles/package-summary.html">javax.microedition.khronos.opengles</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/net/package-summary.html">javax.net</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/net/ssl/package-summary.html">javax.net.ssl</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/package-summary.html">javax.security.auth</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/callback/package-summary.html">javax.security.auth.callback</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/login/package-summary.html">javax.security.auth.login</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/x500/package-summary.html">javax.security.auth.x500</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/cert/package-summary.html">javax.security.cert</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/sql/package-summary.html">javax.sql</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/xml/package-summary.html">javax.xml</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/datatype/package-summary.html">javax.xml.datatype</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/namespace/package-summary.html">javax.xml.namespace</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/xml/parsers/package-summary.html">javax.xml.parsers</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/package-summary.html">javax.xml.transform</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/dom/package-summary.html">javax.xml.transform.dom</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/sax/package-summary.html">javax.xml.transform.sax</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/stream/package-summary.html">javax.xml.transform.stream</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/validation/package-summary.html">javax.xml.validation</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/xpath/package-summary.html">javax.xml.xpath</a></li> <li class="api apilevel-1"> <a href="../../../reference/junit/framework/package-summary.html">junit.framework</a></li> <li class="api apilevel-1"> <a href="../../../reference/junit/runner/package-summary.html">junit.runner</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/package-summary.html">org.apache.http.conn</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/scheme/package-summary.html">org.apache.http.conn.scheme</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/ssl/package-summary.html">org.apache.http.conn.ssl</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/params/package-summary.html">org.apache.http.params</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/json/package-summary.html">org.json</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/w3c/dom/package-summary.html">org.w3c.dom</a></li> <li class="api apilevel-8"> <a href="../../../reference/org/w3c/dom/ls/package-summary.html">org.w3c.dom.ls</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xml/sax/package-summary.html">org.xml.sax</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xml/sax/ext/package-summary.html">org.xml.sax.ext</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xml/sax/helpers/package-summary.html">org.xml.sax.helpers</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xmlpull/v1/package-summary.html">org.xmlpull.v1</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xmlpull/v1/sax2/package-summary.html">org.xmlpull.v1.sax2</a></li> </ul><br/> </div> <!-- end packages-nav --> </div> <!-- end resize-packages --> <div id="classes-nav" class="scroll-pane"> <ul> <li><h2>Annotations</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/lang/Deprecated.html">Deprecated</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Override.html">Override</a></li> <li class="api apilevel-19"><a href="../../../reference/java/lang/SafeVarargs.html">SafeVarargs</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/SuppressWarnings.html">SuppressWarnings</a></li> </ul> </li> <li><h2>Interfaces</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/lang/Appendable.html">Appendable</a></li> <li class="api apilevel-19"><a href="../../../reference/java/lang/AutoCloseable.html">AutoCloseable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/CharSequence.html">CharSequence</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Cloneable.html">Cloneable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Comparable.html">Comparable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Iterable.html">Iterable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Readable.html">Readable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Runnable.html">Runnable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Thread.UncaughtExceptionHandler.html">Thread.UncaughtExceptionHandler</a></li> </ul> </li> <li><h2>Classes</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/lang/Boolean.html">Boolean</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Byte.html">Byte</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Character.html">Character</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Character.Subset.html">Character.Subset</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Character.UnicodeBlock.html">Character.UnicodeBlock</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Class.html">Class</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ClassLoader.html">ClassLoader</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Compiler.html">Compiler</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Double.html">Double</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Enum.html">Enum</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Float.html">Float</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/InheritableThreadLocal.html">InheritableThreadLocal</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Integer.html">Integer</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Long.html">Long</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Math.html">Math</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Number.html">Number</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Object.html">Object</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Package.html">Package</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Process.html">Process</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ProcessBuilder.html">ProcessBuilder</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Runtime.html">Runtime</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/RuntimePermission.html">RuntimePermission</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/SecurityManager.html">SecurityManager</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Short.html">Short</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/StackTraceElement.html">StackTraceElement</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/StrictMath.html">StrictMath</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/String.html">String</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/StringBuffer.html">StringBuffer</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/StringBuilder.html">StringBuilder</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/System.html">System</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Thread.html">Thread</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ThreadGroup.html">ThreadGroup</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ThreadLocal.html">ThreadLocal</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Throwable.html">Throwable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Void.html">Void</a></li> </ul> </li> <li><h2>Enums</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/lang/Thread.State.html">Thread.State</a></li> </ul> </li> <li><h2>Exceptions</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/lang/ArithmeticException.html">ArithmeticException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ArrayStoreException.html">ArrayStoreException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ClassCastException.html">ClassCastException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ClassNotFoundException.html">ClassNotFoundException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/CloneNotSupportedException.html">CloneNotSupportedException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/EnumConstantNotPresentException.html">EnumConstantNotPresentException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Exception.html">Exception</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IllegalAccessException.html">IllegalAccessException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IllegalArgumentException.html">IllegalArgumentException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IllegalMonitorStateException.html">IllegalMonitorStateException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IllegalStateException.html">IllegalStateException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IllegalThreadStateException.html">IllegalThreadStateException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/InstantiationException.html">InstantiationException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/InterruptedException.html">InterruptedException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NegativeArraySizeException.html">NegativeArraySizeException</a></li> <li class="selected api apilevel-1"><a href="../../../reference/java/lang/NoSuchFieldException.html">NoSuchFieldException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NoSuchMethodException.html">NoSuchMethodException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NullPointerException.html">NullPointerException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NumberFormatException.html">NumberFormatException</a></li> <li class="api apilevel-19"><a href="../../../reference/java/lang/ReflectiveOperationException.html">ReflectiveOperationException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/RuntimeException.html">RuntimeException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/SecurityException.html">SecurityException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/StringIndexOutOfBoundsException.html">StringIndexOutOfBoundsException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/TypeNotPresentException.html">TypeNotPresentException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/UnsupportedOperationException.html">UnsupportedOperationException</a></li> </ul> </li> <li><h2>Errors</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/lang/AbstractMethodError.html">AbstractMethodError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/AssertionError.html">AssertionError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ClassCircularityError.html">ClassCircularityError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ClassFormatError.html">ClassFormatError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/Error.html">Error</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ExceptionInInitializerError.html">ExceptionInInitializerError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IllegalAccessError.html">IllegalAccessError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/IncompatibleClassChangeError.html">IncompatibleClassChangeError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/InstantiationError.html">InstantiationError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/InternalError.html">InternalError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/LinkageError.html">LinkageError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NoClassDefFoundError.html">NoClassDefFoundError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NoSuchFieldError.html">NoSuchFieldError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/NoSuchMethodError.html">NoSuchMethodError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/OutOfMemoryError.html">OutOfMemoryError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/StackOverflowError.html">StackOverflowError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/ThreadDeath.html">ThreadDeath</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/UnknownError.html">UnknownError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/UnsatisfiedLinkError.html">UnsatisfiedLinkError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/UnsupportedClassVersionError.html">UnsupportedClassVersionError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/VerifyError.html">VerifyError</a></li> <li class="api apilevel-1"><a href="../../../reference/java/lang/VirtualMachineError.html">VirtualMachineError</a></li> </ul> </li> </ul><br/> </div><!-- end classes --> </div><!-- end nav-panels --> <div id="nav-tree" style="display:none" class="scroll-pane"> <div id="tree-list"></div> </div><!-- end nav-tree --> </div><!-- end swapper --> <div id="nav-swap"> <a class="fullscreen">fullscreen</a> <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> </div> </div> <!-- end devdoc-nav --> </div> <!-- end side-nav --> <script type="text/javascript"> // init fullscreen based on user pref var fullscreen = readCookie("fullscreen"); if (fullscreen != 0) { if (fullscreen == "false") { toggleFullscreen(false); } else { toggleFullscreen(true); } } // init nav version for mobile if (isMobile) { swapNav(); // tree view should be used on mobile $('#nav-swap').hide(); } else { chooseDefaultNav(); if ($("#nav-tree").is(':visible')) { init_default_navtree("../../../"); } } // scroll the selected page into view $(document).ready(function() { scrollIntoView("packages-nav"); scrollIntoView("classes-nav"); }); </script> <div class="col-12" id="doc-col"> <div id="api-info-block"> <div class="sum-details-links"> Summary: <a href="#pubctors">Ctors</a> &#124; <a href="#inhmethods">Inherited Methods</a> &#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> </div><!-- end sum-details-links --> <div class="api-level"> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a> </div> </div><!-- end api-info-block --> <!-- ======== START OF CLASS DATA ======== --> <div id="jd-header"> public class <h1 itemprop="name">NoSuchFieldException</h1> extends <a href="../../../reference/java/lang/ReflectiveOperationException.html">ReflectiveOperationException</a><br/> </div><!-- end header --> <div id="naMessage"></div> <div id="jd-content" class="api apilevel-1"> <table class="jd-inheritance-table"> <tr> <td colspan="5" class="jd-inheritance-class-cell"><a href="../../../reference/java/lang/Object.html">java.lang.Object</a></td> </tr> <tr> <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td> <td colspan="4" class="jd-inheritance-class-cell"><a href="../../../reference/java/lang/Throwable.html">java.lang.Throwable</a></td> </tr> <tr> <td class="jd-inheritance-space">&nbsp;</td> <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td> <td colspan="3" class="jd-inheritance-class-cell"><a href="../../../reference/java/lang/Exception.html">java.lang.Exception</a></td> </tr> <tr> <td class="jd-inheritance-space">&nbsp;</td> <td class="jd-inheritance-space">&nbsp;</td> <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td> <td colspan="2" class="jd-inheritance-class-cell"><a href="../../../reference/java/lang/ReflectiveOperationException.html">java.lang.ReflectiveOperationException</a></td> </tr> <tr> <td class="jd-inheritance-space">&nbsp;</td> <td class="jd-inheritance-space">&nbsp;</td> <td class="jd-inheritance-space">&nbsp;</td> <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td> <td colspan="1" class="jd-inheritance-class-cell">java.lang.NoSuchFieldException</td> </tr> </table> <div class="jd-descr"> <h2>Class Overview</h2> <p itemprop="articleBody">Thrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist. </p> </div><!-- jd-descr --> <div class="jd-descr"> <h2>Summary</h2> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/NoSuchFieldException.html#NoSuchFieldException()">NoSuchFieldException</a></span>()</nobr> <div class="jd-descrdiv"> Constructs a new <code>NoSuchFieldException</code> that includes the current stack trace. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/NoSuchFieldException.html#NoSuchFieldException(java.lang.String)">NoSuchFieldException</a></span>(<a href="../../../reference/java/lang/String.html">String</a> detailMessage)</nobr> <div class="jd-descrdiv"> Constructs a new <code>NoSuchFieldException</code> with the current stack trace and the specified detail message. </div> </td></tr> </table> <!-- ========== METHOD SUMMARY =========== --> <table id="inhmethods" class="jd-sumtable"><tr><th> <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> <div style="clear:left;">Inherited Methods</div></th></tr> <tr class="api apilevel-" > <td colspan="12"> <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Throwable" class="jd-expando-trigger closed" ><img id="inherited-methods-java.lang.Throwable-trigger" src="../../../assets/images/triangle-closed.png" class="jd-expando-trigger-img" /></a> From class <a href="../../../reference/java/lang/Throwable.html">java.lang.Throwable</a> <div id="inherited-methods-java.lang.Throwable"> <div id="inherited-methods-java.lang.Throwable-list" class="jd-inheritedlinks"> </div> <div id="inherited-methods-java.lang.Throwable-summary" style="display: none;"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-19" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)">addSuppressed</a></span>(<a href="../../../reference/java/lang/Throwable.html">Throwable</a> throwable)</nobr> <div class="jd-descrdiv"> Adds <code>throwable</code> to the list of throwables suppressed by this. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/Throwable.html">Throwable</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#fillInStackTrace()">fillInStackTrace</a></span>()</nobr> <div class="jd-descrdiv"> Records the stack trace from the point where this method has been called to this <code>Throwable</code>. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/Throwable.html">Throwable</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#getCause()">getCause</a></span>()</nobr> <div class="jd-descrdiv"> Returns the cause of this <code>Throwable</code>, or <code>null</code> if there is no cause. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/String.html">String</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#getLocalizedMessage()">getLocalizedMessage</a></span>()</nobr> <div class="jd-descrdiv"> Returns the detail message which was provided when this <code>Throwable</code> was created. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/String.html">String</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#getMessage()">getMessage</a></span>()</nobr> <div class="jd-descrdiv"> Returns the detail message which was provided when this <code>Throwable</code> was created. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/StackTraceElement.html">StackTraceElement[]</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#getStackTrace()">getStackTrace</a></span>()</nobr> <div class="jd-descrdiv"> Returns a clone of the array of stack trace elements of this <code>Throwable</code>. </div> </td></tr> <tr class="alt-color api apilevel-19" > <td class="jd-typecol"><nobr> final <a href="../../../reference/java/lang/Throwable.html">Throwable[]</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#getSuppressed()">getSuppressed</a></span>()</nobr> <div class="jd-descrdiv"> Returns the throwables suppressed by this. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/Throwable.html">Throwable</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#initCause(java.lang.Throwable)">initCause</a></span>(<a href="../../../reference/java/lang/Throwable.html">Throwable</a> throwable)</nobr> <div class="jd-descrdiv"> Initializes the cause of this <code>Throwable</code>. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)">printStackTrace</a></span>(<a href="../../../reference/java/io/PrintStream.html">PrintStream</a> err)</nobr> <div class="jd-descrdiv"> Writes a printable representation of this <code>Throwable</code>'s stack trace to the given print stream. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)">printStackTrace</a></span>(<a href="../../../reference/java/io/PrintWriter.html">PrintWriter</a> err)</nobr> <div class="jd-descrdiv"> Writes a printable representation of this <code>Throwable</code>'s stack trace to the specified print writer. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#printStackTrace()">printStackTrace</a></span>()</nobr> <div class="jd-descrdiv"> Writes a printable representation of this <code>Throwable</code>'s stack trace to the <code>System.err</code> stream. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])">setStackTrace</a></span>(<a href="../../../reference/java/lang/StackTraceElement.html">StackTraceElement[]</a> trace)</nobr> <div class="jd-descrdiv"> Sets the array of stack trace elements. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/String.html">String</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Throwable.html#toString()">toString</a></span>()</nobr> <div class="jd-descrdiv"> Returns a string containing a concise, human-readable description of this object. </div> </td></tr> </table> </div> </div> </td></tr> <tr class="api apilevel-" > <td colspan="12"> <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" ><img id="inherited-methods-java.lang.Object-trigger" src="../../../assets/images/triangle-closed.png" class="jd-expando-trigger-img" /></a> From class <a href="../../../reference/java/lang/Object.html">java.lang.Object</a> <div id="inherited-methods-java.lang.Object"> <div id="inherited-methods-java.lang.Object-list" class="jd-inheritedlinks"> </div> <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/Object.html">Object</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#clone()">clone</a></span>()</nobr> <div class="jd-descrdiv"> Creates and returns a copy of this <code>Object</code>. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> boolean</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#equals(java.lang.Object)">equals</a></span>(<a href="../../../reference/java/lang/Object.html">Object</a> o)</nobr> <div class="jd-descrdiv"> Compares this instance with the specified object and indicates if they are equal. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#finalize()">finalize</a></span>()</nobr> <div class="jd-descrdiv"> Invoked when the garbage collector has detected that this instance is no longer reachable. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> final <a href="../../../reference/java/lang/Class.html">Class</a>&lt;?&gt;</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#getClass()">getClass</a></span>()</nobr> <div class="jd-descrdiv"> Returns the unique instance of <code><a href="../../../reference/java/lang/Class.html">Class</a></code> that represents this object's class. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> int</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#hashCode()">hashCode</a></span>()</nobr> <div class="jd-descrdiv"> Returns an integer hash code for this object. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#notify()">notify</a></span>()</nobr> <div class="jd-descrdiv"> Causes a thread which is waiting on this object's monitor (by means of calling one of the <code>wait()</code> methods) to be woken up. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#notifyAll()">notifyAll</a></span>()</nobr> <div class="jd-descrdiv"> Causes all threads which are waiting on this object's monitor (by means of calling one of the <code>wait()</code> methods) to be woken up. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/String.html">String</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#toString()">toString</a></span>()</nobr> <div class="jd-descrdiv"> Returns a string containing a concise, human-readable description of this object. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#wait()">wait</a></span>()</nobr> <div class="jd-descrdiv"> Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object. </div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#wait(long, int)">wait</a></span>(long millis, int nanos)</nobr> <div class="jd-descrdiv"> Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object or until the specified timeout expires. </div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#wait(long)">wait</a></span>(long millis)</nobr> <div class="jd-descrdiv"> Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object or until the specified timeout expires. </div> </td></tr> </table> </div> </div> </td></tr> </table> </div><!-- jd-descr (summary) --> <!-- Details --> <!-- XML Attributes --> <!-- Enum Values --> <!-- Constants --> <!-- Fields --> <!-- Public ctors --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <h2>Public Constructors</h2> <A NAME="NoSuchFieldException()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">NoSuchFieldException</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a new <code>NoSuchFieldException</code> that includes the current stack trace. </p></div> </div> </div> <A NAME="NoSuchFieldException(java.lang.String)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">NoSuchFieldException</span> <span class="normal">(<a href="../../../reference/java/lang/String.html">String</a> detailMessage)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a new <code>NoSuchFieldException</code> with the current stack trace and the specified detail message.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>detailMessage</td> <td>the detail message for this exception. </td> </tr> </table> </div> </div> </div> <!-- ========= CONSTRUCTOR DETAIL ======== --> <!-- Protected ctors --> <!-- ========= METHOD DETAIL ======== --> <!-- Public methdos --> <!-- ========= METHOD DETAIL ======== --> <!-- ========= END OF CLASS DATA ========= --> <A NAME="navbar_top"></A> </div> <!-- jd-content --> <div class="wrap"> <div class="dac-footer"> <div class="cols dac-footer-main"> <div class="col-1of2"> <a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news &amp; tips <span class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a> </div> <div class="col-1of2 dac-footer-reachout"> <div class="dac-footer-contact"> <a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a> <a class="dac-footer-contact-link" href="/support.html">Support</a> </div> <div class="dac-footer-social"> <a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a> <a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a> <a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a> </div> </div> </div> <hr class="dac-footer-separator"/> <p class="dac-footer-copyright"> Except as noted, this content is licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. For details and restrictions, see the <a href="../../../license.html"> Content License</a>. </p> <p class="dac-footer-build"> Android 6.0&nbsp;r1 &mdash; <script src="../../../timestamp.js" type="text/javascript"></script> <script>document.write(BUILD_TIMESTAMP)</script> </p> <p class="dac-footer-links"> <a href="/about/index.html">About Android</a> <a href="/auto/index.html">Auto</a> <a href="/tv/index.html">TV</a> <a href="/wear/index.html">Wear</a> <a href="/legal.html">Legal</a> <span id="language" class="locales"> <select name="language" onchange="changeLangPref(this.value, true)"> <option value="en" selected="selected">English</option> <option value="es">Español</option> <option value="ja">日本語</option> <option value="ko">한국어</option> <option value="pt-br">Português Brasileiro</option> <option value="ru">Русский</option> <option value="zh-cn">中文(简体)</option> <option value="zh-tw">中文(繁體)</option> </select> </span> </p> </div> </div> <!-- end footer --> <div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter"> <div class="dac-modal-container"> <div class="dac-modal-window"> <header class="dac-modal-header"> <button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button> <div class="dac-swap" data-swap-container> <section class="dac-swap-section dac-active dac-down"> <h2 class="norule dac-modal-header-title">Get the latest Android developer news and tips that will help you find success on Google Play.</h2> <p class="dac-modal-header-subtitle">&#42; Required Fields</p> </section> <section class="dac-swap-section dac-up"> <h2 class="norule dac-modal-header-title">Hooray!</h2> </section> </div> </header> <div class="dac-swap" data-swap-container> <section class="dac-swap-section dac-active dac-left"> <form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe"> <section class="dac-modal-content"> <fieldset class="dac-form-fieldset"> <div class="cols"> <div class="col-1of2 newsletter-leftCol"> <div class="dac-form-input-group"> <label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label> <input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required> <span class="dac-form-required">*</span> </div> <div class="dac-form-input-group"> <label for="newsletter-email" class="dac-form-floatlabel">Email address</label> <input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required> <span class="dac-form-required">*</span> </div> </div> <div class="col-1of2 newsletter-rightCol"> <div class="dac-form-input-group"> <label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label> <input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company"> </div> <div class="dac-form-input-group"> <label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label> <input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required> <span class="dac-form-required">*</span> </div> </div> </div> </fieldset> <fieldset class="dac-form-fieldset"> <div class="cols"> <div class="col-1of2 newsletter-leftCol"> <legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span> </legend> <div class="dac-form-radio-group"> <input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required> <label for="newsletter-business-type-app" class="dac-form-radio-button"></label> <label for="newsletter-business-type-app" class="dac-form-label">Apps</label> </div> <div class="dac-form-radio-group"> <input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required> <label for="newsletter-business-type-games" class="dac-form-radio-button"></label> <label for="newsletter-business-type-games" class="dac-form-label">Games</label> </div> <div class="dac-form-radio-group"> <input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required> <label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label> <label for="newsletter-business-type-appsgames" class="dac-form-label">Apps &amp; Games</label> </div> </div> <div class="col-1of2 newsletter-rightCol newsletter-checkboxes"> <div class="dac-form-radio-group"> <div class="dac-media"> <div class="dac-media-figure"> <input type="checkbox" class="dac-form-checkbox" name="entry.732309842" id="newsletter-add" required value="Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities."> <label for="newsletter-add" class="dac-form-checkbox-button"></label> </div> <div class="dac-media-body"> <label for="newsletter-add" class="dac-form-label dac-form-aside">Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities.<span class="dac-form-required">*</span></label> </div> </div> </div> <div class="dac-form-radio-group"> <div class="dac-media"> <div class="dac-media-figure"> <input type="checkbox" class="dac-form-checkbox" name="entry.2045036090" id="newsletter-terms" required value="I acknowledge that the information provided in this form will be subject to Google's privacy policy (https://www.google.com/policies/privacy/)."> <label for="newsletter-terms" class="dac-form-checkbox-button"></label> </div> <div class="dac-media-body"> <label for="newsletter-terms" class="dac-form-label dac-form-aside">I acknowledge that the information provided in this form will be subject to <a href="https://www.google.com/policies/privacy/">Google's privacy policy</a>.<span class="dac-form-required">*</span></label> </div> </div> </div> </div> </div> </fieldset> </section> <footer class="dac-modal-footer"> <div class="cols"> <div class="col-2of5"> </div> </div> <button type="submit" value="Submit" class="dac-fab dac-primary dac-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button> </footer> </form> </section> <section class="dac-swap-section dac-right"> <div class="dac-modal-content"> <p class="newsletter-success-message"> You have successfully signed up for the latest Android developer news and tips. </p> </div> </section> </div> </div> </div> </div> <!-- end footer --> </div><!-- end doc-content --> </div> <!-- end .cols --> </div> <!-- end body-content --> </body> </html>
{ "content_hash": "312ac56ad18ac21d4dc6a6f66791d5b1", "timestamp": "", "source": "github", "line_count": 2343, "max_line_length": 297, "avg_line_length": 39.49295774647887, "alnum_prop": 0.5907145636104266, "repo_name": "anas-ambri/androidcompat", "id": "cf9c3f4fdc146ac59493e3817f7e13b15f706831", "size": "92859", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/java/lang/NoSuchFieldException.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "261862" }, { "name": "HTML", "bytes": "581707522" }, { "name": "JavaScript", "bytes": "639438" }, { "name": "Makefile", "bytes": "229" }, { "name": "Shell", "bytes": "138" } ], "symlink_target": "" }
using Eto.Forms; namespace Eto.Test.Sections.Behaviors { [Section("Behaviors", "Focus Events")] public class FocusEventsSection : AllControlsBase { protected override void LogEvents(Control control) { base.LogEvents(control); control.GotFocus += delegate { Log.Write(control, "GotFocus"); }; control.LostFocus += delegate { Log.Write(control, "LostFocus"); }; } } }
{ "content_hash": "732a595ca1fd22d95220fd17c9e8856a", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 52, "avg_line_length": 17.73913043478261, "alnum_prop": 0.6740196078431373, "repo_name": "PowerOfCode/Eto", "id": "fffa81b23f77b078200f233b1ee692c7ebb85802", "size": "408", "binary": false, "copies": "3", "ref": "refs/heads/develop", "path": "Source/Eto.Test/Eto.Test/Sections/Behaviors/FocusEventsSection.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Batchfile", "bytes": "855" }, { "name": "C#", "bytes": "4960306" }, { "name": "F#", "bytes": "6019" }, { "name": "Pascal", "bytes": "1968" }, { "name": "Python", "bytes": "475" }, { "name": "Shell", "bytes": "1511" }, { "name": "Visual Basic", "bytes": "7104" } ], "symlink_target": "" }
import groovy.util.AllTestSuite; import junit.framework.Test; import junit.framework.TestCase; /** * Collects all Bug-related tests. * * @author <a href="mailto:jeremy.rayner@bigfoot.com">Jeremy Rayner</a> * @version $Revision$ */ public class UberTestCaseBugs extends TestCase { public static Test suite() { return AllTestSuite.suite("./src/test", "groovy/**/*Bug.groovy"); } // no tests inside (should we have an AbstractGroovyTestCase???) // groovy.bugs.TestSupport.class // The following classes appear in target/test-classes but do not extend junit.framework.TestCase // groovy.bugs.Cheese.class // groovy.bugs.MyRange.class // groovy.bugs.Scholastic.class // groovy.bugs.SimpleModel.class }
{ "content_hash": "602be1703e6d4bace3420f018bb5e22b", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 98, "avg_line_length": 29.192307692307693, "alnum_prop": 0.6982872200263505, "repo_name": "Selventa/model-builder", "id": "65ac06ca6d5a7c04e0b318324e074faa63d2f434", "size": "1378", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tools/groovy/src/src/test/UberTestCaseBugs.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "225777" }, { "name": "Java", "bytes": "27977" }, { "name": "Shell", "bytes": "8715" } ], "symlink_target": "" }
package org.ovirt.engine.ui.webadmin.section.main.view.tab; import org.ovirt.engine.core.common.businessentities.DbUser; import org.ovirt.engine.ui.common.idhandler.ElementIdHandler; import org.ovirt.engine.ui.common.uicommon.model.MainModelProvider; import org.ovirt.engine.ui.common.widget.table.column.TextColumnWithTooltip; import org.ovirt.engine.ui.uicommonweb.UICommand; import org.ovirt.engine.ui.uicommonweb.models.users.UserListModel; import org.ovirt.engine.ui.webadmin.ApplicationConstants; import org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabUserPresenter; import org.ovirt.engine.ui.webadmin.section.main.view.AbstractMainTabWithDetailsTableView; import org.ovirt.engine.ui.webadmin.widget.action.WebAdminButtonDefinition; import org.ovirt.engine.ui.webadmin.widget.table.column.UserStatusColumn; import com.google.gwt.core.client.GWT; import com.google.inject.Inject; public class MainTabUserView extends AbstractMainTabWithDetailsTableView<DbUser, UserListModel> implements MainTabUserPresenter.ViewDef { interface ViewIdHandler extends ElementIdHandler<MainTabUserView> { ViewIdHandler idHandler = GWT.create(ViewIdHandler.class); } @Inject public MainTabUserView(MainModelProvider<DbUser, UserListModel> modelProvider, ApplicationConstants constants) { super(modelProvider); ViewIdHandler.idHandler.generateAndSetIds(this); initTable(constants); initWidget(getTable()); } void initTable(ApplicationConstants constants) { getTable().enableColumnResizing(); getTable().addColumn(new UserStatusColumn(), constants.empty(), "30px"); //$NON-NLS-1$ getTable().addColumn(new TextColumnWithTooltip<DbUser>() { @Override public String getValue(DbUser object) { return object.getname(); } }, constants.firstnameUser(), "150px"); //$NON-NLS-1$ getTable().addColumn(new TextColumnWithTooltip<DbUser>() { @Override public String getValue(DbUser object) { return object.getsurname(); } }, constants.lastNameUser(), "150px"); //$NON-NLS-1$ getTable().addColumn(new TextColumnWithTooltip<DbUser>(40) { @Override public String getValue(DbUser object) { return object.getusername(); } }, constants.userNameUser(), "150px"); //$NON-NLS-1$ getTable().addColumn(new TextColumnWithTooltip<DbUser>(40) { @Override public String getValue(DbUser object) { return object.getgroups(); } }, constants.groupUser(), "150px"); //$NON-NLS-1$ getTable().addColumn(new TextColumnWithTooltip<DbUser>() { @Override public String getValue(DbUser object) { return object.getemail(); } }, constants.emailUser(), "150px"); //$NON-NLS-1$ getTable().addActionButton(new WebAdminButtonDefinition<DbUser>(constants.addUser()) { @Override protected UICommand resolveCommand() { return getMainModel().getAddCommand(); } }); getTable().addActionButton(new WebAdminButtonDefinition<DbUser>(constants.removeUser()) { @Override protected UICommand resolveCommand() { return getMainModel().getRemoveCommand(); } }); getTable().addActionButton(new WebAdminButtonDefinition<DbUser>(constants.assignTagsUser()) { @Override protected UICommand resolveCommand() { return getMainModel().getAssignTagsCommand(); } }); } }
{ "content_hash": "9e1874ab4578c20eabb10fe8104ac8f2", "timestamp": "", "source": "github", "line_count": 92, "max_line_length": 137, "avg_line_length": 40.67391304347826, "alnum_prop": 0.6643506146445751, "repo_name": "jbeecham/ovirt-engine", "id": "013c7c59aec399f8c276c7964f31815ab688b80b", "size": "3742", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/MainTabUserView.java", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
/** * @author Lorensius W. L. T <lorenz@londatiga.net> * * http://www.londatiga.net */ package com.pillowdrift.drillergame.twitter; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.content.Context; import twitter4j.auth.AccessToken; public class TwitterSession { private SharedPreferences sharedPref; private Editor editor; private static final String TWEET_AUTH_KEY = "auth_key"; private static final String TWEET_AUTH_SECRET_KEY = "auth_secret_key"; private static final String TWEET_USER_NAME = "user_name"; private static final String SHARED = "Twitter_Preferences"; public TwitterSession(Context context) { sharedPref = context.getSharedPreferences(SHARED, Context.MODE_PRIVATE); editor = sharedPref.edit(); } public void storeAccessToken(AccessToken accessToken, String username) { editor.putString(TWEET_AUTH_KEY, accessToken.getToken()); editor.putString(TWEET_AUTH_SECRET_KEY, accessToken.getTokenSecret()); editor.putString(TWEET_USER_NAME, username); editor.commit(); } public void resetAccessToken() { editor.putString(TWEET_AUTH_KEY, null); editor.putString(TWEET_AUTH_SECRET_KEY, null); editor.putString(TWEET_USER_NAME, null); editor.commit(); } public String getUsername() { return sharedPref.getString(TWEET_USER_NAME, ""); } public AccessToken getAccessToken() { String token = sharedPref.getString(TWEET_AUTH_KEY, null); String tokenSecret = sharedPref.getString(TWEET_AUTH_SECRET_KEY, null); if (token != null && tokenSecret != null) return new AccessToken(token, tokenSecret); else return null; } }
{ "content_hash": "2248dc82c3fd72d5d0cdda8eee96ad43", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 77, "avg_line_length": 28.810344827586206, "alnum_prop": 0.7414721723518851, "repo_name": "Pillowdrift/MegaDrillerMole", "id": "39f616e0ce8c2ee841e05323e61d67886b3a63dc", "size": "1671", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "MegaDrillerMole/MDMWorkspace/DrillerGameAndroid/src/com/pillowdrift/drillergame/twitter/TwitterSession.java", "mode": "33188", "license": "bsd-2-clause", "language": [], "symlink_target": "" }
date: 2015-11-25T23:10:39+01:00 doc: - commands_en slug: hugo_import title: hugo import url: /doc/commands/hugo_import --- ## hugo import Import your site from others. ### Synopsis Import your site from other web site generators like Jekyll. Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_path`. ### Options inherited from parent commands ``` -b, --baseURL="": hostname (and path) to the root, e.g. http://spf13.com/ -D, --buildDrafts[=false]: include content marked as draft -F, --buildFuture[=false]: include content with publishdate in the future --cacheDir="": filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/ --canonifyURLs[=false]: if true, all relative URLs will be canonicalized using baseURL --config="": config file (default is path/config.yaml|json|toml) -d, --destination="": filesystem path to write files to --disableRSS[=false]: Do not build RSS files --disableSitemap[=false]: Do not build Sitemap file --editor="": edit new content with this editor, if provided --ignoreCache[=false]: Ignores the cache directory for reading but still writes to it --log[=false]: Enable Logging --logFile="": Log File path (if set, logging enabled automatically) --pluralizeListTitles[=true]: Pluralize titles in lists using inflect --preserveTaxonomyNames[=false]: Preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu") -s, --source="": filesystem path to read files relative from --stepAnalysis[=false]: display memory and timing of different steps of the program -t, --theme="": theme to use (located in /doc/themes/THEMENAME/) --uglyURLs[=false]: if true, use /filename.html instead of /filename/ -v, --verbose[=false]: verbose output --verboseLog[=false]: verbose logging ``` ### SEE ALSO * [hugo](/doc/commands/hugo/) - hugo builds your site * [hugo import jekyll](/doc/commands/hugo_import_jekyll/) - hugo import from Jekyll ###### Auto generated by spf13/cobra on 25-Nov-2015
{ "content_hash": "a06e717aab4df17422b18e31d7c92a68", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 116, "avg_line_length": 41.32, "alnum_prop": 0.7018393030009681, "repo_name": "coderzh/gohugo.org", "id": "37d4933945534fce2bd2ef00dbb60a1c44fd01df", "size": "2071", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "content/doc/commands/hugo_import_en.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "9184" }, { "name": "Go", "bytes": "8259" }, { "name": "HTML", "bytes": "21013" }, { "name": "JavaScript", "bytes": "2826" }, { "name": "Python", "bytes": "4609" } ], "symlink_target": "" }
ACCEPTED #### According to Euro+Med Plantbase #### Published in null #### Original name null ### Remarks null
{ "content_hash": "0e2f3493f829ce3e4a1385c8344f9f1e", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 18, "avg_line_length": 8.692307692307692, "alnum_prop": 0.6814159292035398, "repo_name": "mdoering/backbone", "id": "6eb4cfb6ac8bc2a1f4041337960208e86c27479b", "size": "177", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Antennaria/Antennaria nordhageniana/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package gov.nih.nci.cabig.caaers.rules.business.service; import static org.easymock.EasyMock.expect; import gov.nih.nci.cabig.caaers.AbstractTestCase; import gov.nih.nci.cabig.caaers.CaaersSystemException; import gov.nih.nci.cabig.caaers.dao.ExpeditedAdverseEventReportDao; import gov.nih.nci.cabig.caaers.dao.OrganizationDao; import gov.nih.nci.cabig.caaers.dao.report.ReportDefinitionDao; import gov.nih.nci.cabig.caaers.domain.*; import gov.nih.nci.cabig.caaers.domain.dto.ApplicableReportDefinitionsDTO; import gov.nih.nci.cabig.caaers.domain.dto.EvaluationResultDTO; import gov.nih.nci.cabig.caaers.domain.dto.ReportDefinitionWrapper; import gov.nih.nci.cabig.caaers.domain.expeditedfields.ExpeditedReportSection; import gov.nih.nci.cabig.caaers.domain.report.*; import gov.nih.nci.cabig.caaers.domain.repository.ReportRepository; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import gov.nih.nci.cabig.caaers.rules.common.AdverseEventEvaluationResult; import gov.nih.nci.cabig.caaers.utils.DateUtils; import org.easymock.classextension.EasyMock; /** * @author Biju Joseph */ public class EvaluationServiceTest extends AbstractTestCase { public static Integer ZERO = new Integer(0); public static Integer ONE = new Integer(1); public static List<AdverseEvent> EMPTY_AE_LIST = new ArrayList<AdverseEvent>(); public static List<Report> EMPTY_REPORT_LIST = new ArrayList<Report>(); AdverseEventEvaluationService adverseEventEvaluationService; ReportDefinitionDao reportDefinitionDao; ExpeditedAdverseEventReportDao expeditedAdverseEventReportDao; ReportRepository reportRepository; OrganizationDao organizationDao; EvaluationServiceImpl service; @Override protected void setUp() throws Exception { super.setUp(); switchToSuperUser(); reportDefinitionDao = registerDaoMockFor(ReportDefinitionDao.class); expeditedAdverseEventReportDao = registerDaoMockFor(ExpeditedAdverseEventReportDao.class); organizationDao = registerDaoMockFor(OrganizationDao.class); adverseEventEvaluationService = registerMockFor(AdverseEventEvaluationService.class); reportRepository = registerMockFor(ReportRepository.class); service = new EvaluationServiceImpl(); service.setReportDefinitionDao(reportDefinitionDao); service.setAdverseEventEvaluationService(adverseEventEvaluationService); } public void testFindRequiredReportDefinitions() throws Exception { String n1 = "24 Hr report"; String n2 = "55 day report"; ReportDefinition rd1 = new ReportDefinition(); rd1.setName(n1); ReportDefinition rd2 = new ReportDefinition(); rd2.setName(n2); List<String> reportNames = new ArrayList<String>(); reportNames.add(n1); reportNames.add(n2); Map<String, List<String>> map = new HashMap<String, List<String>>(); map.put("junk", reportNames); ExpeditedAdverseEventReport aereport = new ExpeditedAdverseEventReport(); /* * expect(adverseEventEvaluationService.evaluateSAEReportSchedule(aereport * )).andReturn(map); * * expect(reportDefinitionDao.getByName(n1)).andReturn(rd1); * expect(reportDefinitionDao.getByName(n2)).andReturn(rd2); * //replayMocks(); List<ReportDefinition> actualDefList = * service.findRequiredReportDefinitions(aereport); //verifyMocks(); * * assertEquals("incorrect number of report definitions", 2, * actualDefList.size()); * assertEquals("report definition name is incorrect", n1, * actualDefList.get(0).getName()); */ } public void testApplicableReportDefinitions() { Organization ctep = Fixtures.createOrganization("CTEP", 1); Organization mayo = Fixtures.createOrganization("Mayo", 2); Organization otherSite = Fixtures.createOrganization("Other site", 3); ConfigProperty expedited = Fixtures.createConfigProperty("expedited"); ConfigProperty local = Fixtures.createConfigProperty("local"); ReportDefinition rd1 = Fixtures.createReportDefinition("ctep-rd-1",ctep, expedited); rd1.setTimeScaleUnitType(TimeScaleUnit.MINUTE); rd1.setDuration(1); ReportDefinition rd2 = Fixtures.createReportDefinition("ctep-rd-2",ctep, expedited); rd2.setTimeScaleUnitType(TimeScaleUnit.DAY); rd2.setDuration(2); ReportDefinition rd3 = Fixtures.createReportDefinition("ctep-rd-3",ctep, local); rd3.setTimeScaleUnitType(TimeScaleUnit.DAY); rd3.setDuration(3); ReportDefinition rd4 = Fixtures.createReportDefinition("ctep-rd-4",ctep, local); rd4.setTimeScaleUnitType(TimeScaleUnit.DAY); rd4.setDuration(1); ReportDefinition rd5 = Fixtures.createReportDefinition("ctep-mo-1",mayo, expedited); rd5.setTimeScaleUnitType(TimeScaleUnit.DAY); rd5.setDuration(1); ReportDefinition rd6 = Fixtures.createReportDefinition("ctep-mo-2",mayo, local); rd6.setTimeScaleUnitType(TimeScaleUnit.DAY); rd6.setDuration(2); ReportDefinition rd7 = Fixtures.createReportDefinition("ctep-other-1", otherSite, expedited); List<ReportDefinition> ctepRdList = new ArrayList<ReportDefinition>(); List<ReportDefinition> mayoRdList = new ArrayList<ReportDefinition>(); List<ReportDefinition> otherList = new ArrayList<ReportDefinition>(); ctepRdList.add(rd1); ctepRdList.add(rd2); ctepRdList.add(rd3); ctepRdList.add(rd4); mayoRdList.add(rd5); mayoRdList.add(rd6); otherList.add(rd7); OrganizationAssignedIdentifier ctepIdentifier = Fixtures .createOrganizationAssignedIdentifier("C1", ctep); OrganizationAssignedIdentifier mayoIdentifier = Fixtures .createOrganizationAssignedIdentifier("M1", mayo); OrganizationAssignedIdentifier otherIdentifier = Fixtures.createOrganizationAssignedIdentifier("Other", otherSite); Study study = Fixtures.createStudy("Test"); StudyFundingSponsor sponsor = Fixtures.createStudyFundingSponsor(ctep); StudyCoordinatingCenter cordCenter = Fixtures .createStudyCoordinatingCenter(mayo); StudySite stSite = Fixtures.createStudySite(otherSite, 1); study.addStudyOrganization(sponsor); study.addStudyOrganization(cordCenter); study.addStudyOrganization(stSite); study.addIdentifier(ctepIdentifier); study.addIdentifier(mayoIdentifier); study.addIdentifier(otherIdentifier); EasyMock.expect(reportDefinitionDao.getAll(1)).andReturn(ctepRdList); EasyMock.expect(reportDefinitionDao.getAll(2)).andReturn(mayoRdList); StudyParticipantAssignment assignment = Fixtures.createAssignment(); StudySite studySite = Fixtures.createStudySite(ctep, 2); assignment.setStudySite(studySite); replayMocks(); ApplicableReportDefinitionsDTO dto = service.applicableReportDefinitions(study, assignment); assertEquals(2, dto.getOrganizationTypeMap().size()); assertEquals(2, dto.getOrganizationTypeMap().get(ctep).get("expedited").size()); verifyMocks(); } /** * Testing the case, when rules engine throws an exception out. * @throws Exception */ public void testEvaluateSAERules_ThrowingException() throws Exception { // tests on new reporting period. Map<String, List<String>> map = new HashMap<String, List<String>>(); map.put("a1", Arrays.asList(new String[] { "one", "two" })); map.put("a2", Arrays.asList(new String[] { "one", "two", "three" })); AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); AdverseEvent ae2 = Fixtures.createAdverseEvent(2, Grade.LIFE_THREATENING); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae1); aeList.add(ae2); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); EasyMock.expect(reportingPeriod.getAeReports()).andReturn(null); EasyMock.expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList); EasyMock.expect(reportingPeriod.getStudy()).andReturn(study); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andThrow(new Exception()); replayMocks(); EvaluationResultDTO result; try { result = service.evaluateSAERules(reportingPeriod); fail("must have thrown caaers system exception"); } catch (CaaersSystemException e) { } verifyMocks(); } /** * There is no existing data collection available on Reporting Period, we added two new AEs, both suggesting different reports but all belonging * to the different group and organization. * * Reporting Period * AE1 - suggests RD1 and RD2 * AE2 - Suggests RD1 , RD2 and RD3 * ------------------------------------ * Alert for aeReportId -0 * Amend, edit, withdraw maps empty * Create map, having only RD1, RD2, RD3. * * @throws Exception */ public void testEvaluateSAERules() throws Exception { if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } // tests on new reporting period. AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae1); aeList.add(ae2); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("rd1", "rd2" )})); map.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("rd1", "rd2", "rd3")})); Study study = Fixtures.createStudy("test"); ReportDefinition rd1 = Fixtures.createReportDefinition("rd1", "rd1", 1,TimeScaleUnit.DAY); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); ReportDefinition rd2 = Fixtures.createReportDefinition("rd2", "rd2", 2,TimeScaleUnit.DAY); rd2.setGroup(Fixtures.createConfigProperty("expedited")); rd2.getOrganization().setId(2); ReportDefinition rd3 = Fixtures.createReportDefinition("rd3", "rd3", 3,TimeScaleUnit.DAY); rd3.setGroup(Fixtures.createConfigProperty("expedited")); rd3.getOrganization().setId(3); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); EasyMock.expect(reportingPeriod.getAeReports()).andReturn(null); EasyMock.expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList); EasyMock.expect(reportingPeriod.getStudy()).andReturn(study); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map); EasyMock.expect(reportDefinitionDao.getByName("rd1")).andReturn(rd1).times(3); EasyMock.expect(reportDefinitionDao.getByName("rd2")).andReturn(rd2).times(3); EasyMock.expect(reportDefinitionDao.getByName("rd3")).andReturn(rd3).times(2); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); assertEquals(3, result.getAdverseEventIndexMap().get(ZERO).get(ae2).size()); assertTrue( result.getAdverseEventIndexMap().get(ZERO).get(ae2).containsAll(Arrays.asList(rd1, rd2, rd3))); assertEquals(2, result.getAdverseEventIndexMap().get(ZERO).get(ae1).size()); assertTrue( result.getAdverseEventIndexMap().get(ZERO).get(ae1).containsAll(Arrays.asList(rd1, rd2))); assertTrue(result.getAeReportAlertMap().get(new Integer(0))); assertTrue(result.getAmendmentMap().get(new Integer(0)).isEmpty()); assertTrue(result.getEditMap().get(new Integer(0)).isEmpty()); assertTrue(result.getWithdrawalMap().get(new Integer(0)).isEmpty()); assertFalse(result.getCreateMap().get(new Integer(0)).isEmpty()); assertNotNull(getWrapper(result.getCreateMap().get(new Integer(0)), rd1)); assertNotNull(getWrapper(result.getCreateMap().get(new Integer(0)), rd2)); assertNotNull(getWrapper(result.getCreateMap().get(new Integer(0)), rd3)); verifyMocks(); } /** * There is no existing data collection available on Reporting Period, we added two new AEs, both suggesting different reports but all belonging * to the same group and organization. * * Reporting Period * AE1 - suggests RD1 and RD2 * AE2 - Suggests RD1 , RD2 and RD3 * * RD1 - 1Day, RD2 - 2Day, RD3- 3Day * ------------------------------------ * Alert for aeReportId -0 * Amend, edit, withdraw maps empty * Create map, having only RD1. * * @throws Exception */ public void testEvaluateSAERules_CheckingFilteringOfReportDefinitions() throws Exception { if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } // tests on new reporting period. AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae1); aeList.add(ae2); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("one", "two" )})); map.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("one", "two", "three" )})); Study study = Fixtures.createStudy("test"); ReportDefinition rd1 = Fixtures.createReportDefinition("rd1", "rd1", 1,TimeScaleUnit.DAY); rd1.setId(1); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); ReportDefinition rd2 = Fixtures.createReportDefinition("rd2", "rd2", 2,TimeScaleUnit.DAY); rd2.setId(2); rd2.setGroup(Fixtures.createConfigProperty("expedited")); rd2.getOrganization().setId(1); ReportDefinition rd3 = Fixtures.createReportDefinition("rd3", "rd3", 3,TimeScaleUnit.DAY); rd3.setId(3); rd3.setGroup(Fixtures.createConfigProperty("expedited")); rd3.getOrganization().setId(1); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); EasyMock.expect(reportingPeriod.getAeReports()).andReturn(null); EasyMock.expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList); EasyMock.expect(reportingPeriod.getStudy()).andReturn(study); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map); EasyMock.expect(reportDefinitionDao.getByName("one")).andReturn(rd1).times(3); EasyMock.expect(reportDefinitionDao.getByName("two")).andReturn(rd2).times(3); EasyMock.expect(reportDefinitionDao.getByName("three")).andReturn(rd3).times(2); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); // assertEquals(1, result.getAeIndexMap().get(ae1).size()); // assertEquals(1, result.getAeIndexMap().get(ae2).size()); // assertTrue(result.getAeIndexMap().get(ae2).containsAll(Arrays.asList(new ReportDefinition[] { rd1}))); // // assertEquals(2, result.getReportDefAeIndexMap().get(rd1).size()); // assertTrue(result.getReportDefAeIndexMap().get(rd1).containsAll(aeList)); //alert assertTrue(result.getAeReportAlertMap().get(new Integer(0))); //amendment , edit, withdraw, create assertTrue(result.getAmendmentMap().get(new Integer(0)).isEmpty()); assertTrue(result.getEditMap().get(new Integer(0)).isEmpty()); assertTrue(result.getWithdrawalMap().get(new Integer(0)).isEmpty()); assertFalse(result.getCreateMap().get(new Integer(0)).isEmpty()); assertNotNull(getWrapper(result.getCreateMap().get(new Integer(0)), rd1)); assertNull(getWrapper(result.getCreateMap().get(new Integer(0)), rd2)); assertNull(getWrapper(result.getCreateMap().get(new Integer(0)), rd3)); verifyMocks(); } /** * There is a data collection that has a completed report. Now we add a new AE2, Rules engine suggests RD2 for * newly added AE2. caAERS should recommend, amending of RD1 with RD2. * * Report defintion * RD1 * RD2 * (Note RD1 and RD2 belongs to same group) * * DataCollection * "RD1" completed * AE1 * Rules suggested RD2 on this data collection (ie. AE1+AE2) * * --- * Newly added AE2 * "RD2" suggested * * Expected behavior * ---------------- * Alert for DC1 and DC2 * * DATA Collection 1 * Ammend map should say RD1 ammended * Create Map should say RD2 create * DATA Collection 0 * Create map should say RD2 * * * @throws Exception * */ public void testEvaluateSAERules_OneReportGettingAmmended() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ArrayList<AdverseEvent> aeList1 = new ArrayList<AdverseEvent>(); aeList1.add(ae1); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); //rd1 and rd2 belongs to same group and org. ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setId(1); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); ReportDefinition rd2 = Fixtures.createReportDefinition("RD2", "001", 2, TimeScaleUnit.DAY); rd2.setId(2); rd2.setGroup(rd1.getGroup()); rd2.setOrganization(rd1.getOrganization()); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setSubmittedOn(new Date()); r1.setStatus(ReportStatus.COMPLETED); r1.setSubmittedOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.COMPLETED); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getActiveModifiedAdverseEvents()).andReturn(aeList1); expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null).anyTimes(); expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null).anyTimes(); //expect(aeReport1.getModifiedAdverseEvents()).andReturn(aeList1); expect(aeReport1.getAdverseEvents()).andReturn(aeList1).anyTimes(); expect(aeReport1.isActive()).andReturn(false); expect(aeReport1.getManuallySelectedReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.getActiveReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(Arrays.asList(r1)).times(1); expect(aeReport1.findCompletedAmendableReports()).andReturn(EMPTY_REPORT_LIST); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD2" )})); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { })); //noting returned by rules map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD2" )})); // R2 for ae2 aswell for this data collection expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map1); //expect(reportDefinitionDao.getByName("RD1")).andReturn(rd1); expect(reportDefinitionDao.getByName("RD2")).andReturn(rd2).anyTimes(); expect(aeReport1.findReportsToAmmend(rd2)).andReturn(Arrays.asList(r1)); expect(aeReport1.findReportsToEdit(rd2)).andReturn(new ArrayList<Report>()).times(2); expect(aeReport1.findReportsToWithdraw(rd2)).andReturn(new ArrayList<Report>()); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); //alert assertTrue(result.getAeReportAlertMap().get(ZERO)); assertTrue(result.getAeReportAlertMap().get(aeReport1.getId())); //amend, create, edit, withdraw maps. //aeReport -0 assertTrue(result.getAmendmentMap().get(ZERO).isEmpty()); assertTrue(result.getWithdrawalMap().get(ZERO).isEmpty()); assertTrue(result.getEditMap().get(ZERO).isEmpty()); assertFalse(result.getCreateMap().get(ZERO).isEmpty()); //aeReport 1 assertFalse(result.getAmendmentMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getCreateMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getWithdrawalMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getEditMap().get(aeReport1.getId()).isEmpty()); assertNotNull(getWrapper(result.getAmendmentMap().get(aeReport1.getId()), rd1)); assertEquals(rd2, getWrapper(result.getAmendmentMap().get(aeReport1.getId()), rd1).getSubstitute()); verifyMocks(); } /** * There is a data collection that has a completed report. Now we add a new AE2, Rules engine suggests RD2 for * newly added AE2. RD1 is a manually selected one. * -caAERS should not recommend anything for DC1. * -caAERS should recommend RD2 for aeReport-0 * * Report definition * RD1 (manually selected) * RD2 * (Note RD1 and RD2 belongs to same group) * * DataCollection * "RD1" completed * AE1 * Rules suggested RD2 on this data collection (ie. AE1+AE2) * * --- * Newly added AE2 * "RD2" suggested * * Expected behavior * ---------------- * Alert for DC1 and DC2 * * DATA Collection 1 * Amend map should say RD1 amended * Create Map should say RD2 create * DATA Collection 0 * Create map should say RD2 * * * @throws Exception * */ public void testEvaluateSAERules_OneManuallySelectedReportGettingAmmended() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ArrayList<AdverseEvent> aeList1 = new ArrayList<AdverseEvent>(); aeList1.add(ae1); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); //rd1 and rd2 belongs to same group and org. ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setId(1); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); ReportDefinition rd2 = Fixtures.createReportDefinition("RD2", "001", 2, TimeScaleUnit.DAY); rd2.setId(2); rd2.setGroup(rd1.getGroup()); rd2.setOrganization(rd1.getOrganization()); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setSubmittedOn(new Date()); r1.setStatus(ReportStatus.COMPLETED); r1.setManuallySelected(true); r1.setSubmittedOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.COMPLETED); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getActiveModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST); expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null).anyTimes(); expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null).anyTimes(); expect(aeReport1.getModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); expect(aeReport1.getAdverseEvents()).andReturn(aeList1).anyTimes(); expect(aeReport1.isActive()).andReturn(false); expect(aeReport1.getManuallySelectedReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.getActiveReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(Arrays.asList(r1)); expect(aeReport1.findCompletedAmendableReports()).andReturn(Arrays.asList(r1)); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); expect(aeReport1.findReportsToAmmend(rd2)).andReturn(Arrays.asList(r1)); expect(aeReport1.findReportsToEdit(rd2)).andReturn(new ArrayList<Report>()).times(2); expect(aeReport1.findReportsToWithdraw(rd2)).andReturn(new ArrayList<Report>()); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD2" )})); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD2" )})); // R2 for ae2 aswell for this data collection expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map1); expect(reportDefinitionDao.getByName("RD2")).andReturn(rd2).anyTimes(); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); //alert assertTrue(result.getAeReportAlertMap().get(ZERO)); assertTrue(result.getAeReportAlertMap().get(aeReport1.getId())); //amend, create, edit, withdraw maps. //aeReport -0 assertTrue(result.getAmendmentMap().get(ZERO).isEmpty()); assertTrue(result.getWithdrawalMap().get(ZERO).isEmpty()); assertTrue(result.getEditMap().get(ZERO).isEmpty()); assertFalse(result.getCreateMap().get(ZERO).isEmpty()); assertNotNull(getWrapper(result.getCreateMap().get(ZERO), rd2).getDef()); //aeReport 1 assertTrue(result.getWithdrawalMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getEditMap().get(aeReport1.getId()).isEmpty()); assertNotNull(getWrapper(result.getAmendmentMap().get(aeReport1.getId()), rd1).getDef()); assertEquals(rd2, getWrapper(result.getAmendmentMap().get(aeReport1.getId()), rd1).getSubstitute()); verifyMocks(); } /** * There is a data collection that has a submitted/amended report (RD1). An in process child report RD2( parent : RD1), * we add now a new AE (AE2), now rules engine suggests RD1 for the newly added AE. * caAERS should recommend, editing of RD2 (as the child RD2 is still active). * * Report definition * RD1 * RD2 (Note RD1 is the parent of RD2) * * DataCollection - 1 * "RD1" completed * RD2 - In progress * AE1 * Rules suggested RD1 on this data collection (ie. AE1+AE2) * * Data collect - 0 * * Newly added AE2 * "RD2" suggested * * Expected behavior * ---------------- * Alert for DC1 and DC0 * * DATA Collection 1 * Edit RD2, Amend, Create and Withdraw should be empty. * * DATA Collection 0 * Create map should say RD1 * * * @throws Exception * */ public void testEvaluateSAERules_ChildReportTakingPrecedenceOverSuggestedParent() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ArrayList<AdverseEvent> aeList1 = new ArrayList<AdverseEvent>(); aeList1.add(ae1); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); //rd1 and rd2 belongs to same group and org. ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setId(1); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); ReportDefinition rd2 = Fixtures.createReportDefinition("RD2", "001", 2, TimeScaleUnit.DAY); rd2.setId(2); rd2.setGroup(rd1.getGroup()); rd2.setOrganization(rd1.getOrganization()); rd2.setParent(rd1); //set the hierarchy Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setSubmittedOn(new Date()); r1.setStatus(ReportStatus.AMENDED); r1.setSubmittedOn(new Date()); r1.setAmendedOn(new Date()); Report r2 = Fixtures.createReport("test"); r2.setReportDefinition(rd2); r2.getLastVersion().setCreatedOn(new Date()); r2.setStatus(ReportStatus.INPROCESS); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getActiveAdverseEvents()).andReturn(aeList1); expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null).anyTimes(); expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null).anyTimes(); expect(aeReport1.getModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); expect(aeReport1.getAdverseEvents()).andReturn(aeList1).anyTimes(); expect(aeReport1.isActive()).andReturn(true); expect(aeReport1.getManuallySelectedReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.getActiveReports()).andReturn(Arrays.asList(r2)); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD1" )})); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { })); map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD1" )})); // R1 for ae2 aswell for this data collection EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map1); expect(reportDefinitionDao.getByName("RD1")).andReturn(rd1).times(4); expect(aeReport1.findReportsToAmmend(rd2)).andReturn(new ArrayList<Report>()); expect(aeReport1.findReportsToEdit(rd2)).andReturn(Arrays.asList(r2)).times(2); expect(aeReport1.findReportsToWithdraw(rd2)).andReturn(new ArrayList<Report>()); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.findCompletedAmendableReports()).andReturn(EMPTY_REPORT_LIST); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); //alert assertTrue(result.getAeReportAlertMap().get(ZERO)); assertFalse(result.getAeReportAlertMap().get(aeReport1.getId())); //amend, create, edit, withdraw maps. //aeReport -0 assertTrue(result.getAmendmentMap().get(ZERO).isEmpty()); assertTrue(result.getWithdrawalMap().get(ZERO).isEmpty()); assertTrue(result.getEditMap().get(ZERO).isEmpty()); assertFalse(result.getCreateMap().get(ZERO).isEmpty()); assertNotNull(getWrapper(result.getCreateMap().get(ZERO), rd1)); //aeReport 1 assertTrue(result.getAmendmentMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getCreateMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getWithdrawalMap().get(aeReport1.getId()).isEmpty()); assertFalse(result.getEditMap().get(aeReport1.getId()).isEmpty()); assertNotNull(getWrapper(result.getEditMap().get(aeReport1.getId()), rd2)); verifyMocks(); } /** * There are 2 completed reports (RD1 and RDZ), but modification of an AE suggest amendment of RD1 (with RD2). * caAERS should, recommend RD1 amend with RD2 and RDZ amend (forced) with itself. * * Report definition * RD1 ,RD2 and RDZ * (RD1 and RD2 same group, RDZ different) * * Case * DataCollection * RD1 completed * RD-Z completed * AE1 * AE2 * * Rules engine suggested RD2 (for AE1 modification) * -- * DataCollection 1 * Alert yes * Amendment - RD1, RDZ * Create - RD2,RDZ * * Newly added AE2 * everything empty */ public void testEvaluateSAERules_2Completed_But_OneAmmended() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); ae1.setEndDate(new Date()); //force modify AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ReportDefinition rdz = Fixtures.createReportDefinition("RZ", "00z", 2, TimeScaleUnit.DAY); rdz.getOrganization().setId(5); rdz.setGroup(Fixtures.createConfigProperty("zzz")); rdz.setId(33); ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); rd1.setId(1); ReportDefinition rd2 = Fixtures.createReportDefinition("RD2", "001", 2, TimeScaleUnit.DAY); rd2.setGroup(rd1.getGroup()); rd2.setOrganization(rd1.getOrganization()); rd2.setId(2); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setSubmittedOn(new Date()); r1.setStatus(ReportStatus.COMPLETED); r1.setSubmittedOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.COMPLETED); Report rz = Fixtures.createReport("testz"); rz.setReportDefinition(rdz); rz.getLastVersion().setSubmittedOn(new Date()); rz.setStatus(ReportStatus.COMPLETED); rz.setSubmittedOn(new Date()); rz.getLastVersion().setReportStatus(ReportStatus.COMPLETED); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getActiveModifiedAdverseEvents()).andReturn(Arrays.asList(ae1)).anyTimes(); expect(aeReport1.getModifiedAdverseEvents()).andReturn(Arrays.asList(ae1)).anyTimes(); EasyMock.expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(Arrays.asList(r1, rz)).times(1); expect(aeReport1.findCompletedAmendableReports()).andReturn(Arrays.asList(r1, rz)); expect(aeReport1.getActiveReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.isActive()).andReturn(false); expect(aeReport1.getAdverseEvents()).andReturn(Arrays.asList(ae1, ae2)).anyTimes(); expect(aeReport1.getManuallySelectedReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()).anyTimes(); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); //rules engine result Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD2" )})); expect(adverseEventEvaluationService.evaluateSAEReportSchedule(aeReport1, Arrays.asList(ae1), study)).andReturn(map1); expect(reportDefinitionDao.getByName("RD2")).andReturn(rd2).anyTimes(); expect(aeReport1.findReportsToAmmend(rd2)).andReturn(Arrays.asList(r1)); expect(aeReport1.findReportsToEdit(rd2)).andReturn(new ArrayList<Report>()).times(2); expect(aeReport1.findReportsToWithdraw(rd2)).andReturn(new ArrayList<Report>()); expect(aeReport1.findReportsToAmmend(rdz)).andReturn(Arrays.asList(rz)).anyTimes(); expect(aeReport1.findReportsToEdit(rdz)).andReturn(new ArrayList<Report>()).anyTimes(); expect(aeReport1.findReportsToWithdraw(rdz)).andReturn(new ArrayList<Report>()).anyTimes(); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); //alert assertTrue(result.getAeReportAlertMap().get(aeReport1.getId())); assertTrue(result.getEditMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getWithdrawalMap().get(aeReport1.getId()).isEmpty()); assertNotNull( getWrapper(result.getAmendmentMap().get(aeReport1.getId()), rd1)); assertNull( getWrapper(result.getAmendmentMap().get(aeReport1.getId()), rdz)); assertNull( getWrapper(result.getCreateMap().get(aeReport1.getId()), rd2)); assertNull( getWrapper(result.getCreateMap().get(aeReport1.getId()), rdz)); verifyMocks(); } /** * There is a report that is completed (RD1), we make a new AE2, that suggests RD1 again. * DataCollection * RD1 completed * AE1 * -- * Newly added AE2 * "RD1 suggested" * * Expected * aeRepot -0 - Create RD1 * aeReport 1 - Amend RD1 create RD1 */ public void testEvaluateSAERules_CompletedReportSuggestedAgain() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); rd1.setId(1); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setSubmittedOn(new Date()); r1.setStatus(ReportStatus.COMPLETED); r1.setSubmittedOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.COMPLETED); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getActiveModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); expect(aeReport1.getModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); EasyMock.expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null).times(2); expect(aeReport1.getActiveReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.isActive()).andReturn(false); expect(aeReport1.getAdverseEvents()).andReturn(Arrays.asList(ae1)).anyTimes(); expect(aeReport1.getManuallySelectedReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(Arrays.asList(r1)); expect(aeReport1.findCompletedAmendableReports()).andReturn(Arrays.asList(r1)); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD1" )})); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { })); //nothing by rules map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD1" )})); // R1 for ae2 aswell for this data collection expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map1); expect(reportDefinitionDao.getByName("RD1")).andReturn(rd1).anyTimes(); expect(aeReport1.findReportsToAmmend(rd1)).andReturn(Arrays.asList(r1)); expect(aeReport1.findReportsToEdit(rd1)).andReturn(new ArrayList<Report>()).times(2); expect(aeReport1.findReportsToWithdraw(rd1)).andReturn(new ArrayList<Report>()); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); Set<ReportDefinitionWrapper> wrappers = result.getAmendmentMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getAmendmentMap().get(new Integer(1)); assertFalse(wrappers.isEmpty()); assertEquals(1, wrappers.size()); ArrayList<ReportDefinitionWrapper> wrapperList = new ArrayList<ReportDefinitionWrapper>(wrappers); assertEquals(rd1, wrapperList.get(0).getDef()); assertEquals(rd1, wrapperList.get(0).getSubstitute()); //- createMap wrappers = result.getCreateMap().get(new Integer(0)); assertFalse(wrappers.isEmpty()); wrapperList = new ArrayList<ReportDefinitionWrapper>(wrappers); assertEquals(1, wrapperList.size()); assertEquals(rd1, wrapperList.get(0).getDef()); assertNull(wrapperList.get(0).getSubstitute()); wrappers = result.getCreateMap().get(new Integer(1)); assertTrue(wrappers.isEmpty()); wrapperList = new ArrayList<ReportDefinitionWrapper>(wrappers); assertEquals(0, wrapperList.size()); verifyMocks(); } /** * Test : Rules engine suggest nothing for exiting AE modification which is part of submitted AE, but caAERS * should force amendment of that report. * * Report definitions * RD1 1 Day * RDX 1 Day (different group) * * Data collection 1 * RD1 Completed * RDX Inprogress (rules suggested) * AE1 * AE2 * Modified AE1, but no reporting is suggested. * *----------- Exptected ---------------- * Alert not required for DEFAULT * Alert required for DC1 * * DC1 - amendMap - RD1, editMap RDx, createMap RD1, withdrawMap - none * 0 - amendMap empty, editMap empty, createMap empty, withdraw empty. * */ public void testEvaluateSAERules_OneInprogressOneCompletedButRulesDidnotSuggestAny() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); ae1.setStartDate(new Date()); //force modification AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); Organization org1 = Fixtures.createOrganization("test",1); Organization org2 = Fixtures.createOrganization("org2", 2); ConfigProperty cp = Fixtures.createConfigProperty("abcd"); cp.setId(1); ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "test", 1, TimeScaleUnit.DAY); rd1.setId(1); rd1.setOrganization(org1); rd1.setGroup(cp); ReportDefinition rdx = Fixtures.createReportDefinition("RDX", "test", 1, TimeScaleUnit.DAY); rdx.setOrganization(org2); rdx.setGroup(cp); rdx.setId(2); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setSubmittedOn(new Date()); r1.setStatus(ReportStatus.COMPLETED); r1.setSubmittedOn(new Date()); Report rx = Fixtures.createReport("testz"); rx.setReportDefinition(rdx); rx.getLastVersion().setSubmittedOn(new Date()); rx.setStatus(ReportStatus.INPROCESS); rx.setDueOn(new Date()); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getAdverseEvents()).andReturn(Arrays.asList(ae1, ae2)).anyTimes(); expect(aeReport1.getActiveAdverseEvents()).andReturn(Arrays.asList(ae1,ae2)); expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null); expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null); expect(aeReport1.getModifiedAdverseEvents()).andReturn(Arrays.asList(ae1)).anyTimes(); expect(aeReport1.isActive()).andReturn(true); expect(aeReport1.getManuallySelectedReports()).andReturn(new ArrayList<Report>()); expect(aeReport1.getActiveReports()).andReturn(Arrays.asList(rx)); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)).anyTimes(); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); //rules engine should not return anything. Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { })); //nothing by rules for ae1 map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RDX" )})); // nothing for ae2 expect(reportDefinitionDao.getByName("RDX")).andReturn(rdx).anyTimes(); expect(adverseEventEvaluationService.evaluateSAEReportSchedule(aeReport1, Arrays.asList(ae1, ae2), study)).andReturn(map1); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(Arrays.asList(r1)).times(1); expect(aeReport1.findCompletedAmendableReports()).andReturn(Arrays.asList(r1)); expect(aeReport1.findReportsToAmmend(rd1)).andReturn(Arrays.asList(r1)).anyTimes(); expect(aeReport1.findReportsToEdit(rd1)).andReturn(new ArrayList<Report>()).anyTimes(); expect(aeReport1.findReportsToWithdraw(rd1)).andReturn(new ArrayList<Report>()).anyTimes(); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); expect(aeReport1.findReportsToAmmend(rdx)).andReturn(new ArrayList<Report>()).anyTimes();; expect(aeReport1.findReportsToEdit(rdx)).andReturn(Arrays.asList(rx)).anyTimes(); expect(aeReport1.findReportsToWithdraw(rdx)).andReturn(new ArrayList<Report>()).anyTimes();; replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); assertFalse(result.isAlertRecommended()); //aeReportId 1 assertTrue(result.getWithdrawalMap().get(aeReport1.getId()).isEmpty()); assertFalse(result.getEditMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getAmendmentMap().get(aeReport1.getId()).isEmpty()); assertTrue(result.getCreateMap().get(aeReport1.getId()).isEmpty()); assertEquals(1, result.getEditMap().get(aeReport1.getId()).size()); assertEquals(0, result.getAmendmentMap().get(aeReport1.getId()).size()); assertEquals(rdx , new ArrayList<ReportDefinitionWrapper>(result.getEditMap().get(aeReport1.getId())).get(0).getDef()); //assertEquals(rd1 , new ArrayList<ReportDefinitionWrapper>(result.getAmendmentMap().get(aeReport1.getId())).get(0).getDef()); //assertEquals(rd1 , new ArrayList<ReportDefinitionWrapper>(result.getAmendmentMap().get(aeReport1.getId())).get(0).getSubstitute()); verifyMocks(); } /** * There is an in progress report, and the rules engine suggests the same, caAERS should recommend editing of RD1. * * Data Collection * RD1 - In process * AE1 * No suggestions * Newly added * AE2 * * ------- * Alert required for DC1 * No alert required for (aeReportId = 0) * * DC1 - Edit RD1 with RD1, createMap empty, editMap contains rd1 * 0 - create map empty * @throws Exception */ public void testEvaluateSAERules_EditOne() throws Exception{ if(DateUtils.compareDate(DateUtils.parseDate("05/28/2010"), DateUtils.today()) > 0){ assertTrue(true); return; } AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ArrayList<AdverseEvent> aeList1 = new ArrayList<AdverseEvent>(); aeList1.add(ae1); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); rd1.setId(1); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setDueOn(new Date()); r1.setStatus(ReportStatus.INPROCESS); r1.setDueOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.INPROCESS); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); expect(aeReport1.getActiveAdverseEvents()).andReturn(aeList1); expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null).anyTimes(); expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null).anyTimes(); expect(aeReport1.getModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); expect(aeReport1.isActive()).andReturn(true); expect(aeReport1.getActiveReports()).andReturn(Arrays.asList(r1)); expect(aeReport1.getManuallySelectedReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.findCompletedAmendableReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.getAdverseEvents()).andReturn(aeList1).anyTimes(); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { })); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { Fixtures.createAdverseEventEvaluationResult("RD1" ) })); map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { })); // R1 for ae2 aswell for this data collection expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map1); expect(reportDefinitionDao.getByName("RD1")).andReturn(rd1).anyTimes(); expect(aeReport1.findReportsToAmmend(rd1)).andReturn(new ArrayList<Report>()); expect(aeReport1.findReportsToEdit(rd1)).andReturn(Arrays.asList(r1)).times(2); expect(aeReport1.findReportsToWithdraw(rd1)).andReturn(new ArrayList<Report>()); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); assertFalse(result.getAeReportAlertMap().get(new Integer(0))); assertFalse(result.getAeReportAlertMap().get(new Integer(1))); Set<ReportDefinitionWrapper> wrappers = result.getAmendmentMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getAmendmentMap().get(new Integer(1)); assertTrue(wrappers.isEmpty()); wrappers = result.getWithdrawalMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getWithdrawalMap().get(new Integer(1)); assertTrue(wrappers.isEmpty()); wrappers = result.getEditMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getEditMap().get(new Integer(1)); assertFalse(wrappers.isEmpty()); ArrayList<ReportDefinitionWrapper> wrapperList = new ArrayList<ReportDefinitionWrapper>(wrappers); assertEquals(1, wrapperList.size()); assertEquals(rd1, wrapperList.get(0).getDef()); assertEquals(rd1, wrapperList.get(0).getSubstitute()); verifyMocks(); } /** * There is an in progress report, and the rules engine did not suggest any, caAERS should recommend withdraw of RD1. * * Data Collection * RD1 - In process * AE1 * No suggestions * Newly added * AE2 * * ------- * No Alert required for DC1 * No alert required for (aeReportId = 0) * * DC1 - maps empty * 0 - maps empty * @throws Exception */ public void testEvaluateSAERules_WithdrawOne() throws Exception{ AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ArrayList<AdverseEvent> aeList1 = new ArrayList<AdverseEvent>(); aeList1.add(ae1); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); rd1.setId(1); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setDueOn(new Date()); r1.setStatus(ReportStatus.INPROCESS); r1.setDueOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.INPROCESS); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); EasyMock.expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null); expect(aeReport1.getActiveAdverseEvents()).andReturn(aeList1); expect(aeReport1.getModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); expect(aeReport1.isActive()).andReturn(true); expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null).anyTimes(); expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null).anyTimes(); expect(aeReport1.getActiveReports()).andReturn(Arrays.asList(r1)); expect(aeReport1.getManuallySelectedReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.getAdverseEvents()).andReturn(aeList1).anyTimes(); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.findCompletedAmendableReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.getRetiredAdverseEvents()).andReturn(new ArrayList<AdverseEvent>()); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { })); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { })); map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { })); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map1); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); //alert assertFalse(result.getAeReportAlertMap().get(new Integer(0))); assertFalse(result.getAeReportAlertMap().get(new Integer(1))); assertTrue(result.getCreateMap().get(ZERO).isEmpty()); assertTrue(result.getCreateMap().get(ONE).isEmpty()); assertTrue(result.getEditMap().get(ZERO).isEmpty()); assertTrue(result.getEditMap().get(ONE).isEmpty()); assertTrue(result.getWithdrawalMap().get(ZERO).isEmpty()); assertFalse(result.getWithdrawalMap().get(ONE).isEmpty()); assertTrue(result.getAmendmentMap().get(ZERO).isEmpty()); assertTrue(result.getAmendmentMap().get(ONE).isEmpty()); verifyMocks(); } /** * There is an in progress report, and the rules engine do not suggest any, * caAERS should recommend editing of RD1, as it is manually selected. * * Data Collection * RD1 - In process (manually selected) * AE1 * No suggestions * Newly added * AE2 * * ------- * Alert required for DC1 * No alert required for (aeReportId = 0) * * DC1 - Edit RD1 with RD1, createMap empty, editMap contains rd1 * 0 - create map empty * @throws Exception */ public void testEvaluateSAERules_ManyallySelectedInprogressSuggested_InsteadOfWithdraw() throws Exception{ AdverseEvent ae1 = Fixtures.createAdverseEvent(1, Grade.MILD); ae1.setGradedDate(new Date()); AdverseEvent ae2 = Fixtures.createAdverseEvent(2,Grade.LIFE_THREATENING); ae2.setGradedDate(new Date()); ArrayList<AdverseEvent> aeList = new ArrayList<AdverseEvent>(); aeList.add(ae2); aeList.add(ae1); ArrayList<AdverseEvent> aeList1 = new ArrayList<AdverseEvent>(); aeList1.add(ae1); ArrayList<AdverseEvent> aeList2 = new ArrayList<AdverseEvent>(); aeList2.add(ae2); ReportDefinition rd1 = Fixtures.createReportDefinition("RD1", "001", 1, TimeScaleUnit.DAY); rd1.setGroup(Fixtures.createConfigProperty("expedited")); rd1.getOrganization().setId(1); rd1.setId(1); Report r1 = Fixtures.createReport("test"); r1.setReportDefinition(rd1); r1.getLastVersion().setDueOn(new Date()); r1.setStatus(ReportStatus.INPROCESS); r1.setDueOn(new Date()); r1.getLastVersion().setReportStatus(ReportStatus.INPROCESS); ExpeditedAdverseEventReport aeReport1 = registerMockFor(ExpeditedAdverseEventReport.class); expect(aeReport1.getId()).andReturn(new Integer(1)).anyTimes(); EasyMock.expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null); expect(aeReport1.getActiveAdverseEvents()).andReturn(aeList1); EasyMock.expect(aeReport1.doesAnotherAeWithSameTermExist(ae2)).andReturn(null); EasyMock.expect(aeReport1.doesAnotherAeWithSameTermExist(ae1)).andReturn(null); expect(aeReport1.getModifiedAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); expect(aeReport1.isActive()).andReturn(true); expect(aeReport1.getActiveReports()).andReturn(Arrays.asList(r1)); expect(aeReport1.getManuallySelectedReports()).andReturn(Arrays.asList(r1)); expect(aeReport1.getAdverseEvents()).andReturn(aeList1).anyTimes(); expect(aeReport1.listReportsHavingStatus(ReportStatus.COMPLETED)).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.findCompletedAmendableReports()).andReturn(EMPTY_REPORT_LIST); expect(aeReport1.getRetiredAdverseEvents()).andReturn(EMPTY_AE_LIST).anyTimes(); Study study = Fixtures.createStudy("test"); AdverseEventReportingPeriod reportingPeriod = registerMockFor(AdverseEventReportingPeriod.class); expect(reportingPeriod.getAeReports()).andReturn(Arrays.asList(aeReport1)); expect(reportingPeriod.getNonExpeditedAdverseEvents()).andReturn(aeList2); expect(reportingPeriod.getStudy()).andReturn(study).anyTimes(); TreatmentAssignment ta = Fixtures.createTreatmentAssignment("abc"); EasyMock.expect(reportingPeriod.getTreatmentAssignment()).andReturn(ta).anyTimes(); //nothing suggest by rules engine. Map<AdverseEvent, List<AdverseEventEvaluationResult>> map0 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map0.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { })); Map<AdverseEvent, List<AdverseEventEvaluationResult>> map1 = new HashMap<AdverseEvent, List<AdverseEventEvaluationResult>>(); map1.put(ae1, Arrays.asList(new AdverseEventEvaluationResult[] { })); map1.put(ae2, Arrays.asList(new AdverseEventEvaluationResult[] { })); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList2), EasyMock.eq(study))).andReturn(map0); EasyMock.expect(adverseEventEvaluationService.evaluateSAEReportSchedule((ExpeditedAdverseEventReport)EasyMock.anyObject(), EasyMock.eq(aeList), EasyMock.eq(study))).andReturn(map1); expect(aeReport1.findReportsToAmmend(rd1)).andReturn(new ArrayList<Report>()); expect(aeReport1.findReportsToEdit(rd1)).andReturn(Arrays.asList(r1)).times(2); expect(aeReport1.findReportsToWithdraw(rd1)).andReturn(new ArrayList<Report>()); replayMocks(); EvaluationResultDTO result = service.evaluateSAERules(reportingPeriod); assertFalse(result.getAeReportAlertMap().get(new Integer(0))); assertFalse(result.getAeReportAlertMap().get(new Integer(1))); Set<ReportDefinitionWrapper> wrappers = result.getAmendmentMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getAmendmentMap().get(new Integer(1)); assertTrue(wrappers.isEmpty()); wrappers = result.getWithdrawalMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getWithdrawalMap().get(new Integer(1)); assertTrue(wrappers.isEmpty()); wrappers = result.getEditMap().get(new Integer(0)); assertTrue(wrappers.isEmpty()); wrappers = result.getEditMap().get(new Integer(1)); assertFalse(wrappers.isEmpty()); ArrayList<ReportDefinitionWrapper> wrapperList = new ArrayList<ReportDefinitionWrapper>(wrappers); assertEquals(1, wrapperList.size()); assertEquals(rd1, wrapperList.get(0).getDef()); assertEquals(rd1, wrapperList.get(0).getSubstitute()); verifyMocks(); } public void testMandatorySections() throws Exception{ ExpeditedAdverseEventReport aeReport1 = null; ReportDefinition rd1 = Fixtures.createReportDefinition("ctep-rd-1",null, null); rd1.setId(1); rd1.setTimeScaleUnitType(TimeScaleUnit.MINUTE); rd1.setDuration(1); ReportDefinition rd2 = Fixtures.createReportDefinition("ctep-rd-2",null, null); rd2.setTimeScaleUnitType(TimeScaleUnit.DAY); rd2.setDuration(2); rd2.setId(2); ArrayList<ExpeditedReportSection> list1 = new ArrayList<ExpeditedReportSection>(); list1.add(ExpeditedReportSection.ADVERSE_EVENT_SECTION); expect(adverseEventEvaluationService.mandatorySections(aeReport1, rd1)).andReturn(list1); ArrayList<ExpeditedReportSection> list2 = new ArrayList<ExpeditedReportSection>(); list2.add(ExpeditedReportSection.ADVERSE_EVENT_SECTION); list2.add(ExpeditedReportSection.ADDITIONAL_INFO_SECTION); expect(adverseEventEvaluationService.mandatorySections(aeReport1, rd2)).andReturn(list2); replayMocks(); Map<Integer, Collection<ExpeditedReportSection>> map = service.mandatorySections(aeReport1, rd1, rd2); assertTrue(map.containsKey(rd1.getId())); assertTrue(map.containsKey(rd2.getId())); assertTrue(map.get(rd2.getId()).contains(ExpeditedReportSection.ADVERSE_EVENT_SECTION)); verifyMocks(); } public ReportDefinitionWrapper getWrapper(Collection<ReportDefinitionWrapper> c , ReportDefinition def){ for(ReportDefinitionWrapper wrapper : c){ if(wrapper.getDef().equals(def)) return wrapper; } return null; } public void testTranslateRulesMandatorynessResult(){ String rules1 ="MANDATORY||MANDATORY||OPTIONAL||NA||NA"; String rules2 ="MANDATORY"; String rules3 ="NA||OPTIONAL"; Mandatory m1 = service.translateRulesMandatorynessResult(rules1); assertEquals(Mandatory.OPTIONAL, m1); Mandatory m2 = service.translateRulesMandatorynessResult(rules2); assertEquals(Mandatory.MANDATORY, m2); Mandatory m3 = service.translateRulesMandatorynessResult(rules3); assertEquals(Mandatory.OPTIONAL, m3); assertEquals(Mandatory.NA, service.translateRulesMandatorynessResult("NA||NA")); assertEquals(Mandatory.OPTIONAL, service.translateRulesMandatorynessResult("")); assertEquals(Mandatory.OPTIONAL, service.translateRulesMandatorynessResult(null)); } }
{ "content_hash": "6b1e75eaab73abade692ba750f4c88d8", "timestamp": "", "source": "github", "line_count": 1625, "max_line_length": 193, "avg_line_length": 44.86953846153846, "alnum_prop": 0.7257279223183795, "repo_name": "CBIIT/caaers", "id": "3e71ba5121234842268c3268fe09a022c5a51111", "size": "73275", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "caAERS/software/core/src/test/java/gov/nih/nci/cabig/caaers/rules/business/service/EvaluationServiceTest.java", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "AGS Script", "bytes": "127" }, { "name": "AspectJ", "bytes": "2052" }, { "name": "Batchfile", "bytes": "778" }, { "name": "CSS", "bytes": "150327" }, { "name": "Cucumber", "bytes": "666" }, { "name": "Groovy", "bytes": "19198183" }, { "name": "HTML", "bytes": "78184618" }, { "name": "Java", "bytes": "14455656" }, { "name": "JavaScript", "bytes": "439130" }, { "name": "PLSQL", "bytes": "75583" }, { "name": "PLpgSQL", "bytes": "34461" }, { "name": "Ruby", "bytes": "29724" }, { "name": "Shell", "bytes": "14770" }, { "name": "XSLT", "bytes": "1262163" } ], "symlink_target": "" }
<?xml version="1.0"?> <!-- JBoss, Home of Professional Open Source Copyright 2012, Red Hat, Inc. and/or its affiliates, and individual contributors by the @authors tag. See the copyright.txt in the distribution for a full listing of individual contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.jboss.as.quickstarts</groupId> <artifactId>jboss-as-helloworld-errai</artifactId> <version>7.1.2-SNAPSHOT</version> <packaging>war</packaging> <name>JBoss AS Quickstarts: Errai Hello World</name> <url>http://jboss.org/jbossas</url> <licenses> <license> <name>Apache License, Version 2.0</name> <distribution>repo</distribution> <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> </license> </licenses> <properties> <!-- Explicitly declaring the source encoding eliminates the following message: --> <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- JBoss dependency versions --> <version.org.jboss.as.plugins.maven.plugin>7.3.Final</version.org.jboss.as.plugins.maven.plugin> <version.org.jboss.bom>1.0.4.CR7</version.org.jboss.bom> <!-- other plugin versions --> <version.clean.plugin>2.4.1</version.clean.plugin> <version.compiler.plugin>2.3.1</version.compiler.plugin> <version.org.codehaus.mojo.gwt.maven.plugin>2.4.0</version.org.codehaus.mojo.gwt.maven.plugin> <version.war.plugin>2.1.1</version.war.plugin> <!-- maven-compiler-plugin --> <maven.compiler.target>1.6</maven.compiler.target> <maven.compiler.source>1.6</maven.compiler.source> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.bom</groupId> <artifactId>jboss-javaee-6.0-with-errai</artifactId> <version>${version.org.jboss.bom}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <!-- Import the CDI API, we use provided scope as the API is included in JBoss AS 7 --> <dependency> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> <scope>provided</scope> </dependency> <!-- Import the Common Annotations API (JSR-250), we use provided scope as the API is included in JBoss AS 7 --> <dependency> <groupId>org.jboss.spec.javax.annotation</groupId> <artifactId>jboss-annotations-api_1.1_spec</artifactId> <scope>provided</scope> </dependency> <!-- GWT --> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <scope>provided</scope> </dependency> <!-- Errai --> <!-- Project Dependencies --> <dependency> <groupId>org.jboss.errai</groupId> <artifactId>errai-bus</artifactId> </dependency> <dependency> <groupId>org.jboss.errai</groupId> <artifactId>errai-ioc</artifactId> </dependency> <dependency> <groupId>org.jboss.errai</groupId> <artifactId>errai-tools</artifactId> </dependency> <dependency> <groupId>org.jboss.errai</groupId> <artifactId>errai-jaxrs-client</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss.errai</groupId> <artifactId>errai-jaxrs-provider</artifactId> </dependency> <dependency> <groupId>org.jboss.spec.javax.ws.rs</groupId> <artifactId>jboss-jaxrs-api_1.1_spec</artifactId> <scope>provided</scope> </dependency> </dependencies> <build> <!-- Set the name of the war, used as the context root when the app is deployed --> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>${version.war.plugin}</version> <configuration> <!-- Exclude client only classes from the deployment. As these classes compile down to JavaScript, they are not needed at runtime. They would only introduce runtime dependencies to GWT development libraries. --> <packagingExcludes>**/client/local/**/*.class</packagingExcludes> </configuration> </plugin> <!-- JBoss AS plugin to deploy war --> <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>${version.org.jboss.as.plugins.maven.plugin}</version> </plugin> <!-- Compiler plugin enforces Java 1.6 compatibility and activates annotation processors --> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>${version.compiler.plugin}</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> </configuration> </plugin> <!-- GWT plugin to compile client-side java code to javascript and to run GWT development mode --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>${version.org.codehaus.mojo.gwt.maven.plugin}</version> <configuration> <inplace>true</inplace> <logLevel>INFO</logLevel> <extraJvmArgs>-Xmx512m</extraJvmArgs> <!-- Configure GWT's development mode (formerly known as hosted mode) to not start the default server (embedded jetty), but to download the HTML host page from the configured runTarget. --> <noServer>true</noServer> <runTarget>http://localhost:8080/jboss-as-helloworld-errai/HelloWorldApp.html</runTarget> </configuration> <executions> <execution> <id>gwt-compile</id> <goals> <goal>compile</goal> </goals> </execution> <execution> <id>gwt-clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>${version.clean.plugin}</version> <configuration> <filesets> <fileset> <directory>${basedir}</directory> <includes> <include>www-test/**</include> <include>.gwt/**</include> <include>.errai/**</include> <include>war/WEB-INF/deploy/**</include> <include>war/WEB-INF/lib/**</include> <include>src/main/webapp/WEB-INF/deploy/**</include> <include>**/gwt-unitCache/**</include> <include>**/*.JUnit/**</include> </includes> </fileset> </filesets> </configuration> </plugin> </plugins> </build> </project>
{ "content_hash": "050ec0d20f79add75b228c33c8896311", "timestamp": "", "source": "github", "line_count": 209, "max_line_length": 132, "avg_line_length": 43.09569377990431, "alnum_prop": 0.5510158765404686, "repo_name": "mojavelinux/jboss-as-quickstart", "id": "04da775a398d04922394b6595f23a274e93f14e8", "size": "9007", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "helloworld-errai/pom.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1077720" }, { "name": "JavaScript", "bytes": "560351" }, { "name": "Objective-C", "bytes": "13048" }, { "name": "Perl", "bytes": "890" }, { "name": "Ruby", "bytes": "4474" }, { "name": "Shell", "bytes": "13785" } ], "symlink_target": "" }
<?php Class Global_Form_FrmAddSubjectExam extends Zend_Dojo_Form { protected $tr; protected $tvalidate ;//text validate protected $filter; protected $t_date; protected $t_num; protected $text; //protected $check; public function init() { $this->tr = Application_Form_FrmLanguages::getCurrentlanguage(); $this->tvalidate = 'dijit.form.ValidationTextBox'; $this->filter = 'dijit.form.FilteringSelect'; $this->t_date = 'dijit.form.DateTextBox'; $this->t_num = 'dijit.form.NumberTextBox'; $this->text = 'dijit.form.TextBox'; //$this->check='dijit.form.CheckBox'; } public function FrmAddSubjectExam($data=null){ $_subject_exam = new Zend_Dojo_Form_Element_TextBox('subject_kh'); $_subject_exam->setAttribs(array('dojoType'=>$this->tvalidate,'required'=>'true','class'=>'fullside',)); $_subject_kh = new Zend_Dojo_Form_Element_TextBox('subject_en'); $_subject_kh->setAttribs(array('dojoType'=>$this->tvalidate,'required'=>'true','class'=>'fullside',)); $_status= new Zend_Dojo_Form_Element_FilteringSelect('status'); $_status->setAttribs(array('dojoType'=>$this->filter,'class'=>'fullside',)); $_status_opt = array( 1=>$this->tr->translate("ACTIVE"), 0=>$this->tr->translate("DACTIVE")); $_status->setMultiOptions($_status_opt); $_submit = new Zend_Dojo_Form_Element_SubmitButton('submit'); $_submit->setLabel("save"); if(!empty($data)){ $_subject_exam->setValue($data['subject_titlekh']); $_subject_kh->setValue($data['subject_titleen']); $_status->setValue($data['status']); } $this->addElements(array($_subject_exam,$_status,$_submit,$_subject_kh)); return $this; } }
{ "content_hash": "469133dde2020c975f10a9901fed02e0", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 106, "avg_line_length": 34.87755102040816, "alnum_prop": 0.652428320655354, "repo_name": "Bornpagna/stock", "id": "ab467ea84bd332224d6f5ce6c851806587ced222", "size": "1709", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "application/modules/global/forms/FrmAddSubjectExam.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "872562" }, { "name": "PHP", "bytes": "518004" } ], "symlink_target": "" }
Solving Listener Crossword 4151 with Mathematica =============== Solution for crossword puzzle implemented using Mathematica. See http://www.planetmarshall.co.uk/2011/10/12/solving-listener-crossword-4151-with-mathematica.html for details.
{ "content_hash": "18ddae4c718a2dbb9a12f68f7754fbdd", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 174, "avg_line_length": 60.25, "alnum_prop": 0.7842323651452282, "repo_name": "planetmarshall/crossword_solve", "id": "a55358d7ba85512a271ba4156d12b85d04d11463", "size": "241", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
=head1 LICENSE Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute Copyright [2016-2022] EMBL-European Bioinformatics Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =cut =head1 CONTACT Please email comments or questions to the public Ensembl developers list at <http://lists.ensembl.org/mailman/listinfo/dev>. Questions may also be sent to the Ensembl help desk at <http://www.ensembl.org/Help/Contact>. =cut =head1 NAME Bio::EnsEMBL::DBSQL::ProteinFeatureAdaptor =head1 SYNOPSIS use Bio::EnsEMBL::Registry; Bio::EnsEMBL::Registry->load_registry_from_db( -host => 'ensembldb.ensembl.org', -user => 'anonymous' ); $pfa = Bio::EnsEMBL::Registry->get_adaptor( "human", "core", "proteinfeature" ); my @prot_feats = @{ $pfa->fetch_all_by_translation_id(1231) }; my $prot_feat = $pfa->fetch_by_dbID(523); =head1 METHODS =cut package Bio::EnsEMBL::DBSQL::ProteinFeatureAdaptor; use strict; use Bio::EnsEMBL::DBSQL::BaseAdaptor; use Bio::EnsEMBL::ProteinFeature; use Bio::EnsEMBL::DBSQL::BaseAlignFeatureAdaptor; use Bio::EnsEMBL::Utils::Exception qw(throw deprecate warning); use parent qw(Bio::EnsEMBL::DBSQL::BaseAlignFeatureAdaptor); =head2 fetch_all_by_translation_id Arg [1] : int $transl the internal id of the translation corresponding to protein whose features are desired Example : @prot_feats = @{ $prot_feat_adaptor->fetch_by_translation_id(1234) }; Description: Gets all protein features present on a peptide using the translations internal identifier. This method will return an unsorted list of all protein_feature types. The feature types may be distinguished using the logic name attribute of the attached analysis objects. Returntype : listref of Bio::EnsEMBL::ProteinFeatures Exceptions : none Caller : ? Status : Stable =cut sub fetch_all_by_translation_id { my ($self, $translation_id, $logic_name) = @_; my $constraint = "pf.translation_id = ?"; if(defined $logic_name){ my $logic_constraint = $self->_logic_name_to_constraint( '', $logic_name ); $constraint .= " AND ".$logic_constraint if defined $logic_constraint; } $self->bind_param_generic_fetch($translation_id, SQL_INTEGER); my $features = $self->generic_fetch($constraint); return $features; } ## end sub fetch_all_by_translation_id =head2 fetch_all_by_logic_name Arg [1] : string $logic_name the logic name of the type of features to obtain Example : $fs = $a->fetch_all_by_logic_name('foobar'); Description: Returns a listref of features created from the database. only features with an analysis of type $logic_name will be returned. If the logic name is invalid (not in the analysis table), a reference to an empty list will be returned. Returntype : listref of Bio::EnsEMBL::ProteinFeatures Exceptions : thrown if no $logic_name Caller : General Status : Stable =cut sub fetch_all_by_logic_name { my ( $self, $logic_name ) = @_; if ( !defined($logic_name) ) { throw("Need a logic_name"); } my $constraint = $self->_logic_name_to_constraint( '', $logic_name ); if ( !defined($constraint) ) { warning("Invalid logic name: $logic_name"); return []; } return $self->generic_fetch($constraint); } =head2 fetch_by_dbID Arg [1] : int $protfeat_id the unique database identifier of the protein feature to obtain Example : my $feature = $prot_feat_adaptor->fetch_by_dbID(); Description: Obtains a protein feature object via its unique id Returntype : Bio::EnsEMBL::ProteinFeauture Exceptions : none Caller : ? Status : Stable =cut sub fetch_by_dbID { my ($self, $protfeat_id) = @_; my @select_cols = $self->_tbl_columns(1); # skip pk - protein_feature_id my @select_cols_alias = map { 'pf.'.$_ } @select_cols; my $select_sql = "SELECT ". (join ',', @select_cols_alias); $select_sql .= ", x.description, x.display_label, i.interpro_ac " . "FROM protein_feature pf " . "LEFT JOIN interpro AS i ON pf.hit_name = i.id " . "LEFT JOIN xref AS x ON x.dbprimary_acc = i.interpro_ac " . "WHERE pf.protein_feature_id = ?"; my $sth = $self->prepare($select_sql); $sth->bind_param(1, $protfeat_id, SQL_INTEGER); my $res = $sth->execute(); my $pf_hash_ref = $sth->fetchrow_hashref(); if($sth->rows == 0) { $sth->finish(); return undef; } $sth->finish(); my $analysis = $self->db->get_AnalysisAdaptor->fetch_by_dbID($pf_hash_ref->{analysis_id}); my( $cigar_string, $align_type); $cigar_string = $pf_hash_ref->{cigar_line} if exists $pf_hash_ref->{cigar_line}; # available > e92 $align_type = $pf_hash_ref->{align_type} if exists $pf_hash_ref->{align_type}; # available > e92 return Bio::EnsEMBL::ProteinFeature->new(-ADAPTOR => $self, -DBID => $protfeat_id, -START => $pf_hash_ref->{seq_start}, -END => $pf_hash_ref->{seq_end}, -HSTART => $pf_hash_ref->{hit_start}, -HEND => $pf_hash_ref->{hit_end}, -HSEQNAME => $pf_hash_ref->{hit_name}, -HDESCRIPTION => $pf_hash_ref->{hit_description}, -ANALYSIS => $analysis, -SCORE => $pf_hash_ref->{score}, -P_VALUE => $pf_hash_ref->{evalue}, -PERCENT_ID => $pf_hash_ref->{perc_ident}, -IDESC => $pf_hash_ref->{description}, -ILABEL => $pf_hash_ref->{display_label}, -INTERPRO_AC => $pf_hash_ref->{interpro_ac}, -TRANSLATION_ID => $pf_hash_ref->{translation_id}, -CIGAR_STRING => $cigar_string, -ALIGN_TYPE => $align_type ); } ## end sub fetch_by_dbID =head2 store Arg [1] : Bio::EnsEMBL::ProteinFeature $feature The feature to be stored Arg [2] : int $translation_id Example : $protein_feature_adaptor->store($protein_feature); Description: Stores a protein feature in the database Returntype : int - the new internal identifier of the stored protein feature Exceptions : thrown if arg is not a Bio::EnsEMBL: Caller : none Status : Stable =cut sub store { my ($self, $feature, $translation_id) = @_; if (!ref($feature) || !$feature->isa('Bio::EnsEMBL::ProteinFeature')) { throw("ProteinFeature argument is required"); } my $db = $self->db(); if ($feature->is_stored($db)) { warning("ProteinFeature " . $feature->dbID() . " is already stored in " . "this database - not storing again"); } my $analysis = $feature->analysis(); if (!defined($analysis)) { throw("Feature doesn't have analysis. Can't write to database"); } if (!$analysis->is_stored($db)) { $db->get_AnalysisAdaptor->store($analysis); } my $insert_ignore = $self->insert_ignore_clause(); my @insert_cols = $self->_tbl_columns(1); # skip pk - protein_feature_id my @insert_values = map { '?' } @insert_cols; my $insert_stmt = "${insert_ignore} INTO protein_feature (". (join ',', @insert_cols) . ') VALUES (' . (join ',', @insert_values) . ')'; my $sth = $self->prepare($insert_stmt); my $i = 0; $sth->bind_param(++$i, $translation_id, SQL_INTEGER); $sth->bind_param(++$i, $feature->start, SQL_INTEGER); $sth->bind_param(++$i, $feature->end, SQL_INTEGER); $sth->bind_param(++$i, $feature->hstart, SQL_INTEGER); $sth->bind_param(++$i, $feature->hend, SQL_INTEGER); $sth->bind_param(++$i, $feature->hseqname, SQL_VARCHAR); $sth->bind_param(++$i, $analysis->dbID, SQL_INTEGER); $sth->bind_param(++$i, $feature->score, SQL_DOUBLE); $sth->bind_param(++$i, $feature->p_value, SQL_DOUBLE); $sth->bind_param(++$i, $feature->percent_id, SQL_FLOAT); $sth->bind_param(++$i, $feature->external_data, SQL_VARCHAR); $sth->bind_param(++$i, $feature->hdescription, SQL_LONGVARCHAR); if ($self->schema_version > 92) { $sth->bind_param(++$i, $feature->cigar_string, SQL_VARCHAR); $sth->bind_param(++$i, $feature->align_type, SQL_VARCHAR); } $sth->execute(); if (defined($sth->err) && $sth->err eq 0){ # is a warning if 0 and defined warning('SQL warning : ' . $sth->errstr ."\n"); } my $dbID = $self->last_insert_id('protein_feature_id', undef, 'protein_feature'); $feature->adaptor($self); $feature->dbID($dbID); $sth->finish(); return $dbID; } ## end sub store sub _tables { my $self = shift; return (['protein_feature', 'pf'], ['interpro', 'ip'], ['xref', 'x']); } sub _left_join { return (['interpro', "pf.hit_name = ip.id"], ['xref', "x.dbprimary_acc = ip.interpro_ac"]); } # return columns from protein_feature table sub _tbl_columns { my ($self, $skip_pk) = @_; $skip_pk = defined $skip_pk ? $skip_pk : 0; my @columns = qw( protein_feature_id translation_id seq_start seq_end hit_start hit_end hit_name analysis_id score evalue perc_ident external_data hit_description ); $self->schema_version > 92 and push @columns, ('cigar_line', 'align_type'); shift @columns if $skip_pk; return @columns; } # return columns from joined tables (xref and interpro) prefixed with alias sub _columns { my $self = shift; my @columns = map{ "pf.".$_} $self->_tbl_columns(); push @columns, qw(x.description x.display_label ip.interpro_ac); return @columns } # Arg [1] : StatementHandle $sth # Example : none # Description: PROTECTED implementation of abstract superclass method. # responsible for the creation of ProteinFeatures # Returntype : listref of Bio::EnsEMBL::ProteinFeatures # Exceptions : none # Caller : internal # Status : At Risk sub _objs_from_sth { my ($self, $sth) = @_; my($dbID, $translation_id, $start, $end, $hstart, $hend, $hid, $analysis_id, $score, $evalue, $perc_id, $external_data,$hdesc, $cigar_line, $align_type, $desc, $ilabel, $interpro_ac); my $i = 0; $sth->bind_col(++$i, \$dbID); $sth->bind_col(++$i, \$translation_id); $sth->bind_col(++$i, \$start); $sth->bind_col(++$i, \$end); $sth->bind_col(++$i, \$hstart); $sth->bind_col(++$i, \$hend); $sth->bind_col(++$i, \$hid); $sth->bind_col(++$i, \$analysis_id); $sth->bind_col(++$i, \$score); $sth->bind_col(++$i, \$evalue); $sth->bind_col(++$i, \$perc_id); $sth->bind_col(++$i, \$external_data); $sth->bind_col(++$i, \$hdesc); if ($self->schema_version > 92) { $sth->bind_col(++$i, \$cigar_line); $sth->bind_col(++$i, \$align_type); } $sth->bind_col(++$i, \$desc); $sth->bind_col(++$i, \$ilabel); $sth->bind_col(++$i, \$interpro_ac); my $analysis_adaptor = $self->db->get_AnalysisAdaptor(); my @features; while($sth->fetch()) { my $analysis = $analysis_adaptor->fetch_by_dbID($analysis_id); push( @features, my $feat = Bio::EnsEMBL::ProteinFeature->new( -DBID => $dbID, -ADAPTOR => $self, -SEQNAME => $translation_id, -START => $start, -END => $end, -ANALYSIS => $analysis, -PERCENT_ID => $perc_id, -P_VALUE => $evalue, -SCORE => $score, -HSTART => $hstart, -HEND => $hend, -HSEQNAME => $hid, -HDESCRIPTION => $hdesc, -IDESC => $desc, -ILABEL => $ilabel, -INTERPRO_AC => $interpro_ac, -TRANSLATION_ID => $translation_id, -CIGAR_STRING => $cigar_line, -ALIGN_TYPE => $align_type, )); } return \@features; } #wrapper method =head2 fetch_all_by_uniprot_acc Arg [1] : string uniprot accession The uniprot accession of the features to obtain Arg [2] : (optional) string $logic_name The analysis logic name of the type of features to obtain. Default is 'gifts_import' Example : @feats = @{ $adaptor->fetch_all_by_uniprot_acc( 'P20366', 'gifts_import' ); } Description: Returns a listref of features created from the database which correspond to the given uniprot accession. If logic name is defined, only features with an analysis of type $logic_name will be returned. Defaults to 'gifts_import' Returntype : listref of Bio::EnsEMBL::BaseAlignFeatures Exceptions : thrown if uniprot_acc is not defined Caller : general Status : Stable =cut sub fetch_all_by_uniprot_acc { my ( $self, $uniprot_acc, $logic_name ) = @_; $logic_name = defined $logic_name ? $logic_name : "gifts_import"; return $self->fetch_all_by_hit_name($uniprot_acc, $logic_name); } #inherited methods from BaseAlignFeatureAdaptor sub fetch_all_by_Slice_and_hcoverage { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_all_by_Slice_and_external_db { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_all_by_Slice_and_pid { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_all_by_Slice { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_Iterator_by_Slice_method { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_Iterator_by_Slice { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_all_by_Slice_and_score { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_all_by_Slice_constraint { my ( $self ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub fetch_all_by_stable_id_list { my ( $self, $id_list_ref, $slice ) = @_; $self->throw( "ProteinFeatures can't be fetched by slice as". " they are not on EnsEMBL coord system. Try fetch_all_by_translation_id instead" ); } sub count_by_Slice_constraint { my ( $self ) = @_; $self->throw( "ProteinFeatures cant be count by slice as". " they are not on EnsEMBL coord system." ); } sub remove_by_Slice { my ( $self ) = @_; $self->throw( "ProteinFeatures cant be removed by slice as". " they are not on EnsEMBL coord system." ); } sub get_seq_region_id_internal{ my ( $self ) = @_; $self->throw( "No seq_region_id as ProteinFeatures are not on EnsEMBL coord system." ); } sub get_seq_region_id_external{ my ( $self ) = @_; $self->throw( "No seq_region_id as ProteinFeatures are not on EnsEMBL coord system." ); } 1;
{ "content_hash": "b755b1e81ffc89d555e90c925055b3c6", "timestamp": "", "source": "github", "line_count": 516, "max_line_length": 140, "avg_line_length": 31.786821705426355, "alnum_prop": 0.6031581514449458, "repo_name": "Ensembl/ensembl", "id": "ec2304257e521885a18180b5361e59214b5aaba8", "size": "16402", "binary": false, "copies": "1", "ref": "refs/heads/release/108", "path": "modules/Bio/EnsEMBL/DBSQL/ProteinFeatureAdaptor.pm", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "7944" }, { "name": "HTML", "bytes": "1434" }, { "name": "Perl", "bytes": "6490118" }, { "name": "Python", "bytes": "519" }, { "name": "Shell", "bytes": "14720" } ], "symlink_target": "" }
<!doctype html> <html> <head> <title>Time Scale Point Data</title> <script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script> <script src="../../../dist/Chart.js"></script> <script src="../../utils.js"></script> <style> canvas { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; } </style> </head> <body> <div style="width:75%;"> <canvas id="canvas"></canvas> </div> <br> <br> <button id="randomizeData">Randomize Data</button> <button id="addData">Add Data</button> <button id="removeData">Remove Data</button> <script> function newDate(days) { return moment().add(days, 'd').toDate(); } function newDateString(days) { return moment().add(days, 'd').format(); } var color = Chart.helpers.color; var config = { type: 'line', data: { datasets: [{ label: "Dataset with string point data", backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(), borderColor: window.chartColors.red, fill: false, data: [{ x: newDateString(0), y: randomScalingFactor() }, { x: newDateString(2), y: randomScalingFactor() }, { x: newDateString(4), y: randomScalingFactor() }, { x: newDateString(5), y: randomScalingFactor() }], }, { label: "Dataset with date object point data", backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(), borderColor: window.chartColors.blue, fill: false, data: [{ x: newDate(0), y: randomScalingFactor() }, { x: newDate(2), y: randomScalingFactor() }, { x: newDate(4), y: randomScalingFactor() }, { x: newDate(5), y: randomScalingFactor() }] }] }, options: { responsive: true, title:{ display:true, text:"Chart.js Time Point Data" }, scales: { xAxes: [{ type: "time", display: true, scaleLabel: { display: true, labelString: 'Date' } }], yAxes: [{ display: true, scaleLabel: { display: true, labelString: 'value' } }] } } }; window.onload = function() { var ctx = document.getElementById("canvas").getContext("2d"); window.myLine = new Chart(ctx, config); }; document.getElementById('randomizeData').addEventListener('click', function() { config.data.datasets.forEach(function(dataset) { dataset.data.forEach(function(dataObj) { dataObj.y = randomScalingFactor(); }); }); window.myLine.update(); }); document.getElementById('addData').addEventListener('click', function() { if (config.data.datasets.length > 0) { var numTicks = myLine.scales['x-axis-0'].ticksAsTimestamps.length; var lastTime = numTicks ? moment(myLine.scales['x-axis-0'].ticksAsTimestamps[numTicks - 1]) : moment(); var newTime = lastTime .clone() .add(1, 'day') .format('MM/DD/YYYY HH:mm'); for (var index = 0; index < config.data.datasets.length; ++index) { config.data.datasets[index].data.push({ x: newTime, y: randomScalingFactor() }); } window.myLine.update(); } }); document.getElementById('removeData').addEventListener('click', function() { config.data.datasets.forEach(function(dataset, datasetIndex) { dataset.data.pop(); }); window.myLine.update(); }); </script> </body> </html>
{ "content_hash": "c56b714cad4bd551b76fcb098d447d09", "timestamp": "", "source": "github", "line_count": 150, "max_line_length": 107, "avg_line_length": 23.666666666666668, "alnum_prop": 0.5811267605633803, "repo_name": "2Ring/Chart.js", "id": "1eeefa3ada04228b168b84a6fb5947ff6b30308f", "size": "3550", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "samples/scales/time/line-point-data.html", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "729090" }, { "name": "Shell", "bytes": "952" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using aa = Android.App; using ac = Android.Content; using ao = Android.OS; using ar = Android.Runtime; using av = Android.Views; using aw = Android.Widget; using ag = Android.Graphics; using at = Android.Text; using Eto.Drawing; using Eto.Forms; namespace Eto.Android.Forms.Controls { public class TextBoxHandler : AndroidControl<aw.EditText, TextBox, TextBox.ICallback>, TextBox.IHandler { public override av.View ContainerControl { get { return Control; } } public TextBoxHandler() { Control = new aw.EditText(aa.Application.Context); } public void SelectAll() { Control.SelectAll(); } // TODO public bool ReadOnly { get { return Control.Enabled; } set { Control.Enabled = value; } } public override void AttachEvent(string id) { switch (id) { case TextControl.TextChangedEvent: Control.TextChanged += (sender, e) => Callback.OnTextChanged(Widget, EventArgs.Empty); break; default: base.AttachEvent(id); break; } } int maxLength = int.MaxValue; public int MaxLength { get { return maxLength; } set { maxLength = value; Control.SetFilters(new [] { new at.InputFilterLengthFilter(maxLength) }); } } public string PlaceholderText { get { return Control.Hint; } set { Control.Hint = value; } } public string Text { get { return Control.Text; } set { Control.Text = value; } } public Eto.Drawing.Font Font { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } public Color TextColor { get { return Control.TextColors.ToEto(); } set { Control.SetTextColor(value.ToAndroid()); } } public int CaretIndex { get { return Control.SelectionStart; } set { Control.SetSelection(value); } } public Range<int> Selection { get { return new Range<int>(Control.SelectionStart, Control.SelectionEnd - 1); } set { Control.SetSelection(value.Start, value.End); } } } }
{ "content_hash": "77a9052053cb3ce5c7e94512eb6f884e", "timestamp": "", "source": "github", "line_count": 107, "max_line_length": 104, "avg_line_length": 19.57943925233645, "alnum_prop": 0.6653937947494033, "repo_name": "PowerOfCode/Eto", "id": "0d97cccb49565194dba5937b42fc9f6d3d343012", "size": "2095", "binary": false, "copies": "3", "ref": "refs/heads/develop", "path": "Source/Eto.Android/Forms/Controls/TextBoxHandler.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Batchfile", "bytes": "855" }, { "name": "C#", "bytes": "4960306" }, { "name": "F#", "bytes": "6019" }, { "name": "Pascal", "bytes": "1968" }, { "name": "Python", "bytes": "475" }, { "name": "Shell", "bytes": "1511" }, { "name": "Visual Basic", "bytes": "7104" } ], "symlink_target": "" }
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4077433.svg)](https://doi.org/10.5281/zenodo.4077433) [![PyPI version](https://badge.fury.io/py/wordseg.svg)](https://pypi.org/project/wordseg) [![Supported Python versions](https://img.shields.io/pypi/pyversions/wordseg.svg)](https://pypi.org/project/wordseg) [![CircleCI](https://circleci.com/gh/jacksonllee/wordseg/tree/main.svg?style=shield)](https://circleci.com/gh/jacksonllee/wordseg/tree/main) `wordseg` is a Python package of word segmentation models. Table of contents: * [Installation](https://github.com/jacksonllee/wordseg#installation) * [Usage](https://github.com/jacksonllee/wordseg#usage) * [License](https://github.com/jacksonllee/wordseg#license) * [Changelog](https://github.com/jacksonllee/wordseg#changelog) * [Contributing](https://github.com/jacksonllee/wordseg/blob/main/CONTRIBUTING.md) * [Citation](https://github.com/jacksonllee/wordseg#citation) ## Installation `wordseg` is available through pip: ```bash pip install wordseg ``` To install `wordseg` from the GitHub source: ```bash git clone https://github.com/jacksonllee/wordseg.git cd wordseg pip install -r dev-requirements.txt # For running the linter and tests pip install -e . ``` ## Usage `wordseg` implements a word segmentation model as a Python class. An instantiated model class object has the following methods (emulating the scikit-learn-styled API for machine learning): * `fit`: Train the model with segmented sentences. * `predict`: Predict the segmented sentences from unsegmented sentences. The implemented model classes are as follows: * `RandomSegmenter`: Segmentation is predicted at random at each potential word boundary independently for some given probability. No training is required. * `LongestStringMatching`: This model constructs predicted words by moving from left to right along an unsegmented sentence and finding the longest matching words, constrained by a maximum word length parameter. Sample code snippet: ```python from src.wordseg import LongestStringMatching # Initialize a model. model = LongestStringMatching(max_word_length=4) # Train the model. # `fit` takes an iterable of segmented sentences (a tuple or list of strings). model.fit( [ ("this", "is", "a", "sentence"), ("that", "is", "not", "a", "sentence"), ] ) # Make some predictions; `predict` gives a generator, which is materialized by list() here. list(model.predict(["thatisadog", "thisisnotacat"])) # [['that', 'is', 'a', 'd', 'o', 'g'], ['this', 'is', 'not', 'a', 'c', 'a', 't']] # We can't get 'dog' and 'cat' because they aren't in the training data. ``` ## License MIT License. Please see [`LICENSE.txt`](https://github.com/jacksonllee/wordseg/blob/main/LICENSE.txt). ## Changelog Please see [`CHANGELOG.md`](https://github.com/jacksonllee/wordseg/blob/main/CHANGELOG.md). ## Contributing Please see [`CONTRIBUTING.md`](https://github.com/jacksonllee/wordseg/blob/main/CONTRIBUTING.md). ## Citation Lee, Jackson L. 2022. wordseg: Word segmentation models in Python. https://doi.org/10.5281/zenodo.4077433 ```bibtex @software{leengrams, author = {Jackson L. Lee}, title = {wordseg: Word segmentation models in Python}, year = 2022, doi = {10.5281/zenodo.4077433}, url = {https://doi.org/10.5281/zenodo.4077433} } ```
{ "content_hash": "c4a0588f085d730f779e0f34595a2570", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 140, "avg_line_length": 33.58, "alnum_prop": 0.7257296009529481, "repo_name": "jacksonllee/wordseg", "id": "249d4ab50414ebe75a2374ae475c8ea1efa4b85e", "size": "3369", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "6030" } ], "symlink_target": "" }
<?php namespace Magento\Customer\Model\Address\Config; class XsdTest extends \PHPUnit_Framework_TestCase { /** * @var string */ protected $_schemaFile; protected function setUp() { $this->_schemaFile = BP . '/app/code/Magento/Customer/etc/address_formats.xsd'; } /** * @param string $fixtureXml * @param array $expectedErrors * @dataProvider exemplarXmlDataProvider */ public function testExemplarXml($fixtureXml, array $expectedErrors) { $dom = new \Magento\Framework\Config\Dom($fixtureXml, [], null, null, '%message%'); $actualResult = $dom->validate($this->_schemaFile, $actualErrors); $this->assertEquals(empty($expectedErrors), $actualResult); $this->assertEquals($expectedErrors, $actualErrors); } public function exemplarXmlDataProvider() { return [ 'valid' => ['<config><format code="code" title="title" /></config>', []], 'valid with optional attributes' => [ '<config><format code="code" title="title" renderer="Some_Renderer" escapeHtml="false" /></config>', [], ], 'empty root node' => [ '<config/>', ["Element 'config': Missing child element(s). Expected is ( format )."], ], 'irrelevant root node' => [ '<attribute name="attr"/>', ["Element 'attribute': No matching global declaration available for the validation root."], ], 'irrelevant node' => [ '<config><format code="code" title="title" /><invalid /></config>', ["Element 'invalid': This element is not expected. Expected is ( format )."], ], 'non empty node "format"' => [ '<config><format code="code" title="title"><invalid /></format></config>', ["Element 'format': Element content is not allowed, because the content type is empty."], ], 'node "format" without attribute "code"' => [ '<config><format title="title" /></config>', ["Element 'format': The attribute 'code' is required but missing."], ], 'node "format" without attribute "title"' => [ '<config><format code="code" /></config>', ["Element 'format': The attribute 'title' is required but missing."], ], 'node "format" with invalid attribute' => [ '<config><format code="code" title="title" invalid="invalid" /></config>', ["Element 'format', attribute 'invalid': The attribute 'invalid' is not allowed."], ], 'attribute "escapeHtml" with invalid type' => [ '<config><format code="code" title="title" escapeHtml="invalid" /></config>', [ "Element 'format', attribute 'escapeHtml': 'invalid' is not a valid value of the atomic type" . " 'xs:boolean'." ], ] ]; } }
{ "content_hash": "216d83151eb656aa6e1b1567875c5718", "timestamp": "", "source": "github", "line_count": 75, "max_line_length": 116, "avg_line_length": 41.44, "alnum_prop": 0.5308880308880309, "repo_name": "webadvancedservicescom/magento", "id": "20a1946acb96407757bcb7459a38e6c22194dbb7", "size": "3298", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "dev/tests/unit/testsuite/Magento/Customer/Model/Address/Config/XsdTest.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "16380" }, { "name": "CSS", "bytes": "2592299" }, { "name": "HTML", "bytes": "9192193" }, { "name": "JavaScript", "bytes": "2874762" }, { "name": "PHP", "bytes": "41399372" }, { "name": "Shell", "bytes": "3084" }, { "name": "VCL", "bytes": "3547" }, { "name": "XSLT", "bytes": "19817" } ], "symlink_target": "" }
.class public Lgov/nist/javax/sip/header/ims/PProfileKey; .super Lgov/nist/javax/sip/header/AddressParametersHeader; .source "PProfileKey.java" # interfaces .implements Lgov/nist/javax/sip/header/ims/PProfileKeyHeader; .implements Lgov/nist/javax/sip/header/ims/SIPHeaderNamesIms; .implements Ljavax/sip/header/ExtensionHeader; # direct methods .method public constructor <init>()V .locals 1 .prologue .line 42 const-string v0, "P-Profile-Key" invoke-direct {p0, v0}, Lgov/nist/javax/sip/header/AddressParametersHeader;-><init>(Ljava/lang/String;)V .line 44 return-void .end method .method public constructor <init>(Lgov/nist/javax/sip/address/AddressImpl;)V .locals 1 .param p1, "address" # Lgov/nist/javax/sip/address/AddressImpl; .prologue .line 48 const-string v0, "P-Profile-Key" invoke-direct {p0, v0}, Lgov/nist/javax/sip/header/AddressParametersHeader;-><init>(Ljava/lang/String;)V .line 49 iput-object p1, p0, Lgov/nist/javax/sip/header/ims/PProfileKey;->address:Lgov/nist/javax/sip/address/AddressImpl; .line 50 return-void .end method # virtual methods .method public clone()Ljava/lang/Object; .locals 1 .prologue .line 83 invoke-super {p0}, Lgov/nist/javax/sip/header/AddressParametersHeader;->clone()Ljava/lang/Object; move-result-object v0 check-cast v0, Lgov/nist/javax/sip/header/ims/PProfileKey; .line 84 .local v0, "retval":Lgov/nist/javax/sip/header/ims/PProfileKey; return-object v0 .end method .method protected encodeBody()Ljava/lang/String; .locals 3 .prologue const/4 v2, 0x2 .line 55 new-instance v0, Ljava/lang/StringBuffer; invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V .line 57 .local v0, "retval":Ljava/lang/StringBuffer; iget-object v1, p0, Lgov/nist/javax/sip/header/ims/PProfileKey;->address:Lgov/nist/javax/sip/address/AddressImpl; invoke-virtual {v1}, Lgov/nist/javax/sip/address/AddressImpl;->getAddressType()I move-result v1 if-ne v1, v2, :cond_0 .line 58 const-string v1, "<" invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; .line 60 :cond_0 iget-object v1, p0, Lgov/nist/javax/sip/header/ims/PProfileKey;->address:Lgov/nist/javax/sip/address/AddressImpl; invoke-virtual {v1}, Lgov/nist/javax/sip/address/AddressImpl;->encode()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; .line 61 iget-object v1, p0, Lgov/nist/javax/sip/header/ims/PProfileKey;->address:Lgov/nist/javax/sip/address/AddressImpl; invoke-virtual {v1}, Lgov/nist/javax/sip/address/AddressImpl;->getAddressType()I move-result v1 if-ne v1, v2, :cond_1 .line 62 const-string v1, ">" invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; .line 64 :cond_1 iget-object v1, p0, Lgov/nist/javax/sip/header/ims/PProfileKey;->parameters:Lgov/nist/core/NameValueList; invoke-virtual {v1}, Lgov/nist/core/NameValueList;->isEmpty()Z move-result v1 if-nez v1, :cond_2 .line 65 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V const-string v2, ";" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Lgov/nist/javax/sip/header/ims/PProfileKey;->parameters:Lgov/nist/core/NameValueList; invoke-virtual {v2}, Lgov/nist/core/NameValueList;->encode()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; .line 67 :cond_2 invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String; move-result-object v1 return-object v1 .end method .method public equals(Ljava/lang/Object;)Z .locals 1 .param p1, "other" # Ljava/lang/Object; .prologue .line 77 instance-of v0, p1, Lgov/nist/javax/sip/header/ims/PProfileKey; if-eqz v0, :cond_0 invoke-super {p0, p1}, Lgov/nist/javax/sip/header/AddressParametersHeader;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x1 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public setValue(Ljava/lang/String;)V .locals 2 .param p1, "value" # Ljava/lang/String; .annotation system Ldalvik/annotation/Throws; value = { Ljava/text/ParseException; } .end annotation .prologue .line 71 new-instance v0, Ljava/text/ParseException; const/4 v1, 0x0 invoke-direct {v0, p1, v1}, Ljava/text/ParseException;-><init>(Ljava/lang/String;I)V throw v0 .end method
{ "content_hash": "9b1bbdb1b4777b80913f30fbd14283d6", "timestamp": "", "source": "github", "line_count": 201, "max_line_length": 117, "avg_line_length": 25.98507462686567, "alnum_prop": 0.6936626459888953, "repo_name": "GaHoKwan/tos_device_meizu_mx4", "id": "f7991faa6c8aaa2e0d03e0f585230da53a8dfc4a", "size": "5223", "binary": false, "copies": "2", "ref": "refs/heads/TPS-YUNOS", "path": "patch/smali/pack/ext.jar/smali/gov/nist/javax/sip/header/ims/PProfileKey.smali", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "2407" }, { "name": "Groff", "bytes": "8687" }, { "name": "Makefile", "bytes": "31774" }, { "name": "Shell", "bytes": "6226" }, { "name": "Smali", "bytes": "350951922" } ], "symlink_target": "" }
{{-- Echo Data --}} Hello, {{ $name }}. The current UNIX timestamp is {{ time() }}. {{-- Echoing Data After Checking For Existence --}} {{ isset($name) ? $name : 'Default' }} {{ $name or 'Default' }} {{-- Displaying Raw Text With Curly Braces --}} @{{ This will not be processed by Blade }} {{-- Do not escape data --}} Hello, {!! $name !!}. {{-- Escape Data --}} Hello, {{{ $name }}}. <?php echo $name; ?> <?= $name; ?> <?php foreach (range(1, 10) as $number) { echo $number; } ?> @include('header') {{-- Service injection --}} @inject('metrics', 'App\Services\MetricsService') {{-- PHP open/close tags --}} <div class="container"> @php foreach (range(1, 10) as $number) { echo $number; } @endphp </div> {{-- Inline PHP --}} <div class="container"> @php(custom_function()) </div> @include('footer') {{-- Define Blade Layout --}} <html> <head> <title> @hasSection('title') @yield('title') - App Name @else App Name @endif </title> </head> <body> @section('sidebar') This is the master sidebar. @stop <div class="container"> @yield('content') </div> </body> </html> {{-- Use Blade Layout --}} @extends('layouts.master') @section('sidebar') <p>This is appended to the master sidebar.</p> @stop @section('content') <p>This is my body content.</p> @stop {{-- yield section --}} @yield('section', 'Default Content') {{-- If Statement --}} @if (count($records) === 1) I have one record! @elseif (count($records) > 1) I have multiple records! @else I don't have any records! @endif <ul class="list @if (count($records) === 1) extra-class @endif"> <li>This is the first item</li> <li>This is the second item</li> </ul> @isset($name) Hello, {{ $name }}. @endisset @unless (Auth::check()) You are not signed in. @endunless {{-- Loops --}} @for ($i = 0; $i < 10; $i++) The current value is {{ $i }} @endfor @foreach ($users as $user) <p>This is user {{ $user->id }}</p> @endforeach @forelse($users as $user) <li>{{ $user->name }}</li> @empty <p>No users</p> @endforelse @while (true) <p>I'm looping forever.</p> @endwhile {{-- Include --}} @include('view.name') @include('view.name', ['some' => 'data']) @includeIf('view.name', ['some' => 'data']) {{-- Overwriting Sections --}} @extends('list.item.container') @section('list.item.content') <p>This is an item of type {{ $item->type }}</p> @overwrite {{-- Displaying Language Lines --}} @lang('language.line') @choice('language.line', 1) {{-- This comment will not be in the rendered HTML --}} {{-- This comment will not be in the rendered HTML This comment will not be in the rendered HTML This comment will not be in the rendered HTML --}} {{-- Blade Extensions Compatibility --}} {{-- https://github.com/RobinRadic/blade-extensions --}} @foreach($stuff as $key => $val) {{ $loop->index }} {{-- int, zero based --}} {{ $loop->index1 }} {{-- int, starts at 1 --}} {{ $loop->revindex }} {{-- int --}} {{ $loop->revindex1 }} {{-- int --}} {{ $loop->first }} {{-- bool --}} {{ $loop->last }} {{-- bool --}} {{ $loop->even }} {{-- bool --}} {{ $loop->odd }} {{-- bool --}} {{ $loop->length }} {{-- int --}} @foreach($other as $name => $age) {{ $loop->parent->odd }} @foreach($friends as $foo => $bar) {{ $loop->parent->index }} {{ $loop->parent->parentLoop->index }} @endforeach @endforeach @section('content') @partial('partials.danger-panel') @block('title', 'This is the panel title') @block('body') This is the panel body. @endblock @endpartial @stop @partial('partials.panel') @block('type', 'danger') @block('title') Danger! @render('title') @endblock @endpartial {{-- with arguments --}} @continue($user->type == 1) @break($user->number == 5) {{-- without arguments --}} @break @continue @endforeach {{ $newvar }} @set('newvar', 'value') @set($now, new DateTime('now')) @set('myArr', ['my' => 'arr']) @set('myArr2', array('my' => 'arr')) @unset('newvar') @unset($newvar) @debug($somearr) // xdebug_break breakpoints (configurable) to debug compiled views. Sweet? YES! @breakpoint @markdown # Some markdown code ** with some bold text too ** @endmarkdown @section('content') @embed('components.panel', ['type' => 'danger', 'items' => ['first', 'second', 'third'] ]) @section('content') <p>Hello World!</p> @stop @endembed @stop @macrodef('divider', $class = 'divider', $role = 'seperator') <?php return "<li role='{$role}' class='{$class}'></li>"; ?> @endmacro <div class="container"> <h1>Title</h1> @macro("divider") <p>Paragraph</p> </div> @embed('blade-ext::dropdown', ['button' => true ]) @section('label', 'Choose') @section('items') @macro('item', 'Action') @macro('item', 'Another Action') @macro('item', 'Something else here') @macro('item', 'Separated link') @stop @endembed <script> @minify('js') var exampleJavascript = { this: 'that', foo: 'bar', doit: function(){ console.log('yesss'); } }; @endminify </script> <style type="text/css"> @minify('css') a.bg-primary:hover, a.bg-primary:focus { background-color: #286090; } .bg-success { background-color: #dff0d8; } a.bg-success:hover, a.bg-success:focus { background-color: #c1e2b3; } @endminify </style> {{-- Authorization (ACL) --}} @can('permission', $entity) You have permission! @endcan @can('permission', $entity) You have permission! @else You don't have permission! @endcan @cannot ('update', [ 'post' => $post ]) breeze @endcannot @can ('show-post', $post) Can Show @elsecan ('write-post', $post) Can write @elsecannot ('delete-post', $post) Not Allowed @else Not Allowed @endcan {{-- Stacks --}} @push('scripts') <script src="/example.js"></script> @endpush <head> @stack('scripts') </head> {{-- Custom Control Structures --}} @custom @foo('bar', 'baz') @datetime($var) --- {{-- Envoyer directives --}} @setup $now = new DateTime(); $environment = isset($env) ? $env : "testing"; @endsetup @servers(['web' => 'user@192.168.1.1']) @task('foo') cd site git pull origin {{ $branch }} php artisan migrate @endtask @after @hipchat('token', 'room', 'Envoy') @slack('hook', 'channel', 'message') @endafter @story('deploy') git composer install @endstory @component('layouts.app') @slot('title') Home Page @endslot <div class="col-6"> @component('inc.alert') This is the alert message here. @endcomponent <h1>Welcome</h1> </div> <div class="col-6"> @component('inc.sidebar') This is my sidebar text. @endcomponent </div> @includeWhen(Auth::user(), 'nav.user') @endcomponent @verbatim <div class="container"> Hello, {{ $name }}. </div> @endverbatim @switch($char) @case('A') <p>A</p> @break @case('B') <p>B</p> @break @default <p>Default</p> @endswitch {{-- Complex conditional --}} @if(($x == true) && ($y == false)) <a>foo</a> @endif {{-- Single line if statement --}} @if($foo === true) <p>Text</p> @endif {{-- Quoted blade directive matching --}} <p class="first-class @if($x==true) second-class @endif">Text</p> {{-- Complex conditional inline --}} <p class="first-class @if(($x == true) && ($y == "yes")) second-class @endif">Text</p>
{ "content_hash": "19243ce69fa794cff295a70bec3bc4c9", "timestamp": "", "source": "github", "line_count": 407, "max_line_length": 94, "avg_line_length": 19.547911547911546, "alnum_prop": 0.5427350427350427, "repo_name": "gencer/laravel-blade", "id": "c5aae581fc1dd388b24a6da15639b4f42deb0c70", "size": "7956", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test.blade.php", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
using OpenTK; using OpenTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Game.Rulesets.Mania.Objects.Drawables; using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.Mania.UI { internal class HitExplosion : CompositeDrawable { private readonly Box inner; public HitExplosion(DrawableHitObject judgedObject) { bool isTick = judgedObject is DrawableHoldNoteTick; Anchor = Anchor.TopCentre; Origin = Anchor.Centre; RelativeSizeAxes = Axes.Both; Size = new Vector2(isTick ? 0.5f : 1); FillMode = FillMode.Fit; Blending = BlendingMode.Additive; Color4 accent = isTick ? Color4.White : judgedObject.AccentColour; InternalChild = new CircularContainer { RelativeSizeAxes = Axes.Both, Masking = true, BorderThickness = 1, BorderColour = accent, EdgeEffect = new EdgeEffectParameters { Type = EdgeEffectType.Glow, Colour = accent, Radius = 10, Hollow = true }, Child = inner = new Box { RelativeSizeAxes = Axes.Both, Colour = accent, Alpha = 1, AlwaysPresent = true, } }; } protected override void LoadComplete() { base.LoadComplete(); this.ScaleTo(2f, 600, Easing.OutQuint).FadeOut(500); inner.FadeOut(250); Expire(true); } } }
{ "content_hash": "b30ca75ea39813d160e88edc94d09df4", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 78, "avg_line_length": 28.523809523809526, "alnum_prop": 0.5275459098497496, "repo_name": "Nabile-Rahmani/osu", "id": "f01dfc0db1bb8e50cd7848af90b406f5f0cb9cc2", "size": "1948", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "osu.Game.Rulesets.Mania/UI/HitExplosion.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "3142587" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jmlcoq: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.1+2 / jmlcoq - 8.13.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> jmlcoq <small> 8.13.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-11-10 10:01:44 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-10 10:01:44 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.1+2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.5 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;palmskog@gmail.com&quot; homepage: &quot;https://github.com/coq-community/jmlcoq&quot; dev-repo: &quot;git+https://github.com/coq-community/jmlcoq.git&quot; bug-reports: &quot;https://github.com/coq-community/jmlcoq/issues&quot; license: &quot;MIT&quot; synopsis: &quot;Coq definition of the JML specification language and a verified runtime assertion checker for JML&quot; description: &quot;&quot;&quot; A Coq formalization of the syntax and semantics of the Java-targeted JML specification language, along with a verified runtime assertion checker for JML.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.15~&quot;} ] tags: [ &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms&quot; &quot;keyword:JML&quot; &quot;keyword:Java Modeling Language&quot; &quot;keyword:runtime verification&quot; &quot;logpath:JML&quot; &quot;date:2021-08-01&quot; ] authors: [ &quot;Hermann Lehner&quot; &quot;David Pichardie&quot; &quot;Andreas Kägi&quot; ] url { src: &quot;https://github.com/coq-community/jmlcoq/archive/v8.13.0.tar.gz&quot; checksum: &quot;sha512=3d2742d4c8e7f643a35f636aa14292c43b7a91e3d18bcf998c62ee6ee42e9969b59ae803c513d114224725099cb369e62cef8575c3efb0cf26886d8bb8638cca&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-jmlcoq.8.13.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2). The following dependencies couldn&#39;t be met: - coq-jmlcoq -&gt; coq &gt;= 8.10 -&gt; ocaml &gt;= 4.09.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-jmlcoq.8.13.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "068b6b81d0852ee6cbd58ab1431d871b", "timestamp": "", "source": "github", "line_count": 175, "max_line_length": 159, "avg_line_length": 41.06285714285714, "alnum_prop": 0.5548288338435847, "repo_name": "coq-bench/coq-bench.github.io", "id": "39e6a0bdfff2f72f22499b220cbc61b73c51bfb6", "size": "7212", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.1+2/jmlcoq/8.13.0.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
package com.infinitemule.hopperhack.finagle import com.twitter.finagle.Service import com.twitter.finagle.builder.ClientBuilder import com.twitter.finagle.http.Http import com.twitter.util.Duration import java.net.InetSocketAddress import java.util.concurrent.TimeUnit._ import org.jboss.netty.buffer.ChannelBuffers import org.jboss.netty.handler.codec.http.{HttpRequest, HttpResponse, DefaultHttpRequest, HttpVersion, HttpMethod} /** * A simple wrapper around the client builder so that you can easily * create a simple HTTP service (i.e. FinagleHttpClientService("api.twitter.com")) * This is all I needed for the hackathon, if you wanted more options, you would * need to expose the options that you wanted through method arguments or * a builder class. */ object FinagleHttpClientService { def apply(host: String): Service[HttpRequest, HttpResponse] = { this(host, 80) } def apply(host: String, port: Int): Service[HttpRequest, HttpResponse] = { // I'm not sure if the connection limit and timeout are the most // optimal, see the Finagle documentation for more information. ClientBuilder() .codec(Http()) .hosts(new InetSocketAddress(host, port)) .hostConnectionLimit(1) .tcpConnectTimeout(Duration(5, SECONDS)) .build() } } /** * Same as above just for HTTPS. The default port is different and you * need to specify the host in the tls() method. */ object FinagleHttpsClientService { def apply(host: String): Service[HttpRequest, HttpResponse] = { ClientBuilder() .codec(Http()) .hosts(new InetSocketAddress(host, 443)) .tls(host) .hostConnectionLimit(1) .tcpConnectTimeout(Duration(5, SECONDS)) .build() } } /** * */ object FinagleHttpRequest { def apply(host: String, path: String): FinagleHttpRequestBuilder = { new FinagleHttpRequestBuilder(host, path) } } /** * Builder that simplifies building Finagle HttpRequests. See * the Twitter and Finagle bolts for examples. */ class FinagleHttpRequestBuilder(var host: String, var path: String) { var userAgent: String = "Finagle 6.5.1" var authorization: String = "" var content = "" var contentType = "" def get(): DefaultHttpRequest = { createRequest(HttpMethod.GET) } def post(): DefaultHttpRequest = { createRequest(HttpMethod.POST) } def auth(auth: String): FinagleHttpRequestBuilder = { authorization = auth this } def userAgent(ua: String): FinagleHttpRequestBuilder = { userAgent = ua this } def content(c: String): FinagleHttpRequestBuilder = { content = c this } def contentType(ct: String): FinagleHttpRequestBuilder = { contentType = ct this } /** * */ private def createRequest(method: HttpMethod): DefaultHttpRequest = { val req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, method, path) req.setHeader("Host", host) req.setHeader("User-Agent", userAgent) if(authorization.nonEmpty) { req.setHeader("Authorization", authorization) } if(contentType.nonEmpty) { req.setHeader("Content-Type", contentType) } if(content.nonEmpty) { req.setContent(ChannelBuffers.copiedBuffer(content, "UTF-8")) req.setHeader("Content-Length", content.length.toString) } req } }
{ "content_hash": "9b6ae35205341996070d8e79692ee315", "timestamp": "", "source": "github", "line_count": 149, "max_line_length": 84, "avg_line_length": 24.248322147651006, "alnum_prop": 0.6440631054525325, "repo_name": "infinitemule/poursquare-storm", "id": "f2ad0340eec418108b0a3b23dc1deaf07752fc37", "size": "3613", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/scala/com/infinitemule/hopperhack/finagle/FinagleBuilder.scala", "mode": "33188", "license": "mit", "language": [ { "name": "Scala", "bytes": "38239" } ], "symlink_target": "" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>V8 API Reference Guide for node.js v0.1.7: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">V8 API Reference Guide for node.js v0.1.7 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_string.html">String</a></li><li class="navelem"><a class="el" href="classv8_1_1_string_1_1_utf8_value.html">Utf8Value</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">v8::String::Utf8Value Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a>, including all inherited members.</p> <table class="directory"> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>length</b>() (defined in <a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator*</b>() const (defined in <a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Utf8Value</b>(Handle&lt; v8::Value &gt; obj) (defined in <a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a></td><td class="entry"><span class="mlabel">explicit</span></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>~Utf8Value</b>() (defined in <a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_string_1_1_utf8_value.html">v8::String::Utf8Value</a></td><td class="entry"></td></tr> </table></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Aug 11 2015 23:44:36 for V8 API Reference Guide for node.js v0.1.7 by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
{ "content_hash": "37d886b2caf9ded3ff7dc34d928f95ad", "timestamp": "", "source": "github", "line_count": 110, "max_line_length": 378, "avg_line_length": 53.92727272727273, "alnum_prop": 0.6500337154416723, "repo_name": "v8-dox/v8-dox.github.io", "id": "acd6fb1c7226fca564bb5da11f355261bd4edfbc", "size": "5932", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "b5b65dd/html/classv8_1_1_string_1_1_utf8_value-members.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
'use strict'; module.exports = 'b1';
{ "content_hash": "587713ab4e140678674601d9d5d22370", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 22, "avg_line_length": 18.5, "alnum_prop": 0.6486486486486487, "repo_name": "BostonGlobe/slush-globegraphic", "id": "b10cb450954faedb49397ed7a60907faa4eb9e40", "size": "37", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "template/node_modules/gulp-hb/node_modules/require-glob/test/fixtures/deep/b/b1.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5169" }, { "name": "HTML", "bytes": "6140" }, { "name": "JavaScript", "bytes": "11559" } ], "symlink_target": "" }
import os import subprocess from unittest import TestCase import requests class Test404Server(TestCase): PORT = 8000 def setUp(self): # Start the server, be sure to include the proper Python files on the # path. env = os.environ.copy() env["PYTHONPATH"] = os.getcwd() self.proc = subprocess.Popen(['python', '-u', '-m', 'SimpleHTTP404Server'], stdout=subprocess.PIPE, cwd=os.path.join(os.getcwd(), 'tests'), env=env) # Wait for the process to start listening... while True: line = self.proc.stdout.readline() if line: break def tearDown(self): # Stop the server. self.proc.kill() def test_real_file(self): r = requests.get('http://localhost:%d/test.html' % self.PORT) self.assertEqual(r.text, "Test page!\n") def test_404_direct(self): r = requests.get('http://localhost:%d/404.html' % self.PORT) self.assertEqual(r.text, "404, yay!\n") def test_unknown_file(self): r = requests.get('http://localhost:%d/does-not-exist.html' % self.PORT) self.assertEqual(r.text, "404, yay!\n")
{ "content_hash": "adac0b2fb6ef1a9b9238e062ff733582", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 83, "avg_line_length": 32.025, "alnum_prop": 0.5487900078064013, "repo_name": "clokep/SimpleHTTP404Server", "id": "762457252aec98b190c2372554f74d8c68c680d1", "size": "1281", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/test_server.py", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "21" }, { "name": "Python", "bytes": "3354" } ], "symlink_target": "" }
/** * Interceptor for JSON resources */ package com.indoqa.boot.json.interceptor;
{ "content_hash": "cb45da4266b66dc2602da4abe448d984", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 41, "avg_line_length": 14.333333333333334, "alnum_prop": 0.7209302325581395, "repo_name": "Indoqa/indoqa-boot", "id": "55373abcb8b0826578e9c8e9f672bfdcfe1d1199", "size": "903", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/indoqa/boot/json/interceptor/package-info.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "301160" }, { "name": "Shell", "bytes": "3396" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/ADF.iml" filepath="$PROJECT_DIR$/ADF.iml" /> <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" /> </modules> </component> </project>
{ "content_hash": "f2c3b2fc0cf2f10b6cca9d44dbfb5e6a", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 96, "avg_line_length": 38.111111111111114, "alnum_prop": 0.6472303206997084, "repo_name": "tallenintegsys/ADF", "id": "1c8f1a9b5f666ca2d24388ad460c9b462d34bdec", "size": "343", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": ".idea/modules.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "10307" } ], "symlink_target": "" }
//----------------------------------*-C++-*----------------------------------// //---------------------------------------------------------------------------// #ifndef MC_mc_Solver_hh #define MC_mc_Solver_hh #include <memory> #include "Tallier.hh" #include "Physics.hh" namespace profugus { //===========================================================================// /*! * \class Solver * \brief Base class for Monte Carlo top-level solvers. */ //===========================================================================// template <class Geometry> class Solver { public: //@{ //! Typedefs. typedef Geometry Geometry_t; typedef Physics<Geometry_t> Physics_t; typedef Tallier<Geometry_t> Tallier_t; typedef std::shared_ptr<Tallier_t> SP_Tallier; //@} protected: // >>> DATA // Tally contoller. SP_Tallier b_tallier; public: // Virtual destructor for polymorphism. virtual ~Solver() = 0; //! Solve the problem. virtual void solve() = 0; //! Call to reset the solver and tallies for another calculation. virtual void reset() = 0; //! Get tallies. SP_Tallier tallier() const { return b_tallier; } }; } // end namespace profugus #endif // MC_mc_Solver_hh //---------------------------------------------------------------------------// // end of Solver.hh //---------------------------------------------------------------------------//
{ "content_hash": "84bfb4df100b4c51b5a03e78ad7cdac2", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 79, "avg_line_length": 24.278688524590162, "alnum_prop": 0.41255908170155303, "repo_name": "ORNL-CEES/Profugus", "id": "783ba22b8c36df61c28091fd8ccbb044e036d0a8", "size": "1710", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "packages/MC/mc/Solver.hh", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "C", "bytes": "72175" }, { "name": "C++", "bytes": "4949401" }, { "name": "CMake", "bytes": "95533" }, { "name": "Cuda", "bytes": "48916" }, { "name": "Fortran", "bytes": "1667" }, { "name": "Python", "bytes": "11371" }, { "name": "Shell", "bytes": "29128" } ], "symlink_target": "" }
| | | | -------- | ------------------------- | | title | Google Cloud DataFlow | | status | 10 | | section | High level Programming | | keywords | High level Programming | Google Cloud DataFlow is a unified programming model that manages the deployment, maintenance and optimization of data processes such as batch processing, ETL etc [@www-cloud-google1]. It creates a pipeline of tasks and dynamically allocates resources thereby maintaining high efficiency and low latency. These capabilities make it suitable for solving challenging big data problems [@www-cloud-google1]. Also, google DataFlow overcomes the performance issues faced by Hadoops Mapreduce while building pipelines\cite{www-dataconomy}. The performance of MapReduce started deteriorating while facing multiple petabytes of data whereas Google Cloud Dataflow is apparently better at handling enormous datasets [@www-cloud-google1]. Additionally Google Dataflow can be integrated with Cloud Storage, Cloud Pub/Sub, Cloud Datastore, Cloud Bigtable, and BigQuery. The unified programming ability is another noteworthy feature which uses Apache Beam SDKs to support powerful operations like windowing and allows correctness control to be applied to batch and stream data processes.
{ "content_hash": "a99d1f556ddaf9b2f7b57e8e54c19f0e", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 70, "avg_line_length": 44.63333333333333, "alnum_prop": 0.736370425690814, "repo_name": "cloudmesh/book", "id": "6c69c67c7ce0edef42873f716c5a6791342002f1", "size": "1370", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "cloud-technologies/chapters/tech/04-21-google-cloud-dataflow.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "6932" }, { "name": "Java", "bytes": "57272" }, { "name": "Jupyter Notebook", "bytes": "8570554" }, { "name": "Makefile", "bytes": "21197" }, { "name": "Python", "bytes": "41397" }, { "name": "Shell", "bytes": "5962" }, { "name": "TeX", "bytes": "5559442" } ], "symlink_target": "" }
#ifndef _FORM_GUID_H_ #define _FORM_GUID_H_ #include <Guid/BdsHii.h> #define FORM_MAIN_ID 0x1001 #define FORM_BOOT_ADD_ID 0x1002 #define FORM_BOOT_DEL_ID 0x1003 #define FORM_BOOT_CHG_ID 0x1004 #define FORM_DRV_ADD_ID 0x1005 #define FORM_DRV_DEL_ID 0x1006 #define FORM_DRV_CHG_ID 0x1007 #define FORM_CON_MAIN_ID 0x1008 #define FORM_CON_IN_ID 0x1009 #define FORM_CON_OUT_ID 0x100A #define FORM_CON_ERR_ID 0x100B #define FORM_FILE_SEEK_ID 0x100C #define FORM_FILE_NEW_SEEK_ID 0x100D #define FORM_DRV_ADD_FILE_ID 0x100E #define FORM_DRV_ADD_HANDLE_ID 0x100F #define FORM_DRV_ADD_HANDLE_DESC_ID 0x1010 #define FORM_BOOT_NEXT_ID 0x1011 #define FORM_TIME_OUT_ID 0x1012 #define FORM_RESET 0x1013 #define FORM_BOOT_SETUP_ID 0x1014 #define FORM_DRIVER_SETUP_ID 0x1015 #define FORM_BOOT_LEGACY_DEVICE_ID 0x1016 #define FORM_CON_COM_ID 0x1017 #define FORM_CON_COM_SETUP_ID 0x1018 #define FORM_SET_FD_ORDER_ID 0x1019 #define FORM_SET_HD_ORDER_ID 0x101A #define FORM_SET_CD_ORDER_ID 0x101B #define FORM_SET_NET_ORDER_ID 0x101C #define FORM_SET_BEV_ORDER_ID 0x101D #define FORM_FILE_EXPLORER_ID 0x101E #define FORM_BOOT_ADD_DESCRIPTION_ID 0x101F #define FORM_DRIVER_ADD_FILE_DESCRIPTION_ID 0x1020 #define FORM_CON_MODE_ID 0x1021 #define FORM_BOOT_FROM_FILE_ID 0x1022 #define MAXIMUM_FORM_ID 0x10FF #define KEY_VALUE_COM_SET_BAUD_RATE 0x1101 #define KEY_VALUE_COM_SET_DATA_BITS 0x1102 #define KEY_VALUE_COM_SET_STOP_BITS 0x1103 #define KEY_VALUE_COM_SET_PARITY 0x1104 #define KEY_VALUE_COM_SET_TERMI_TYPE 0x1105 #define KEY_VALUE_MAIN_BOOT_NEXT 0x1106 #define KEY_VALUE_BOOT_ADD_DESC_DATA 0x1107 #define KEY_VALUE_BOOT_ADD_OPT_DATA 0x1108 #define KEY_VALUE_DRIVER_ADD_DESC_DATA 0x1109 #define KEY_VALUE_DRIVER_ADD_OPT_DATA 0x110A #define KEY_VALUE_SAVE_AND_EXIT 0x110B #define KEY_VALUE_NO_SAVE_AND_EXIT 0x110C #define KEY_VALUE_BOOT_FROM_FILE 0x110D #define KEY_VALUE_BOOT_DESCRIPTION 0x110E #define KEY_VALUE_BOOT_OPTION 0x110F #define KEY_VALUE_DRIVER_DESCRIPTION 0x1110 #define KEY_VALUE_DRIVER_OPTION 0x1111 #define MAXIMUM_NORMAL_KEY_VALUE 0x11FF // // Varstore ID defined for Buffer Storage // #define VARSTORE_ID_BOOT_MAINT 0x1000 #define VARSTORE_ID_FILE_EXPLORER 0x1001 // // End Label // #define LABEL_END 0xffff #define MAX_MENU_NUMBER 100 /// /// This is the structure that will be used to store the /// question's current value. Use it at initialize time to /// set default value for each question. When using at run /// time, this map is returned by the callback function, /// so dynamically changing the question's value will be /// possible through this mechanism /// typedef struct { // // Three questions displayed at the main page // for Timeout, BootNext Variables respectively // UINT16 BootTimeOut; UINT16 BootNext; // // This is the COM1 Attributes value storage // UINT8 COM1BaudRate; UINT8 COM1DataRate; UINT8 COM1StopBits; UINT8 COM1Parity; UINT8 COM1TerminalType; // // This is the COM2 Attributes value storage // UINT8 COM2BaudRate; UINT8 COM2DataRate; UINT8 COM2StopBits; UINT8 COM2Parity; UINT8 COM2TerminalType; // // Driver Option Add Handle page storage // UINT16 DriverAddHandleDesc[MAX_MENU_NUMBER]; UINT16 DriverAddHandleOptionalData[MAX_MENU_NUMBER]; UINT8 DriverAddActive; UINT8 DriverAddForceReconnect; // // Console Input/Output/Errorout using COM port check storage // UINT8 ConsoleInputCOM1; UINT8 ConsoleInputCOM2; UINT8 ConsoleOutputCOM1; UINT8 ConsoleOutputCOM2; UINT8 ConsoleErrorCOM1; UINT8 ConsoleErrorCOM2; // // At most 100 input/output/errorout device for console storage // UINT8 ConsoleCheck[MAX_MENU_NUMBER]; // // At most 100 input/output/errorout device for console storage // UINT8 ConsoleInCheck[MAX_MENU_NUMBER]; UINT8 ConsoleOutCheck[MAX_MENU_NUMBER]; UINT8 ConsoleErrCheck[MAX_MENU_NUMBER]; // // Boot Option Order storage // The value is the OptionNumber+1 because the order list value cannot be 0 // Use UINT32 to hold the potential value 0xFFFF+1=0x10000 // UINT32 BootOptionOrder[MAX_MENU_NUMBER]; // // Driver Option Order storage // The value is the OptionNumber+1 because the order list value cannot be 0 // Use UINT32 to hold the potential value 0xFFFF+1=0x10000 // UINT32 DriverOptionOrder[MAX_MENU_NUMBER]; // // Boot Option Delete storage // BOOLEAN BootOptionDel[MAX_MENU_NUMBER]; BOOLEAN BootOptionDelMark[MAX_MENU_NUMBER]; // // Driver Option Delete storage // BOOLEAN DriverOptionDel[MAX_MENU_NUMBER]; BOOLEAN DriverOptionDelMark[MAX_MENU_NUMBER]; // // This is the Terminal Attributes value storage // UINT8 COMBaudRate[MAX_MENU_NUMBER]; UINT8 COMDataRate[MAX_MENU_NUMBER]; UINT8 COMStopBits[MAX_MENU_NUMBER]; UINT8 COMParity[MAX_MENU_NUMBER]; UINT8 COMTerminalType[MAX_MENU_NUMBER]; UINT8 COMFlowControl[MAX_MENU_NUMBER]; // // Legacy Device Order Selection Storage // UINT8 LegacyFD[MAX_MENU_NUMBER]; UINT8 LegacyHD[MAX_MENU_NUMBER]; UINT8 LegacyCD[MAX_MENU_NUMBER]; UINT8 LegacyNET[MAX_MENU_NUMBER]; UINT8 LegacyBEV[MAX_MENU_NUMBER]; // // We use DisableMap array to record the enable/disable state of each boot device // It should be taken as a bit array, from left to right there are totally 256 bits // the most left one stands for BBS table item 0, and the most right one stands for item 256 // If the bit is 1, it means the boot device has been disabled. // UINT8 DisableMap[32]; // // Console Output Text Mode // UINT16 ConsoleOutMode; // // UINT16 PadArea[10]; // } BMM_FAKE_NV_DATA; // // Key used by File Explorer forms // #define KEY_VALUE_SAVE_AND_EXIT_BOOT 0x1000 #define KEY_VALUE_NO_SAVE_AND_EXIT_BOOT 0x1001 #define KEY_VALUE_SAVE_AND_EXIT_DRIVER 0x1002 #define KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER 0x1003 // // Description data and optional data size // #define DESCRIPTION_DATA_SIZE 75 #define OPTIONAL_DATA_SIZE 127 /// /// This is the data structure used by File Explorer formset /// typedef struct { UINT16 BootDescriptionData[DESCRIPTION_DATA_SIZE]; UINT16 BootOptionalData[OPTIONAL_DATA_SIZE]; UINT16 DriverDescriptionData[DESCRIPTION_DATA_SIZE]; UINT16 DriverOptionalData[OPTIONAL_DATA_SIZE]; BOOLEAN BootOptionChanged; BOOLEAN DriverOptionChanged; UINT8 Active; UINT8 ForceReconnect; } FILE_EXPLORER_NV_DATA; #endif
{ "content_hash": "7726c5deea4dbc6c3fbca35b57328584", "timestamp": "", "source": "github", "line_count": 231, "max_line_length": 94, "avg_line_length": 32.74891774891775, "alnum_prop": 0.6292134831460674, "repo_name": "MattDevo/edk2", "id": "bf99999760076f2097ac32d761ba1ba102218b04", "size": "8151", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/FormGuid.h", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Assembly", "bytes": "4545237" }, { "name": "Batchfile", "bytes": "93042" }, { "name": "C", "bytes": "94289702" }, { "name": "C++", "bytes": "20170310" }, { "name": "CSS", "bytes": "1905" }, { "name": "DIGITAL Command Language", "bytes": "13695" }, { "name": "GAP", "bytes": "698245" }, { "name": "GDB", "bytes": "96" }, { "name": "HTML", "bytes": "472114" }, { "name": "Lua", "bytes": "249" }, { "name": "Makefile", "bytes": "231845" }, { "name": "NSIS", "bytes": "2229" }, { "name": "Objective-C", "bytes": "4147834" }, { "name": "PHP", "bytes": "674" }, { "name": "PLSQL", "bytes": "24782" }, { "name": "Perl", "bytes": "6218" }, { "name": "Python", "bytes": "27130096" }, { "name": "R", "bytes": "21094" }, { "name": "Roff", "bytes": "28192" }, { "name": "Shell", "bytes": "104362" }, { "name": "SourcePawn", "bytes": "29427" }, { "name": "Visual Basic", "bytes": "494" } ], "symlink_target": "" }
namespace Krugel.Emulator { static class Program { static void Main() { } } }
{ "content_hash": "1bd83b823ecb62ec1ecd5b8e0a3fee34", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 26, "avg_line_length": 12.666666666666666, "alnum_prop": 0.4824561403508772, "repo_name": "krugel/kml", "id": "967c4573a287bf41f65f9dade6b47be63a173e97", "size": "114", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/Program.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "42959" } ], "symlink_target": "" }
package com.amazonaws.services.directory.model.transform; import javax.annotation.Generated; import com.amazonaws.SdkClientException; import com.amazonaws.services.directory.model.*; import com.amazonaws.protocol.*; import com.amazonaws.annotation.SdkInternalApi; /** * GetDirectoryLimitsRequestMarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") @SdkInternalApi public class GetDirectoryLimitsRequestMarshaller { private static final GetDirectoryLimitsRequestMarshaller instance = new GetDirectoryLimitsRequestMarshaller(); public static GetDirectoryLimitsRequestMarshaller getInstance() { return instance; } /** * Marshall the given parameter object. */ public void marshall(GetDirectoryLimitsRequest getDirectoryLimitsRequest, ProtocolMarshaller protocolMarshaller) { if (getDirectoryLimitsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } } }
{ "content_hash": "48941014daa27bd4b4010d3191300c8c", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 118, "avg_line_length": 28.775, "alnum_prop": 0.731537793223284, "repo_name": "aws/aws-sdk-java", "id": "0b787e70a04d465a9282c67f693230345afc35a1", "size": "1731", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/transform/GetDirectoryLimitsRequestMarshaller.java", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :reset_session rescue_from ActionController::RoutingError, with: :error_404 def error_404 render status: 404 , :text => "Creo que te perdiste" end end module StripeClerk class ApplicationController < ActionController::Base # a possibility to get a mail out or something def post_charge_hook OrderMailer.paid(@order).deliver_now end end end
{ "content_hash": "da43276c5ba2760fe452b4959cb8d1e6", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 62, "avg_line_length": 26.904761904761905, "alnum_prop": 0.736283185840708, "repo_name": "Rehlaender/Picpi2", "id": "77c29091215f66506901854be74e3315fa8c00e1", "size": "565", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/controllers/application_controller.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "9454" }, { "name": "HTML", "bytes": "38912" }, { "name": "JavaScript", "bytes": "1375" }, { "name": "Ruby", "bytes": "60069" } ], "symlink_target": "" }
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Framework.Configuration; namespace PartsUnlimited.Security { public class AzureADLoginProviderCredentials : IAzureADLoginProviderCredentials { public AzureADLoginProviderCredentials(IConfiguration config) { ClientId = config["ClientId"]; Authority = config["Authority"]; RedirectUri = config["RedirectUri"]; Caption = config["Caption"]; Use = !string.IsNullOrWhiteSpace(ClientId) && !string.IsNullOrWhiteSpace(Authority) && !string.IsNullOrWhiteSpace(RedirectUri); } public string Authority { get; } public string Caption { get; } public string ClientId { get; } public string RedirectUri { get; } public bool Use { get; } } }
{ "content_hash": "5fabe1f41f8de7ab9e6ed79f6b48b123", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 101, "avg_line_length": 33.3448275862069, "alnum_prop": 0.6442605997931747, "repo_name": "sriramdasbalaji/PartsUnlimitedMS", "id": "f68f420b0b05851af9df1f82d25888f7c4ed3e2f", "size": "969", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/PartsUnlimitedWebsite/Security/AzureADLoginProviderCredentials.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "1839" }, { "name": "C#", "bytes": "319292" }, { "name": "CSS", "bytes": "28690" }, { "name": "JavaScript", "bytes": "15102" }, { "name": "PowerShell", "bytes": "14924" }, { "name": "Shell", "bytes": "943" }, { "name": "Smalltalk", "bytes": "630" } ], "symlink_target": "" }
package kr.debop4j.data.ogm.test.associations.collection.unidirectional; import com.google.common.collect.Sets; import kr.debop4j.data.ogm.model.UuidEntityBase; import lombok.Getter; import lombok.Setter; import javax.persistence.Entity; import javax.persistence.JoinTable; import javax.persistence.OneToMany; import java.util.Set; /** * kr.debop4j.data.ogm.test.associations.collection.unidirectional.Cloud * * @author 배성혁 ( sunghyouk.bae@gmail.com ) * @since 13. 4. 2. 오후 12:50 */ @Entity @Getter @Setter public class Cloud extends UuidEntityBase { String type; double length; @OneToMany @JoinTable Set<SnowFlake> producedSnowFlakes = Sets.newHashSet(); }
{ "content_hash": "79f53dd984e10d979607d1e61e0cf37a", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 72, "avg_line_length": 22.225806451612904, "alnum_prop": 0.7590711175616836, "repo_name": "archmagece/debop4j", "id": "9396dbefeafbb498523c9ee317bd7c2f2fa62faf", "size": "699", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "debop4j-data-ogm/src/test/java/kr/debop4j/data/ogm/test/associations/collection/unidirectional/Cloud.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "3412103" }, { "name": "SQLPL", "bytes": "3289840" } ], "symlink_target": "" }
package com.fedevela.core.asic.controlcalidad.beans; /** * Created by fvelazquez on 26/03/14. */ import java.io.Serializable; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "doccods") public class TipoDocumentoCfg implements Serializable { private static final long serialVersionUID = 1L; private List<Short> doccod; @XmlElement(name = "doccod") public List<Short> getDoccods() { return doccod; } public void setDoccods(List<Short> doccods) { doccod = doccods; } }
{ "content_hash": "9ae2d15bfe9a6deca10c647ce22b4d9c", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 55, "avg_line_length": 23.46153846153846, "alnum_prop": 0.7147540983606557, "repo_name": "fedevelatec/asic-core", "id": "353f07659416e73213edf1c1d96de7e6d95a0763", "size": "610", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/fedevela/core/asic/controlcalidad/beans/TipoDocumentoCfg.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1273687" } ], "symlink_target": "" }
from openstack.compute import compute_service from openstack import resource class ServerMetadata(resource.Resource): resource_key = 'metadata' id_attribute = 'server_id' base_path = '/servers/%(server_id)s/metadata' service = compute_service.ComputeService() # capabilities allow_create = True allow_retrieve = True allow_update = True # Properties #: The ID of a server. server_id = resource.prop('server_id') @classmethod def create_by_id(cls, session, attrs, resource_id=None, path_args=None): no_id = attrs.copy() no_id.pop('server_id') body = {"metadata": no_id} url = cls._get_url(path_args) resp = session.put(url, service=cls.service, json=body).body attrs = resp["metadata"].copy() attrs['server_id'] = resource_id return attrs @classmethod def get_data_by_id(cls, session, resource_id, path_args=None, include_headers=False): url = cls._get_url(path_args) resp = session.get(url, service=cls.service).body return resp[cls.resource_key] @classmethod def update_by_id(cls, session, resource_id, attrs, path_args=None): return cls.create_by_id(session, attrs, resource_id, path_args)
{ "content_hash": "dc38ddede7be03a79b8cf92e8b9f612c", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 76, "avg_line_length": 32.15, "alnum_prop": 0.6345256609642301, "repo_name": "sjsucohort6/openstack", "id": "9f39d655615ab6f356217cbcbec909c30e66501b", "size": "1832", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "python/venv/lib/python2.7/site-packages/openstack/compute/v2/server_metadata.py", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "410" }, { "name": "CSS", "bytes": "144982" }, { "name": "FreeMarker", "bytes": "14104" }, { "name": "HTML", "bytes": "8308" }, { "name": "Java", "bytes": "243125" }, { "name": "JavaScript", "bytes": "1493715" }, { "name": "Python", "bytes": "16921939" }, { "name": "Shell", "bytes": "13926" } ], "symlink_target": "" }
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="smoothy.sample.DetailActivity"> <TextView android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content"/> <ListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent"/> </LinearLayout>
{ "content_hash": "e6315edc82c2dccc2b997f6e74876827", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 72, "avg_line_length": 42.04545454545455, "alnum_prop": 0.6432432432432432, "repo_name": "mslimani/smoothy", "id": "0b21302d42850e6d42d4f1b227b0dfaf0f69aa8d", "size": "925", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "smoothy-sample/src/main/res/layout/activity_detail.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "36628" }, { "name": "Shell", "bytes": "919" } ], "symlink_target": "" }
<code_scheme name="SquareAndroid"> <option name="USE_SAME_INDENTS" value="true" /> <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> <option name="OTHER_INDENT_OPTIONS"> <value> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </value> </option> <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" /> <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" /> <option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND"> <value /> </option> <option name="IMPORT_LAYOUT_TABLE"> <value> <package name="" withSubpackages="true" static="false" /> <emptyLine /> <package name="" withSubpackages="true" static="true" /> </value> </option> <option name="RIGHT_MARGIN" value="100" /> <option name="JD_ALIGN_PARAM_COMMENTS" value="false" /> <option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" /> <option name="JD_P_AT_EMPTY_LINES" value="false" /> <option name="JD_DO_NOT_WRAP_ONE_LINE_COMMENTS" value="true" /> <option name="JD_KEEP_EMPTY_PARAMETER" value="false" /> <option name="JD_KEEP_EMPTY_RETURN" value="false" /> <option name="JD_PRESERVE_LINE_FEEDS" value="true" /> <option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" /> <option name="BLOCK_COMMENT_AT_FIRST_COLUMN" value="false" /> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="ALIGN_MULTILINE_FOR" value="false" /> <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" /> <option name="CALL_PARAMETERS_WRAP" value="1" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="RESOURCE_LIST_WRAP" value="1" /> <option name="EXTENDS_LIST_WRAP" value="1" /> <option name="THROWS_LIST_WRAP" value="1" /> <option name="EXTENDS_KEYWORD_WRAP" value="1" /> <option name="THROWS_KEYWORD_WRAP" value="1" /> <option name="METHOD_CALL_CHAIN_WRAP" value="5" /> <option name="BINARY_OPERATION_WRAP" value="5" /> <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> <option name="TERNARY_OPERATION_WRAP" value="1" /> <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> <option name="FOR_STATEMENT_WRAP" value="1" /> <option name="ARRAY_INITIALIZER_WRAP" value="1" /> <option name="ASSIGNMENT_WRAP" value="1" /> <option name="WRAP_COMMENTS" value="true" /> <option name="ASSERT_STATEMENT_WRAP" value="1" /> <option name="IF_BRACE_FORCE" value="1" /> <option name="DOWHILE_BRACE_FORCE" value="1" /> <option name="WHILE_BRACE_FORCE" value="1" /> <option name="METHOD_ANNOTATION_WRAP" value="1" /> <option name="CLASS_ANNOTATION_WRAP" value="1" /> <option name="FIELD_ANNOTATION_WRAP" value="1" /> <option name="PARAMETER_ANNOTATION_WRAP" value="1" /> <option name="VARIABLE_ANNOTATION_WRAP" value="1" /> <option name="ENUM_CONSTANTS_WRAP" value="1" /> <JavaCodeStyleSettings> <option name="BLANK_LINES_AROUND_INITIALIZER" value="0" /> <option name="CLASS_NAMES_IN_JAVADOC" value="3" /> </JavaCodeStyleSettings> <XML> <option name="XML_ALIGN_ATTRIBUTES" value="false" /> <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> </XML> <ADDITIONAL_INDENT_OPTIONS fileType="php"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="scala"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="2" /> <option name="TAB_SIZE" value="2" /> </ADDITIONAL_INDENT_OPTIONS> <codeStyleSettings language="CSS"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="CoffeeScript"> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> </codeStyleSettings> <codeStyleSettings language="Groovy"> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="ALIGN_MULTILINE_FOR" value="false" /> <option name="CALL_PARAMETERS_WRAP" value="1" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="EXTENDS_LIST_WRAP" value="1" /> <option name="THROWS_LIST_WRAP" value="1" /> <option name="EXTENDS_KEYWORD_WRAP" value="1" /> <option name="THROWS_KEYWORD_WRAP" value="1" /> <option name="METHOD_CALL_CHAIN_WRAP" value="5" /> <option name="BINARY_OPERATION_WRAP" value="5" /> <option name="TERNARY_OPERATION_WRAP" value="1" /> <option name="FOR_STATEMENT_WRAP" value="1" /> <option name="ASSIGNMENT_WRAP" value="1" /> <option name="ASSERT_STATEMENT_WRAP" value="1" /> <option name="IF_BRACE_FORCE" value="1" /> <option name="WHILE_BRACE_FORCE" value="1" /> <option name="METHOD_ANNOTATION_WRAP" value="1" /> <option name="CLASS_ANNOTATION_WRAP" value="1" /> <option name="FIELD_ANNOTATION_WRAP" value="1" /> <option name="PARAMETER_ANNOTATION_WRAP" value="1" /> <option name="VARIABLE_ANNOTATION_WRAP" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JAVA"> <option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" /> <option name="BLOCK_COMMENT_AT_FIRST_COLUMN" value="false" /> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="0" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" /> <option name="BLANK_LINES_AROUND_METHOD_IN_INTERFACE" value="0" /> <option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" /> <option name="ALIGN_MULTILINE_FOR" value="false" /> <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" /> <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" /> <option name="CALL_PARAMETERS_WRAP" value="2" /> <option name="PREFER_PARAMETERS_WRAP" value="true" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="RESOURCE_LIST_WRAP" value="1" /> <option name="EXTENDS_LIST_WRAP" value="1" /> <option name="THROWS_LIST_WRAP" value="1" /> <option name="EXTENDS_KEYWORD_WRAP" value="1" /> <option name="THROWS_KEYWORD_WRAP" value="1" /> <option name="METHOD_CALL_CHAIN_WRAP" value="2" /> <option name="BINARY_OPERATION_WRAP" value="5" /> <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> <option name="TERNARY_OPERATION_WRAP" value="1" /> <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> <option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" /> <option name="KEEP_SIMPLE_LAMBDAS_IN_ONE_LINE" value="true" /> <option name="KEEP_SIMPLE_CLASSES_IN_ONE_LINE" value="true" /> <option name="FOR_STATEMENT_WRAP" value="1" /> <option name="ARRAY_INITIALIZER_WRAP" value="1" /> <option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true" /> <option name="ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE" value="true" /> <option name="ASSIGNMENT_WRAP" value="1" /> <option name="ASSERT_STATEMENT_WRAP" value="1" /> <option name="IF_BRACE_FORCE" value="1" /> <option name="DOWHILE_BRACE_FORCE" value="1" /> <option name="WHILE_BRACE_FORCE" value="1" /> <option name="METHOD_ANNOTATION_WRAP" value="0" /> <option name="CLASS_ANNOTATION_WRAP" value="1" /> <option name="FIELD_ANNOTATION_WRAP" value="1" /> <option name="PARAMETER_ANNOTATION_WRAP" value="1" /> <option name="VARIABLE_ANNOTATION_WRAP" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JSON"> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> </codeStyleSettings> <codeStyleSettings language="JavaScript"> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="ALIGN_MULTILINE_FOR" value="false" /> <option name="CALL_PARAMETERS_WRAP" value="1" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="BINARY_OPERATION_WRAP" value="5" /> <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> <option name="TERNARY_OPERATION_WRAP" value="1" /> <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> <option name="FOR_STATEMENT_WRAP" value="1" /> <option name="ARRAY_INITIALIZER_WRAP" value="1" /> <option name="ASSIGNMENT_WRAP" value="1" /> <option name="IF_BRACE_FORCE" value="1" /> <option name="DOWHILE_BRACE_FORCE" value="1" /> <option name="WHILE_BRACE_FORCE" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="TAB_SIZE" value="2" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="SQL"> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> </codeStyleSettings> <codeStyleSettings language="TypeScript"> <option name="KEEP_LINE_BREAKS" value="false" /> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="ALIGN_MULTILINE_FOR" value="false" /> <option name="CALL_PARAMETERS_WRAP" value="1" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="EXTENDS_LIST_WRAP" value="1" /> <option name="EXTENDS_KEYWORD_WRAP" value="1" /> <option name="BINARY_OPERATION_WRAP" value="5" /> <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> <option name="TERNARY_OPERATION_WRAP" value="1" /> <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> <option name="FOR_STATEMENT_WRAP" value="1" /> <option name="ARRAY_INITIALIZER_WRAP" value="1" /> <option name="ASSIGNMENT_WRAP" value="1" /> <option name="WRAP_COMMENTS" value="true" /> <option name="IF_BRACE_FORCE" value="1" /> <option name="DOWHILE_BRACE_FORCE" value="1" /> <option name="WHILE_BRACE_FORCE" value="1" /> <option name="PARENT_SETTINGS_INSTALLED" value="true" /> </codeStyleSettings> <codeStyleSettings language="XML"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> </indentOptions> <arrangement> <rules> <section> <rule> <match> <NAME>class</NAME> </match> </rule> </section> <section> <rule> <match> <NAME>layout</NAME> </match> </rule> </section> <section> <rule> <match> <NAME>xmlns:android</NAME> </match> </rule> </section> <section> <rule> <match> <NAME>xmlns:.*</NAME> </match> <order>BY_NAME</order> </rule> </section> <section> <rule> <match> <AND> <NAME>.*:id</NAME> <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> </AND> </match> </rule> </section> <section> <rule> <match> <AND> <NAME>.*:name</NAME> <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> </AND> </match> </rule> </section> <section> <rule> <match> <AND> <NAME>.*:layout_width</NAME> <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> </AND> </match> </rule> </section> <section> <rule> <match> <AND> <NAME>.*:layout_height</NAME> <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> </AND> </match> </rule> </section> <section> <rule> <match> <AND> <NAME>.*:layout_.*</NAME> <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> </AND> </match> <order>BY_NAME</order> </rule> </section> <section> <rule> <match> <AND> <NAME>.*</NAME> <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> </AND> </match> <order>BY_NAME</order> </rule> </section> <section> <rule> <match> <NAME>.*(?&lt;!style)$</NAME> </match> <order>BY_NAME</order> </rule> </section> <section> <rule> <match> <NAME>style</NAME> </match> </rule> </section> </rules> </arrangement> </codeStyleSettings> <codeStyleSettings language="kotlin"> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="CALL_PARAMETERS_WRAP" value="1" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> </indentOptions> </codeStyleSettings> </code_scheme>
{ "content_hash": "7160d43a6a0d5ee65c2b09eec9d2578b", "timestamp": "", "source": "github", "line_count": 373, "max_line_length": 89, "avg_line_length": 42.52278820375335, "alnum_prop": 0.6081583758905491, "repo_name": "joseanmun/kotlin_basics", "id": "c8f9ce85814fbf645e45f03923cb8725188da982", "size": "15861", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "codestyles/SquareAndroid.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "49941" } ], "symlink_target": "" }
package org.knowm.xchange.cryptofacilities.dto.account; import java.math.BigDecimal; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; /** * @author Panchen */ @JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({"balances", "auxiliary", "marginRequirements", "triggerEstimates"}) public class CryptoFacilitiesAccountInfo { @JsonProperty("balances") private Map<String, BigDecimal> balances; @JsonProperty("auxiliary") private Map<String, BigDecimal> auxiliary; @JsonProperty("marginRequirements") private Map<String, BigDecimal> marginRequirements; @JsonProperty("triggerEstimates") private Map<String, BigDecimal> triggerEstimates; @JsonProperty("balances") public Map<String, BigDecimal> getBalances() { return balances; } @JsonProperty("balances") public void setBalances(Map<String, BigDecimal> balances) { this.balances = balances; } @JsonProperty("auxiliary") public Map<String, BigDecimal> getAuxiliary() { return auxiliary; } @JsonProperty("auxiliary") public void setAuxiliary(Map<String, BigDecimal> auxiliary) { this.auxiliary = auxiliary; } @JsonProperty("marginRequirements") public Map<String, BigDecimal> getMarginRequirements() { return marginRequirements; } @JsonProperty("marginRequirements") public void setMarginRequirements(Map<String, BigDecimal> marginRequirements) { this.marginRequirements = marginRequirements; } @JsonProperty("triggerEstimates") public Map<String, BigDecimal> getTriggerEstimates() { return triggerEstimates; } @JsonProperty("triggerEstimates") public void setTriggerEstimates(Map<String, BigDecimal> triggerEstimates) { this.triggerEstimates = triggerEstimates; } }
{ "content_hash": "274190e4f41ef2925272b96cae15fd79", "timestamp": "", "source": "github", "line_count": 77, "max_line_length": 87, "avg_line_length": 25.31168831168831, "alnum_prop": 0.7614161108260646, "repo_name": "gaborkolozsy/XChange", "id": "27d88907adfa667c65b4a7e969292cc8c35de4a8", "size": "1949", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "xchange-cryptofacilities/src/main/java/org/knowm/xchange/cryptofacilities/dto/account/CryptoFacilitiesAccountInfo.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "5533267" } ], "symlink_target": "" }
<?php namespace Bolt\Provider; use Bolt\Controller; use Bolt\Events\ControllerEvents; use Bolt\Events\MountEvent; use Silex\Application; use Silex\ServiceProviderInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class ControllerServiceProvider implements ServiceProviderInterface, EventSubscriberInterface { public function register(Application $app) { if (!isset($app['controller.backend.mount_prefix'])) { $app['controller.backend.mount_prefix'] = function ($app) { return $app['config']->get('general/branding/path'); }; } if (!isset($app['controller.async.mount_prefix'])) { $app['controller.async.mount_prefix'] = '/async'; } if (!isset($app['controller.backend.extend.mount_prefix'])) { $app['controller.backend.extend.mount_prefix'] = function ($app) { return $app['config']->get('general/branding/path') . '/extend'; }; } if (!isset($app['controller.backend.upload.mount_prefix'])) { $app['controller.backend.upload.mount_prefix'] = function ($app) { return $app['config']->get('general/branding/path') . '/upload'; }; } $app['controller.backend.authentication'] = $app->share( function () { return new Controller\Backend\Authentication(); } ); $app['controller.backend.extend'] = $app->share( function () { return new Controller\Backend\Extend(); } ); $app['controller.backend.database'] = $app->share( function () { return new Controller\Backend\Database(); } ); $app['controller.backend.file_manager'] = $app->share( function () { return new Controller\Backend\FileManager(); } ); $app['controller.backend.general'] = $app->share( function () { return new Controller\Backend\General(); } ); $app['controller.backend.log'] = $app->share( function () { return new Controller\Backend\Log(); } ); $app['controller.backend.records'] = $app->share( function () { return new Controller\Backend\Records(); } ); $app['controller.backend.upload'] = $app->share( function () { return new Controller\Backend\Upload(); } ); $app['controller.backend.users'] = $app->share( function () { return new Controller\Backend\Users(); } ); $app['controller.async.general'] = $app->share( function () { return new Controller\Async\General(); } ); $app['controller.async.filesystem_manager'] = $app->share( function () { return new Controller\Async\FilesystemManager(); } ); $app['controller.async.embed'] = $app->share( function () { return new Controller\Async\Embed(); } ); $app['controller.async.records'] = $app->share( function () { return new Controller\Async\Records(); } ); $app['controller.async.stack'] = $app->share( function () { return new Controller\Async\Stack(); } ); $app['controller.async.system_checks'] = $app->share( function () { return new Controller\Async\SystemChecks(); } ); $app['controller.async.widget'] = $app->share( function () { return new Controller\Async\Widget(); } ); $app['controller.exception'] = $app->share( function ($app) { return new Controller\Exception(); } ); $app['controller.frontend'] = $app->share( function () { return new Controller\Frontend(); } ); $app['controller.requirement'] = $app->share( function ($app) { return new Controller\Requirement($app['config']); } ); $app['controller.requirement.deprecated'] = $app->share( function ($app) { return new Controller\Routing($app['config']); } ); $app['controller.classmap'] = [ 'Bolt\\Controllers\\Frontend' => 'controller.frontend', 'Bolt\\Controllers\\Routing' => 'controller.requirement.deprecated', ]; } public function boot(Application $app) { /** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher */ $dispatcher = $app['dispatcher']; $dispatcher->addSubscriber($this); /** @deprecated Deprecated since 3.0, to be removed in 4.0. */ $dispatcher->addListener(ControllerEvents::MOUNT, [$app, 'initMountpoints'], -10); } public function onMountFrontend(MountEvent $event) { $app = $event->getApp(); $event->mount('', $app['controller.exception']); $event->mount('', $app['controller.frontend']); } public function onMountBackend(MountEvent $event) { $app = $event->getApp(); // Mount the standard collection of backend and controllers $prefix = $app['controller.backend.mount_prefix']; $backendKeys = [ 'authentication', 'database', 'file_manager', 'general', 'log', 'records', 'users', ]; foreach ($backendKeys as $controller) { $event->mount($prefix, $app['controller.backend.' . $controller]); } // Mount the Async controllers $prefix = $app['controller.async.mount_prefix']; $asyncKeys = [ 'general', 'embed', 'filesystem_manager', 'records', 'stack', 'system_checks', 'widget', ]; foreach ($asyncKeys as $controller) { $event->mount($prefix, $app['controller.async.' . $controller]); } // Mount the Extend controller $prefix = $app['controller.backend.extend.mount_prefix']; $event->mount($prefix, $app['controller.backend.extend']); // Mount the Upload controller $prefix = $app['controller.backend.upload.mount_prefix']; $event->mount($prefix, $app['controller.backend.upload']); } public static function getSubscribedEvents() { return [ ControllerEvents::MOUNT => [ ['onMountFrontend', -50], ['onMountBackend'], ], ]; } }
{ "content_hash": "a2442d540613ed17824d0f31bf541e05", "timestamp": "", "source": "github", "line_count": 213, "max_line_length": 93, "avg_line_length": 32.8075117370892, "alnum_prop": 0.5138809387521466, "repo_name": "Intendit/bolt", "id": "dd6c5b3c653acf324cb0afa22f115a506f8bfd54", "size": "6988", "binary": false, "copies": "1", "ref": "refs/heads/release/3.2", "path": "src/Provider/ControllerServiceProvider.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "3175" }, { "name": "CSS", "bytes": "265292" }, { "name": "HTML", "bytes": "444961" }, { "name": "JavaScript", "bytes": "563800" }, { "name": "Nginx", "bytes": "2075" }, { "name": "PHP", "bytes": "2695606" }, { "name": "Shell", "bytes": "4354" } ], "symlink_target": "" }
package com.roothema.goodis; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.NavigationView; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.widget.ListView; import android.widget.Toast; import com.roothema.goodis.company.CompanyDetailsActivity; import com.roothema.goodis.map.NearestMapFilterActivity; import com.roothema.goodis.profile.ProfileActivity; import java.util.ArrayList; import java.util.Arrays; public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { private ArrayList<NewsModel> newsModels; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); final ListView listview = (ListView) findViewById(R.id.listView); newsModels = initNewsList(); final NewsAdapter adapter = new NewsAdapter(this, newsModels, getResources()); listview.setAdapter(adapter); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); drawer.setDrawerListener(toggle); toggle.syncState(); NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); navigationView.setNavigationItemSelectedListener(this); } public void onItemClick(int mPosition) { NewsModel tempValues = (NewsModel) newsModels.get(mPosition); Toast.makeText(this, "" + tempValues.getName() + " title:" + tempValues.getName() + " desc:" + tempValues.getDescription(), Toast.LENGTH_LONG).show(); } @NonNull private ArrayList<NewsModel> initNewsList() { final ArrayList<NewsModel> list = new ArrayList<NewsModel>(); for (int i = 0; i < 50; ++i) { list.add(new NewsModel("Name " + i, i, Arrays.asList("#demo", "#something"), "description...", null)); } return list; } @Override public void onBackPressed() { DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); if (drawer.isDrawerOpen(GravityCompat.START)) { drawer.closeDrawer(GravityCompat.START); } else { super.onBackPressed(); } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } @SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); if (id == R.id.nav_near_to_me) { Intent mapsActivity = new Intent(getApplicationContext(), NearestMapFilterActivity.class); mapsActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getApplicationContext().startActivity(mapsActivity); } if (id == R.id.nav_search) { Intent profileActivity = new Intent(getApplicationContext(), CompanyDetailsActivity.class); profileActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getApplicationContext().startActivity(profileActivity); } if (id == R.id.nav_my_profile) { Intent profileActivity = new Intent(getApplicationContext(), ProfileActivity.class); profileActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getApplicationContext().startActivity(profileActivity); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; } }
{ "content_hash": "78bf99303683eade5b653421198a85e3", "timestamp": "", "source": "github", "line_count": 125, "max_line_length": 158, "avg_line_length": 38.208, "alnum_prop": 0.6888609715242882, "repo_name": "roothema/goodis", "id": "2714f40cf739c346b41619fd13341cdef6789455", "size": "4776", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "mobile/GooDis/app/src/main/java/com/roothema/goodis/MainActivity.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "116647" } ], "symlink_target": "" }
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) priv_dir := $(addprefix $(mkfile_dir)/, ../priv/) obj-m += erlangio.o EXTRA_CFLAGS = -O2 -I /usr/src/linux-headers-`uname -r`/include/config all: build clean build: $(MAKE) -C /lib/modules/`uname -r`/build M=$(mkfile_dir) modules mkdir -p $(priv_dir) && cp $(mkfile_dir)/erlangio.ko $(priv_dir)/ clean: $(MAKE) -C /lib/modules/`uname -r`/build M=$(mkfile_dir) clean $(RM) Module.markers modules.order
{ "content_hash": "677fb516e771cd026db8aa48b2dfc897", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 70, "avg_line_length": 29.5, "alnum_prop": 0.6504237288135594, "repo_name": "MIEMHSE/erlangio", "id": "880ab9b5174948d96f0db532222df905e6666679", "size": "472", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "c_src/Makefile", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "3801" }, { "name": "Erlang", "bytes": "5293" }, { "name": "Makefile", "bytes": "472" }, { "name": "Shell", "bytes": "324" } ], "symlink_target": "" }
/* $Id: tif_predict.c,v 1.43 2017-05-10 15:21:16 erouault Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear in * all copies of the software and related documentation, and (ii) the names of * Sam Leffler and Silicon Graphics may not be used in any advertising or * publicity relating to the software without the specific, prior written * permission of Sam Leffler and Silicon Graphics. * * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. * * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ /* * TIFF Library. * * Predictor Tag Support (used by multiple codecs). */ #include "tiffiop.h" #include "tif_predict.h" #define PredictorState(tif) ((TIFFPredictorState*) (tif)->tif_data) static int horAcc8(TIFF* tif, uint8* cp0, tmsize_t cc); static int horAcc16(TIFF* tif, uint8* cp0, tmsize_t cc); static int horAcc32(TIFF* tif, uint8* cp0, tmsize_t cc); static int swabHorAcc16(TIFF* tif, uint8* cp0, tmsize_t cc); static int swabHorAcc32(TIFF* tif, uint8* cp0, tmsize_t cc); static int horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc); static int horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc); static int horDiff32(TIFF* tif, uint8* cp0, tmsize_t cc); static int swabHorDiff16(TIFF* tif, uint8* cp0, tmsize_t cc); static int swabHorDiff32(TIFF* tif, uint8* cp0, tmsize_t cc); static int fpAcc(TIFF* tif, uint8* cp0, tmsize_t cc); static int fpDiff(TIFF* tif, uint8* cp0, tmsize_t cc); static int PredictorDecodeRow(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s); static int PredictorDecodeTile(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s); static int PredictorEncodeRow(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); static int PredictorEncodeTile(TIFF* tif, uint8* bp0, tmsize_t cc0, uint16 s); static int PredictorSetup(TIFF* tif) { static const char module[] = "PredictorSetup"; TIFFPredictorState* sp = PredictorState(tif); TIFFDirectory* td = &tif->tif_dir; switch (sp->predictor) /* no differencing */ { case PREDICTOR_NONE: return 1; case PREDICTOR_HORIZONTAL: if (td->td_bitspersample != 8 && td->td_bitspersample != 16 && td->td_bitspersample != 32) { TIFFErrorExt(tif->tif_clientdata, module, "Horizontal differencing \"Predictor\" not supported with %d-bit samples", td->td_bitspersample); return 0; } break; case PREDICTOR_FLOATINGPOINT: if (td->td_sampleformat != SAMPLEFORMAT_IEEEFP) { TIFFErrorExt(tif->tif_clientdata, module, "Floating point \"Predictor\" not supported with %d data format", td->td_sampleformat); return 0; } if (td->td_bitspersample != 16 && td->td_bitspersample != 24 && td->td_bitspersample != 32 && td->td_bitspersample != 64) { /* Should 64 be allowed? */ TIFFErrorExt(tif->tif_clientdata, module, "Floating point \"Predictor\" not supported with %d-bit samples", td->td_bitspersample); return 0; } break; default: TIFFErrorExt(tif->tif_clientdata, module, "\"Predictor\" value %d not supported", sp->predictor); return 0; } sp->stride = (td->td_planarconfig == PLANARCONFIG_CONTIG ? td->td_samplesperpixel : 1); /* * Calculate the scanline/tile-width size in bytes. */ if (isTiled(tif)) sp->rowsize = TIFFTileRowSize(tif); else sp->rowsize = TIFFScanlineSize(tif); if (sp->rowsize == 0) return 0; return 1; } static int PredictorSetupDecode(TIFF* tif) { TIFFPredictorState* sp = PredictorState(tif); TIFFDirectory* td = &tif->tif_dir; /* Note: when PredictorSetup() fails, the effets of setupdecode() */ /* will not be "cancelled" so setupdecode() might be robust to */ /* be called several times. */ if (!(*sp->setupdecode)(tif) || !PredictorSetup(tif)) return 0; if (sp->predictor == 2) { switch (td->td_bitspersample) { case 8: sp->decodepfunc = horAcc8; break; case 16: sp->decodepfunc = horAcc16; break; case 32: sp->decodepfunc = horAcc32; break; } /* * Override default decoding method with one that does the * predictor stuff. */ if( tif->tif_decoderow != PredictorDecodeRow ) { sp->decoderow = tif->tif_decoderow; tif->tif_decoderow = PredictorDecodeRow; sp->decodestrip = tif->tif_decodestrip; tif->tif_decodestrip = PredictorDecodeTile; sp->decodetile = tif->tif_decodetile; tif->tif_decodetile = PredictorDecodeTile; } /* * If the data is horizontally differenced 16-bit data that * requires byte-swapping, then it must be byte swapped before * the accumulation step. We do this with a special-purpose * routine and override the normal post decoding logic that * the library setup when the directory was read. */ if (tif->tif_flags & TIFF_SWAB) { if (sp->decodepfunc == horAcc16) { sp->decodepfunc = swabHorAcc16; tif->tif_postdecode = _TIFFNoPostDecode; } else if (sp->decodepfunc == horAcc32) { sp->decodepfunc = swabHorAcc32; tif->tif_postdecode = _TIFFNoPostDecode; } } } else if (sp->predictor == 3) { sp->decodepfunc = fpAcc; /* * Override default decoding method with one that does the * predictor stuff. */ if( tif->tif_decoderow != PredictorDecodeRow ) { sp->decoderow = tif->tif_decoderow; tif->tif_decoderow = PredictorDecodeRow; sp->decodestrip = tif->tif_decodestrip; tif->tif_decodestrip = PredictorDecodeTile; sp->decodetile = tif->tif_decodetile; tif->tif_decodetile = PredictorDecodeTile; } /* * The data should not be swapped outside of the floating * point predictor, the accumulation routine should return * byres in the native order. */ if (tif->tif_flags & TIFF_SWAB) { tif->tif_postdecode = _TIFFNoPostDecode; } /* * Allocate buffer to keep the decoded bytes before * rearranging in the right order */ } return 1; } static int PredictorSetupEncode(TIFF* tif) { TIFFPredictorState* sp = PredictorState(tif); TIFFDirectory* td = &tif->tif_dir; if (!(*sp->setupencode)(tif) || !PredictorSetup(tif)) return 0; if (sp->predictor == 2) { switch (td->td_bitspersample) { case 8: sp->encodepfunc = horDiff8; break; case 16: sp->encodepfunc = horDiff16; break; case 32: sp->encodepfunc = horDiff32; break; } /* * Override default encoding method with one that does the * predictor stuff. */ if( tif->tif_encoderow != PredictorEncodeRow ) { sp->encoderow = tif->tif_encoderow; tif->tif_encoderow = PredictorEncodeRow; sp->encodestrip = tif->tif_encodestrip; tif->tif_encodestrip = PredictorEncodeTile; sp->encodetile = tif->tif_encodetile; tif->tif_encodetile = PredictorEncodeTile; } /* * If the data is horizontally differenced 16-bit data that * requires byte-swapping, then it must be byte swapped after * the differentiation step. We do this with a special-purpose * routine and override the normal post decoding logic that * the library setup when the directory was read. */ if (tif->tif_flags & TIFF_SWAB) { if (sp->encodepfunc == horDiff16) { sp->encodepfunc = swabHorDiff16; tif->tif_postdecode = _TIFFNoPostDecode; } else if (sp->encodepfunc == horDiff32) { sp->encodepfunc = swabHorDiff32; tif->tif_postdecode = _TIFFNoPostDecode; } } } else if (sp->predictor == 3) { sp->encodepfunc = fpDiff; /* * Override default encoding method with one that does the * predictor stuff. */ if( tif->tif_encoderow != PredictorEncodeRow ) { sp->encoderow = tif->tif_encoderow; tif->tif_encoderow = PredictorEncodeRow; sp->encodestrip = tif->tif_encodestrip; tif->tif_encodestrip = PredictorEncodeTile; sp->encodetile = tif->tif_encodetile; tif->tif_encodetile = PredictorEncodeTile; } } return 1; } #define REPEAT4(n, op) \ switch (n) { \ default: { \ tmsize_t i; for (i = n-4; i > 0; i--) { op; } } /*-fallthrough*/ \ case 4: op; /*-fallthrough*/ \ case 3: op; /*-fallthrough*/ \ case 2: op; /*-fallthrough*/ \ case 1: op; /*-fallthrough*/ \ case 0: ; \ } /* Remarks related to C standard compliance in all below functions : */ /* - to avoid any undefined behaviour, we only operate on unsigned types */ /* since the behaviour of "overflows" is defined (wrap over) */ /* - when storing into the byte stream, we explicitly mask with 0xff so */ /* as to make icc -check=conversions happy (not necessary by the standard) */ static int horAcc8(TIFF* tif, uint8* cp0, tmsize_t cc) { tmsize_t stride = PredictorState(tif)->stride; unsigned char* cp = (unsigned char*) cp0; if((cc%stride)!=0) { TIFFErrorExt(tif->tif_clientdata, "horAcc8", "%s", "(cc%stride)!=0"); return 0; } if (cc > stride) { /* * Pipeline the most common cases. */ if (stride == 3) { unsigned int cr = cp[0]; unsigned int cg = cp[1]; unsigned int cb = cp[2]; cc -= 3; cp += 3; while (cc>0) { cp[0] = (unsigned char) ((cr += cp[0]) & 0xff); cp[1] = (unsigned char) ((cg += cp[1]) & 0xff); cp[2] = (unsigned char) ((cb += cp[2]) & 0xff); cc -= 3; cp += 3; } } else if (stride == 4) { unsigned int cr = cp[0]; unsigned int cg = cp[1]; unsigned int cb = cp[2]; unsigned int ca = cp[3]; cc -= 4; cp += 4; while (cc>0) { cp[0] = (unsigned char) ((cr += cp[0]) & 0xff); cp[1] = (unsigned char) ((cg += cp[1]) & 0xff); cp[2] = (unsigned char) ((cb += cp[2]) & 0xff); cp[3] = (unsigned char) ((ca += cp[3]) & 0xff); cc -= 4; cp += 4; } } else { cc -= stride; do { REPEAT4(stride, cp[stride] = (unsigned char) ((cp[stride] + *cp) & 0xff); cp++) cc -= stride; } while (cc>0); } } return 1; } static int swabHorAcc16(TIFF* tif, uint8* cp0, tmsize_t cc) { uint16* wp = (uint16*) cp0; tmsize_t wc = cc / 2; TIFFSwabArrayOfShort(wp, wc); return horAcc16(tif, cp0, cc); } static int horAcc16(TIFF* tif, uint8* cp0, tmsize_t cc) { tmsize_t stride = PredictorState(tif)->stride; uint16* wp = (uint16*) cp0; tmsize_t wc = cc / 2; if((cc%(2*stride))!=0) { TIFFErrorExt(tif->tif_clientdata, "horAcc16", "%s", "cc%(2*stride))!=0"); return 0; } if (wc > stride) { wc -= stride; do { REPEAT4(stride, wp[stride] = (uint16)(((unsigned int)wp[stride] + (unsigned int)wp[0]) & 0xffff); wp++) wc -= stride; } while (wc > 0); } return 1; } static int swabHorAcc32(TIFF* tif, uint8* cp0, tmsize_t cc) { uint32* wp = (uint32*) cp0; tmsize_t wc = cc / 4; TIFFSwabArrayOfLong(wp, wc); return horAcc32(tif, cp0, cc); } static int horAcc32(TIFF* tif, uint8* cp0, tmsize_t cc) { tmsize_t stride = PredictorState(tif)->stride; uint32* wp = (uint32*) cp0; tmsize_t wc = cc / 4; if((cc%(4*stride))!=0) { TIFFErrorExt(tif->tif_clientdata, "horAcc32", "%s", "cc%(4*stride))!=0"); return 0; } if (wc > stride) { wc -= stride; do { REPEAT4(stride, wp[stride] += wp[0]; wp++) wc -= stride; } while (wc > 0); } return 1; } /* * Floating point predictor accumulation routine. */ static int fpAcc(TIFF* tif, uint8* cp0, tmsize_t cc) { tmsize_t stride = PredictorState(tif)->stride; uint32 bps = tif->tif_dir.td_bitspersample / 8; tmsize_t wc = cc / bps; tmsize_t count = cc; uint8 *cp = (uint8 *) cp0; uint8 *tmp; if(cc%(bps*stride)!=0) { TIFFErrorExt(tif->tif_clientdata, "fpAcc", "%s", "cc%(bps*stride))!=0"); return 0; } tmp = (uint8 *)_TIFFmalloc(cc); if (!tmp) return 0; while (count > stride) { REPEAT4(stride, cp[stride] = (unsigned char) ((cp[stride] + cp[0]) & 0xff); cp++) count -= stride; } _TIFFmemcpy(tmp, cp0, cc); cp = (uint8 *) cp0; for (count = 0; count < wc; count++) { uint32 byte; for (byte = 0; byte < bps; byte++) { #if WORDS_BIGENDIAN cp[bps * count + byte] = tmp[byte * wc + count]; #else cp[bps * count + byte] = tmp[(bps - byte - 1) * wc + count]; #endif } } _TIFFfree(tmp); return 1; } /* * Decode a scanline and apply the predictor routine. */ static int PredictorDecodeRow(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s) { TIFFPredictorState *sp = PredictorState(tif); assert(sp != NULL); assert(sp->decoderow != NULL); assert(sp->decodepfunc != NULL); if ((*sp->decoderow)(tif, op0, occ0, s)) { return (*sp->decodepfunc)(tif, op0, occ0); } else return 0; } /* * Decode a tile/strip and apply the predictor routine. * Note that horizontal differencing must be done on a * row-by-row basis. The width of a "row" has already * been calculated at pre-decode time according to the * strip/tile dimensions. */ static int PredictorDecodeTile(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s) { TIFFPredictorState *sp = PredictorState(tif); assert(sp != NULL); assert(sp->decodetile != NULL); if ((*sp->decodetile)(tif, op0, occ0, s)) { tmsize_t rowsize = sp->rowsize; assert(rowsize > 0); if((occ0%rowsize) !=0) { TIFFErrorExt(tif->tif_clientdata, "PredictorDecodeTile", "%s", "occ0%rowsize != 0"); return 0; } assert(sp->decodepfunc != NULL); while (occ0 > 0) { if( !(*sp->decodepfunc)(tif, op0, rowsize) ) return 0; occ0 -= rowsize; op0 += rowsize; } return 1; } else return 0; } static int horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc) { TIFFPredictorState* sp = PredictorState(tif); tmsize_t stride = sp->stride; unsigned char* cp = (unsigned char*) cp0; if((cc%stride)!=0) { TIFFErrorExt(tif->tif_clientdata, "horDiff8", "%s", "(cc%stride)!=0"); return 0; } if (cc > stride) { cc -= stride; /* * Pipeline the most common cases. */ if (stride == 3) { unsigned int r1, g1, b1; unsigned int r2 = cp[0]; unsigned int g2 = cp[1]; unsigned int b2 = cp[2]; do { r1 = cp[3]; cp[3] = (unsigned char)((r1-r2)&0xff); r2 = r1; g1 = cp[4]; cp[4] = (unsigned char)((g1-g2)&0xff); g2 = g1; b1 = cp[5]; cp[5] = (unsigned char)((b1-b2)&0xff); b2 = b1; cp += 3; } while ((cc -= 3) > 0); } else if (stride == 4) { unsigned int r1, g1, b1, a1; unsigned int r2 = cp[0]; unsigned int g2 = cp[1]; unsigned int b2 = cp[2]; unsigned int a2 = cp[3]; do { r1 = cp[4]; cp[4] = (unsigned char)((r1-r2)&0xff); r2 = r1; g1 = cp[5]; cp[5] = (unsigned char)((g1-g2)&0xff); g2 = g1; b1 = cp[6]; cp[6] = (unsigned char)((b1-b2)&0xff); b2 = b1; a1 = cp[7]; cp[7] = (unsigned char)((a1-a2)&0xff); a2 = a1; cp += 4; } while ((cc -= 4) > 0); } else { cp += cc - 1; do { REPEAT4(stride, cp[stride] = (unsigned char)((cp[stride] - cp[0])&0xff); cp--) } while ((cc -= stride) > 0); } } return 1; } static int horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc) { TIFFPredictorState* sp = PredictorState(tif); tmsize_t stride = sp->stride; uint16 *wp = (uint16*) cp0; tmsize_t wc = cc/2; if((cc%(2*stride))!=0) { TIFFErrorExt(tif->tif_clientdata, "horDiff8", "%s", "(cc%(2*stride))!=0"); return 0; } if (wc > stride) { wc -= stride; wp += wc - 1; do { REPEAT4(stride, wp[stride] = (uint16)(((unsigned int)wp[stride] - (unsigned int)wp[0]) & 0xffff); wp--) wc -= stride; } while (wc > 0); } return 1; } static int swabHorDiff16(TIFF* tif, uint8* cp0, tmsize_t cc) { uint16* wp = (uint16*) cp0; tmsize_t wc = cc / 2; if( !horDiff16(tif, cp0, cc) ) return 0; TIFFSwabArrayOfShort(wp, wc); return 1; } static int horDiff32(TIFF* tif, uint8* cp0, tmsize_t cc) { TIFFPredictorState* sp = PredictorState(tif); tmsize_t stride = sp->stride; uint32 *wp = (uint32*) cp0; tmsize_t wc = cc/4; if((cc%(4*stride))!=0) { TIFFErrorExt(tif->tif_clientdata, "horDiff32", "%s", "(cc%(4*stride))!=0"); return 0; } if (wc > stride) { wc -= stride; wp += wc - 1; do { REPEAT4(stride, wp[stride] -= wp[0]; wp--) wc -= stride; } while (wc > 0); } return 1; } static int swabHorDiff32(TIFF* tif, uint8* cp0, tmsize_t cc) { uint32* wp = (uint32*) cp0; tmsize_t wc = cc / 4; if( !horDiff32(tif, cp0, cc) ) return 0; TIFFSwabArrayOfLong(wp, wc); return 1; } /* * Floating point predictor differencing routine. */ static int fpDiff(TIFF* tif, uint8* cp0, tmsize_t cc) { tmsize_t stride = PredictorState(tif)->stride; uint32 bps = tif->tif_dir.td_bitspersample / 8; tmsize_t wc = cc / bps; tmsize_t count; uint8 *cp = (uint8 *) cp0; uint8 *tmp; if((cc%(bps*stride))!=0) { TIFFErrorExt(tif->tif_clientdata, "fpDiff", "%s", "(cc%(bps*stride))!=0"); return 0; } tmp = (uint8 *)_TIFFmalloc(cc); if (!tmp) return 0; _TIFFmemcpy(tmp, cp0, cc); for (count = 0; count < wc; count++) { uint32 byte; for (byte = 0; byte < bps; byte++) { #if WORDS_BIGENDIAN cp[byte * wc + count] = tmp[bps * count + byte]; #else cp[(bps - byte - 1) * wc + count] = tmp[bps * count + byte]; #endif } } _TIFFfree(tmp); cp = (uint8 *) cp0; cp += cc - stride - 1; for (count = cc; count > stride; count -= stride) REPEAT4(stride, cp[stride] = (unsigned char)((cp[stride] - cp[0])&0xff); cp--) return 1; } static int PredictorEncodeRow(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) { TIFFPredictorState *sp = PredictorState(tif); assert(sp != NULL); assert(sp->encodepfunc != NULL); assert(sp->encoderow != NULL); /* XXX horizontal differencing alters user's data XXX */ if( !(*sp->encodepfunc)(tif, bp, cc) ) return 0; return (*sp->encoderow)(tif, bp, cc, s); } static int PredictorEncodeTile(TIFF* tif, uint8* bp0, tmsize_t cc0, uint16 s) { static const char module[] = "PredictorEncodeTile"; TIFFPredictorState *sp = PredictorState(tif); uint8 *working_copy; tmsize_t cc = cc0, rowsize; unsigned char* bp; int result_code; assert(sp != NULL); assert(sp->encodepfunc != NULL); assert(sp->encodetile != NULL); /* * Do predictor manipulation in a working buffer to avoid altering * the callers buffer. http://trac.osgeo.org/gdal/ticket/1965 */ working_copy = (uint8*) _TIFFmalloc(cc0); if( working_copy == NULL ) { TIFFErrorExt(tif->tif_clientdata, module, "Out of memory allocating " TIFF_SSIZE_FORMAT " byte temp buffer.", cc0 ); return 0; } memcpy( working_copy, bp0, cc0 ); bp = working_copy; rowsize = sp->rowsize; assert(rowsize > 0); if((cc0%rowsize)!=0) { TIFFErrorExt(tif->tif_clientdata, "PredictorEncodeTile", "%s", "(cc0%rowsize)!=0"); _TIFFfree( working_copy ); return 0; } while (cc > 0) { (*sp->encodepfunc)(tif, bp, rowsize); cc -= rowsize; bp += rowsize; } result_code = (*sp->encodetile)(tif, working_copy, cc0, s); _TIFFfree( working_copy ); return result_code; } #define FIELD_PREDICTOR (FIELD_CODEC+0) /* XXX */ static const TIFFField predictFields[] = { { TIFFTAG_PREDICTOR, 1, 1, TIFF_SHORT, 0, TIFF_SETGET_UINT16, TIFF_SETGET_UINT16, FIELD_PREDICTOR, FALSE, FALSE, "Predictor", NULL }, }; static int PredictorVSetField(TIFF* tif, uint32 tag, va_list ap) { TIFFPredictorState *sp = PredictorState(tif); assert(sp != NULL); assert(sp->vsetparent != NULL); switch (tag) { case TIFFTAG_PREDICTOR: sp->predictor = (uint16) va_arg(ap, uint16_vap); TIFFSetFieldBit(tif, FIELD_PREDICTOR); break; default: return (*sp->vsetparent)(tif, tag, ap); } tif->tif_flags |= TIFF_DIRTYDIRECT; return 1; } static int PredictorVGetField(TIFF* tif, uint32 tag, va_list ap) { TIFFPredictorState *sp = PredictorState(tif); assert(sp != NULL); assert(sp->vgetparent != NULL); switch (tag) { case TIFFTAG_PREDICTOR: *va_arg(ap, uint16*) = (uint16)sp->predictor; break; default: return (*sp->vgetparent)(tif, tag, ap); } return 1; } static void PredictorPrintDir(TIFF* tif, FILE* fd, long flags) { TIFFPredictorState* sp = PredictorState(tif); (void) flags; if (TIFFFieldSet(tif,FIELD_PREDICTOR)) { fprintf(fd, " Predictor: "); switch (sp->predictor) { case 1: fprintf(fd, "none "); break; case 2: fprintf(fd, "horizontal differencing "); break; case 3: fprintf(fd, "floating point predictor "); break; } fprintf(fd, "%d (0x%x)\n", sp->predictor, sp->predictor); } if (sp->printdir) (*sp->printdir)(tif, fd, flags); } int TIFFPredictorInit(TIFF* tif) { TIFFPredictorState* sp = PredictorState(tif); assert(sp != 0); /* * Merge codec-specific tag information. */ if (!_TIFFMergeFields(tif, predictFields, TIFFArrayCount(predictFields))) { TIFFErrorExt(tif->tif_clientdata, "TIFFPredictorInit", "Merging Predictor codec-specific tags failed"); return 0; } /* * Override parent get/set field methods. */ sp->vgetparent = tif->tif_tagmethods.vgetfield; tif->tif_tagmethods.vgetfield = PredictorVGetField;/* hook for predictor tag */ sp->vsetparent = tif->tif_tagmethods.vsetfield; tif->tif_tagmethods.vsetfield = PredictorVSetField;/* hook for predictor tag */ sp->printdir = tif->tif_tagmethods.printdir; tif->tif_tagmethods.printdir = PredictorPrintDir; /* hook for predictor tag */ sp->setupdecode = tif->tif_setupdecode; tif->tif_setupdecode = PredictorSetupDecode; sp->setupencode = tif->tif_setupencode; tif->tif_setupencode = PredictorSetupEncode; sp->predictor = 1; /* default value */ sp->encodepfunc = NULL; /* no predictor routine */ sp->decodepfunc = NULL; /* no predictor routine */ return 1; } int TIFFPredictorCleanup(TIFF* tif) { TIFFPredictorState* sp = PredictorState(tif); assert(sp != 0); tif->tif_tagmethods.vgetfield = sp->vgetparent; tif->tif_tagmethods.vsetfield = sp->vsetparent; tif->tif_tagmethods.printdir = sp->printdir; tif->tif_setupdecode = sp->setupdecode; tif->tif_setupencode = sp->setupencode; return 1; } /* vim: set ts=8 sts=8 sw=8 noet: */ /* * Local Variables: * mode: c * c-basic-offset: 8 * fill-column: 78 * End: */
{ "content_hash": "dd94c04bdd98c68e408c374517d053b7", "timestamp": "", "source": "github", "line_count": 874, "max_line_length": 137, "avg_line_length": 27.676201372997713, "alnum_prop": 0.5930794989458018, "repo_name": "mbelicki/warp", "id": "7a60a39edfdfd983115c81f1aeb8596624ba95e4", "size": "24189", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "libs/SDL_Image/external/tiff-4.0.8/libtiff/tif_predict.c", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "1418" }, { "name": "C", "bytes": "15104941" }, { "name": "C++", "bytes": "1265529" }, { "name": "CMake", "bytes": "167173" }, { "name": "HTML", "bytes": "9000" }, { "name": "Java", "bytes": "185931" }, { "name": "JavaScript", "bytes": "18010" }, { "name": "M4", "bytes": "129380" }, { "name": "Makefile", "bytes": "77422" }, { "name": "Metal", "bytes": "3849" }, { "name": "Objective-C", "bytes": "743127" }, { "name": "Perl", "bytes": "20074" }, { "name": "PowerShell", "bytes": "12819" }, { "name": "Python", "bytes": "2490" }, { "name": "Roff", "bytes": "3003" }, { "name": "Shell", "bytes": "889347" } ], "symlink_target": "" }
// flow-typed signature: 58d23b1d2e73339b0cba1938ce56e57b // flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^3.0.1/flow_v0.35.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-jsx-a11y' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * https://github.com/flowtype/flow-typed */ declare module 'eslint-plugin-jsx-a11y' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'eslint-plugin-jsx-a11y/__tests__/index-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/href-no-hash-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-marquee-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/index' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-props' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-role' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/heading-has-content' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/href-no-hash' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/img-has-alt' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/lang' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-access-key' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-marquee' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/scope' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/lib/util/schemas' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/index' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-has-content' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-props' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-proptypes' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-role' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-unsupported-elements' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/click-events-have-key-events' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/heading-has-content' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/href-no-hash' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/html-has-lang' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/img-has-alt' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/label-has-for' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/lang' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-access-key' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-marquee' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-onchange' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-role' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/role-supports-aria-props' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/scope' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/getImplicitRole' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/getSuggestion' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/getTabIndex' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/a' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/area' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/article' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/aside' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/body' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/button' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/datalist' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/details' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dialog' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dl' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/form' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h1' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h2' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h3' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h4' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h5' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h6' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/hr' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/img' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/index' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/input' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/li' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/link' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menu' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menuitem' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/meter' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/nav' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ol' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/option' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/output' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/progress' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/section' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/select' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tbody' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/textarea' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tfoot' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveElement' { declare module.exports: any; } declare module 'eslint-plugin-jsx-a11y/src/util/schemas' { declare module.exports: any; } // Filename aliases declare module 'eslint-plugin-jsx-a11y/__tests__/index-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/index-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/href-no-hash-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/href-no-hash-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-marquee-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-marquee-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test'>; } declare module 'eslint-plugin-jsx-a11y/lib/index.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/index'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-props'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-role.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-role'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/heading-has-content.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/heading-has-content'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/href-no-hash.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/href-no-hash'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/html-has-lang'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/img-has-alt.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-has-alt'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/label-has-for'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/lang.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/lang'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-access-key.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-access-key'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-marquee.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-marquee'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-onchange'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/scope.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/scope'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getImplicitRole'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getSuggestion'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getTabIndex'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement'>; } declare module 'eslint-plugin-jsx-a11y/lib/util/schemas.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/schemas'>; } declare module 'eslint-plugin-jsx-a11y/src/index.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/index'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-has-content.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/anchor-has-content'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-props'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-proptypes.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-proptypes'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-role.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-role'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/aria-unsupported-elements.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-unsupported-elements'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/click-events-have-key-events.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/click-events-have-key-events'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/heading-has-content.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/heading-has-content'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/href-no-hash.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/href-no-hash'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/html-has-lang.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/html-has-lang'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/img-has-alt.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/img-has-alt'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/label-has-for.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/label-has-for'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/lang.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/lang'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-access-key.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-access-key'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-marquee.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-marquee'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-onchange.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-onchange'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-role.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/onclick-has-role'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/role-supports-aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/role-supports-aria-props'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/scope.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/scope'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive'>; } declare module 'eslint-plugin-jsx-a11y/src/util/getImplicitRole.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getImplicitRole'>; } declare module 'eslint-plugin-jsx-a11y/src/util/getSuggestion.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getSuggestion'>; } declare module 'eslint-plugin-jsx-a11y/src/util/getTabIndex.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getTabIndex'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/a.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/a'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/area.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/area'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/article.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/article'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/aside.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/aside'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/body.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/body'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/button.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/button'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/datalist.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/datalist'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/details.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/details'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dialog.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/dialog'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dl.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/dl'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/form.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/form'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h1.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h1'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h2.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h2'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h3.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h3'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h4.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h4'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h5.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h5'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h6.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h6'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/hr.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/hr'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/img.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/img'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/index.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/index'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/input.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/input'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/li.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/li'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/link.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/link'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menu.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/menu'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menuitem.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/menuitem'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/meter.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/meter'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/nav.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/nav'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ol.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/ol'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/option.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/option'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/output.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/output'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/progress.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/progress'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/section.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/section'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/select.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/select'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tbody.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/tbody'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/textarea.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/textarea'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tfoot.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/tfoot'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead'>; } declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul'>; } declare module 'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader'>; } declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveElement.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isInteractiveElement'>; } declare module 'eslint-plugin-jsx-a11y/src/util/schemas.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/schemas'>; }
{ "content_hash": "00130d57aec211252bc37f04d423a29c", "timestamp": "", "source": "github", "line_count": 1180, "max_line_length": 117, "avg_line_length": 38.93813559322034, "alnum_prop": 0.7592225825407535, "repo_name": "redcom/aperitive", "id": "864fe051526dc28520f5af55ac88fbd8f52ebdec", "size": "45947", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "18223" }, { "name": "JavaScript", "bytes": "706924" } ], "symlink_target": "" }
<div class="commune_descr limited"> <p> Kermoroc'h est un village localisé dans le département de Côtes-d'Armor en Bretagne. On dénombrait 376 habitants en 2008.</p> <p>Le nombre de logements, à Kermoroc'h, se décomposait en 2011 en trois appartements et 190 maisons soit un marché plutôt équilibré.</p> <p>À coté de Kermoroc'h sont situées les communes de <a href="{{VLROOT}}/immobilier/plouec-du-trieux_22212/">Plouëc-du-Trieux</a> localisée à 5&nbsp;km, 1&nbsp;120 habitants, <a href="{{VLROOT}}/immobilier/pabu_22161/">Pabu</a> localisée à 6&nbsp;km, 2&nbsp;832 habitants, <a href="{{VLROOT}}/immobilier/coatascorn_22041/">Coatascorn</a> à 6&nbsp;km, 249 habitants, <a href="{{VLROOT}}/immobilier/landebaeron_22095/">Landebaëron</a> localisée à 1&nbsp;km, 203 habitants, <a href="{{VLROOT}}/immobilier/tregonneau_22358/">Trégonneau</a> à 3&nbsp;km, 467 habitants, <a href="{{VLROOT}}/immobilier/brelidy_22018/">Brélidy</a> située à 4&nbsp;km, 309 habitants, entre autres. De plus, Kermoroc'h est située à seulement 22&nbsp;km de <a href="{{VLROOT}}/immobilier/lannion_22113/">Lannion</a>.</p> <p>La ville propose quelques équipements sportifs, elle propose entre autres un terrain de tennis et une boucle de randonnée.</p> <p>Si vous envisagez de demenager à Kermoroc'h, vous pourrez aisément trouver une maison à acheter. </p> </div>
{ "content_hash": "a9845b8d96d2208bfeeddcb2ef219b95", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 135, "avg_line_length": 75.44444444444444, "alnum_prop": 0.7356406480117821, "repo_name": "donaldinou/frontend", "id": "31352bb89f1d8a981329f384f00992044365303e", "size": "1392", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Viteloge/CoreBundle/Resources/descriptions/22091.html", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "3073" }, { "name": "CSS", "bytes": "111338" }, { "name": "HTML", "bytes": "58634405" }, { "name": "JavaScript", "bytes": "88564" }, { "name": "PHP", "bytes": "841919" } ], "symlink_target": "" }
// Copyright 2020 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * @fileoverview Component for ratio editor. */ import { Ratio } from 'domain/objects/ratio.model'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { EventBusGroup, EventBusService } from 'app-events/event-bus.service'; import { ObjectFormValidityChangeEvent } from 'app-events/app-events'; import { downgradeComponent } from '@angular/upgrade/static'; @Component({ selector: 'ratio-expression-editor', templateUrl: './ratio-expression-editor.component.html' }) export class RatioExpressionEditorComponent implements OnInit { // These properties are initialized using Angular lifecycle hooks // and we need to do non-null assertion, for more information see // https://github.com/oppia/oppia/wiki/Guide-on-defining-types#ts-7-1 @Input() modalId!: symbol; @Input() value!: number[]; @Output() valueChanged = new EventEmitter(); localValue!: { label: string }; warningText: string = ''; eventBusGroup: EventBusGroup; constructor(private eventBusService: EventBusService) { this.eventBusGroup = new EventBusGroup(this.eventBusService); } ngOnInit(): void { if (this.value === undefined || this.value === null) { this.value = [1, 1]; this.valueChanged.emit(this.value); } this.localValue = { label: Ratio.fromList(this.value).toAnswerString() }; } isValidRatio(value: string): boolean { try { this.value = Ratio.fromRawInputString(value).components; this.valueChanged.emit(this.value); this.warningText = ''; this.eventBusGroup.emit(new ObjectFormValidityChangeEvent({ modalId: this.modalId, value: false })); return true; } catch (parsingError: unknown) { if (parsingError instanceof Error) { this.warningText = parsingError.message; } this.eventBusGroup.emit(new ObjectFormValidityChangeEvent({ modalId: this.modalId, value: true })); return false; } } } angular.module('oppia').directive('ratioExpressionEditor', downgradeComponent({ component: RatioExpressionEditorComponent }) as angular.IDirectiveFactory);
{ "content_hash": "a76a21909c7339de28c7857dc7eebaf6", "timestamp": "", "source": "github", "line_count": 79, "max_line_length": 79, "avg_line_length": 35.050632911392405, "alnum_prop": 0.7049476345250993, "repo_name": "kevinlee12/oppia", "id": "df849792806c949172e6c88df951c82a96a351e7", "size": "2769", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "extensions/objects/templates/ratio-expression-editor.component.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "205771" }, { "name": "HTML", "bytes": "1835761" }, { "name": "JavaScript", "bytes": "1182599" }, { "name": "PEG.js", "bytes": "71377" }, { "name": "Python", "bytes": "13670639" }, { "name": "Shell", "bytes": "2239" }, { "name": "TypeScript", "bytes": "13024194" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <MvcSettings> <!--The namespace used by some of T4MVC's generated code--> <T4MVCNamespace>T4MVC</T4MVCNamespace> <!--The prefix used for things like MVC.Dinners.Name and MVC.Dinners.Delete(Model.DinnerID)--> <HelpersPrefix>MVC</HelpersPrefix> <!--Namespaces to be referenced by the generated code--> <ReferencedNamespaces> <!--<Namespace></Namespace>--> </ReferencedNamespaces> <!--The folder under the project that contains the areas--> <AreasFolder>Areas</AreasFolder> <!--You can list folders containing portable areas here--> <PortableAreas> <!--<Area></Area>--> </PortableAreas> <!--Name of folder in your project root that follows the FeatureFolder convention (controllers and views are placed within the same folder)--> <!--<FeatureFolderRootArea></FeatureFolderRootArea>--> <!--Names of areas which follow the FeatureFolder convention (controllers and views are placed within the same folder). Use <Area>*</Area> if you only use Areas with FeatureFolders--> <FeatureFolderAreas> <!--<Area></Area>--> </FeatureFolderAreas> <!--Choose whether you want to include an 'Areas' token when referring to areas. e.g. Assume the Area is called Blog and the Controller is Post: - When false use MVC.Blog.Post.etc... - When true use MVC.Areas.Blog.Post.etc...--> <IncludeAreasToken>False</IncludeAreasToken> <!--The folder under the project that contains the controllers--> <ControllersFolder>Controllers</ControllersFolder> <!--The folder under the project that contains the views--> <ViewsRootFolder>Views</ViewsRootFolder> <!--A regex which identifies a controller's filename, or the default suffix of 'Controller$'--> <ControllerNamePattern>Controller$</ControllerNamePattern> <!--Views in DisplayTemplates and EditorTemplates folders shouldn't be fully qualifed as it breaks the templated helper code--> <NonQualifiedViewFolders> <ViewFolder>DisplayTemplates</ViewFolder> <ViewFolder>EditorTemplates</ViewFolder> </NonQualifiedViewFolders> <!--If true, the T4MVC action result interface will be generated If false, the namespace of the interface must be referenced in the 'ReferencedNamespaces' setting--> <GenerateActionResultInterface>True</GenerateActionResultInterface> <!--If true, [new] overrides will be created for async actions on AsyncControllers This breaks the Go To Definition function for async actions.--> <SupportAsyncActions>False</SupportAsyncActions> <!--If true, use lower case tokens in routes for the area, controller and action names--> <UseLowercaseRoutes>False</UseLowercaseRoutes> <!--The namespace that the links are generated in (e.g. "Links", as in Links.Content.nerd_jpg)--> <LinksNamespace>Links</LinksNamespace> <!--If true, links to static files include a query string containing the file's last change time. This way, when the static file changes, the link changes and guarantees that the client will re-request the resource. e.g. when true, the link looks like: "/Content/nerd.jpg?2009-09-04T12:25:48" See http://mvccontrib.codeplex.com/workitem/7163 for potential issues with this feature--> <AddTimestampToStaticLinks>False</AddTimestampToStaticLinks> <!--Folders containing static files for which links are generated (e.g. Links.Scripts.Map_js)--> <StaticFilesFolders> <FileFolder>Scripts</FileFolder> <FileFolder>Content</FileFolder> </StaticFilesFolders> <!--If true, static file helpers are generated for all view folders. See https://t4mvc.codeplex.com/discussions/445358--> <AddAllViewsFoldersToStaticFilesFolders>False</AddAllViewsFoldersToStaticFilesFolders> <!--Static files to exclude from the generated links--> <ExcludedStaticFileExtensions> <Extension>.cs</Extension> <Extension>.cshtml</Extension> <Extension>.aspx</Extension> <Extension>.ascx</Extension> </ExcludedStaticFileExtensions> <!--Files to exclude from the generated views--> <ExcludedViewExtensions> <Extension>.cs</Extension> <Extension>.master</Extension> <Extension>.js</Extension> <Extension>.css</Extension> </ExcludedViewExtensions> <!--When creating links with T4MVC, it can force them to HTTPS if the action method you are linking to requires Http.--> <AttributeIndicatingHttps>System.Web.Mvc.RequireHttpsAttribute</AttributeIndicatingHttps> <GenerateSecureLinksInDebugMode>False</GenerateSecureLinksInDebugMode> <!--Set this to false to omit the generation of parameters for action methods.--> <GenerateParamsForActionMethods>True</GenerateParamsForActionMethods> <!--Set this to true to omit the generation of parameters for action methods as constants. Choose this or GenerateParamsForActionMethods.--> <GenerateParamsAsConstantsForActionMethods>False</GenerateParamsAsConstantsForActionMethods> <!--The suffix added to action method names for the property containing the parameters, for example ImportParams for the Import action method.--> <ParamsPropertySuffix>Params</ParamsPropertySuffix> <!--create explicit HtmlHelpers for rendering partials--> <ExplicitHtmlHelpersForPartials>False</ExplicitHtmlHelpersForPartials> <ExplicitHtmlHelpersForPartialsFormat>Render{0}</ExplicitHtmlHelpersForPartialsFormat> <!--If true,the template output will be split into multiple files.--> <SplitIntoMultipleFiles>True</SplitIntoMultipleFiles> </MvcSettings>
{ "content_hash": "1ca5716c28ddf3a420fdc7cdf8359eb3", "timestamp": "", "source": "github", "line_count": 92, "max_line_length": 144, "avg_line_length": 58.69565217391305, "alnum_prop": 0.7672222222222222, "repo_name": "dsilva609/Project-Ariel", "id": "7dd9e0fa29f7e92f792d8eff6e7605c96975e8b8", "size": "5402", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "UI/T4MVC.tt.settings.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP", "bytes": "93" }, { "name": "C#", "bytes": "298877" }, { "name": "CSS", "bytes": "41762" }, { "name": "CoffeeScript", "bytes": "4971" }, { "name": "JavaScript", "bytes": "120500" } ], "symlink_target": "" }
package com.ansorgit.plugins.bash.lang.psi.stubs.index; /** * User: jansorg * Date: 12.01.12 * Time: 13:31 */ public final class BashIndexVersion { private BashIndexVersion() { } public static int VERSION = 8; }
{ "content_hash": "7ecc10fca7e388827212108a1eaa1824", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 55, "avg_line_length": 17.692307692307693, "alnum_prop": 0.6652173913043479, "repo_name": "consulo/consulo-bash", "id": "8cb370dd81f18e74e3de0e331fb9443937432aba", "size": "230", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/ansorgit/plugins/bash/lang/psi/stubs/index/BashIndexVersion.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1413343" }, { "name": "Lex", "bytes": "27868" }, { "name": "Shell", "bytes": "310289" } ], "symlink_target": "" }
const accountSid = process.env.TWILIO_ACCOUNT_SID; const authToken = process.env.TWILIO_AUTH_TOKEN; const client = require('twilio')(accountSid, authToken); client .messages('MM800f449d0399ed014aae2bcc0cc2f2ec') .media.each(media => console.log(media.contentType));
{ "content_hash": "f635eee30fb676b231bda2ceaa37d959", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 56, "avg_line_length": 38.714285714285715, "alnum_prop": 0.7785977859778598, "repo_name": "TwilioDevEd/api-snippets", "id": "90591bc8254ebf5a7d64b6dc7f962e99190a9311", "size": "499", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "rest/media/list-get-example-1/list-get-example-1.3.x.js", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "637161" }, { "name": "C++", "bytes": "24856" }, { "name": "Go", "bytes": "7217" }, { "name": "HTML", "bytes": "335" }, { "name": "Java", "bytes": "912474" }, { "name": "JavaScript", "bytes": "512877" }, { "name": "M", "bytes": "147" }, { "name": "Objective-C", "bytes": "53325" }, { "name": "PHP", "bytes": "517186" }, { "name": "Python", "bytes": "442184" }, { "name": "Ruby", "bytes": "438928" }, { "name": "Shell", "bytes": "3854" }, { "name": "Swift", "bytes": "42345" }, { "name": "TypeScript", "bytes": "16767" } ], "symlink_target": "" }
#ifndef DLL_LINKAGE #define DLL_LINKAGE #endif namespace schnabel { class DLL_LINKAGE CylinderPrimitiveShapeConstructor : public PrimitiveShapeConstructor { public: size_t Identifier() const; unsigned int RequiredSamples() const; PrimitiveShape *Construct(const MiscLib::Vector< Vec3f > &points, const MiscLib::Vector< Vec3f > &normals) const; PrimitiveShape *Construct(const MiscLib::Vector< Vec3f > &samples) const; PrimitiveShape *Deserialize(std::istream *i, bool binary = true) const; size_t SerializedSize() const; }; } //...ns schnabel #endif
{ "content_hash": "b83808c5bb72999310d6547ea0ad483b", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 75, "avg_line_length": 25.82608695652174, "alnum_prop": 0.7222222222222222, "repo_name": "NUAAXXY/globOpt", "id": "189f5483b4630760986d0d99a4ff8cd96838b1ca", "size": "771", "binary": false, "copies": "2", "ref": "refs/heads/spatially_smooth", "path": "RAPter/external/schnabel07/CylinderPrimitiveShapeConstructor.h", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "79972" }, { "name": "C++", "bytes": "1358703" }, { "name": "CMake", "bytes": "31244" }, { "name": "CSS", "bytes": "950" }, { "name": "Gnuplot", "bytes": "518" }, { "name": "HTML", "bytes": "35161" }, { "name": "M", "bytes": "353" }, { "name": "Mathematica", "bytes": "2707" }, { "name": "Matlab", "bytes": "96797" }, { "name": "Objective-C", "bytes": "250" }, { "name": "Python", "bytes": "132051" }, { "name": "Shell", "bytes": "108272" }, { "name": "TeX", "bytes": "27525" } ], "symlink_target": "" }
package dk.statsbiblioteket.medieplatform.autonomous; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import dk.statsbiblioteket.medieplatform.autonomous.iterator.common.AttributeParsingEvent; import dk.statsbiblioteket.medieplatform.autonomous.iterator.common.ParsingEvent; import dk.statsbiblioteket.medieplatform.autonomous.iterator.common.TreeIterator; import java.util.Properties; public class SampleRunnableComponent extends TreeProcessorAbstractRunnableComponent { private static Logger log = LoggerFactory.getLogger(SampleRunnableComponent.class); /** * Constructor matching super. Super requires a properties to be able to initialise the tree iterator, if needed. * If you do not need the tree iterator, ignore properties. * * You can use properties for your own stuff as well * * @param properties properties * * @see #getProperties() */ public SampleRunnableComponent(Properties properties) { super(properties); } @Override public String getEventID() { //This is the event ID that correspond to the work done by this component. It will be added to the list of //events a batch have experienced when the work is completed (along with information about success or failure) return "Batch_Sampled"; } @Override public void doWorkOnItem(Batch batch, ResultCollector resultCollector) throws Exception { //This is the working method of the component //IT REALLY MUST BE THREAD SAFE. Multiple threads can invoke this concurrently. Do not use instance variables! //Create a tree iterator for the batch. It will be created based on the properties that is handled in the constructor TreeIterator iterator = createIterator(batch); //The work of this component is just to count the number of files and directories int numberOfFiles = 0; int numberOfDirectories = 0; while (iterator.hasNext()) { ParsingEvent next = iterator.next(); switch (next.getType()) { case NodeBegin: { //This is the event when we enter a new "directory" //After this event, there will come a series of AttributeEvents, corresponding to the files in the folder //Then there will come a NodeBegin event if there is any subfolders, and the process repeats numberOfDirectories += 1; break; } case NodeEnd: { //This is the event when we have handled all files and subfolders in a folder. This event is //thrown just before we leave the folder break; } case Attribute: { //This represents a file in the tree numberOfFiles += 1; //Cast the event to a attributeEvent AttributeParsingEvent attributeEvent = (AttributeParsingEvent) next; //Check that the checksum is readable. String checksum = attributeEvent.getChecksum(); if (checksum == null) { //If there is no checksum, report a failure. resultCollector.addFailure( attributeEvent.getName(), "filestructure", getClass().getSimpleName(), "Missing checksum"); } break; } } } if (numberOfFiles < 5) { resultCollector.addFailure( batch.getFullID(), "filestructure", getClass().getSimpleName(), "There are to few files in the batch"); } } }
{ "content_hash": "4eae1c9eb4e30dca57e74da62460229c", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 125, "avg_line_length": 40.4639175257732, "alnum_prop": 0.5971974522292993, "repo_name": "ravn/newspaper-batch-event-framework", "id": "1110cc9875a375c990b407c10009ef147ced5955", "size": "3925", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "newspaper-batch-event-framework/sample-autonomous-component/src/main/java/dk/statsbiblioteket/medieplatform/autonomous/SampleRunnableComponent.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "489611" }, { "name": "Shell", "bytes": "175" }, { "name": "XSLT", "bytes": "545" } ], "symlink_target": "" }
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace Surging.Core.Caching { using System; using System.Reflection; /// <summary> /// 一个强类型的资源类,用于查找本地化的字符串等。 /// </summary> // 此类是由 StronglyTypedResourceBuilder // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // (以 /str 作为命令选项),或重新生成 VS 项目。 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class CachingResources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal CachingResources() { } /// <summary> /// 返回此类使用的缓存的 ResourceManager 实例。 /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Surging.Core.Caching.CachingResources", typeof(CachingResources).GetTypeInfo().Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// 使用此强类型资源类,为所有资源查找 /// 重写当前线程的 CurrentUICulture 属性。 /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// 查找类似 &quot;{0}&quot;参数不能为空 的本地化字符串。 /// </summary> internal static string ArgumentIsNullOrWhitespace { get { return ResourceManager.GetString("ArgumentIsNullOrWhitespace", resourceCulture); } } /// <summary> /// 查找类似 调用远程配置终结点发生错误: {0} - {1} 的本地化字符串。 /// </summary> internal static string HttpException { get { return ResourceManager.GetString("HttpException", resourceCulture); } } /// <summary> /// 查找类似 {0} 不能以&apos;{1}&apos;结束 的本地化字符串。 /// </summary> internal static string InvalidEndCharacter { get { return ResourceManager.GetString("InvalidEndCharacter", resourceCulture); } } /// <summary> /// 查找类似 初始化配置{0}与{1}类型不匹配 的本地化字符串。 /// </summary> internal static string InvalidProviderTypeException { get { return ResourceManager.GetString("InvalidProviderTypeException", resourceCulture); } } /// <summary> /// 查找类似 {0} 不能以&apos;{1}&apos;开始 的本地化字符串。 /// </summary> internal static string InvalidStartCharacter { get { return ResourceManager.GetString("InvalidStartCharacter", resourceCulture); } } /// <summary> /// 查找类似 不能解析JSON文本,行号 &apos;{0}&apos;: &apos;{1}&apos;. 的本地化字符串。 /// </summary> internal static string JSONParseException { get { return ResourceManager.GetString("JSONParseException", resourceCulture); } } /// <summary> /// 查找类似 此&apos;{0}&apos; JSON 令牌不支持,路径&apos;{1}&apos;,行&apos;{2}&apos;,位置&apos;{3}&apos; 的本地化字符串。 /// </summary> internal static string UnsupportedJSONToken { get { return ResourceManager.GetString("UnsupportedJSONToken", resourceCulture); } } } }
{ "content_hash": "3ec50602e2c7448292f6a51af235972f", "timestamp": "", "source": "github", "line_count": 127, "max_line_length": 203, "avg_line_length": 36.63779527559055, "alnum_prop": 0.556415215989684, "repo_name": "Damon-Liu/surging", "id": "8505a2a59685fbbf86059c4d8e9af87261f1d55d", "size": "5295", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Surging.Core/Surging.Core.Caching/CachingResources.Designer.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "833376" }, { "name": "CSS", "bytes": "214943" }, { "name": "JavaScript", "bytes": "82937" }, { "name": "PowerShell", "bytes": "468" }, { "name": "Smarty", "bytes": "8169" } ], "symlink_target": "" }
package org.apache.flink.contrib.streaming.state; import org.apache.flink.api.common.ExecutionConfig; import org.apache.flink.api.common.JobID; import org.apache.flink.api.common.state.ValueState; import org.apache.flink.api.common.state.ValueStateDescriptor; import org.apache.flink.api.common.typeutils.base.IntSerializer; import org.apache.flink.core.testutils.OneShotLatch; import org.apache.flink.runtime.checkpoint.CheckpointOptions; import org.apache.flink.runtime.execution.Environment; import org.apache.flink.runtime.operators.testutils.DummyEnvironment; import org.apache.flink.runtime.query.TaskKvStateRegistry; import org.apache.flink.runtime.state.AbstractKeyedStateBackend; import org.apache.flink.runtime.state.IncrementalKeyedStateHandle; import org.apache.flink.runtime.state.KeyGroupRange; import org.apache.flink.runtime.state.KeyedStateHandle; import org.apache.flink.runtime.state.SharedStateRegistry; import org.apache.flink.runtime.state.StateBackendTestBase; import org.apache.flink.runtime.state.StateHandleID; import org.apache.flink.runtime.state.StreamStateHandle; import org.apache.flink.runtime.state.VoidNamespace; import org.apache.flink.runtime.state.VoidNamespaceSerializer; import org.apache.flink.runtime.state.filesystem.FsStateBackend; import org.apache.flink.runtime.util.BlockerCheckpointStreamFactory; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.io.filefilter.IOFileFilter; import org.junit.After; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.mockito.Mockito; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.rocksdb.ColumnFamilyDescriptor; import org.rocksdb.ColumnFamilyHandle; import org.rocksdb.ColumnFamilyOptions; import org.rocksdb.DBOptions; import org.rocksdb.ReadOptions; import org.rocksdb.RocksDB; import org.rocksdb.RocksIterator; import org.rocksdb.RocksObject; import org.rocksdb.Snapshot; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.concurrent.RunnableFuture; import static junit.framework.TestCase.assertNotNull; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.reset; import static org.mockito.Mockito.verify; import static org.mockito.internal.verification.VerificationModeFactory.times; import static org.powermock.api.mockito.PowerMockito.mock; import static org.powermock.api.mockito.PowerMockito.spy; /** * Tests for the partitioned state part of {@link RocksDBStateBackend}. */ @RunWith(Parameterized.class) public class RocksDBStateBackendTest extends StateBackendTestBase<RocksDBStateBackend> { private OneShotLatch blocker; private OneShotLatch waiter; private BlockerCheckpointStreamFactory testStreamFactory; private RocksDBKeyedStateBackend<Integer> keyedStateBackend; private List<RocksObject> allCreatedCloseables; private ValueState<Integer> testState1; private ValueState<String> testState2; @Parameterized.Parameters(name = "Incremental checkpointing: {0}") public static Collection<Boolean> parameters() { return Arrays.asList(false, true); } @Parameterized.Parameter public boolean enableIncrementalCheckpointing; @Rule public TemporaryFolder tempFolder = new TemporaryFolder(); // Store it because we need it for the cleanup test. String dbPath; @Override protected RocksDBStateBackend getStateBackend() throws IOException { dbPath = tempFolder.newFolder().getAbsolutePath(); String checkpointPath = tempFolder.newFolder().toURI().toString(); RocksDBStateBackend backend = new RocksDBStateBackend(new FsStateBackend(checkpointPath), enableIncrementalCheckpointing); backend.setDbStoragePath(dbPath); return backend; } // small safety net for instance cleanups, so that no native objects are left @After public void cleanupRocksDB() { if (keyedStateBackend != null) { IOUtils.closeQuietly(keyedStateBackend); keyedStateBackend.dispose(); } if (allCreatedCloseables != null) { for (RocksObject rocksCloseable : allCreatedCloseables) { verify(rocksCloseable, times(1)).close(); } allCreatedCloseables = null; } } public void setupRocksKeyedStateBackend() throws Exception { blocker = new OneShotLatch(); waiter = new OneShotLatch(); testStreamFactory = new BlockerCheckpointStreamFactory(1024 * 1024); testStreamFactory.setBlockerLatch(blocker); testStreamFactory.setWaiterLatch(waiter); testStreamFactory.setAfterNumberInvocations(10); RocksDBStateBackend backend = getStateBackend(); Environment env = new DummyEnvironment("TestTask", 1, 0); keyedStateBackend = (RocksDBKeyedStateBackend<Integer>) backend.createKeyedStateBackend( env, new JobID(), "Test", IntSerializer.INSTANCE, 2, new KeyGroupRange(0, 1), mock(TaskKvStateRegistry.class)); keyedStateBackend.restore(null); testState1 = keyedStateBackend.getPartitionedState( VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE, new ValueStateDescriptor<>("TestState-1", Integer.class, 0)); testState2 = keyedStateBackend.getPartitionedState( VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE, new ValueStateDescriptor<>("TestState-2", String.class, "")); allCreatedCloseables = new ArrayList<>(); keyedStateBackend.db = spy(keyedStateBackend.db); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { RocksIterator rocksIterator = spy((RocksIterator) invocationOnMock.callRealMethod()); allCreatedCloseables.add(rocksIterator); return rocksIterator; } }).when(keyedStateBackend.db).newIterator(any(ColumnFamilyHandle.class), any(ReadOptions.class)); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { Snapshot snapshot = spy((Snapshot) invocationOnMock.callRealMethod()); allCreatedCloseables.add(snapshot); return snapshot; } }).when(keyedStateBackend.db).getSnapshot(); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { ColumnFamilyHandle snapshot = spy((ColumnFamilyHandle) invocationOnMock.callRealMethod()); allCreatedCloseables.add(snapshot); return snapshot; } }).when(keyedStateBackend.db).createColumnFamily(any(ColumnFamilyDescriptor.class)); for (int i = 0; i < 100; ++i) { keyedStateBackend.setCurrentKey(i); testState1.update(4200 + i); testState2.update("S-" + (4200 + i)); } } @Test public void testCorrectMergeOperatorSet() throws IOException { final ColumnFamilyOptions columnFamilyOptions = spy(new ColumnFamilyOptions()); RocksDBKeyedStateBackend<Integer> test = null; try { test = new RocksDBKeyedStateBackend<>( "test", Thread.currentThread().getContextClassLoader(), tempFolder.newFolder(), mock(DBOptions.class), columnFamilyOptions, mock(TaskKvStateRegistry.class), IntSerializer.INSTANCE, 1, new KeyGroupRange(0, 0), new ExecutionConfig(), enableIncrementalCheckpointing); verify(columnFamilyOptions, Mockito.times(1)) .setMergeOperatorName(RocksDBKeyedStateBackend.MERGE_OPERATOR_NAME); } finally { if (test != null) { IOUtils.closeQuietly(test); test.dispose(); } columnFamilyOptions.close(); } } @Test public void testReleasingSnapshotAfterBackendClosed() throws Exception { setupRocksKeyedStateBackend(); try { RunnableFuture<KeyedStateHandle> snapshot = keyedStateBackend.snapshot(0L, 0L, testStreamFactory, CheckpointOptions.forFullCheckpoint()); RocksDB spyDB = keyedStateBackend.db; if (!enableIncrementalCheckpointing) { verify(spyDB, times(1)).getSnapshot(); verify(spyDB, times(0)).releaseSnapshot(any(Snapshot.class)); } //Ensure every RocksObjects not closed yet for (RocksObject rocksCloseable : allCreatedCloseables) { verify(rocksCloseable, times(0)).close(); } snapshot.cancel(true); this.keyedStateBackend.dispose(); verify(spyDB, times(1)).close(); assertEquals(null, keyedStateBackend.db); //Ensure every RocksObjects was closed exactly once for (RocksObject rocksCloseable : allCreatedCloseables) { verify(rocksCloseable, times(1)).close(); } } finally { keyedStateBackend.dispose(); keyedStateBackend = null; } } @Test public void testDismissingSnapshot() throws Exception { setupRocksKeyedStateBackend(); try { RunnableFuture<KeyedStateHandle> snapshot = keyedStateBackend.snapshot(0L, 0L, testStreamFactory, CheckpointOptions.forFullCheckpoint()); snapshot.cancel(true); verifyRocksObjectsReleased(); } finally { this.keyedStateBackend.dispose(); this.keyedStateBackend = null; } } @Test public void testDismissingSnapshotNotRunnable() throws Exception { setupRocksKeyedStateBackend(); try { RunnableFuture<KeyedStateHandle> snapshot = keyedStateBackend.snapshot(0L, 0L, testStreamFactory, CheckpointOptions.forFullCheckpoint()); snapshot.cancel(true); Thread asyncSnapshotThread = new Thread(snapshot); asyncSnapshotThread.start(); try { snapshot.get(); fail(); } catch (Exception ignored) { } asyncSnapshotThread.join(); verifyRocksObjectsReleased(); } finally { this.keyedStateBackend.dispose(); this.keyedStateBackend = null; } } @Test public void testCompletingSnapshot() throws Exception { setupRocksKeyedStateBackend(); try { RunnableFuture<KeyedStateHandle> snapshot = keyedStateBackend.snapshot(0L, 0L, testStreamFactory, CheckpointOptions.forFullCheckpoint()); Thread asyncSnapshotThread = new Thread(snapshot); asyncSnapshotThread.start(); waiter.await(); // wait for snapshot to run waiter.reset(); runStateUpdates(); blocker.trigger(); // allow checkpointing to start writing waiter.await(); // wait for snapshot stream writing to run KeyedStateHandle keyedStateHandle = snapshot.get(); assertNotNull(keyedStateHandle); assertTrue(keyedStateHandle.getStateSize() > 0); assertEquals(2, keyedStateHandle.getKeyGroupRange().getNumberOfKeyGroups()); assertTrue(testStreamFactory.getLastCreatedStream().isClosed()); asyncSnapshotThread.join(); verifyRocksObjectsReleased(); } finally { this.keyedStateBackend.dispose(); this.keyedStateBackend = null; } } @Test public void testCancelRunningSnapshot() throws Exception { setupRocksKeyedStateBackend(); try { RunnableFuture<KeyedStateHandle> snapshot = keyedStateBackend.snapshot(0L, 0L, testStreamFactory, CheckpointOptions.forFullCheckpoint()); Thread asyncSnapshotThread = new Thread(snapshot); asyncSnapshotThread.start(); waiter.await(); // wait for snapshot to run waiter.reset(); runStateUpdates(); snapshot.cancel(true); blocker.trigger(); // allow checkpointing to start writing assertTrue(testStreamFactory.getLastCreatedStream().isClosed()); waiter.await(); // wait for snapshot stream writing to run try { snapshot.get(); fail(); } catch (Exception ignored) { } asyncSnapshotThread.join(); verifyRocksObjectsReleased(); } finally { this.keyedStateBackend.dispose(); this.keyedStateBackend = null; } } @Test public void testDisposeDeletesAllDirectories() throws Exception { AbstractKeyedStateBackend<Integer> backend = createKeyedBackend(IntSerializer.INSTANCE); Collection<File> allFilesInDbDir = FileUtils.listFilesAndDirs(new File(dbPath), new AcceptAllFilter(), new AcceptAllFilter()); try { ValueStateDescriptor<String> kvId = new ValueStateDescriptor<>("id", String.class, null); kvId.initializeSerializerUnlessSet(new ExecutionConfig()); ValueState<String> state = backend.getPartitionedState(VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE, kvId); backend.setCurrentKey(1); state.update("Hello"); // more than just the root directory assertTrue(allFilesInDbDir.size() > 1); } finally { IOUtils.closeQuietly(backend); backend.dispose(); } allFilesInDbDir = FileUtils.listFilesAndDirs(new File(dbPath), new AcceptAllFilter(), new AcceptAllFilter()); // just the root directory left assertEquals(1, allFilesInDbDir.size()); } @Test public void testSharedIncrementalStateDeRegistration() throws Exception { if (enableIncrementalCheckpointing) { AbstractKeyedStateBackend<Integer> backend = createKeyedBackend(IntSerializer.INSTANCE); try { ValueStateDescriptor<String> kvId = new ValueStateDescriptor<>("id", String.class, null); kvId.initializeSerializerUnlessSet(new ExecutionConfig()); ValueState<String> state = backend.getPartitionedState(VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE, kvId); Queue<IncrementalKeyedStateHandle> previousStateHandles = new LinkedList<>(); SharedStateRegistry sharedStateRegistry = spy(new SharedStateRegistry()); for (int checkpointId = 0; checkpointId < 3; ++checkpointId) { reset(sharedStateRegistry); backend.setCurrentKey(checkpointId); state.update("Hello-" + checkpointId); RunnableFuture<KeyedStateHandle> snapshot = backend.snapshot( checkpointId, checkpointId, createStreamFactory(), CheckpointOptions.forFullCheckpoint()); snapshot.run(); IncrementalKeyedStateHandle stateHandle = (IncrementalKeyedStateHandle) snapshot.get(); Map<StateHandleID, StreamStateHandle> sharedState = new HashMap<>(stateHandle.getSharedState()); stateHandle.registerSharedStates(sharedStateRegistry); for (Map.Entry<StateHandleID, StreamStateHandle> e : sharedState.entrySet()) { verify(sharedStateRegistry).registerReference( stateHandle.createSharedStateRegistryKeyFromFileName(e.getKey()), e.getValue()); } previousStateHandles.add(stateHandle); backend.notifyCheckpointComplete(checkpointId); //----------------------------------------------------------------- if (previousStateHandles.size() > 1) { checkRemove(previousStateHandles.remove(), sharedStateRegistry); } } while (!previousStateHandles.isEmpty()) { reset(sharedStateRegistry); checkRemove(previousStateHandles.remove(), sharedStateRegistry); } } finally { IOUtils.closeQuietly(backend); backend.dispose(); } } } private void checkRemove(IncrementalKeyedStateHandle remove, SharedStateRegistry registry) throws Exception { for (StateHandleID id : remove.getSharedState().keySet()) { verify(registry, times(0)).unregisterReference( remove.createSharedStateRegistryKeyFromFileName(id)); } remove.discardState(); for (StateHandleID id : remove.getSharedState().keySet()) { verify(registry).unregisterReference( remove.createSharedStateRegistryKeyFromFileName(id)); } } private void runStateUpdates() throws Exception{ for (int i = 50; i < 150; ++i) { if (i % 10 == 0) { Thread.sleep(1); } keyedStateBackend.setCurrentKey(i); testState1.update(4200 + i); testState2.update("S-" + (4200 + i)); } } private void verifyRocksObjectsReleased() { //Ensure every RocksObject was closed exactly once for (RocksObject rocksCloseable : allCreatedCloseables) { verify(rocksCloseable, times(1)).close(); } assertNotNull(null, keyedStateBackend.db); RocksDB spyDB = keyedStateBackend.db; if (!enableIncrementalCheckpointing) { verify(spyDB, times(1)).getSnapshot(); verify(spyDB, times(1)).releaseSnapshot(any(Snapshot.class)); } keyedStateBackend.dispose(); verify(spyDB, times(1)).close(); assertEquals(null, keyedStateBackend.db); } private static class AcceptAllFilter implements IOFileFilter { @Override public boolean accept(File file) { return true; } @Override public boolean accept(File file, String s) { return true; } } }
{ "content_hash": "01953d8473241f43ae347ff15a161b83", "timestamp": "", "source": "github", "line_count": 510, "max_line_length": 140, "avg_line_length": 32.19019607843137, "alnum_prop": 0.7567155996832552, "repo_name": "haohui/flink", "id": "a2ec05213f4f97505f00e13c08135e6dc13a9b65", "size": "17222", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "flink-contrib/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackendTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "4792" }, { "name": "CSS", "bytes": "18100" }, { "name": "CoffeeScript", "bytes": "89007" }, { "name": "HTML", "bytes": "87854" }, { "name": "Java", "bytes": "32519040" }, { "name": "JavaScript", "bytes": "8267" }, { "name": "Python", "bytes": "166860" }, { "name": "Scala", "bytes": "6079873" }, { "name": "Shell", "bytes": "95893" } ], "symlink_target": "" }
package com.episode6.hackit.mockspresso.basic.plugin.simple; import com.episode6.hackit.mockspresso.api.InjectionConfig; import com.episode6.hackit.mockspresso.reflect.TypeToken; import org.jetbrains.annotations.Nullable; import java.lang.annotation.Annotation; import java.lang.reflect.Constructor; import java.util.Collections; import java.util.List; /** * A very simple implementation of InjectionConfig. Chooses the constructor with the least number of arguments, * and provides no injectable field annotations. * * @deprecated This functionality is now exposed by the kotlin extension method `injectBySimpleConfig()` and its * JavaSupport counterpart * {@link com.episode6.hackit.mockspresso.basic.plugin.MockspressoBasicPluginsJavaSupport#injectBySimpleConfig()} * * This class will be marked internal/protected in a future release */ @Deprecated public class SimpleInjectionConfig implements InjectionConfig { private final ConstructorSelector mConstructorSelector = new SimpleConstructorSelector(); @Override public ConstructorSelector provideConstructorSelector() { return mConstructorSelector; } @Override public List<Class<? extends Annotation>> provideInjectableFieldAnnotations() { return Collections.emptyList(); } @Override public List<Class<? extends Annotation>> provideInjectableMethodAnnotations() { return Collections.emptyList(); } private static class SimpleConstructorSelector implements ConstructorSelector { @SuppressWarnings("unchecked") @Override public @Nullable <T> Constructor<T> chooseConstructor(TypeToken<T> typeToken) { Constructor<T> found = null; for (Constructor<?> constructor : typeToken.getRawType().getDeclaredConstructors()) { if (found == null || constructor.getParameterCount() < found.getParameterCount()) { found = (Constructor<T>) constructor; } } return found; } } }
{ "content_hash": "81c74a48ca76cf5798dff5fcb392556e", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 113, "avg_line_length": 34.55357142857143, "alnum_prop": 0.765374677002584, "repo_name": "episode6/mockspresso", "id": "5fee3598b67bd8076799515a6c7328757a2d4d1b", "size": "1935", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "mockspresso-basic-plugins/src/main/java/com/episode6/hackit/mockspresso/basic/plugin/simple/SimpleInjectionConfig.java", "mode": "33188", "license": "mit", "language": [ { "name": "Groovy", "bytes": "5352" }, { "name": "Java", "bytes": "547527" }, { "name": "Kotlin", "bytes": "57674" } ], "symlink_target": "" }
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__new_fscanf_53b.cpp Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__new.label.xml Template File: sources-sink-53b.tmpl.cpp */ /* * @description * CWE: 680 Integer Overflow to Buffer Overflow * BadSource: fscanf Read data from the console using fscanf() * GoodSource: Small number greater than zero that will not cause an integer overflow in the sink * Sink: * BadSink : Attempt to allocate array using length value from source * Flow Variant: 53 Data flow: data passed as an argument from one function through two others to a fourth; all four functions are in different source files * * */ #include "std_testcase.h" namespace CWE680_Integer_Overflow_to_Buffer_Overflow__new_fscanf_53 { /* all the sinks are the same, we just want to know where the hit originated if a tool flags one */ #ifndef OMITBAD /* bad function declaration */ void badSink_c(int data); void badSink_b(int data) { badSink_c(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void goodG2BSink_c(int data); void goodG2BSink_b(int data) { goodG2BSink_c(data); } #endif /* OMITGOOD */ } /* close namespace */
{ "content_hash": "a51b2ec3392117bf8ec9c5069e1e50db", "timestamp": "", "source": "github", "line_count": 48, "max_line_length": 156, "avg_line_length": 27.333333333333332, "alnum_prop": 0.7111280487804879, "repo_name": "JianpingZeng/xcc", "id": "c32677d4e79009632f89ac27bef1e65bb1aecd28", "size": "1312", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "xcc/test/juliet/testcases/CWE680_Integer_Overflow_to_Buffer_Overflow/CWE680_Integer_Overflow_to_Buffer_Overflow__new_fscanf_53b.cpp", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
package com.amazonaws.services.rds.model.transform; import javax.xml.stream.events.XMLEvent; import javax.annotation.Generated; import com.amazonaws.services.rds.model.*; import com.amazonaws.transform.Unmarshaller; import com.amazonaws.transform.StaxUnmarshallerContext; import com.amazonaws.transform.SimpleTypeStaxUnmarshallers.*; /** * RemoveTagsFromResourceResult StAX Unmarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RemoveTagsFromResourceResultStaxUnmarshaller implements Unmarshaller<RemoveTagsFromResourceResult, StaxUnmarshallerContext> { public RemoveTagsFromResourceResult unmarshall(StaxUnmarshallerContext context) throws Exception { RemoveTagsFromResourceResult removeTagsFromResourceResult = new RemoveTagsFromResourceResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return removeTagsFromResourceResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return removeTagsFromResourceResult; } } } } private static RemoveTagsFromResourceResultStaxUnmarshaller instance; public static RemoveTagsFromResourceResultStaxUnmarshaller getInstance() { if (instance == null) instance = new RemoveTagsFromResourceResultStaxUnmarshaller(); return instance; } }
{ "content_hash": "7b7bc204165a0650c86a804806116cd3", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 138, "avg_line_length": 34.62, "alnum_prop": 0.7128827267475448, "repo_name": "jentfoo/aws-sdk-java", "id": "de72d5698274da58971995362c254c5703f585c0", "size": "2311", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/transform/RemoveTagsFromResourceResultStaxUnmarshaller.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "270" }, { "name": "FreeMarker", "bytes": "173637" }, { "name": "Gherkin", "bytes": "25063" }, { "name": "Java", "bytes": "356214839" }, { "name": "Scilab", "bytes": "3924" }, { "name": "Shell", "bytes": "295" } ], "symlink_target": "" }
NAMESPACE_MICROSOFT_XBOX_SERVICES_MULTIPLAYER_MANAGER_BEGIN /// <summary> /// Notifies the title when a new host member has been set. /// </summary> public ref class HostChangedEventArgs sealed : MultiplayerEventArgs { public: /// <summary> /// The new host member. If an existing host leaves, the HostMember will be nullptr. /// </summary> property MultiplayerMember^ HostMember { MultiplayerMember^ get(); } internal: /// <summary> /// Internal function. /// </summary> HostChangedEventArgs( _In_ std::shared_ptr<xbox::services::multiplayer::manager::host_changed_event_args> cppObj ); std::shared_ptr<xbox::services::multiplayer::manager::host_changed_event_args> GetCppObj() const; private: std::shared_ptr<xbox::services::multiplayer::manager::host_changed_event_args> m_cppObj; }; NAMESPACE_MICROSOFT_XBOX_SERVICES_MULTIPLAYER_MANAGER_END
{ "content_hash": "477103951d7e502d4e8da4812f159413", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 101, "avg_line_length": 28, "alnum_prop": 0.6937229437229437, "repo_name": "jasonsandlin/xbox-live-api", "id": "f04a1474972df82304a05a2b3cf23d814718e013", "size": "1157", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "Source/Services/Multiplayer/Manager/WinRT/HostChangedEventArgs_WinRT.h", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "49226" }, { "name": "C", "bytes": "54230" }, { "name": "C#", "bytes": "58001" }, { "name": "C++", "bytes": "7070743" }, { "name": "CMake", "bytes": "74816" }, { "name": "CSS", "bytes": "373451" }, { "name": "HTML", "bytes": "14245" }, { "name": "JavaScript", "bytes": "16072" }, { "name": "Objective-C", "bytes": "33498" }, { "name": "Roff", "bytes": "1726" } ], "symlink_target": "" }
package com.countrygamer.pvz.entities.mobs.plants; import java.util.ArrayList; import java.util.List; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.World; import com.countrygamer.pvz.PvZ; public class EntityMoonShroom extends EntityShroomBase { public EntityMoonShroom(World par1World) { super(par1World, new ItemStack(PvZ.nightPlants, 1, 3)); } public void dropFewItems(boolean par1, int par2) { dropItem(PvZ.moonlight, 2); } public void onLivingUpdate() { super.onLivingUpdate(); int r = 3; List<?> rEntities = this.worldObj.getEntitiesWithinAABB( EntityLivingBase.class, AxisAlignedBB.getBoundingBox(this.posX - r, this.posY - r, this.posZ - r, this.posX + r, this.posY + r, this.posZ + r)); ArrayList<EntityLivingBase> otherMob = new ArrayList<EntityLivingBase>(); boolean wave = false; for (int i = 0; i < rEntities.size(); i++) { EntityLivingBase ent = (EntityLivingBase) rEntities.get(i); if (ent.getCreatureAttribute() == PvZ.plantAttribute) { if (ent.getAITarget() != null) { wave = true; break; } wave = false; } else { rEntities.remove(ent); otherMob.add(ent); } } double z; /* * if (!wave) { for (EntityLivingBase ent : rEntities) { if ((ent * instanceof EntityShroomBase)) { if (ent.getHealth() != * ent.getMaxHealth()) { double x = ent.posX + 0.5D; double y = ent.posY * + 0.5D; z = ent.posZ + 0.5D; } } * * } * * } else { for (EntityLivingBase ent : otherMob) { * System.out.println("slowness"); ent.addPotionEffect(new * PotionEffect(Potion.moveSlowdown.getId(), 500, 5)); } } */ } }
{ "content_hash": "71f053d78d843564cafd7ddd40f27819", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 75, "avg_line_length": 27.983870967741936, "alnum_prop": 0.6714697406340058, "repo_name": "TheTemportalist/CountryGamer_PlantsVsZombies", "id": "b9bbf7e1935c8b3a9498ba3cee70042afa3579f7", "size": "1735", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "java/com/countrygamer/pvz/entities/mobs/plants/EntityMoonShroom.java", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "247968" } ], "symlink_target": "" }
package io.cattle.platform.docker.transform; public class DockerInspectTransformVolume { String containerPath; String accessMode; String driver; String name; String externalId; public DockerInspectTransformVolume(String cp, String am, String dr, String name, String externalId) { super(); containerPath = cp; accessMode = am; driver = dr; this.name = name; this.externalId = externalId; } public String getContainerPath() { return containerPath; } public void setContainerPath(String containerPath) { this.containerPath = containerPath; } public String getAccessMode() { return accessMode; } public void setAccessMode(String accessMode) { this.accessMode = accessMode; } public String getDriver() { return driver; } public void setDriver(String driver) { this.driver = driver; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getExternalId() { return externalId; } public void setExternalId(String externalId) { this.externalId = externalId; } }
{ "content_hash": "9843891ebfc10cb3a22f34d208583a83", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 106, "avg_line_length": 21.305084745762713, "alnum_prop": 0.6268894192521878, "repo_name": "cloudnautique/cattle", "id": "648893edfc604322f6509873b1f7fb10627f6283", "size": "1257", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "modules/caas/common/src/main/java/io/cattle/platform/docker/transform/DockerInspectTransformVolume.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "1119936" }, { "name": "Java", "bytes": "4489276" }, { "name": "Makefile", "bytes": "308" }, { "name": "Python", "bytes": "883072" }, { "name": "Shell", "bytes": "19470" } ], "symlink_target": "" }
'format es6'; let name = 'randomuserGateway'; import { registerService } from 'nn-ng-utils'; class RandomuserGatewayService { constructor( ctx, $http ) { //noinspection BadExpressionStatementJS 'ngInject'; this.ctx = ctx; this.$http = $http; } getUsers () { return this.ctx.$q(( resolve, reject ) => { this.$http.get( 'http://api.randomuser.me/?results=10' ) .then( response => { let stripSeed = item => item.user; let usersWithoutSeed = response.data.results.map( stripSeed ); resolve( usersWithoutSeed ); }).catch( error => reject( error )); }); } } registerService( name, RandomuserGatewayService ); export default RandomuserGatewayService;
{ "content_hash": "f8eaf9bbc993509d7d0356b2cb24a63f", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 70, "avg_line_length": 24.166666666666668, "alnum_prop": 0.64, "repo_name": "sgwatgit/ng-next-example", "id": "e56ca9253861f12d5ddbae9e1e4810b6d5009f15", "size": "765", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "front/main/app/randomuser/gateways/randomuser-gateway.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2223" }, { "name": "HTML", "bytes": "20667" }, { "name": "JavaScript", "bytes": "159690" }, { "name": "Shell", "bytes": "1866" } ], "symlink_target": "" }
////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2008-2012, Shane Liesegang // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of the copyright holder nor the names of any // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. ////////////////////////////////////////////////////////////////////////////// #pragma once #include "../Messaging/Message.h" #include "../Util/MathUtil.h" #include <queue> //Singleton shortcut #define theSwitchboard Switchboard::GetInstance() ///The central class which handles delivery of Messages /** * This class is where all Messages pass through to get to their subscribers. * It manages subscribers lists, delivery, and broadcast of messages. * * Like the World, it uses the singleton pattern; you can't actually declare * a new instance of a Switchboard. To access messaging in your world, use * "theSwitchboard" to retrieve the singleton object. "theSwitchboard" is * defined in both C++ and Lua. * * If you're not familiar with the singleton pattern, this paper is a good * starting point. (Don't be afraid that it's written by Microsoft.) * * http://msdn.microsoft.com/en-us/library/ms954629.aspx */ class Switchboard { public: /** * Used to access the singleton instance of this class. As a shortcut, * you can just use "theSwitchboard". * * @return The singleton */ static Switchboard& GetInstance(); /** * Send a Message to all the MessageListeners who have subscribed to * Messages of that particular name. All Messages are sent at the end * of the current frame, outside the Update loop. (Which means you can * safely remove objects from the World in response to a Message.) * * @param message The message to send */ void Broadcast(Message* message); /** * Lets you send a Message after a designated delay. Oftentimes you want * something to happen a little while *after* an event, and it can be * be easier to simply defer the sending of the Message rather than * make the MessageListener responsible for implementing the delay. * * @param message The message to send * @param delay Amount of time (in seconds) to wait before sending */ void DeferredBroadcast(Message* message, float delay); /** * Takes the same form as the Renderable::Update function, but Switchboard * is not a Renderable. This function gets called by the World to let * the Switchboard know about the passage of time so it can manage * deferred broadcasts. * * @param dt The amount of time elapsed since the last frame */ void Update(float dt); /** * Sign a MessageListener up to receive notifications when Messages of * a specific class are broadcast through the Switchboard. * * @param subscriber The MessageListener to sign up * @param messageType The name of the Message it's interested in * @return True if the MessageListener was successfully subscribed -- * could be false if the subscription was attempted while messages were * being delivered (in which case the subscription will start when this * round of delivery is done) or if the MessageListener was already * subscribed to Messages of that name. */ const bool SubscribeTo(MessageListener* subscriber, const String& messageType); /** * Lets a MessageListener stop receiving notifications of specific * name. MessageListeners automatically unsubscribe from all their Messages * when their destructors are called, so you don't have to worry about * this when destroying an object; this would only be called directly in * user code when you no longer care about a particular Message. * * @param subscriber The MessageListener that doesn't want to get these * Messages anymore * @param messageType The name of the Message they're tired of hearing * about * @return True if the MessageListener was successfully unsubscribed -- * could be false if the unsubscription was attempted while messages * were being delivered (in which case the subscription will be removed * when this round of delivery is done) or if the MessageListener was * not subscribed to Messages of that name. */ const bool UnsubscribeFrom(MessageListener* subscriber, const String& messageType); /** * Get a list of all MessageListeners subscribed to Messages with a * given name. * * @param messageName The Message you care about * @return A std::set of objects subscribed */ const std::set<MessageListener*> GetSubscribersTo(const String& messageName); /** * Get a list of all Message subscriptions for a certain MessageListener * * @param subscriber The MessageListener you care about * @return A StringSet of all their subscriptions */ const StringSet GetSubscriptionsFor(MessageListener* subscriber); /** * Immediately sends all Messages to the appropriate subscribers. Called * by the World at the end of each frame; you shouldn't call this * directly in your game code. */ void SendAllMessages(); protected: Switchboard(); static Switchboard* s_Switchboard; private: std::queue<Message*> _messages; std::map< String, std::set<MessageListener*> > _subscribers; std::map< MessageListener*, StringSet > _subscriptions; struct MessageTimer { Message* _message; float _timeRemaining; MessageTimer(Message* message, float timeRemaining) { _message = message; _timeRemaining = MathUtil::Max(0.0f, timeRemaining); } }; std::vector<MessageTimer> _delayedMessages; struct SubscriptionInfo { MessageListener* _subscriber; String _messageType; SubscriptionInfo(MessageListener* subscriber, String messageType) : _subscriber(subscriber), _messageType(messageType) {} }; bool _messagesLocked; std::vector<SubscriptionInfo> _deferredAdds; std::vector<SubscriptionInfo> _deferredRemoves; };
{ "content_hash": "df332d89d4604cc7d80875dce558f18c", "timestamp": "", "source": "github", "line_count": 190, "max_line_length": 84, "avg_line_length": 38.578947368421055, "alnum_prop": 0.7175989085948158, "repo_name": "d909b/GADEL-Snake", "id": "64a856afa3eb60da26942cac4b8f0fdaae1e4e4d", "size": "7330", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Angel/Messaging/Switchboard.h", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Ada", "bytes": "89080" }, { "name": "Assembly", "bytes": "143356" }, { "name": "C", "bytes": "15770728" }, { "name": "C#", "bytes": "55726" }, { "name": "C++", "bytes": "7152957" }, { "name": "D", "bytes": "416653" }, { "name": "Delphi", "bytes": "68422" }, { "name": "JavaScript", "bytes": "40695" }, { "name": "Lua", "bytes": "542771" }, { "name": "OCaml", "bytes": "6380" }, { "name": "Objective-C", "bytes": "1650241" }, { "name": "Perl", "bytes": "269377" }, { "name": "Python", "bytes": "202527" }, { "name": "Racket", "bytes": "19627" }, { "name": "Ruby", "bytes": "234" }, { "name": "Scheme", "bytes": "9578" }, { "name": "Shell", "bytes": "5749964" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Finances.Data.Banking { public class BankStatementLine { [Key] public int ID { get; set; } [Required] public int BankStatementID { get; set; } [ForeignKey("BankStatementID")] public virtual BankStatement Statement { get; set; } [Required] public string TransType { get; set; } [Required] [DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)] public DateTime Date { get; set; } [Required] [Column(TypeName="money")] public decimal Amount { get; set; } [Required] public string TransactionID { get; set; } [Required] public string Name { get; set; } //public DateTime TransactionInitializationDate { get; set; } //public DateTime FundAvaliabilityDate { get; set; } public string Memo { get; set; } public string IncorrectTransactionID { get; set; } public string TransactionCorrectionAction { get; set; } public string ServerTransactionID { get; set; } public string CheckNum { get; set; } public string ReferenceNumber { get; set; } public string Sic { get; set; } public string PayeeID { get; set; } //public Account TransactionSenderAccount { get; set; } public string Currency { get; set; } /// <summary> /// Indicates that the transaction was already imported on a prior statement. /// </summary> /// <remarks> /// Preexisting lines are ignored during the bank recon. /// </remarks> [Required] public bool Preexisting { get; set; } public virtual ICollection<BankReconciliation> BankReconciliations { get; protected set; } } }
{ "content_hash": "548eaae5e48b3ab32144170eec160b65", "timestamp": "", "source": "github", "line_count": 66, "max_line_length": 98, "avg_line_length": 30.045454545454547, "alnum_prop": 0.621280887544125, "repo_name": "patrickjohncollins/A-song-of-sixpence", "id": "22d0a389afca0c2009ef9b8259fc5aa18c55b114", "size": "1985", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Finances.Data/Banking/BankStatementLine.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "2469" }, { "name": "C#", "bytes": "674459" }, { "name": "CSS", "bytes": "1213" }, { "name": "JavaScript", "bytes": "178950" }, { "name": "PowerShell", "bytes": "27196" }, { "name": "Visual Basic", "bytes": "8268" } ], "symlink_target": "" }
 using System.Collections.Generic; using System.Text.RegularExpressions; namespace CountlySDK.Helpers { internal static class PhoneNameHelper { public static CanonicalPhoneName Resolve(string manufacturer, string model) { var manufacturerNormalized = manufacturer.Trim().ToUpper(); switch (manufacturerNormalized) { case "NOKIA": case "MICROSOFT": return ResolveNokia(manufacturer, model); case "HTC": return ResolveHtc(manufacturer, model); case "SAMSUNG": return ResolveSamsung(manufacturer, model); case "LG": return ResolveLg(manufacturer, model); case "HUAWEI": return ResolveHuawei(manufacturer, model); default: return new CanonicalPhoneName() { ReportedManufacturer = manufacturer, ReportedModel = model, CanonicalManufacturer = manufacturer, CanonicalModel = model, IsResolved = false }; } } private static CanonicalPhoneName ResolveHuawei(string manufacturer, string model) { var modelNormalized = model.Trim().ToUpper(); var result = new CanonicalPhoneName() { ReportedManufacturer = manufacturer, ReportedModel = model, CanonicalManufacturer = "HUAWEI", CanonicalModel = model, IsResolved = false }; var lookupValue = modelNormalized; if (lookupValue.StartsWith("HUAWEI H883G")) { lookupValue = "HUAWEI H883G"; } if (lookupValue.StartsWith("HUAWEI W1")) { lookupValue = "HUAWEI W1"; } if (modelNormalized.StartsWith("HUAWEI W2")) { lookupValue = "HUAWEI W2"; } if (huaweiLookupTable.ContainsKey(lookupValue)) { var modelMetadata = huaweiLookupTable[lookupValue]; result.CanonicalModel = modelMetadata.CanonicalModel; result.Comments = modelMetadata.Comments; result.IsResolved = true; } return result; } private static CanonicalPhoneName ResolveLg(string manufacturer, string model) { var modelNormalized = model.Trim().ToUpper(); var result = new CanonicalPhoneName() { ReportedManufacturer = manufacturer, ReportedModel = model, CanonicalManufacturer = "LG", CanonicalModel = model, IsResolved = false }; var lookupValue = modelNormalized; if (lookupValue.StartsWith("LG-C900")) { lookupValue = "LG-C900"; } if (lookupValue.StartsWith("LG-E900")) { lookupValue = "LG-E900"; } if (lgLookupTable.ContainsKey(lookupValue)) { var modelMetadata = lgLookupTable[lookupValue]; result.CanonicalModel = modelMetadata.CanonicalModel; result.Comments = modelMetadata.Comments; result.IsResolved = true; } return result; } private static CanonicalPhoneName ResolveSamsung(string manufacturer, string model) { var modelNormalized = model.Trim().ToUpper(); var result = new CanonicalPhoneName() { ReportedManufacturer = manufacturer, ReportedModel = model, CanonicalManufacturer = "SAMSUNG", CanonicalModel = model, IsResolved = false }; var lookupValue = modelNormalized; if (lookupValue.StartsWith("GT-S7530")) { lookupValue = "GT-S7530"; } if (lookupValue.StartsWith("SGH-I917")) { lookupValue = "SGH-I917"; } if (samsungLookupTable.ContainsKey(lookupValue)) { var modelMetadata = samsungLookupTable[lookupValue]; result.CanonicalModel = modelMetadata.CanonicalModel; result.Comments = modelMetadata.Comments; result.IsResolved = true; } return result; } private static CanonicalPhoneName ResolveHtc(string manufacturer, string model) { var modelNormalized = model.Trim().ToUpper(); var result = new CanonicalPhoneName() { ReportedManufacturer = manufacturer, ReportedModel = model, CanonicalManufacturer = "HTC", CanonicalModel = model, IsResolved = false }; var lookupValue = modelNormalized; if (lookupValue.StartsWith("A620")) { lookupValue = "A620"; } if (lookupValue.StartsWith("C625")) { lookupValue = "C625"; } if (lookupValue.StartsWith("C620")) { lookupValue = "C620"; } if (htcLookupTable.ContainsKey(lookupValue)) { var modelMetadata = htcLookupTable[lookupValue]; result.CanonicalModel = modelMetadata.CanonicalModel; result.Comments = modelMetadata.Comments; result.IsResolved = true; } return result; } private static CanonicalPhoneName ResolveNokia(string manufacturer, string model) { var modelNormalized = model.Trim().ToUpper(); var result = new CanonicalPhoneName() { ReportedManufacturer = manufacturer, ReportedModel = model, CanonicalManufacturer = "NOKIA", CanonicalModel = model, IsResolved = false }; var lookupValue = modelNormalized; if (modelNormalized.StartsWith("RM-")) { var rms = Regex.Match(modelNormalized, "(RM-)([0-9]+)"); lookupValue = rms.Value; } if (nokiaLookupTable.ContainsKey(lookupValue)) { var modelMetadata = nokiaLookupTable[lookupValue]; if (!string.IsNullOrEmpty(modelMetadata.CanonicalManufacturer)) { result.CanonicalManufacturer = modelMetadata.CanonicalManufacturer; } result.CanonicalModel = modelMetadata.CanonicalModel; result.Comments = modelMetadata.Comments; result.IsResolved = true; } return result; } private static Dictionary<string, CanonicalPhoneName> huaweiLookupTable = new Dictionary<string, CanonicalPhoneName>() { // Huawei W1 { "HUAWEI H883G", new CanonicalPhoneName() { CanonicalModel = "Ascend W1" } }, { "HUAWEI W1", new CanonicalPhoneName() { CanonicalModel = "Ascend W1" } }, // Huawei Ascend W2 { "HUAWEI W2", new CanonicalPhoneName() { CanonicalModel = "Ascend W2" } }, }; private static Dictionary<string, CanonicalPhoneName> lgLookupTable = new Dictionary<string, CanonicalPhoneName>() { // Optimus 7Q/Quantum { "LG-C900", new CanonicalPhoneName() { CanonicalModel = "Optimus 7Q/Quantum" } }, // Optimus 7 { "LG-E900", new CanonicalPhoneName() { CanonicalModel = "Optimus 7" } }, // Jil Sander { "LG-E906", new CanonicalPhoneName() { CanonicalModel = "Jil Sander" } }, // Lancet { "LGVW820", new CanonicalPhoneName() { CanonicalModel = "Lancet" } }, }; private static Dictionary<string, CanonicalPhoneName> samsungLookupTable = new Dictionary<string, CanonicalPhoneName>() { // OMNIA W { "GT-I8350", new CanonicalPhoneName() { CanonicalModel = "Omnia W" } }, { "GT-I8350T", new CanonicalPhoneName() { CanonicalModel = "Omnia W" } }, { "OMNIA W", new CanonicalPhoneName() { CanonicalModel = "Omnia W" } }, // OMNIA 7 { "GT-I8700", new CanonicalPhoneName() { CanonicalModel = "Omnia 7" } }, { "OMNIA7", new CanonicalPhoneName() { CanonicalModel = "Omnia 7" } }, // OMNIA M { "GT-S7530", new CanonicalPhoneName() { CanonicalModel = "Omnia 7" } }, // Focus { "I917", new CanonicalPhoneName() { CanonicalModel = "Focus" } }, { "SGH-I917", new CanonicalPhoneName() { CanonicalModel = "Focus" } }, // Focus 2 { "SGH-I667", new CanonicalPhoneName() { CanonicalModel = "Focus 2" } }, // Focus Flash { "SGH-I677", new CanonicalPhoneName() { CanonicalModel = "Focus Flash" } }, // Focus S { "HADEN", new CanonicalPhoneName() { CanonicalModel = "Focus S" } }, { "SGH-I937", new CanonicalPhoneName() { CanonicalModel = "Focus S" } }, // ATIV S { "GT-I8750", new CanonicalPhoneName() { CanonicalModel = "ATIV S" } }, { "SGH-T899M", new CanonicalPhoneName() { CanonicalModel = "ATIV S" } }, // ATIV Odyssey { "SCH-I930", new CanonicalPhoneName() { CanonicalModel = "ATIV Odyssey" } }, { "SCH-R860U", new CanonicalPhoneName() { CanonicalModel = "ATIV Odyssey", Comments="US Cellular" } }, // ATIV S Neo { "SPH-I800", new CanonicalPhoneName() { CanonicalModel = "ATIV S Neo", Comments="Sprint" } }, { "SGH-I187", new CanonicalPhoneName() { CanonicalModel = "ATIV S Neo", Comments="AT&T" } }, { "GT-I8675", new CanonicalPhoneName() { CanonicalModel = "ATIV S Neo" } }, // ATIV SE { "SM-W750V", new CanonicalPhoneName() { CanonicalModel = "ATIV SE", Comments="Verizon" } }, }; private static Dictionary<string, CanonicalPhoneName> htcLookupTable = new Dictionary<string, CanonicalPhoneName>() { // Surround { "7 MONDRIAN T8788", new CanonicalPhoneName() { CanonicalModel = "Surround" } }, { "T8788", new CanonicalPhoneName() { CanonicalModel = "Surround" } }, { "SURROUND", new CanonicalPhoneName() { CanonicalModel = "Surround" } }, { "SURROUND T8788", new CanonicalPhoneName() { CanonicalModel = "Surround" } }, // Mozart { "7 MOZART", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "7 MOZART T8698", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "HTC MOZART", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "MERSAD 7 MOZART T8698", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "MOZART", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "MOZART T8698", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "PD67100", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, { "T8697", new CanonicalPhoneName() { CanonicalModel = "Mozart" } }, // Pro { "7 PRO T7576", new CanonicalPhoneName() { CanonicalModel = "7 Pro" } }, { "MWP6885", new CanonicalPhoneName() { CanonicalModel = "7 Pro" } }, { "USCCHTC-PC93100", new CanonicalPhoneName() { CanonicalModel = "7 Pro" } }, // Arrive { "PC93100", new CanonicalPhoneName() { CanonicalModel = "Arrive", Comments = "Sprint" } }, { "T7575", new CanonicalPhoneName() { CanonicalModel = "Arrive", Comments = "Sprint" } }, // HD2 { "HD2", new CanonicalPhoneName() { CanonicalModel = "HD2" } }, { "HD2 LEO", new CanonicalPhoneName() { CanonicalModel = "HD2" } }, { "LEO", new CanonicalPhoneName() { CanonicalModel = "HD2" } }, // HD7 { "7 SCHUBERT T9292", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "GOLD", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "HD7", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "HD7 T9292", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "MONDRIAN", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "SCHUBERT", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "Schubert T9292", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, { "T9296", new CanonicalPhoneName() { CanonicalModel = "HD7", Comments = "Telstra, AU" } }, { "TOUCH-IT HD7", new CanonicalPhoneName() { CanonicalModel = "HD7" } }, // HD7S { "T9295", new CanonicalPhoneName() { CanonicalModel = "HD7S" } }, // Trophy { "7 TROPHY", new CanonicalPhoneName() { CanonicalModel = "Trophy" } }, { "7 TROPHY T8686", new CanonicalPhoneName() { CanonicalModel = "Trophy" } }, { "PC40100", new CanonicalPhoneName() { CanonicalModel = "Trophy", Comments = "Verizon" } }, { "SPARK", new CanonicalPhoneName() { CanonicalModel = "Trophy" } }, { "TOUCH-IT TROPHY", new CanonicalPhoneName() { CanonicalModel = "Trophy" } }, { "MWP6985", new CanonicalPhoneName() { CanonicalModel = "Trophy" } }, // 8S { "A620", new CanonicalPhoneName() { CanonicalModel = "8S" } }, { "WINDOWS PHONE 8S BY HTC", new CanonicalPhoneName() { CanonicalModel = "8S" } }, // 8X { "C620", new CanonicalPhoneName() { CanonicalModel = "8X" } }, { "C625", new CanonicalPhoneName() { CanonicalModel = "8X" } }, { "HTC6990LVW", new CanonicalPhoneName() { CanonicalModel = "8X", Comments="Verizon" } }, { "PM23300", new CanonicalPhoneName() { CanonicalModel = "8X", Comments="AT&T" } }, { "WINDOWS PHONE 8X BY HTC", new CanonicalPhoneName() { CanonicalModel = "8X" } }, // 8XT { "HTCPO881", new CanonicalPhoneName() { CanonicalModel = "8XT", Comments="Sprint" } }, { "HTCPO881 SPRINT", new CanonicalPhoneName() { CanonicalModel = "8XT", Comments="Sprint" } }, { "HTCPO881 HTC", new CanonicalPhoneName() { CanonicalModel = "8XT", Comments="Sprint" } }, // Titan { "ETERNITY", new CanonicalPhoneName() { CanonicalModel = "Titan", Comments = "China" } }, { "PI39100", new CanonicalPhoneName() { CanonicalModel = "Titan", Comments = "AT&T" } }, { "TITAN X310E", new CanonicalPhoneName() { CanonicalModel = "Titan" } }, { "ULTIMATE", new CanonicalPhoneName() { CanonicalModel = "Titan" } }, { "X310E", new CanonicalPhoneName() { CanonicalModel = "Titan" } }, { "X310E TITAN", new CanonicalPhoneName() { CanonicalModel = "Titan" } }, // Titan II { "PI86100", new CanonicalPhoneName() { CanonicalModel = "Titan II", Comments = "AT&T" } }, { "RADIANT", new CanonicalPhoneName() { CanonicalModel = "Titan II" } }, // Radar { "RADAR", new CanonicalPhoneName() { CanonicalModel = "Radar" } }, { "RADAR 4G", new CanonicalPhoneName() { CanonicalModel = "Radar", Comments = "T-Mobile USA" } }, { "RADAR C110E", new CanonicalPhoneName() { CanonicalModel = "Radar" } }, // One M8 { "HTC6995LVW", new CanonicalPhoneName() { CanonicalModel = "One (M8)", Comments="Verizon" } }, { "0P6B180", new CanonicalPhoneName() { CanonicalModel = "One (M8)", Comments="AT&T" } }, { "0P6B140", new CanonicalPhoneName() { CanonicalModel = "One (M8)", Comments="Dual SIM?" } }, }; private static Dictionary<string, CanonicalPhoneName> nokiaLookupTable = new Dictionary<string, CanonicalPhoneName>() { // Lumia 505 { "LUMIA 505", new CanonicalPhoneName() { CanonicalModel = "Lumia 505" } }, // Lumia 510 { "LUMIA 510", new CanonicalPhoneName() { CanonicalModel = "Lumia 510" } }, { "NOKIA 510", new CanonicalPhoneName() { CanonicalModel = "Lumia 510" } }, // Lumia 610 { "LUMIA 610", new CanonicalPhoneName() { CanonicalModel = "Lumia 610" } }, { "LUMIA 610 NFC", new CanonicalPhoneName() { CanonicalModel = "Lumia 610", Comments = "NFC" } }, { "NOKIA 610", new CanonicalPhoneName() { CanonicalModel = "Lumia 610" } }, { "NOKIA 610C", new CanonicalPhoneName() { CanonicalModel = "Lumia 610" } }, // Lumia 620 { "LUMIA 620", new CanonicalPhoneName() { CanonicalModel = "Lumia 620" } }, { "RM-846", new CanonicalPhoneName() { CanonicalModel = "Lumia 620" } }, // Lumia 710 { "LUMIA 710", new CanonicalPhoneName() { CanonicalModel = "Lumia 710" } }, { "NOKIA 710", new CanonicalPhoneName() { CanonicalModel = "Lumia 710" } }, // Lumia 800 { "LUMIA 800", new CanonicalPhoneName() { CanonicalModel = "Lumia 800" } }, { "LUMIA 800C", new CanonicalPhoneName() { CanonicalModel = "Lumia 800" } }, { "NOKIA 800", new CanonicalPhoneName() { CanonicalModel = "Lumia 800" } }, { "NOKIA 800C", new CanonicalPhoneName() { CanonicalModel = "Lumia 800", Comments = "China" } }, // Lumia 810 { "RM-878", new CanonicalPhoneName() { CanonicalModel = "Lumia 810" } }, // Lumia 820 { "RM-824", new CanonicalPhoneName() { CanonicalModel = "Lumia 820" } }, { "RM-825", new CanonicalPhoneName() { CanonicalModel = "Lumia 820" } }, { "RM-826", new CanonicalPhoneName() { CanonicalModel = "Lumia 820" } }, // Lumia 822 { "RM-845", new CanonicalPhoneName() { CanonicalModel = "Lumia 822", Comments = "Verizon" } }, // Lumia 900 { "LUMIA 900", new CanonicalPhoneName() { CanonicalModel = "Lumia 900" } }, { "NOKIA 900", new CanonicalPhoneName() { CanonicalModel = "Lumia 900" } }, // Lumia 920 { "RM-820", new CanonicalPhoneName() { CanonicalModel = "Lumia 920" } }, { "RM-821", new CanonicalPhoneName() { CanonicalModel = "Lumia 920" } }, { "RM-822", new CanonicalPhoneName() { CanonicalModel = "Lumia 920" } }, { "RM-867", new CanonicalPhoneName() { CanonicalModel = "Lumia 920", Comments = "920T" } }, { "NOKIA 920", new CanonicalPhoneName() { CanonicalModel = "Lumia 920" } }, { "LUMIA 920", new CanonicalPhoneName() { CanonicalModel = "Lumia 920" } }, // Lumia 520 { "RM-914", new CanonicalPhoneName() { CanonicalModel = "Lumia 520" } }, { "RM-915", new CanonicalPhoneName() { CanonicalModel = "Lumia 520" } }, { "RM-913", new CanonicalPhoneName() { CanonicalModel = "Lumia 520", Comments="520T" } }, // Lumia 521? { "RM-917", new CanonicalPhoneName() { CanonicalModel = "Lumia 521", Comments="T-Mobile 520" } }, // Lumia 720 { "RM-885", new CanonicalPhoneName() { CanonicalModel = "Lumia 720" } }, { "RM-887", new CanonicalPhoneName() { CanonicalModel = "Lumia 720", Comments="China 720T" } }, // Lumia 928 { "RM-860", new CanonicalPhoneName() { CanonicalModel = "Lumia 928" } }, // Lumia 925 { "RM-892", new CanonicalPhoneName() { CanonicalModel = "Lumia 925" } }, { "RM-893", new CanonicalPhoneName() { CanonicalModel = "Lumia 925" } }, { "RM-910", new CanonicalPhoneName() { CanonicalModel = "Lumia 925" } }, { "RM-955", new CanonicalPhoneName() { CanonicalModel = "Lumia 925", Comments="China 925T" } }, // Lumia 1020 { "RM-875", new CanonicalPhoneName() { CanonicalModel = "Lumia 1020" } }, { "RM-876", new CanonicalPhoneName() { CanonicalModel = "Lumia 1020" } }, { "RM-877", new CanonicalPhoneName() { CanonicalModel = "Lumia 1020" } }, // Lumia 625 { "RM-941", new CanonicalPhoneName() { CanonicalModel = "Lumia 625" } }, { "RM-942", new CanonicalPhoneName() { CanonicalModel = "Lumia 625" } }, { "RM-943", new CanonicalPhoneName() { CanonicalModel = "Lumia 625" } }, // Lumia 1520 { "RM-937", new CanonicalPhoneName() { CanonicalModel = "Lumia 1520" } }, { "RM-938", new CanonicalPhoneName() { CanonicalModel = "Lumia 1520", Comments="AT&T" } }, { "RM-939", new CanonicalPhoneName() { CanonicalModel = "Lumia 1520" } }, { "RM-940", new CanonicalPhoneName() { CanonicalModel = "Lumia 1520", Comments="AT&T" } }, // Lumia 525 { "RM-998", new CanonicalPhoneName() { CanonicalModel = "Lumia 525" } }, // Lumia 1320 { "RM-994", new CanonicalPhoneName() { CanonicalModel = "Lumia 1320" } }, { "RM-995", new CanonicalPhoneName() { CanonicalModel = "Lumia 1320" } }, { "RM-996", new CanonicalPhoneName() { CanonicalModel = "Lumia 1320" } }, // Lumia Icon { "RM-927", new CanonicalPhoneName() { CanonicalModel = "Lumia Icon", Comments="Verizon" } }, // Lumia 630 { "RM-976", new CanonicalPhoneName() { CanonicalModel = "Lumia 630" } }, { "RM-977", new CanonicalPhoneName() { CanonicalModel = "Lumia 630" } }, { "RM-978", new CanonicalPhoneName() { CanonicalModel = "Lumia 630" } }, { "RM-979", new CanonicalPhoneName() { CanonicalModel = "Lumia 630" } }, // Lumia 635 { "RM-974", new CanonicalPhoneName() { CanonicalModel = "Lumia 635" } }, { "RM-975", new CanonicalPhoneName() { CanonicalModel = "Lumia 635" } }, { "RM-1078", new CanonicalPhoneName() { CanonicalModel = "Lumia 635", Comments="Sprint" } }, // Lumia 526 { "RM-997", new CanonicalPhoneName() { CanonicalModel = "Lumia 526", Comments="China Mobile" } }, // Lumia 930 { "RM-1045", new CanonicalPhoneName() { CanonicalModel = "Lumia 930" } }, { "RM-1087", new CanonicalPhoneName() { CanonicalModel = "Lumia 930" } }, // Lumia 636 { "RM-1027", new CanonicalPhoneName() { CanonicalModel = "Lumia 636", Comments="China" } }, // Lumia 638 { "RM-1010", new CanonicalPhoneName() { CanonicalModel = "Lumia 638", Comments="China" } }, // Lumia 530 { "RM-1017", new CanonicalPhoneName() { CanonicalModel = "Lumia 530", Comments="Single SIM" } }, { "RM-1018", new CanonicalPhoneName() { CanonicalModel = "Lumia 530", Comments="Single SIM" } }, { "RM-1019", new CanonicalPhoneName() { CanonicalModel = "Lumia 530", Comments="Dual SIM" } }, { "RM-1020", new CanonicalPhoneName() { CanonicalModel = "Lumia 530", Comments="Dual SIM" } }, // Lumia 730 { "RM-1040", new CanonicalPhoneName() { CanonicalModel = "Lumia 730", Comments="Dual SIM" } }, // Lumia 735 { "RM-1038", new CanonicalPhoneName() { CanonicalModel = "Lumia 735" } }, { "RM-1039", new CanonicalPhoneName() { CanonicalModel = "Lumia 735" } }, { "RM-1041", new CanonicalPhoneName() { CanonicalModel = "Lumia 735", Comments="Verizon" } }, // Lumia 830 { "RM-983", new CanonicalPhoneName() { CanonicalModel = "Lumia 830" } }, { "RM-984", new CanonicalPhoneName() { CanonicalModel = "Lumia 830" } }, { "RM-985", new CanonicalPhoneName() { CanonicalModel = "Lumia 830" } }, { "RM-1049", new CanonicalPhoneName() { CanonicalModel = "Lumia 830" } }, // Lumia 535 { "RM-1089", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 535" } }, { "RM-1090", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 535" } }, { "RM-1091", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 535" } }, { "RM-1092", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 535" } }, // Lumia 435 { "RM-1068", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 435", Comments="DS" } }, { "RM-1069", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 435", Comments="DS" } }, { "RM-1070", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 435", Comments="DS" } }, { "RM-1071", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 435", Comments="DS" } }, { "RM-1114", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 435", Comments="DS" } }, // Lumia 532 { "RM-1031", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 532", Comments="DS" } }, { "RM-1032", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 532", Comments="DS" } }, { "RM-1034", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 532", Comments="DS" } }, { "RM-1115", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 532", Comments="DS" } }, // Lumia 640 { "RM-1072", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, { "RM-1073", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, { "RM-1074", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, { "RM-1075", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, { "RM-1077", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, { "RM-1109", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, { "RM-1113", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640" } }, // Lumia 640XL { "RM-1062", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, { "RM-1063", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, { "RM-1064", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, { "RM-1065", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, { "RM-1066", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, { "RM-1067", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, { "RM-1096", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 640 XL" } }, // Lumia 540 { "RM-1140", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 540" } }, { "RM-1141", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 540" } }, // Lumia 430 { "RM-1099", new CanonicalPhoneName() { CanonicalManufacturer="MICROSOFT", CanonicalModel = "Lumia 430", Comments="DS" } }, }; } public class CanonicalPhoneName { public string ReportedManufacturer { get; set; } public string ReportedModel { get; set; } public string CanonicalManufacturer { get; set; } public string CanonicalModel { get; set; } public string Comments { get; set; } public bool IsResolved { get; set; } public string FullCanonicalName { get { return CanonicalManufacturer + " " + CanonicalModel; } } } }
{ "content_hash": "9399548112e22832c8d4580c172a367e", "timestamp": "", "source": "github", "line_count": 541, "max_line_length": 135, "avg_line_length": 52.95933456561922, "alnum_prop": 0.5617953998115249, "repo_name": "Countly/countly-sdk-windows", "id": "fa6f962f69c0431186f432885ce838792870499d", "size": "29739", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "countlyCommon/countlyCommon/Helpers/PhoneNameHelper.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP.NET", "bytes": "950" }, { "name": "C#", "bytes": "532164" }, { "name": "CSS", "bytes": "513" }, { "name": "HTML", "bytes": "3886" }, { "name": "JavaScript", "bytes": "235341" } ], "symlink_target": "" }
<ROOT> <data> <record> <field name="Country or Area">Benin</field> <field name="Year(s)">2008</field> <field name="Value">346</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Burkina Faso</field> <field name="Year(s)">2008</field> <field name="Value">9831</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Central African Republic</field> <field name="Year(s)">2008</field> <field name="Value">345</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Chad</field> <field name="Year(s)">2008</field> <field name="Value">908</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Côte d'Ivoire</field> <field name="Year(s)">2008</field> <field name="Value">1043</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Democratic Republic of the Congo</field> <field name="Year(s)">2008</field> <field name="Value">5579</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Ethiopia</field> <field name="Year(s)">2008</field> <field name="Value">612</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Ghana</field> <field name="Year(s)">2008</field> <field name="Value">403</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Guinea</field> <field name="Year(s)">2008</field> <field name="Value">263</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Mali</field> <field name="Year(s)">2008</field> <field name="Value">1453</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Niger</field> <field name="Year(s)">2008</field> <field name="Value">3480</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Nigeria</field> <field name="Year(s)">2008</field> <field name="Value">6704</field> <field name="Value Footnotes"></field> </record> <record> <field name="Country or Area">Togo</field> <field name="Year(s)">2008</field> <field name="Value">377</field> <field name="Value Footnotes"></field> </record> </data> </ROOT>
{ "content_hash": "36934eac188a6b9045785fb023381b0a", "timestamp": "", "source": "github", "line_count": 82, "max_line_length": 82, "avg_line_length": 39.23170731707317, "alnum_prop": 0.4967360895244016, "repo_name": "danagilliann/un_data_api", "id": "656f143d1ef288156e2944a3494402f3b80b55f7", "size": "3218", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/un_data_xml_files/WHO/WHO Data/Meningitis - Number of Reported Cases (count).xml", "mode": "33261", "license": "mit", "language": [ { "name": "Cucumber", "bytes": "6335" }, { "name": "HTML", "bytes": "9812" }, { "name": "Ruby", "bytes": "114838" } ], "symlink_target": "" }
// Copyright 2015-2022 The Khronos Group Inc. // // SPDX-License-Identifier: Apache-2.0 OR MIT // // This header is generated from the Khronos Vulkan XML API Registry. #ifndef VULKAN_HPP #define VULKAN_HPP #if defined( _MSVC_LANG ) # define VULKAN_HPP_CPLUSPLUS _MSVC_LANG #else # define VULKAN_HPP_CPLUSPLUS __cplusplus #endif #if 201703L < VULKAN_HPP_CPLUSPLUS # define VULKAN_HPP_CPP_VERSION 20 #elif 201402L < VULKAN_HPP_CPLUSPLUS # define VULKAN_HPP_CPP_VERSION 17 #elif 201103L < VULKAN_HPP_CPLUSPLUS # define VULKAN_HPP_CPP_VERSION 14 #elif 199711L < VULKAN_HPP_CPLUSPLUS # define VULKAN_HPP_CPP_VERSION 11 #else # error "vulkan.hpp needs at least c++ standard version 11" #endif #include <array> // ArrayWrapperND #include <string> // std::string #include <vulkan/vulkan.h> #if 17 <= VULKAN_HPP_CPP_VERSION # include <string_view> // std::string_view #endif #if defined( VULKAN_HPP_DISABLE_ENHANCED_MODE ) # if !defined( VULKAN_HPP_NO_SMART_HANDLE ) # define VULKAN_HPP_NO_SMART_HANDLE # endif #else # include <tuple> // std::tie # include <vector> // std::vector #endif #if !defined( VULKAN_HPP_NO_EXCEPTIONS ) # include <system_error> // std::is_error_code_enum #endif #if !defined( VULKAN_HPP_NO_SMART_HANDLE ) # include <algorithm> // std::transform #endif #if defined( VULKAN_HPP_NO_CONSTRUCTORS ) # if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) # define VULKAN_HPP_NO_STRUCT_CONSTRUCTORS # endif # if !defined( VULKAN_HPP_NO_UNION_CONSTRUCTORS ) # define VULKAN_HPP_NO_UNION_CONSTRUCTORS # endif #endif #if defined( VULKAN_HPP_NO_SETTERS ) # if !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) # define VULKAN_HPP_NO_STRUCT_SETTERS # endif # if !defined( VULKAN_HPP_NO_UNION_SETTERS ) # define VULKAN_HPP_NO_UNION_SETTERS # endif #endif #if !defined( VULKAN_HPP_ASSERT ) # include <cassert> # define VULKAN_HPP_ASSERT assert #endif #if !defined( VULKAN_HPP_ASSERT_ON_RESULT ) # define VULKAN_HPP_ASSERT_ON_RESULT VULKAN_HPP_ASSERT #endif #if !defined( VULKAN_HPP_STATIC_ASSERT ) # define VULKAN_HPP_STATIC_ASSERT static_assert #endif #if !defined( VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL ) # define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1 #endif #if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL == 1 # if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNXNTO__ ) || defined( __Fuchsia__ ) # include <dlfcn.h> # elif defined( _WIN32 ) typedef struct HINSTANCE__ * HINSTANCE; # if defined( _WIN64 ) typedef int64_t( __stdcall * FARPROC )(); # else typedef int( __stdcall * FARPROC )(); # endif extern "C" __declspec( dllimport ) HINSTANCE __stdcall LoadLibraryA( char const * lpLibFileName ); extern "C" __declspec( dllimport ) int __stdcall FreeLibrary( HINSTANCE hLibModule ); extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE hModule, const char * lpProcName ); # endif #endif #if !defined( __has_include ) # define __has_include( x ) false #endif #if ( 201907 <= __cpp_lib_three_way_comparison ) && __has_include( <compare> ) && !defined( VULKAN_HPP_NO_SPACESHIP_OPERATOR ) # define VULKAN_HPP_HAS_SPACESHIP_OPERATOR #endif #if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) # include <compare> #endif #if ( 201803 <= __cpp_lib_span ) # define VULKAN_HPP_SUPPORT_SPAN # include <span> #endif static_assert( VK_HEADER_VERSION == 224, "Wrong VK_HEADER_VERSION!" ); // 32-bit vulkan is not typesafe for non-dispatchable handles, so don't allow copy constructors on this platform by default. // To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION #if ( VK_USE_64_BIT_PTR_DEFINES == 1 ) # if !defined( VULKAN_HPP_TYPESAFE_CONVERSION ) # define VULKAN_HPP_TYPESAFE_CONVERSION # endif #endif // <tuple> includes <sys/sysmacros.h> through some other header // this results in major(x) being resolved to gnu_dev_major(x) // which is an expression in a constructor initializer list. #if defined( major ) # undef major #endif #if defined( minor ) # undef minor #endif // Windows defines MemoryBarrier which is deprecated and collides // with the VULKAN_HPP_NAMESPACE::MemoryBarrier struct. #if defined( MemoryBarrier ) # undef MemoryBarrier #endif #if !defined( VULKAN_HPP_HAS_UNRESTRICTED_UNIONS ) # if defined( __clang__ ) # if __has_feature( cxx_unrestricted_unions ) # define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS # endif # elif defined( __GNUC__ ) # define GCC_VERSION ( __GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ ) # if 40600 <= GCC_VERSION # define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS # endif # elif defined( _MSC_VER ) # if 1900 <= _MSC_VER # define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS # endif # endif #endif #if !defined( VULKAN_HPP_INLINE ) # if defined( __clang__ ) # if __has_attribute( always_inline ) # define VULKAN_HPP_INLINE __attribute__( ( always_inline ) ) __inline__ # else # define VULKAN_HPP_INLINE inline # endif # elif defined( __GNUC__ ) # define VULKAN_HPP_INLINE __attribute__( ( always_inline ) ) __inline__ # elif defined( _MSC_VER ) # define VULKAN_HPP_INLINE inline # else # define VULKAN_HPP_INLINE inline # endif #endif #if defined( VULKAN_HPP_TYPESAFE_CONVERSION ) # define VULKAN_HPP_TYPESAFE_EXPLICIT #else # define VULKAN_HPP_TYPESAFE_EXPLICIT explicit #endif #if defined( __cpp_constexpr ) # define VULKAN_HPP_CONSTEXPR constexpr # if __cpp_constexpr >= 201304 # define VULKAN_HPP_CONSTEXPR_14 constexpr # else # define VULKAN_HPP_CONSTEXPR_14 # endif # define VULKAN_HPP_CONST_OR_CONSTEXPR constexpr #else # define VULKAN_HPP_CONSTEXPR # define VULKAN_HPP_CONSTEXPR_14 # define VULKAN_HPP_CONST_OR_CONSTEXPR const #endif #if !defined( VULKAN_HPP_NOEXCEPT ) # if defined( _MSC_VER ) && ( _MSC_VER <= 1800 ) # define VULKAN_HPP_NOEXCEPT # else # define VULKAN_HPP_NOEXCEPT noexcept # define VULKAN_HPP_HAS_NOEXCEPT 1 # if defined( VULKAN_HPP_NO_EXCEPTIONS ) # define VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS noexcept # else # define VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS # endif # endif #endif #if 14 <= VULKAN_HPP_CPP_VERSION # define VULKAN_HPP_DEPRECATED( msg ) [[deprecated( msg )]] #else # define VULKAN_HPP_DEPRECATED( msg ) #endif #if ( 17 <= VULKAN_HPP_CPP_VERSION ) && !defined( VULKAN_HPP_NO_NODISCARD_WARNINGS ) # define VULKAN_HPP_NODISCARD [[nodiscard]] # if defined( VULKAN_HPP_NO_EXCEPTIONS ) # define VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS [[nodiscard]] # else # define VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS # endif #else # define VULKAN_HPP_NODISCARD # define VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS #endif #if !defined( VULKAN_HPP_NAMESPACE ) # define VULKAN_HPP_NAMESPACE vk #endif #define VULKAN_HPP_STRINGIFY2( text ) #text #define VULKAN_HPP_STRINGIFY( text ) VULKAN_HPP_STRINGIFY2( text ) #define VULKAN_HPP_NAMESPACE_STRING VULKAN_HPP_STRINGIFY( VULKAN_HPP_NAMESPACE ) namespace VULKAN_HPP_NAMESPACE { template <typename T, size_t N> class ArrayWrapper1D : public std::array<T, N> { public: VULKAN_HPP_CONSTEXPR ArrayWrapper1D() VULKAN_HPP_NOEXCEPT : std::array<T, N>() {} VULKAN_HPP_CONSTEXPR ArrayWrapper1D( std::array<T, N> const & data ) VULKAN_HPP_NOEXCEPT : std::array<T, N>( data ) {} #if ( VK_USE_64_BIT_PTR_DEFINES == 0 ) // on 32 bit compiles, needs overloads on index type int to resolve ambiguities VULKAN_HPP_CONSTEXPR T const & operator[]( int index ) const VULKAN_HPP_NOEXCEPT { return std::array<T, N>::operator[]( index ); } T & operator[]( int index ) VULKAN_HPP_NOEXCEPT { return std::array<T, N>::operator[]( index ); } #endif operator T const *() const VULKAN_HPP_NOEXCEPT { return this->data(); } operator T *() VULKAN_HPP_NOEXCEPT { return this->data(); } template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> operator std::string() const { return std::string( this->data() ); } #if 17 <= VULKAN_HPP_CPP_VERSION template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> operator std::string_view() const { return std::string_view( this->data() ); } #endif #if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> std::strong_ordering operator<=>( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) <=> *static_cast<std::array<char, N> const *>( &rhs ); } #else template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> bool operator<( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) < *static_cast<std::array<char, N> const *>( &rhs ); } template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> bool operator<=( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) <= *static_cast<std::array<char, N> const *>( &rhs ); } template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> bool operator>( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) > *static_cast<std::array<char, N> const *>( &rhs ); } template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> bool operator>=( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) >= *static_cast<std::array<char, N> const *>( &rhs ); } #endif template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> bool operator==( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) == *static_cast<std::array<char, N> const *>( &rhs ); } template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0> bool operator!=( ArrayWrapper1D<char, N> const & rhs ) const VULKAN_HPP_NOEXCEPT { return *static_cast<std::array<char, N> const *>( this ) != *static_cast<std::array<char, N> const *>( &rhs ); } }; // specialization of relational operators between std::string and arrays of chars template <size_t N> bool operator<( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT { return lhs < rhs.data(); } template <size_t N> bool operator<=( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT { return lhs <= rhs.data(); } template <size_t N> bool operator>( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT { return lhs > rhs.data(); } template <size_t N> bool operator>=( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT { return lhs >= rhs.data(); } template <size_t N> bool operator==( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT { return lhs == rhs.data(); } template <size_t N> bool operator!=( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT { return lhs != rhs.data(); } template <typename T, size_t N, size_t M> class ArrayWrapper2D : public std::array<ArrayWrapper1D<T, M>, N> { public: VULKAN_HPP_CONSTEXPR ArrayWrapper2D() VULKAN_HPP_NOEXCEPT : std::array<ArrayWrapper1D<T, M>, N>() {} VULKAN_HPP_CONSTEXPR ArrayWrapper2D( std::array<std::array<T, M>, N> const & data ) VULKAN_HPP_NOEXCEPT : std::array<ArrayWrapper1D<T, M>, N>( *reinterpret_cast<std::array<ArrayWrapper1D<T, M>, N> const *>( &data ) ) { } }; template <typename FlagBitsType> struct FlagTraits { }; template <typename BitType> class Flags { public: using MaskType = typename std::underlying_type<BitType>::type; // constructors VULKAN_HPP_CONSTEXPR Flags() VULKAN_HPP_NOEXCEPT : m_mask( 0 ) {} VULKAN_HPP_CONSTEXPR Flags( BitType bit ) VULKAN_HPP_NOEXCEPT : m_mask( static_cast<MaskType>( bit ) ) {} VULKAN_HPP_CONSTEXPR Flags( Flags<BitType> const & rhs ) VULKAN_HPP_NOEXCEPT = default; VULKAN_HPP_CONSTEXPR explicit Flags( MaskType flags ) VULKAN_HPP_NOEXCEPT : m_mask( flags ) {} // relational operators #if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) auto operator<=>( Flags<BitType> const & ) const = default; #else VULKAN_HPP_CONSTEXPR bool operator<( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return m_mask < rhs.m_mask; } VULKAN_HPP_CONSTEXPR bool operator<=( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return m_mask <= rhs.m_mask; } VULKAN_HPP_CONSTEXPR bool operator>( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return m_mask > rhs.m_mask; } VULKAN_HPP_CONSTEXPR bool operator>=( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return m_mask >= rhs.m_mask; } VULKAN_HPP_CONSTEXPR bool operator==( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return m_mask == rhs.m_mask; } VULKAN_HPP_CONSTEXPR bool operator!=( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return m_mask != rhs.m_mask; } #endif // logical operator VULKAN_HPP_CONSTEXPR bool operator!() const VULKAN_HPP_NOEXCEPT { return !m_mask; } // bitwise operators VULKAN_HPP_CONSTEXPR Flags<BitType> operator&( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return Flags<BitType>( m_mask & rhs.m_mask ); } VULKAN_HPP_CONSTEXPR Flags<BitType> operator|( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return Flags<BitType>( m_mask | rhs.m_mask ); } VULKAN_HPP_CONSTEXPR Flags<BitType> operator^( Flags<BitType> const & rhs ) const VULKAN_HPP_NOEXCEPT { return Flags<BitType>( m_mask ^ rhs.m_mask ); } VULKAN_HPP_CONSTEXPR Flags<BitType> operator~() const VULKAN_HPP_NOEXCEPT { return Flags<BitType>( m_mask ^ FlagTraits<BitType>::allFlags ); } // assignment operators VULKAN_HPP_CONSTEXPR_14 Flags<BitType> & operator=( Flags<BitType> const & rhs ) VULKAN_HPP_NOEXCEPT = default; VULKAN_HPP_CONSTEXPR_14 Flags<BitType> & operator|=( Flags<BitType> const & rhs ) VULKAN_HPP_NOEXCEPT { m_mask |= rhs.m_mask; return *this; } VULKAN_HPP_CONSTEXPR_14 Flags<BitType> & operator&=( Flags<BitType> const & rhs ) VULKAN_HPP_NOEXCEPT { m_mask &= rhs.m_mask; return *this; } VULKAN_HPP_CONSTEXPR_14 Flags<BitType> & operator^=( Flags<BitType> const & rhs ) VULKAN_HPP_NOEXCEPT { m_mask ^= rhs.m_mask; return *this; } // cast operators explicit VULKAN_HPP_CONSTEXPR operator bool() const VULKAN_HPP_NOEXCEPT { return !!m_mask; } explicit VULKAN_HPP_CONSTEXPR operator MaskType() const VULKAN_HPP_NOEXCEPT { return m_mask; } #if defined( VULKAN_HPP_FLAGS_MASK_TYPE_AS_PUBLIC ) public: #else private: #endif MaskType m_mask; }; #if !defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) // relational operators only needed for pre C++20 template <typename BitType> VULKAN_HPP_CONSTEXPR bool operator<( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator>( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR bool operator<=( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator>=( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR bool operator>( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator<( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR bool operator>=( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator<=( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR bool operator==( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator==( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR bool operator!=( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator!=( bit ); } #endif // bitwise operators template <typename BitType> VULKAN_HPP_CONSTEXPR Flags<BitType> operator&( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator&( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR Flags<BitType> operator|( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator|( bit ); } template <typename BitType> VULKAN_HPP_CONSTEXPR Flags<BitType> operator^( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT { return flags.operator^( bit ); } #if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE ) template <typename T> class ArrayProxy { public: VULKAN_HPP_CONSTEXPR ArrayProxy() VULKAN_HPP_NOEXCEPT : m_count( 0 ) , m_ptr( nullptr ) { } VULKAN_HPP_CONSTEXPR ArrayProxy( std::nullptr_t ) VULKAN_HPP_NOEXCEPT : m_count( 0 ) , m_ptr( nullptr ) { } ArrayProxy( T & value ) VULKAN_HPP_NOEXCEPT : m_count( 1 ) , m_ptr( &value ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxy( typename std::remove_const<T>::type & value ) VULKAN_HPP_NOEXCEPT : m_count( 1 ) , m_ptr( &value ) { } ArrayProxy( uint32_t count, T * ptr ) VULKAN_HPP_NOEXCEPT : m_count( count ) , m_ptr( ptr ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxy( uint32_t count, typename std::remove_const<T>::type * ptr ) VULKAN_HPP_NOEXCEPT : m_count( count ) , m_ptr( ptr ) { } template <std::size_t C> ArrayProxy( T ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT : m_count( C ) , m_ptr( ptr ) { } template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxy( typename std::remove_const<T>::type ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT : m_count( C ) , m_ptr( ptr ) { } # if __GNUC__ >= 9 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Winit-list-lifetime" # endif ArrayProxy( std::initializer_list<T> const & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxy( std::initializer_list<typename std::remove_const<T>::type> const & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } ArrayProxy( std::initializer_list<T> & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxy( std::initializer_list<typename std::remove_const<T>::type> & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } # if __GNUC__ >= 9 # pragma GCC diagnostic pop # endif // Any type with a .data() return type implicitly convertible to T*, and a .size() return type implicitly // convertible to size_t. The const version can capture temporaries, with lifetime ending at end of statement. template <typename V, typename std::enable_if<std::is_convertible<decltype( std::declval<V>().data() ), T *>::value && std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value>::type * = nullptr> ArrayProxy( V const & v ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( v.size() ) ) , m_ptr( v.data() ) { } template <typename V, typename std::enable_if<std::is_convertible<decltype( std::declval<V>().data() ), T *>::value && std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value>::type * = nullptr> ArrayProxy( V & v ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( v.size() ) ) , m_ptr( v.data() ) { } const T * begin() const VULKAN_HPP_NOEXCEPT { return m_ptr; } const T * end() const VULKAN_HPP_NOEXCEPT { return m_ptr + m_count; } const T & front() const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_count && m_ptr ); return *m_ptr; } const T & back() const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_count && m_ptr ); return *( m_ptr + m_count - 1 ); } bool empty() const VULKAN_HPP_NOEXCEPT { return ( m_count == 0 ); } uint32_t size() const VULKAN_HPP_NOEXCEPT { return m_count; } T * data() const VULKAN_HPP_NOEXCEPT { return m_ptr; } private: uint32_t m_count; T * m_ptr; }; template <typename T> class ArrayProxyNoTemporaries { public: VULKAN_HPP_CONSTEXPR ArrayProxyNoTemporaries() VULKAN_HPP_NOEXCEPT : m_count( 0 ) , m_ptr( nullptr ) { } VULKAN_HPP_CONSTEXPR ArrayProxyNoTemporaries( std::nullptr_t ) VULKAN_HPP_NOEXCEPT : m_count( 0 ) , m_ptr( nullptr ) { } ArrayProxyNoTemporaries( T & value ) VULKAN_HPP_NOEXCEPT : m_count( 1 ) , m_ptr( &value ) { } template <typename V> ArrayProxyNoTemporaries( V && value ) = delete; template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( typename std::remove_const<T>::type & value ) VULKAN_HPP_NOEXCEPT : m_count( 1 ) , m_ptr( &value ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( typename std::remove_const<T>::type && value ) = delete; ArrayProxyNoTemporaries( uint32_t count, T * ptr ) VULKAN_HPP_NOEXCEPT : m_count( count ) , m_ptr( ptr ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( uint32_t count, typename std::remove_const<T>::type * ptr ) VULKAN_HPP_NOEXCEPT : m_count( count ) , m_ptr( ptr ) { } template <std::size_t C> ArrayProxyNoTemporaries( T ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT : m_count( C ) , m_ptr( ptr ) { } template <std::size_t C> ArrayProxyNoTemporaries( T( &&ptr )[C] ) = delete; template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( typename std::remove_const<T>::type ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT : m_count( C ) , m_ptr( ptr ) { } template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( typename std::remove_const<T>::type( &&ptr )[C] ) = delete; ArrayProxyNoTemporaries( std::initializer_list<T> const & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } ArrayProxyNoTemporaries( std::initializer_list<T> const && list ) = delete; template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const && list ) = delete; ArrayProxyNoTemporaries( std::initializer_list<T> & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } ArrayProxyNoTemporaries( std::initializer_list<T> && list ) = delete; template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> & list ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( list.size() ) ) , m_ptr( list.begin() ) { } template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0> ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> && list ) = delete; // Any type with a .data() return type implicitly convertible to T*, and a // .size() return type implicitly // convertible to size_t. template <typename V, typename std::enable_if<std::is_convertible<decltype( std::declval<V>().data() ), T *>::value && std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value>::type * = nullptr> ArrayProxyNoTemporaries( V & v ) VULKAN_HPP_NOEXCEPT : m_count( static_cast<uint32_t>( v.size() ) ) , m_ptr( v.data() ) { } const T * begin() const VULKAN_HPP_NOEXCEPT { return m_ptr; } const T * end() const VULKAN_HPP_NOEXCEPT { return m_ptr + m_count; } const T & front() const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_count && m_ptr ); return *m_ptr; } const T & back() const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_count && m_ptr ); return *( m_ptr + m_count - 1 ); } bool empty() const VULKAN_HPP_NOEXCEPT { return ( m_count == 0 ); } uint32_t size() const VULKAN_HPP_NOEXCEPT { return m_count; } T * data() const VULKAN_HPP_NOEXCEPT { return m_ptr; } private: uint32_t m_count; T * m_ptr; }; template <typename RefType> class Optional { public: Optional( RefType & reference ) VULKAN_HPP_NOEXCEPT { m_ptr = &reference; } Optional( RefType * ptr ) VULKAN_HPP_NOEXCEPT { m_ptr = ptr; } Optional( std::nullptr_t ) VULKAN_HPP_NOEXCEPT { m_ptr = nullptr; } operator RefType *() const VULKAN_HPP_NOEXCEPT { return m_ptr; } RefType const * operator->() const VULKAN_HPP_NOEXCEPT { return m_ptr; } explicit operator bool() const VULKAN_HPP_NOEXCEPT { return !!m_ptr; } private: RefType * m_ptr; }; template <typename X, typename Y> struct StructExtends { enum { value = false }; }; template <typename Type, class...> struct IsPartOfStructureChain { static const bool valid = false; }; template <typename Type, typename Head, typename... Tail> struct IsPartOfStructureChain<Type, Head, Tail...> { static const bool valid = std::is_same<Type, Head>::value || IsPartOfStructureChain<Type, Tail...>::valid; }; template <size_t Index, typename T, typename... ChainElements> struct StructureChainContains { static const bool value = std::is_same<T, typename std::tuple_element<Index, std::tuple<ChainElements...>>::type>::value || StructureChainContains<Index - 1, T, ChainElements...>::value; }; template <typename T, typename... ChainElements> struct StructureChainContains<0, T, ChainElements...> { static const bool value = std::is_same<T, typename std::tuple_element<0, std::tuple<ChainElements...>>::type>::value; }; template <size_t Index, typename... ChainElements> struct StructureChainValidation { using TestType = typename std::tuple_element<Index, std::tuple<ChainElements...>>::type; static const bool valid = StructExtends<TestType, typename std::tuple_element<0, std::tuple<ChainElements...>>::type>::value && ( TestType::allowDuplicate || !StructureChainContains<Index - 1, TestType, ChainElements...>::value ) && StructureChainValidation<Index - 1, ChainElements...>::valid; }; template <typename... ChainElements> struct StructureChainValidation<0, ChainElements...> { static const bool valid = true; }; template <typename... ChainElements> class StructureChain : public std::tuple<ChainElements...> { public: StructureChain() VULKAN_HPP_NOEXCEPT { static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid, "The structure chain is not valid!" ); link<sizeof...( ChainElements ) - 1>(); } StructureChain( StructureChain const & rhs ) VULKAN_HPP_NOEXCEPT : std::tuple<ChainElements...>( rhs ) { static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid, "The structure chain is not valid!" ); link( &std::get<0>( *this ), &std::get<0>( rhs ), reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( *this ) ), reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( rhs ) ) ); } StructureChain( StructureChain && rhs ) VULKAN_HPP_NOEXCEPT : std::tuple<ChainElements...>( std::forward<std::tuple<ChainElements...>>( rhs ) ) { static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid, "The structure chain is not valid!" ); link( &std::get<0>( *this ), &std::get<0>( rhs ), reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( *this ) ), reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( rhs ) ) ); } StructureChain( ChainElements const &... elems ) VULKAN_HPP_NOEXCEPT : std::tuple<ChainElements...>( elems... ) { static_assert( StructureChainValidation<sizeof...( ChainElements ) - 1, ChainElements...>::valid, "The structure chain is not valid!" ); link<sizeof...( ChainElements ) - 1>(); } StructureChain & operator=( StructureChain const & rhs ) VULKAN_HPP_NOEXCEPT { std::tuple<ChainElements...>::operator=( rhs ); link( &std::get<0>( *this ), &std::get<0>( rhs ), reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( *this ) ), reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( rhs ) ) ); return *this; } StructureChain & operator=( StructureChain && rhs ) = delete; template <typename T = typename std::tuple_element<0, std::tuple<ChainElements...>>::type, size_t Which = 0> T & get() VULKAN_HPP_NOEXCEPT { return std::get<ChainElementIndex<0, T, Which, void, ChainElements...>::value>( static_cast<std::tuple<ChainElements...> &>( *this ) ); } template <typename T = typename std::tuple_element<0, std::tuple<ChainElements...>>::type, size_t Which = 0> T const & get() const VULKAN_HPP_NOEXCEPT { return std::get<ChainElementIndex<0, T, Which, void, ChainElements...>::value>( static_cast<std::tuple<ChainElements...> const &>( *this ) ); } template <typename T0, typename T1, typename... Ts> std::tuple<T0 &, T1 &, Ts &...> get() VULKAN_HPP_NOEXCEPT { return std::tie( get<T0>(), get<T1>(), get<Ts>()... ); } template <typename T0, typename T1, typename... Ts> std::tuple<T0 const &, T1 const &, Ts const &...> get() const VULKAN_HPP_NOEXCEPT { return std::tie( get<T0>(), get<T1>(), get<Ts>()... ); } template <typename ClassType, size_t Which = 0> typename std::enable_if<std::is_same<ClassType, typename std::tuple_element<0, std::tuple<ChainElements...>>::type>::value && ( Which == 0 ), bool>::type isLinked() const VULKAN_HPP_NOEXCEPT { return true; } template <typename ClassType, size_t Which = 0> typename std::enable_if<!std::is_same<ClassType, typename std::tuple_element<0, std::tuple<ChainElements...>>::type>::value || ( Which != 0 ), bool>::type isLinked() const VULKAN_HPP_NOEXCEPT { static_assert( IsPartOfStructureChain<ClassType, ChainElements...>::valid, "Can't unlink Structure that's not part of this StructureChain!" ); return isLinked( reinterpret_cast<VkBaseInStructure const *>( &get<ClassType, Which>() ) ); } template <typename ClassType, size_t Which = 0> typename std::enable_if<!std::is_same<ClassType, typename std::tuple_element<0, std::tuple<ChainElements...>>::type>::value || ( Which != 0 ), void>::type relink() VULKAN_HPP_NOEXCEPT { static_assert( IsPartOfStructureChain<ClassType, ChainElements...>::valid, "Can't relink Structure that's not part of this StructureChain!" ); auto pNext = reinterpret_cast<VkBaseInStructure *>( &get<ClassType, Which>() ); VULKAN_HPP_ASSERT( !isLinked( pNext ) ); auto & headElement = std::get<0>( static_cast<std::tuple<ChainElements...> &>( *this ) ); pNext->pNext = reinterpret_cast<VkBaseInStructure const *>( headElement.pNext ); headElement.pNext = pNext; } template <typename ClassType, size_t Which = 0> typename std::enable_if<!std::is_same<ClassType, typename std::tuple_element<0, std::tuple<ChainElements...>>::type>::value || ( Which != 0 ), void>::type unlink() VULKAN_HPP_NOEXCEPT { static_assert( IsPartOfStructureChain<ClassType, ChainElements...>::valid, "Can't unlink Structure that's not part of this StructureChain!" ); unlink( reinterpret_cast<VkBaseOutStructure const *>( &get<ClassType, Which>() ) ); } private: template <int Index, typename T, int Which, typename, class First, class... Types> struct ChainElementIndex : ChainElementIndex<Index + 1, T, Which, void, Types...> { }; template <int Index, typename T, int Which, class First, class... Types> struct ChainElementIndex<Index, T, Which, typename std::enable_if<!std::is_same<T, First>::value, void>::type, First, Types...> : ChainElementIndex<Index + 1, T, Which, void, Types...> { }; template <int Index, typename T, int Which, class First, class... Types> struct ChainElementIndex<Index, T, Which, typename std::enable_if<std::is_same<T, First>::value, void>::type, First, Types...> : ChainElementIndex<Index + 1, T, Which - 1, void, Types...> { }; template <int Index, typename T, class First, class... Types> struct ChainElementIndex<Index, T, 0, typename std::enable_if<std::is_same<T, First>::value, void>::type, First, Types...> : std::integral_constant<int, Index> { }; bool isLinked( VkBaseInStructure const * pNext ) const VULKAN_HPP_NOEXCEPT { VkBaseInStructure const * elementPtr = reinterpret_cast<VkBaseInStructure const *>( &std::get<0>( static_cast<std::tuple<ChainElements...> const &>( *this ) ) ); while ( elementPtr ) { if ( elementPtr->pNext == pNext ) { return true; } elementPtr = elementPtr->pNext; } return false; } template <size_t Index> typename std::enable_if<Index != 0, void>::type link() VULKAN_HPP_NOEXCEPT { auto & x = std::get<Index - 1>( static_cast<std::tuple<ChainElements...> &>( *this ) ); x.pNext = &std::get<Index>( static_cast<std::tuple<ChainElements...> &>( *this ) ); link<Index - 1>(); } template <size_t Index> typename std::enable_if<Index == 0, void>::type link() VULKAN_HPP_NOEXCEPT { } void link( void * dstBase, void const * srcBase, VkBaseOutStructure * dst, VkBaseInStructure const * src ) { while ( src->pNext ) { std::ptrdiff_t offset = reinterpret_cast<char const *>( src->pNext ) - reinterpret_cast<char const *>( srcBase ); dst->pNext = reinterpret_cast<VkBaseOutStructure *>( reinterpret_cast<char *>( dstBase ) + offset ); dst = dst->pNext; src = src->pNext; } dst->pNext = nullptr; } void unlink( VkBaseOutStructure const * pNext ) VULKAN_HPP_NOEXCEPT { VkBaseOutStructure * elementPtr = reinterpret_cast<VkBaseOutStructure *>( &std::get<0>( static_cast<std::tuple<ChainElements...> &>( *this ) ) ); while ( elementPtr && ( elementPtr->pNext != pNext ) ) { elementPtr = elementPtr->pNext; } if ( elementPtr ) { elementPtr->pNext = pNext->pNext; } else { VULKAN_HPP_ASSERT( false ); // fires, if the ClassType member has already been unlinked ! } } }; # if !defined( VULKAN_HPP_NO_SMART_HANDLE ) template <typename Type, typename Dispatch> class UniqueHandleTraits; template <typename Type, typename Dispatch> class UniqueHandle : public UniqueHandleTraits<Type, Dispatch>::deleter { private: using Deleter = typename UniqueHandleTraits<Type, Dispatch>::deleter; public: using element_type = Type; UniqueHandle() : Deleter(), m_value() {} explicit UniqueHandle( Type const & value, Deleter const & deleter = Deleter() ) VULKAN_HPP_NOEXCEPT : Deleter( deleter ) , m_value( value ) { } UniqueHandle( UniqueHandle const & ) = delete; UniqueHandle( UniqueHandle && other ) VULKAN_HPP_NOEXCEPT : Deleter( std::move( static_cast<Deleter &>( other ) ) ) , m_value( other.release() ) { } ~UniqueHandle() VULKAN_HPP_NOEXCEPT { if ( m_value ) { this->destroy( m_value ); } } UniqueHandle & operator=( UniqueHandle const & ) = delete; UniqueHandle & operator=( UniqueHandle && other ) VULKAN_HPP_NOEXCEPT { reset( other.release() ); *static_cast<Deleter *>( this ) = std::move( static_cast<Deleter &>( other ) ); return *this; } explicit operator bool() const VULKAN_HPP_NOEXCEPT { return m_value.operator bool(); } Type const * operator->() const VULKAN_HPP_NOEXCEPT { return &m_value; } Type * operator->() VULKAN_HPP_NOEXCEPT { return &m_value; } Type const & operator*() const VULKAN_HPP_NOEXCEPT { return m_value; } Type & operator*() VULKAN_HPP_NOEXCEPT { return m_value; } const Type & get() const VULKAN_HPP_NOEXCEPT { return m_value; } Type & get() VULKAN_HPP_NOEXCEPT { return m_value; } void reset( Type const & value = Type() ) VULKAN_HPP_NOEXCEPT { if ( m_value != value ) { if ( m_value ) { this->destroy( m_value ); } m_value = value; } } Type release() VULKAN_HPP_NOEXCEPT { Type value = m_value; m_value = nullptr; return value; } void swap( UniqueHandle<Type, Dispatch> & rhs ) VULKAN_HPP_NOEXCEPT { std::swap( m_value, rhs.m_value ); std::swap( static_cast<Deleter &>( *this ), static_cast<Deleter &>( rhs ) ); } private: Type m_value; }; template <typename UniqueType> VULKAN_HPP_INLINE std::vector<typename UniqueType::element_type> uniqueToRaw( std::vector<UniqueType> const & handles ) { std::vector<typename UniqueType::element_type> newBuffer( handles.size() ); std::transform( handles.begin(), handles.end(), newBuffer.begin(), []( UniqueType const & handle ) { return handle.get(); } ); return newBuffer; } template <typename Type, typename Dispatch> VULKAN_HPP_INLINE void swap( UniqueHandle<Type, Dispatch> & lhs, UniqueHandle<Type, Dispatch> & rhs ) VULKAN_HPP_NOEXCEPT { lhs.swap( rhs ); } # endif #endif // VULKAN_HPP_DISABLE_ENHANCED_MODE class DispatchLoaderBase { public: DispatchLoaderBase() = default; DispatchLoaderBase( std::nullptr_t ) #if !defined( NDEBUG ) : m_valid( false ) #endif { } #if !defined( NDEBUG ) size_t getVkHeaderVersion() const { VULKAN_HPP_ASSERT( m_valid ); return vkHeaderVersion; } private: size_t vkHeaderVersion = VK_HEADER_VERSION; bool m_valid = true; #endif }; #if !defined( VK_NO_PROTOTYPES ) class DispatchLoaderStatic : public DispatchLoaderBase { public: //=== VK_VERSION_1_0 === VkResult vkCreateInstance( const VkInstanceCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkInstance * pInstance ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateInstance( pCreateInfo, pAllocator, pInstance ); } void vkDestroyInstance( VkInstance instance, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyInstance( instance, pAllocator ); } VkResult vkEnumeratePhysicalDevices( VkInstance instance, uint32_t * pPhysicalDeviceCount, VkPhysicalDevice * pPhysicalDevices ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumeratePhysicalDevices( instance, pPhysicalDeviceCount, pPhysicalDevices ); } void vkGetPhysicalDeviceFeatures( VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures * pFeatures ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFeatures( physicalDevice, pFeatures ); } void vkGetPhysicalDeviceFormatProperties( VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties * pFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFormatProperties( physicalDevice, format, pFormatProperties ); } VkResult vkGetPhysicalDeviceImageFormatProperties( VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceImageFormatProperties( physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties ); } void vkGetPhysicalDeviceProperties( VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceProperties( physicalDevice, pProperties ); } void vkGetPhysicalDeviceQueueFamilyProperties( VkPhysicalDevice physicalDevice, uint32_t * pQueueFamilyPropertyCount, VkQueueFamilyProperties * pQueueFamilyProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceQueueFamilyProperties( physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties ); } void vkGetPhysicalDeviceMemoryProperties( VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties * pMemoryProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceMemoryProperties( physicalDevice, pMemoryProperties ); } PFN_vkVoidFunction vkGetInstanceProcAddr( VkInstance instance, const char * pName ) const VULKAN_HPP_NOEXCEPT { return ::vkGetInstanceProcAddr( instance, pName ); } PFN_vkVoidFunction vkGetDeviceProcAddr( VkDevice device, const char * pName ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceProcAddr( device, pName ); } VkResult vkCreateDevice( VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDevice * pDevice ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDevice( physicalDevice, pCreateInfo, pAllocator, pDevice ); } void vkDestroyDevice( VkDevice device, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDevice( device, pAllocator ); } VkResult vkEnumerateInstanceExtensionProperties( const char * pLayerName, uint32_t * pPropertyCount, VkExtensionProperties * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumerateInstanceExtensionProperties( pLayerName, pPropertyCount, pProperties ); } VkResult vkEnumerateDeviceExtensionProperties( VkPhysicalDevice physicalDevice, const char * pLayerName, uint32_t * pPropertyCount, VkExtensionProperties * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumerateDeviceExtensionProperties( physicalDevice, pLayerName, pPropertyCount, pProperties ); } VkResult vkEnumerateInstanceLayerProperties( uint32_t * pPropertyCount, VkLayerProperties * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumerateInstanceLayerProperties( pPropertyCount, pProperties ); } VkResult vkEnumerateDeviceLayerProperties( VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkLayerProperties * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumerateDeviceLayerProperties( physicalDevice, pPropertyCount, pProperties ); } void vkGetDeviceQueue( VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue * pQueue ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceQueue( device, queueFamilyIndex, queueIndex, pQueue ); } VkResult vkQueueSubmit( VkQueue queue, uint32_t submitCount, const VkSubmitInfo * pSubmits, VkFence fence ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueSubmit( queue, submitCount, pSubmits, fence ); } VkResult vkQueueWaitIdle( VkQueue queue ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueWaitIdle( queue ); } VkResult vkDeviceWaitIdle( VkDevice device ) const VULKAN_HPP_NOEXCEPT { return ::vkDeviceWaitIdle( device ); } VkResult vkAllocateMemory( VkDevice device, const VkMemoryAllocateInfo * pAllocateInfo, const VkAllocationCallbacks * pAllocator, VkDeviceMemory * pMemory ) const VULKAN_HPP_NOEXCEPT { return ::vkAllocateMemory( device, pAllocateInfo, pAllocator, pMemory ); } void vkFreeMemory( VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkFreeMemory( device, memory, pAllocator ); } VkResult vkMapMemory( VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void ** ppData ) const VULKAN_HPP_NOEXCEPT { return ::vkMapMemory( device, memory, offset, size, flags, ppData ); } void vkUnmapMemory( VkDevice device, VkDeviceMemory memory ) const VULKAN_HPP_NOEXCEPT { return ::vkUnmapMemory( device, memory ); } VkResult vkFlushMappedMemoryRanges( VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange * pMemoryRanges ) const VULKAN_HPP_NOEXCEPT { return ::vkFlushMappedMemoryRanges( device, memoryRangeCount, pMemoryRanges ); } VkResult vkInvalidateMappedMemoryRanges( VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange * pMemoryRanges ) const VULKAN_HPP_NOEXCEPT { return ::vkInvalidateMappedMemoryRanges( device, memoryRangeCount, pMemoryRanges ); } void vkGetDeviceMemoryCommitment( VkDevice device, VkDeviceMemory memory, VkDeviceSize * pCommittedMemoryInBytes ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceMemoryCommitment( device, memory, pCommittedMemoryInBytes ); } VkResult vkBindBufferMemory( VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset ) const VULKAN_HPP_NOEXCEPT { return ::vkBindBufferMemory( device, buffer, memory, memoryOffset ); } VkResult vkBindImageMemory( VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset ) const VULKAN_HPP_NOEXCEPT { return ::vkBindImageMemory( device, image, memory, memoryOffset ); } void vkGetBufferMemoryRequirements( VkDevice device, VkBuffer buffer, VkMemoryRequirements * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferMemoryRequirements( device, buffer, pMemoryRequirements ); } void vkGetImageMemoryRequirements( VkDevice device, VkImage image, VkMemoryRequirements * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageMemoryRequirements( device, image, pMemoryRequirements ); } void vkGetImageSparseMemoryRequirements( VkDevice device, VkImage image, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements * pSparseMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageSparseMemoryRequirements( device, image, pSparseMemoryRequirementCount, pSparseMemoryRequirements ); } void vkGetPhysicalDeviceSparseImageFormatProperties( VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t * pPropertyCount, VkSparseImageFormatProperties * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSparseImageFormatProperties( physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties ); } VkResult vkQueueBindSparse( VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo * pBindInfo, VkFence fence ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueBindSparse( queue, bindInfoCount, pBindInfo, fence ); } VkResult vkCreateFence( VkDevice device, const VkFenceCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkFence * pFence ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateFence( device, pCreateInfo, pAllocator, pFence ); } void vkDestroyFence( VkDevice device, VkFence fence, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyFence( device, fence, pAllocator ); } VkResult vkResetFences( VkDevice device, uint32_t fenceCount, const VkFence * pFences ) const VULKAN_HPP_NOEXCEPT { return ::vkResetFences( device, fenceCount, pFences ); } VkResult vkGetFenceStatus( VkDevice device, VkFence fence ) const VULKAN_HPP_NOEXCEPT { return ::vkGetFenceStatus( device, fence ); } VkResult vkWaitForFences( VkDevice device, uint32_t fenceCount, const VkFence * pFences, VkBool32 waitAll, uint64_t timeout ) const VULKAN_HPP_NOEXCEPT { return ::vkWaitForFences( device, fenceCount, pFences, waitAll, timeout ); } VkResult vkCreateSemaphore( VkDevice device, const VkSemaphoreCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSemaphore * pSemaphore ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateSemaphore( device, pCreateInfo, pAllocator, pSemaphore ); } void vkDestroySemaphore( VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroySemaphore( device, semaphore, pAllocator ); } VkResult vkCreateEvent( VkDevice device, const VkEventCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkEvent * pEvent ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateEvent( device, pCreateInfo, pAllocator, pEvent ); } void vkDestroyEvent( VkDevice device, VkEvent event, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyEvent( device, event, pAllocator ); } VkResult vkGetEventStatus( VkDevice device, VkEvent event ) const VULKAN_HPP_NOEXCEPT { return ::vkGetEventStatus( device, event ); } VkResult vkSetEvent( VkDevice device, VkEvent event ) const VULKAN_HPP_NOEXCEPT { return ::vkSetEvent( device, event ); } VkResult vkResetEvent( VkDevice device, VkEvent event ) const VULKAN_HPP_NOEXCEPT { return ::vkResetEvent( device, event ); } VkResult vkCreateQueryPool( VkDevice device, const VkQueryPoolCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkQueryPool * pQueryPool ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateQueryPool( device, pCreateInfo, pAllocator, pQueryPool ); } void vkDestroyQueryPool( VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyQueryPool( device, queryPool, pAllocator ); } VkResult vkGetQueryPoolResults( VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void * pData, VkDeviceSize stride, VkQueryResultFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkGetQueryPoolResults( device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags ); } VkResult vkCreateBuffer( VkDevice device, const VkBufferCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkBuffer * pBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateBuffer( device, pCreateInfo, pAllocator, pBuffer ); } void vkDestroyBuffer( VkDevice device, VkBuffer buffer, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyBuffer( device, buffer, pAllocator ); } VkResult vkCreateBufferView( VkDevice device, const VkBufferViewCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkBufferView * pView ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateBufferView( device, pCreateInfo, pAllocator, pView ); } void vkDestroyBufferView( VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyBufferView( device, bufferView, pAllocator ); } VkResult vkCreateImage( VkDevice device, const VkImageCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkImage * pImage ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateImage( device, pCreateInfo, pAllocator, pImage ); } void vkDestroyImage( VkDevice device, VkImage image, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyImage( device, image, pAllocator ); } void vkGetImageSubresourceLayout( VkDevice device, VkImage image, const VkImageSubresource * pSubresource, VkSubresourceLayout * pLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageSubresourceLayout( device, image, pSubresource, pLayout ); } VkResult vkCreateImageView( VkDevice device, const VkImageViewCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkImageView * pView ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateImageView( device, pCreateInfo, pAllocator, pView ); } void vkDestroyImageView( VkDevice device, VkImageView imageView, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyImageView( device, imageView, pAllocator ); } VkResult vkCreateShaderModule( VkDevice device, const VkShaderModuleCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkShaderModule * pShaderModule ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateShaderModule( device, pCreateInfo, pAllocator, pShaderModule ); } void vkDestroyShaderModule( VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyShaderModule( device, shaderModule, pAllocator ); } VkResult vkCreatePipelineCache( VkDevice device, const VkPipelineCacheCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkPipelineCache * pPipelineCache ) const VULKAN_HPP_NOEXCEPT { return ::vkCreatePipelineCache( device, pCreateInfo, pAllocator, pPipelineCache ); } void vkDestroyPipelineCache( VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyPipelineCache( device, pipelineCache, pAllocator ); } VkResult vkGetPipelineCacheData( VkDevice device, VkPipelineCache pipelineCache, size_t * pDataSize, void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPipelineCacheData( device, pipelineCache, pDataSize, pData ); } VkResult vkMergePipelineCaches( VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache * pSrcCaches ) const VULKAN_HPP_NOEXCEPT { return ::vkMergePipelineCaches( device, dstCache, srcCacheCount, pSrcCaches ); } VkResult vkCreateGraphicsPipelines( VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkPipeline * pPipelines ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateGraphicsPipelines( device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines ); } VkResult vkCreateComputePipelines( VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkPipeline * pPipelines ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateComputePipelines( device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines ); } void vkDestroyPipeline( VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyPipeline( device, pipeline, pAllocator ); } VkResult vkCreatePipelineLayout( VkDevice device, const VkPipelineLayoutCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkPipelineLayout * pPipelineLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkCreatePipelineLayout( device, pCreateInfo, pAllocator, pPipelineLayout ); } void vkDestroyPipelineLayout( VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyPipelineLayout( device, pipelineLayout, pAllocator ); } VkResult vkCreateSampler( VkDevice device, const VkSamplerCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSampler * pSampler ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateSampler( device, pCreateInfo, pAllocator, pSampler ); } void vkDestroySampler( VkDevice device, VkSampler sampler, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroySampler( device, sampler, pAllocator ); } VkResult vkCreateDescriptorSetLayout( VkDevice device, const VkDescriptorSetLayoutCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorSetLayout * pSetLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDescriptorSetLayout( device, pCreateInfo, pAllocator, pSetLayout ); } void vkDestroyDescriptorSetLayout( VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDescriptorSetLayout( device, descriptorSetLayout, pAllocator ); } VkResult vkCreateDescriptorPool( VkDevice device, const VkDescriptorPoolCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorPool * pDescriptorPool ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDescriptorPool( device, pCreateInfo, pAllocator, pDescriptorPool ); } void vkDestroyDescriptorPool( VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDescriptorPool( device, descriptorPool, pAllocator ); } VkResult vkResetDescriptorPool( VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkResetDescriptorPool( device, descriptorPool, flags ); } VkResult vkAllocateDescriptorSets( VkDevice device, const VkDescriptorSetAllocateInfo * pAllocateInfo, VkDescriptorSet * pDescriptorSets ) const VULKAN_HPP_NOEXCEPT { return ::vkAllocateDescriptorSets( device, pAllocateInfo, pDescriptorSets ); } VkResult vkFreeDescriptorSets( VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet * pDescriptorSets ) const VULKAN_HPP_NOEXCEPT { return ::vkFreeDescriptorSets( device, descriptorPool, descriptorSetCount, pDescriptorSets ); } void vkUpdateDescriptorSets( VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet * pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet * pDescriptorCopies ) const VULKAN_HPP_NOEXCEPT { return ::vkUpdateDescriptorSets( device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies ); } VkResult vkCreateFramebuffer( VkDevice device, const VkFramebufferCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkFramebuffer * pFramebuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateFramebuffer( device, pCreateInfo, pAllocator, pFramebuffer ); } void vkDestroyFramebuffer( VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyFramebuffer( device, framebuffer, pAllocator ); } VkResult vkCreateRenderPass( VkDevice device, const VkRenderPassCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkRenderPass * pRenderPass ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateRenderPass( device, pCreateInfo, pAllocator, pRenderPass ); } void vkDestroyRenderPass( VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyRenderPass( device, renderPass, pAllocator ); } void vkGetRenderAreaGranularity( VkDevice device, VkRenderPass renderPass, VkExtent2D * pGranularity ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRenderAreaGranularity( device, renderPass, pGranularity ); } VkResult vkCreateCommandPool( VkDevice device, const VkCommandPoolCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkCommandPool * pCommandPool ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateCommandPool( device, pCreateInfo, pAllocator, pCommandPool ); } void vkDestroyCommandPool( VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyCommandPool( device, commandPool, pAllocator ); } VkResult vkResetCommandPool( VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkResetCommandPool( device, commandPool, flags ); } VkResult vkAllocateCommandBuffers( VkDevice device, const VkCommandBufferAllocateInfo * pAllocateInfo, VkCommandBuffer * pCommandBuffers ) const VULKAN_HPP_NOEXCEPT { return ::vkAllocateCommandBuffers( device, pAllocateInfo, pCommandBuffers ); } void vkFreeCommandBuffers( VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer * pCommandBuffers ) const VULKAN_HPP_NOEXCEPT { return ::vkFreeCommandBuffers( device, commandPool, commandBufferCount, pCommandBuffers ); } VkResult vkBeginCommandBuffer( VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo * pBeginInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkBeginCommandBuffer( commandBuffer, pBeginInfo ); } VkResult vkEndCommandBuffer( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkEndCommandBuffer( commandBuffer ); } VkResult vkResetCommandBuffer( VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkResetCommandBuffer( commandBuffer, flags ); } void vkCmdBindPipeline( VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindPipeline( commandBuffer, pipelineBindPoint, pipeline ); } void vkCmdSetViewport( VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport * pViewports ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetViewport( commandBuffer, firstViewport, viewportCount, pViewports ); } void vkCmdSetScissor( VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D * pScissors ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetScissor( commandBuffer, firstScissor, scissorCount, pScissors ); } void vkCmdSetLineWidth( VkCommandBuffer commandBuffer, float lineWidth ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetLineWidth( commandBuffer, lineWidth ); } void vkCmdSetDepthBias( VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthBias( commandBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor ); } void vkCmdSetBlendConstants( VkCommandBuffer commandBuffer, const float blendConstants[4] ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetBlendConstants( commandBuffer, blendConstants ); } void vkCmdSetDepthBounds( VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthBounds( commandBuffer, minDepthBounds, maxDepthBounds ); } void vkCmdSetStencilCompareMask( VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilCompareMask( commandBuffer, faceMask, compareMask ); } void vkCmdSetStencilWriteMask( VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilWriteMask( commandBuffer, faceMask, writeMask ); } void vkCmdSetStencilReference( VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilReference( commandBuffer, faceMask, reference ); } void vkCmdBindDescriptorSets( VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet * pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t * pDynamicOffsets ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindDescriptorSets( commandBuffer, pipelineBindPoint, layout, firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets ); } void vkCmdBindIndexBuffer( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindIndexBuffer( commandBuffer, buffer, offset, indexType ); } void vkCmdBindVertexBuffers( VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer * pBuffers, const VkDeviceSize * pOffsets ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindVertexBuffers( commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets ); } void vkCmdDraw( VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDraw( commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance ); } void vkCmdDrawIndexed( VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndexed( commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance ); } void vkCmdDrawIndirect( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndirect( commandBuffer, buffer, offset, drawCount, stride ); } void vkCmdDrawIndexedIndirect( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndexedIndirect( commandBuffer, buffer, offset, drawCount, stride ); } void vkCmdDispatch( VkCommandBuffer commandBuffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDispatch( commandBuffer, groupCountX, groupCountY, groupCountZ ); } void vkCmdDispatchIndirect( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDispatchIndirect( commandBuffer, buffer, offset ); } void vkCmdCopyBuffer( VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy * pRegions ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyBuffer( commandBuffer, srcBuffer, dstBuffer, regionCount, pRegions ); } void vkCmdCopyImage( VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy * pRegions ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyImage( commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions ); } void vkCmdBlitImage( VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit * pRegions, VkFilter filter ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBlitImage( commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions, filter ); } void vkCmdCopyBufferToImage( VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy * pRegions ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyBufferToImage( commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions ); } void vkCmdCopyImageToBuffer( VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy * pRegions ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyImageToBuffer( commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions ); } void vkCmdUpdateBuffer( VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdUpdateBuffer( commandBuffer, dstBuffer, dstOffset, dataSize, pData ); } void vkCmdFillBuffer( VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdFillBuffer( commandBuffer, dstBuffer, dstOffset, size, data ); } void vkCmdClearColorImage( VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue * pColor, uint32_t rangeCount, const VkImageSubresourceRange * pRanges ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdClearColorImage( commandBuffer, image, imageLayout, pColor, rangeCount, pRanges ); } void vkCmdClearDepthStencilImage( VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue * pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange * pRanges ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdClearDepthStencilImage( commandBuffer, image, imageLayout, pDepthStencil, rangeCount, pRanges ); } void vkCmdClearAttachments( VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment * pAttachments, uint32_t rectCount, const VkClearRect * pRects ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdClearAttachments( commandBuffer, attachmentCount, pAttachments, rectCount, pRects ); } void vkCmdResolveImage( VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve * pRegions ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResolveImage( commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions ); } void vkCmdSetEvent( VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetEvent( commandBuffer, event, stageMask ); } void vkCmdResetEvent( VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResetEvent( commandBuffer, event, stageMask ); } void vkCmdWaitEvents( VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent * pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier * pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier * pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier * pImageMemoryBarriers ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWaitEvents( commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers ); } void vkCmdPipelineBarrier( VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier * pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier * pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier * pImageMemoryBarriers ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPipelineBarrier( commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers ); } void vkCmdBeginQuery( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginQuery( commandBuffer, queryPool, query, flags ); } void vkCmdEndQuery( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndQuery( commandBuffer, queryPool, query ); } void vkCmdResetQueryPool( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResetQueryPool( commandBuffer, queryPool, firstQuery, queryCount ); } void vkCmdWriteTimestamp( VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteTimestamp( commandBuffer, pipelineStage, queryPool, query ); } void vkCmdCopyQueryPoolResults( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyQueryPoolResults( commandBuffer, queryPool, firstQuery, queryCount, dstBuffer, dstOffset, stride, flags ); } void vkCmdPushConstants( VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void * pValues ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPushConstants( commandBuffer, layout, stageFlags, offset, size, pValues ); } void vkCmdBeginRenderPass( VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo * pRenderPassBegin, VkSubpassContents contents ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginRenderPass( commandBuffer, pRenderPassBegin, contents ); } void vkCmdNextSubpass( VkCommandBuffer commandBuffer, VkSubpassContents contents ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdNextSubpass( commandBuffer, contents ); } void vkCmdEndRenderPass( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndRenderPass( commandBuffer ); } void vkCmdExecuteCommands( VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer * pCommandBuffers ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdExecuteCommands( commandBuffer, commandBufferCount, pCommandBuffers ); } //=== VK_VERSION_1_1 === VkResult vkEnumerateInstanceVersion( uint32_t * pApiVersion ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumerateInstanceVersion( pApiVersion ); } VkResult vkBindBufferMemory2( VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfo * pBindInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkBindBufferMemory2( device, bindInfoCount, pBindInfos ); } VkResult vkBindImageMemory2( VkDevice device, uint32_t bindInfoCount, const VkBindImageMemoryInfo * pBindInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkBindImageMemory2( device, bindInfoCount, pBindInfos ); } void vkGetDeviceGroupPeerMemoryFeatures( VkDevice device, uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, VkPeerMemoryFeatureFlags * pPeerMemoryFeatures ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceGroupPeerMemoryFeatures( device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures ); } void vkCmdSetDeviceMask( VkCommandBuffer commandBuffer, uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDeviceMask( commandBuffer, deviceMask ); } void vkCmdDispatchBase( VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDispatchBase( commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ ); } VkResult vkEnumeratePhysicalDeviceGroups( VkInstance instance, uint32_t * pPhysicalDeviceGroupCount, VkPhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumeratePhysicalDeviceGroups( instance, pPhysicalDeviceGroupCount, pPhysicalDeviceGroupProperties ); } void vkGetImageMemoryRequirements2( VkDevice device, const VkImageMemoryRequirementsInfo2 * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageMemoryRequirements2( device, pInfo, pMemoryRequirements ); } void vkGetBufferMemoryRequirements2( VkDevice device, const VkBufferMemoryRequirementsInfo2 * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferMemoryRequirements2( device, pInfo, pMemoryRequirements ); } void vkGetImageSparseMemoryRequirements2( VkDevice device, const VkImageSparseMemoryRequirementsInfo2 * pInfo, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 * pSparseMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageSparseMemoryRequirements2( device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements ); } void vkGetPhysicalDeviceFeatures2( VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2 * pFeatures ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFeatures2( physicalDevice, pFeatures ); } void vkGetPhysicalDeviceProperties2( VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceProperties2( physicalDevice, pProperties ); } void vkGetPhysicalDeviceFormatProperties2( VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFormatProperties2( physicalDevice, format, pFormatProperties ); } VkResult vkGetPhysicalDeviceImageFormatProperties2( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2 * pImageFormatInfo, VkImageFormatProperties2 * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceImageFormatProperties2( physicalDevice, pImageFormatInfo, pImageFormatProperties ); } void vkGetPhysicalDeviceQueueFamilyProperties2( VkPhysicalDevice physicalDevice, uint32_t * pQueueFamilyPropertyCount, VkQueueFamilyProperties2 * pQueueFamilyProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceQueueFamilyProperties2( physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties ); } void vkGetPhysicalDeviceMemoryProperties2( VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2 * pMemoryProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceMemoryProperties2( physicalDevice, pMemoryProperties ); } void vkGetPhysicalDeviceSparseImageFormatProperties2( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2 * pFormatInfo, uint32_t * pPropertyCount, VkSparseImageFormatProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSparseImageFormatProperties2( physicalDevice, pFormatInfo, pPropertyCount, pProperties ); } void vkTrimCommandPool( VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkTrimCommandPool( device, commandPool, flags ); } void vkGetDeviceQueue2( VkDevice device, const VkDeviceQueueInfo2 * pQueueInfo, VkQueue * pQueue ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceQueue2( device, pQueueInfo, pQueue ); } VkResult vkCreateSamplerYcbcrConversion( VkDevice device, const VkSamplerYcbcrConversionCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSamplerYcbcrConversion * pYcbcrConversion ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateSamplerYcbcrConversion( device, pCreateInfo, pAllocator, pYcbcrConversion ); } void vkDestroySamplerYcbcrConversion( VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroySamplerYcbcrConversion( device, ycbcrConversion, pAllocator ); } VkResult vkCreateDescriptorUpdateTemplate( VkDevice device, const VkDescriptorUpdateTemplateCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorUpdateTemplate * pDescriptorUpdateTemplate ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDescriptorUpdateTemplate( device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate ); } void vkDestroyDescriptorUpdateTemplate( VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDescriptorUpdateTemplate( device, descriptorUpdateTemplate, pAllocator ); } void vkUpdateDescriptorSetWithTemplate( VkDevice device, VkDescriptorSet descriptorSet, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkUpdateDescriptorSetWithTemplate( device, descriptorSet, descriptorUpdateTemplate, pData ); } void vkGetPhysicalDeviceExternalBufferProperties( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfo * pExternalBufferInfo, VkExternalBufferProperties * pExternalBufferProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalBufferProperties( physicalDevice, pExternalBufferInfo, pExternalBufferProperties ); } void vkGetPhysicalDeviceExternalFenceProperties( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalFenceInfo * pExternalFenceInfo, VkExternalFenceProperties * pExternalFenceProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalFenceProperties( physicalDevice, pExternalFenceInfo, pExternalFenceProperties ); } void vkGetPhysicalDeviceExternalSemaphoreProperties( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfo * pExternalSemaphoreInfo, VkExternalSemaphoreProperties * pExternalSemaphoreProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalSemaphoreProperties( physicalDevice, pExternalSemaphoreInfo, pExternalSemaphoreProperties ); } void vkGetDescriptorSetLayoutSupport( VkDevice device, const VkDescriptorSetLayoutCreateInfo * pCreateInfo, VkDescriptorSetLayoutSupport * pSupport ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDescriptorSetLayoutSupport( device, pCreateInfo, pSupport ); } //=== VK_VERSION_1_2 === void vkCmdDrawIndirectCount( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndirectCount( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } void vkCmdDrawIndexedIndirectCount( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndexedIndirectCount( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } VkResult vkCreateRenderPass2( VkDevice device, const VkRenderPassCreateInfo2 * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkRenderPass * pRenderPass ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateRenderPass2( device, pCreateInfo, pAllocator, pRenderPass ); } void vkCmdBeginRenderPass2( VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo * pRenderPassBegin, const VkSubpassBeginInfo * pSubpassBeginInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginRenderPass2( commandBuffer, pRenderPassBegin, pSubpassBeginInfo ); } void vkCmdNextSubpass2( VkCommandBuffer commandBuffer, const VkSubpassBeginInfo * pSubpassBeginInfo, const VkSubpassEndInfo * pSubpassEndInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdNextSubpass2( commandBuffer, pSubpassBeginInfo, pSubpassEndInfo ); } void vkCmdEndRenderPass2( VkCommandBuffer commandBuffer, const VkSubpassEndInfo * pSubpassEndInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndRenderPass2( commandBuffer, pSubpassEndInfo ); } void vkResetQueryPool( VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT { return ::vkResetQueryPool( device, queryPool, firstQuery, queryCount ); } VkResult vkGetSemaphoreCounterValue( VkDevice device, VkSemaphore semaphore, uint64_t * pValue ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSemaphoreCounterValue( device, semaphore, pValue ); } VkResult vkWaitSemaphores( VkDevice device, const VkSemaphoreWaitInfo * pWaitInfo, uint64_t timeout ) const VULKAN_HPP_NOEXCEPT { return ::vkWaitSemaphores( device, pWaitInfo, timeout ); } VkResult vkSignalSemaphore( VkDevice device, const VkSemaphoreSignalInfo * pSignalInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkSignalSemaphore( device, pSignalInfo ); } VkDeviceAddress vkGetBufferDeviceAddress( VkDevice device, const VkBufferDeviceAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferDeviceAddress( device, pInfo ); } uint64_t vkGetBufferOpaqueCaptureAddress( VkDevice device, const VkBufferDeviceAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferOpaqueCaptureAddress( device, pInfo ); } uint64_t vkGetDeviceMemoryOpaqueCaptureAddress( VkDevice device, const VkDeviceMemoryOpaqueCaptureAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceMemoryOpaqueCaptureAddress( device, pInfo ); } //=== VK_VERSION_1_3 === VkResult vkGetPhysicalDeviceToolProperties( VkPhysicalDevice physicalDevice, uint32_t * pToolCount, VkPhysicalDeviceToolProperties * pToolProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceToolProperties( physicalDevice, pToolCount, pToolProperties ); } VkResult vkCreatePrivateDataSlot( VkDevice device, const VkPrivateDataSlotCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkPrivateDataSlot * pPrivateDataSlot ) const VULKAN_HPP_NOEXCEPT { return ::vkCreatePrivateDataSlot( device, pCreateInfo, pAllocator, pPrivateDataSlot ); } void vkDestroyPrivateDataSlot( VkDevice device, VkPrivateDataSlot privateDataSlot, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyPrivateDataSlot( device, privateDataSlot, pAllocator ); } VkResult vkSetPrivateData( VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t data ) const VULKAN_HPP_NOEXCEPT { return ::vkSetPrivateData( device, objectType, objectHandle, privateDataSlot, data ); } void vkGetPrivateData( VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPrivateData( device, objectType, objectHandle, privateDataSlot, pData ); } void vkCmdSetEvent2( VkCommandBuffer commandBuffer, VkEvent event, const VkDependencyInfo * pDependencyInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetEvent2( commandBuffer, event, pDependencyInfo ); } void vkCmdResetEvent2( VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags2 stageMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResetEvent2( commandBuffer, event, stageMask ); } void vkCmdWaitEvents2( VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent * pEvents, const VkDependencyInfo * pDependencyInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWaitEvents2( commandBuffer, eventCount, pEvents, pDependencyInfos ); } void vkCmdPipelineBarrier2( VkCommandBuffer commandBuffer, const VkDependencyInfo * pDependencyInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPipelineBarrier2( commandBuffer, pDependencyInfo ); } void vkCmdWriteTimestamp2( VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkQueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteTimestamp2( commandBuffer, stage, queryPool, query ); } VkResult vkQueueSubmit2( VkQueue queue, uint32_t submitCount, const VkSubmitInfo2 * pSubmits, VkFence fence ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueSubmit2( queue, submitCount, pSubmits, fence ); } void vkCmdCopyBuffer2( VkCommandBuffer commandBuffer, const VkCopyBufferInfo2 * pCopyBufferInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyBuffer2( commandBuffer, pCopyBufferInfo ); } void vkCmdCopyImage2( VkCommandBuffer commandBuffer, const VkCopyImageInfo2 * pCopyImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyImage2( commandBuffer, pCopyImageInfo ); } void vkCmdCopyBufferToImage2( VkCommandBuffer commandBuffer, const VkCopyBufferToImageInfo2 * pCopyBufferToImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyBufferToImage2( commandBuffer, pCopyBufferToImageInfo ); } void vkCmdCopyImageToBuffer2( VkCommandBuffer commandBuffer, const VkCopyImageToBufferInfo2 * pCopyImageToBufferInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyImageToBuffer2( commandBuffer, pCopyImageToBufferInfo ); } void vkCmdBlitImage2( VkCommandBuffer commandBuffer, const VkBlitImageInfo2 * pBlitImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBlitImage2( commandBuffer, pBlitImageInfo ); } void vkCmdResolveImage2( VkCommandBuffer commandBuffer, const VkResolveImageInfo2 * pResolveImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResolveImage2( commandBuffer, pResolveImageInfo ); } void vkCmdBeginRendering( VkCommandBuffer commandBuffer, const VkRenderingInfo * pRenderingInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginRendering( commandBuffer, pRenderingInfo ); } void vkCmdEndRendering( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndRendering( commandBuffer ); } void vkCmdSetCullMode( VkCommandBuffer commandBuffer, VkCullModeFlags cullMode ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetCullMode( commandBuffer, cullMode ); } void vkCmdSetFrontFace( VkCommandBuffer commandBuffer, VkFrontFace frontFace ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetFrontFace( commandBuffer, frontFace ); } void vkCmdSetPrimitiveTopology( VkCommandBuffer commandBuffer, VkPrimitiveTopology primitiveTopology ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPrimitiveTopology( commandBuffer, primitiveTopology ); } void vkCmdSetViewportWithCount( VkCommandBuffer commandBuffer, uint32_t viewportCount, const VkViewport * pViewports ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetViewportWithCount( commandBuffer, viewportCount, pViewports ); } void vkCmdSetScissorWithCount( VkCommandBuffer commandBuffer, uint32_t scissorCount, const VkRect2D * pScissors ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetScissorWithCount( commandBuffer, scissorCount, pScissors ); } void vkCmdBindVertexBuffers2( VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer * pBuffers, const VkDeviceSize * pOffsets, const VkDeviceSize * pSizes, const VkDeviceSize * pStrides ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindVertexBuffers2( commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes, pStrides ); } void vkCmdSetDepthTestEnable( VkCommandBuffer commandBuffer, VkBool32 depthTestEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthTestEnable( commandBuffer, depthTestEnable ); } void vkCmdSetDepthWriteEnable( VkCommandBuffer commandBuffer, VkBool32 depthWriteEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthWriteEnable( commandBuffer, depthWriteEnable ); } void vkCmdSetDepthCompareOp( VkCommandBuffer commandBuffer, VkCompareOp depthCompareOp ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthCompareOp( commandBuffer, depthCompareOp ); } void vkCmdSetDepthBoundsTestEnable( VkCommandBuffer commandBuffer, VkBool32 depthBoundsTestEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthBoundsTestEnable( commandBuffer, depthBoundsTestEnable ); } void vkCmdSetStencilTestEnable( VkCommandBuffer commandBuffer, VkBool32 stencilTestEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilTestEnable( commandBuffer, stencilTestEnable ); } void vkCmdSetStencilOp( VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilOp( commandBuffer, faceMask, failOp, passOp, depthFailOp, compareOp ); } void vkCmdSetRasterizerDiscardEnable( VkCommandBuffer commandBuffer, VkBool32 rasterizerDiscardEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetRasterizerDiscardEnable( commandBuffer, rasterizerDiscardEnable ); } void vkCmdSetDepthBiasEnable( VkCommandBuffer commandBuffer, VkBool32 depthBiasEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthBiasEnable( commandBuffer, depthBiasEnable ); } void vkCmdSetPrimitiveRestartEnable( VkCommandBuffer commandBuffer, VkBool32 primitiveRestartEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPrimitiveRestartEnable( commandBuffer, primitiveRestartEnable ); } void vkGetDeviceBufferMemoryRequirements( VkDevice device, const VkDeviceBufferMemoryRequirements * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceBufferMemoryRequirements( device, pInfo, pMemoryRequirements ); } void vkGetDeviceImageMemoryRequirements( VkDevice device, const VkDeviceImageMemoryRequirements * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceImageMemoryRequirements( device, pInfo, pMemoryRequirements ); } void vkGetDeviceImageSparseMemoryRequirements( VkDevice device, const VkDeviceImageMemoryRequirements * pInfo, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 * pSparseMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceImageSparseMemoryRequirements( device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements ); } //=== VK_KHR_surface === void vkDestroySurfaceKHR( VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroySurfaceKHR( instance, surface, pAllocator ); } VkResult vkGetPhysicalDeviceSurfaceSupportKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32 * pSupported ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfaceSupportKHR( physicalDevice, queueFamilyIndex, surface, pSupported ); } VkResult vkGetPhysicalDeviceSurfaceCapabilitiesKHR( VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR * pSurfaceCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfaceCapabilitiesKHR( physicalDevice, surface, pSurfaceCapabilities ); } VkResult vkGetPhysicalDeviceSurfaceFormatsKHR( VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t * pSurfaceFormatCount, VkSurfaceFormatKHR * pSurfaceFormats ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfaceFormatsKHR( physicalDevice, surface, pSurfaceFormatCount, pSurfaceFormats ); } VkResult vkGetPhysicalDeviceSurfacePresentModesKHR( VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t * pPresentModeCount, VkPresentModeKHR * pPresentModes ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfacePresentModesKHR( physicalDevice, surface, pPresentModeCount, pPresentModes ); } //=== VK_KHR_swapchain === VkResult vkCreateSwapchainKHR( VkDevice device, const VkSwapchainCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSwapchainKHR * pSwapchain ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateSwapchainKHR( device, pCreateInfo, pAllocator, pSwapchain ); } void vkDestroySwapchainKHR( VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroySwapchainKHR( device, swapchain, pAllocator ); } VkResult vkGetSwapchainImagesKHR( VkDevice device, VkSwapchainKHR swapchain, uint32_t * pSwapchainImageCount, VkImage * pSwapchainImages ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSwapchainImagesKHR( device, swapchain, pSwapchainImageCount, pSwapchainImages ); } VkResult vkAcquireNextImageKHR( VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t * pImageIndex ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireNextImageKHR( device, swapchain, timeout, semaphore, fence, pImageIndex ); } VkResult vkQueuePresentKHR( VkQueue queue, const VkPresentInfoKHR * pPresentInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkQueuePresentKHR( queue, pPresentInfo ); } VkResult vkGetDeviceGroupPresentCapabilitiesKHR( VkDevice device, VkDeviceGroupPresentCapabilitiesKHR * pDeviceGroupPresentCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceGroupPresentCapabilitiesKHR( device, pDeviceGroupPresentCapabilities ); } VkResult vkGetDeviceGroupSurfacePresentModesKHR( VkDevice device, VkSurfaceKHR surface, VkDeviceGroupPresentModeFlagsKHR * pModes ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceGroupSurfacePresentModesKHR( device, surface, pModes ); } VkResult vkGetPhysicalDevicePresentRectanglesKHR( VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t * pRectCount, VkRect2D * pRects ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDevicePresentRectanglesKHR( physicalDevice, surface, pRectCount, pRects ); } VkResult vkAcquireNextImage2KHR( VkDevice device, const VkAcquireNextImageInfoKHR * pAcquireInfo, uint32_t * pImageIndex ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireNextImage2KHR( device, pAcquireInfo, pImageIndex ); } //=== VK_KHR_display === VkResult vkGetPhysicalDeviceDisplayPropertiesKHR( VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkDisplayPropertiesKHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceDisplayPropertiesKHR( physicalDevice, pPropertyCount, pProperties ); } VkResult vkGetPhysicalDeviceDisplayPlanePropertiesKHR( VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkDisplayPlanePropertiesKHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceDisplayPlanePropertiesKHR( physicalDevice, pPropertyCount, pProperties ); } VkResult vkGetDisplayPlaneSupportedDisplaysKHR( VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t * pDisplayCount, VkDisplayKHR * pDisplays ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDisplayPlaneSupportedDisplaysKHR( physicalDevice, planeIndex, pDisplayCount, pDisplays ); } VkResult vkGetDisplayModePropertiesKHR( VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t * pPropertyCount, VkDisplayModePropertiesKHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDisplayModePropertiesKHR( physicalDevice, display, pPropertyCount, pProperties ); } VkResult vkCreateDisplayModeKHR( VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDisplayModeKHR * pMode ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDisplayModeKHR( physicalDevice, display, pCreateInfo, pAllocator, pMode ); } VkResult vkGetDisplayPlaneCapabilitiesKHR( VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR * pCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDisplayPlaneCapabilitiesKHR( physicalDevice, mode, planeIndex, pCapabilities ); } VkResult vkCreateDisplayPlaneSurfaceKHR( VkInstance instance, const VkDisplaySurfaceCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDisplayPlaneSurfaceKHR( instance, pCreateInfo, pAllocator, pSurface ); } //=== VK_KHR_display_swapchain === VkResult vkCreateSharedSwapchainsKHR( VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkSwapchainKHR * pSwapchains ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateSharedSwapchainsKHR( device, swapchainCount, pCreateInfos, pAllocator, pSwapchains ); } # if defined( VK_USE_PLATFORM_XLIB_KHR ) //=== VK_KHR_xlib_surface === VkResult vkCreateXlibSurfaceKHR( VkInstance instance, const VkXlibSurfaceCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateXlibSurfaceKHR( instance, pCreateInfo, pAllocator, pSurface ); } VkBool32 vkGetPhysicalDeviceXlibPresentationSupportKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display * dpy, VisualID visualID ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceXlibPresentationSupportKHR( physicalDevice, queueFamilyIndex, dpy, visualID ); } # endif /*VK_USE_PLATFORM_XLIB_KHR*/ # if defined( VK_USE_PLATFORM_XCB_KHR ) //=== VK_KHR_xcb_surface === VkResult vkCreateXcbSurfaceKHR( VkInstance instance, const VkXcbSurfaceCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateXcbSurfaceKHR( instance, pCreateInfo, pAllocator, pSurface ); } VkBool32 vkGetPhysicalDeviceXcbPresentationSupportKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t * connection, xcb_visualid_t visual_id ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceXcbPresentationSupportKHR( physicalDevice, queueFamilyIndex, connection, visual_id ); } # endif /*VK_USE_PLATFORM_XCB_KHR*/ # if defined( VK_USE_PLATFORM_WAYLAND_KHR ) //=== VK_KHR_wayland_surface === VkResult vkCreateWaylandSurfaceKHR( VkInstance instance, const VkWaylandSurfaceCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateWaylandSurfaceKHR( instance, pCreateInfo, pAllocator, pSurface ); } VkBool32 vkGetPhysicalDeviceWaylandPresentationSupportKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display * display ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceWaylandPresentationSupportKHR( physicalDevice, queueFamilyIndex, display ); } # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/ # if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_KHR_android_surface === VkResult vkCreateAndroidSurfaceKHR( VkInstance instance, const VkAndroidSurfaceCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateAndroidSurfaceKHR( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_ANDROID_KHR*/ # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_win32_surface === VkResult vkCreateWin32SurfaceKHR( VkInstance instance, const VkWin32SurfaceCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateWin32SurfaceKHR( instance, pCreateInfo, pAllocator, pSurface ); } VkBool32 vkGetPhysicalDeviceWin32PresentationSupportKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceWin32PresentationSupportKHR( physicalDevice, queueFamilyIndex ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_debug_report === VkResult vkCreateDebugReportCallbackEXT( VkInstance instance, const VkDebugReportCallbackCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDebugReportCallbackEXT * pCallback ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDebugReportCallbackEXT( instance, pCreateInfo, pAllocator, pCallback ); } void vkDestroyDebugReportCallbackEXT( VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDebugReportCallbackEXT( instance, callback, pAllocator ); } void vkDebugReportMessageEXT( VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char * pLayerPrefix, const char * pMessage ) const VULKAN_HPP_NOEXCEPT { return ::vkDebugReportMessageEXT( instance, flags, objectType, object, location, messageCode, pLayerPrefix, pMessage ); } //=== VK_EXT_debug_marker === VkResult vkDebugMarkerSetObjectTagEXT( VkDevice device, const VkDebugMarkerObjectTagInfoEXT * pTagInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkDebugMarkerSetObjectTagEXT( device, pTagInfo ); } VkResult vkDebugMarkerSetObjectNameEXT( VkDevice device, const VkDebugMarkerObjectNameInfoEXT * pNameInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkDebugMarkerSetObjectNameEXT( device, pNameInfo ); } void vkCmdDebugMarkerBeginEXT( VkCommandBuffer commandBuffer, const VkDebugMarkerMarkerInfoEXT * pMarkerInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDebugMarkerBeginEXT( commandBuffer, pMarkerInfo ); } void vkCmdDebugMarkerEndEXT( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDebugMarkerEndEXT( commandBuffer ); } void vkCmdDebugMarkerInsertEXT( VkCommandBuffer commandBuffer, const VkDebugMarkerMarkerInfoEXT * pMarkerInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDebugMarkerInsertEXT( commandBuffer, pMarkerInfo ); } # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_queue === VkResult vkGetPhysicalDeviceVideoCapabilitiesKHR( VkPhysicalDevice physicalDevice, const VkVideoProfileKHR * pVideoProfile, VkVideoCapabilitiesKHR * pCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceVideoCapabilitiesKHR( physicalDevice, pVideoProfile, pCapabilities ); } VkResult vkGetPhysicalDeviceVideoFormatPropertiesKHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceVideoFormatInfoKHR * pVideoFormatInfo, uint32_t * pVideoFormatPropertyCount, VkVideoFormatPropertiesKHR * pVideoFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceVideoFormatPropertiesKHR( physicalDevice, pVideoFormatInfo, pVideoFormatPropertyCount, pVideoFormatProperties ); } VkResult vkCreateVideoSessionKHR( VkDevice device, const VkVideoSessionCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkVideoSessionKHR * pVideoSession ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateVideoSessionKHR( device, pCreateInfo, pAllocator, pVideoSession ); } void vkDestroyVideoSessionKHR( VkDevice device, VkVideoSessionKHR videoSession, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyVideoSessionKHR( device, videoSession, pAllocator ); } VkResult vkGetVideoSessionMemoryRequirementsKHR( VkDevice device, VkVideoSessionKHR videoSession, uint32_t * pVideoSessionMemoryRequirementsCount, VkVideoGetMemoryPropertiesKHR * pVideoSessionMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetVideoSessionMemoryRequirementsKHR( device, videoSession, pVideoSessionMemoryRequirementsCount, pVideoSessionMemoryRequirements ); } VkResult vkBindVideoSessionMemoryKHR( VkDevice device, VkVideoSessionKHR videoSession, uint32_t videoSessionBindMemoryCount, const VkVideoBindMemoryKHR * pVideoSessionBindMemories ) const VULKAN_HPP_NOEXCEPT { return ::vkBindVideoSessionMemoryKHR( device, videoSession, videoSessionBindMemoryCount, pVideoSessionBindMemories ); } VkResult vkCreateVideoSessionParametersKHR( VkDevice device, const VkVideoSessionParametersCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkVideoSessionParametersKHR * pVideoSessionParameters ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateVideoSessionParametersKHR( device, pCreateInfo, pAllocator, pVideoSessionParameters ); } VkResult vkUpdateVideoSessionParametersKHR( VkDevice device, VkVideoSessionParametersKHR videoSessionParameters, const VkVideoSessionParametersUpdateInfoKHR * pUpdateInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkUpdateVideoSessionParametersKHR( device, videoSessionParameters, pUpdateInfo ); } void vkDestroyVideoSessionParametersKHR( VkDevice device, VkVideoSessionParametersKHR videoSessionParameters, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyVideoSessionParametersKHR( device, videoSessionParameters, pAllocator ); } void vkCmdBeginVideoCodingKHR( VkCommandBuffer commandBuffer, const VkVideoBeginCodingInfoKHR * pBeginInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginVideoCodingKHR( commandBuffer, pBeginInfo ); } void vkCmdEndVideoCodingKHR( VkCommandBuffer commandBuffer, const VkVideoEndCodingInfoKHR * pEndCodingInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndVideoCodingKHR( commandBuffer, pEndCodingInfo ); } void vkCmdControlVideoCodingKHR( VkCommandBuffer commandBuffer, const VkVideoCodingControlInfoKHR * pCodingControlInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdControlVideoCodingKHR( commandBuffer, pCodingControlInfo ); } # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_decode_queue === void vkCmdDecodeVideoKHR( VkCommandBuffer commandBuffer, const VkVideoDecodeInfoKHR * pFrameInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDecodeVideoKHR( commandBuffer, pFrameInfo ); } # endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_EXT_transform_feedback === void vkCmdBindTransformFeedbackBuffersEXT( VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer * pBuffers, const VkDeviceSize * pOffsets, const VkDeviceSize * pSizes ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindTransformFeedbackBuffersEXT( commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes ); } void vkCmdBeginTransformFeedbackEXT( VkCommandBuffer commandBuffer, uint32_t firstCounterBuffer, uint32_t counterBufferCount, const VkBuffer * pCounterBuffers, const VkDeviceSize * pCounterBufferOffsets ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginTransformFeedbackEXT( commandBuffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets ); } void vkCmdEndTransformFeedbackEXT( VkCommandBuffer commandBuffer, uint32_t firstCounterBuffer, uint32_t counterBufferCount, const VkBuffer * pCounterBuffers, const VkDeviceSize * pCounterBufferOffsets ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndTransformFeedbackEXT( commandBuffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets ); } void vkCmdBeginQueryIndexedEXT( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags, uint32_t index ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginQueryIndexedEXT( commandBuffer, queryPool, query, flags, index ); } void vkCmdEndQueryIndexedEXT( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, uint32_t index ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndQueryIndexedEXT( commandBuffer, queryPool, query, index ); } void vkCmdDrawIndirectByteCountEXT( VkCommandBuffer commandBuffer, uint32_t instanceCount, uint32_t firstInstance, VkBuffer counterBuffer, VkDeviceSize counterBufferOffset, uint32_t counterOffset, uint32_t vertexStride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndirectByteCountEXT( commandBuffer, instanceCount, firstInstance, counterBuffer, counterBufferOffset, counterOffset, vertexStride ); } //=== VK_NVX_binary_import === VkResult vkCreateCuModuleNVX( VkDevice device, const VkCuModuleCreateInfoNVX * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkCuModuleNVX * pModule ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateCuModuleNVX( device, pCreateInfo, pAllocator, pModule ); } VkResult vkCreateCuFunctionNVX( VkDevice device, const VkCuFunctionCreateInfoNVX * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkCuFunctionNVX * pFunction ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateCuFunctionNVX( device, pCreateInfo, pAllocator, pFunction ); } void vkDestroyCuModuleNVX( VkDevice device, VkCuModuleNVX module, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyCuModuleNVX( device, module, pAllocator ); } void vkDestroyCuFunctionNVX( VkDevice device, VkCuFunctionNVX function, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyCuFunctionNVX( device, function, pAllocator ); } void vkCmdCuLaunchKernelNVX( VkCommandBuffer commandBuffer, const VkCuLaunchInfoNVX * pLaunchInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCuLaunchKernelNVX( commandBuffer, pLaunchInfo ); } //=== VK_NVX_image_view_handle === uint32_t vkGetImageViewHandleNVX( VkDevice device, const VkImageViewHandleInfoNVX * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageViewHandleNVX( device, pInfo ); } VkResult vkGetImageViewAddressNVX( VkDevice device, VkImageView imageView, VkImageViewAddressPropertiesNVX * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageViewAddressNVX( device, imageView, pProperties ); } //=== VK_AMD_draw_indirect_count === void vkCmdDrawIndirectCountAMD( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndirectCountAMD( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } void vkCmdDrawIndexedIndirectCountAMD( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndexedIndirectCountAMD( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } //=== VK_AMD_shader_info === VkResult vkGetShaderInfoAMD( VkDevice device, VkPipeline pipeline, VkShaderStageFlagBits shaderStage, VkShaderInfoTypeAMD infoType, size_t * pInfoSize, void * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetShaderInfoAMD( device, pipeline, shaderStage, infoType, pInfoSize, pInfo ); } //=== VK_KHR_dynamic_rendering === void vkCmdBeginRenderingKHR( VkCommandBuffer commandBuffer, const VkRenderingInfo * pRenderingInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginRenderingKHR( commandBuffer, pRenderingInfo ); } void vkCmdEndRenderingKHR( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndRenderingKHR( commandBuffer ); } # if defined( VK_USE_PLATFORM_GGP ) //=== VK_GGP_stream_descriptor_surface === VkResult vkCreateStreamDescriptorSurfaceGGP( VkInstance instance, const VkStreamDescriptorSurfaceCreateInfoGGP * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateStreamDescriptorSurfaceGGP( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_GGP*/ //=== VK_NV_external_memory_capabilities === VkResult vkGetPhysicalDeviceExternalImageFormatPropertiesNV( VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkExternalMemoryHandleTypeFlagsNV externalHandleType, VkExternalImageFormatPropertiesNV * pExternalImageFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalImageFormatPropertiesNV( physicalDevice, format, type, tiling, usage, flags, externalHandleType, pExternalImageFormatProperties ); } # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_external_memory_win32 === VkResult vkGetMemoryWin32HandleNV( VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE * pHandle ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryWin32HandleNV( device, memory, handleType, pHandle ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_get_physical_device_properties2 === void vkGetPhysicalDeviceFeatures2KHR( VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2 * pFeatures ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFeatures2KHR( physicalDevice, pFeatures ); } void vkGetPhysicalDeviceProperties2KHR( VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceProperties2KHR( physicalDevice, pProperties ); } void vkGetPhysicalDeviceFormatProperties2KHR( VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFormatProperties2KHR( physicalDevice, format, pFormatProperties ); } VkResult vkGetPhysicalDeviceImageFormatProperties2KHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2 * pImageFormatInfo, VkImageFormatProperties2 * pImageFormatProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceImageFormatProperties2KHR( physicalDevice, pImageFormatInfo, pImageFormatProperties ); } void vkGetPhysicalDeviceQueueFamilyProperties2KHR( VkPhysicalDevice physicalDevice, uint32_t * pQueueFamilyPropertyCount, VkQueueFamilyProperties2 * pQueueFamilyProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceQueueFamilyProperties2KHR( physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties ); } void vkGetPhysicalDeviceMemoryProperties2KHR( VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2 * pMemoryProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceMemoryProperties2KHR( physicalDevice, pMemoryProperties ); } void vkGetPhysicalDeviceSparseImageFormatProperties2KHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2 * pFormatInfo, uint32_t * pPropertyCount, VkSparseImageFormatProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSparseImageFormatProperties2KHR( physicalDevice, pFormatInfo, pPropertyCount, pProperties ); } //=== VK_KHR_device_group === void vkGetDeviceGroupPeerMemoryFeaturesKHR( VkDevice device, uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, VkPeerMemoryFeatureFlags * pPeerMemoryFeatures ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceGroupPeerMemoryFeaturesKHR( device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures ); } void vkCmdSetDeviceMaskKHR( VkCommandBuffer commandBuffer, uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDeviceMaskKHR( commandBuffer, deviceMask ); } void vkCmdDispatchBaseKHR( VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDispatchBaseKHR( commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ ); } # if defined( VK_USE_PLATFORM_VI_NN ) //=== VK_NN_vi_surface === VkResult vkCreateViSurfaceNN( VkInstance instance, const VkViSurfaceCreateInfoNN * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateViSurfaceNN( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_VI_NN*/ //=== VK_KHR_maintenance1 === void vkTrimCommandPoolKHR( VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags ) const VULKAN_HPP_NOEXCEPT { return ::vkTrimCommandPoolKHR( device, commandPool, flags ); } //=== VK_KHR_device_group_creation === VkResult vkEnumeratePhysicalDeviceGroupsKHR( VkInstance instance, uint32_t * pPhysicalDeviceGroupCount, VkPhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumeratePhysicalDeviceGroupsKHR( instance, pPhysicalDeviceGroupCount, pPhysicalDeviceGroupProperties ); } //=== VK_KHR_external_memory_capabilities === void vkGetPhysicalDeviceExternalBufferPropertiesKHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfo * pExternalBufferInfo, VkExternalBufferProperties * pExternalBufferProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalBufferPropertiesKHR( physicalDevice, pExternalBufferInfo, pExternalBufferProperties ); } # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_memory_win32 === VkResult vkGetMemoryWin32HandleKHR( VkDevice device, const VkMemoryGetWin32HandleInfoKHR * pGetWin32HandleInfo, HANDLE * pHandle ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryWin32HandleKHR( device, pGetWin32HandleInfo, pHandle ); } VkResult vkGetMemoryWin32HandlePropertiesKHR( VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE handle, VkMemoryWin32HandlePropertiesKHR * pMemoryWin32HandleProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryWin32HandlePropertiesKHR( device, handleType, handle, pMemoryWin32HandleProperties ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_memory_fd === VkResult vkGetMemoryFdKHR( VkDevice device, const VkMemoryGetFdInfoKHR * pGetFdInfo, int * pFd ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryFdKHR( device, pGetFdInfo, pFd ); } VkResult vkGetMemoryFdPropertiesKHR( VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, int fd, VkMemoryFdPropertiesKHR * pMemoryFdProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryFdPropertiesKHR( device, handleType, fd, pMemoryFdProperties ); } //=== VK_KHR_external_semaphore_capabilities === void vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfo * pExternalSemaphoreInfo, VkExternalSemaphoreProperties * pExternalSemaphoreProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( physicalDevice, pExternalSemaphoreInfo, pExternalSemaphoreProperties ); } # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_semaphore_win32 === VkResult vkImportSemaphoreWin32HandleKHR( VkDevice device, const VkImportSemaphoreWin32HandleInfoKHR * pImportSemaphoreWin32HandleInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkImportSemaphoreWin32HandleKHR( device, pImportSemaphoreWin32HandleInfo ); } VkResult vkGetSemaphoreWin32HandleKHR( VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR * pGetWin32HandleInfo, HANDLE * pHandle ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSemaphoreWin32HandleKHR( device, pGetWin32HandleInfo, pHandle ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_semaphore_fd === VkResult vkImportSemaphoreFdKHR( VkDevice device, const VkImportSemaphoreFdInfoKHR * pImportSemaphoreFdInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkImportSemaphoreFdKHR( device, pImportSemaphoreFdInfo ); } VkResult vkGetSemaphoreFdKHR( VkDevice device, const VkSemaphoreGetFdInfoKHR * pGetFdInfo, int * pFd ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSemaphoreFdKHR( device, pGetFdInfo, pFd ); } //=== VK_KHR_push_descriptor === void vkCmdPushDescriptorSetKHR( VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const VkWriteDescriptorSet * pDescriptorWrites ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPushDescriptorSetKHR( commandBuffer, pipelineBindPoint, layout, set, descriptorWriteCount, pDescriptorWrites ); } void vkCmdPushDescriptorSetWithTemplateKHR( VkCommandBuffer commandBuffer, VkDescriptorUpdateTemplate descriptorUpdateTemplate, VkPipelineLayout layout, uint32_t set, const void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPushDescriptorSetWithTemplateKHR( commandBuffer, descriptorUpdateTemplate, layout, set, pData ); } //=== VK_EXT_conditional_rendering === void vkCmdBeginConditionalRenderingEXT( VkCommandBuffer commandBuffer, const VkConditionalRenderingBeginInfoEXT * pConditionalRenderingBegin ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginConditionalRenderingEXT( commandBuffer, pConditionalRenderingBegin ); } void vkCmdEndConditionalRenderingEXT( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndConditionalRenderingEXT( commandBuffer ); } //=== VK_KHR_descriptor_update_template === VkResult vkCreateDescriptorUpdateTemplateKHR( VkDevice device, const VkDescriptorUpdateTemplateCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorUpdateTemplate * pDescriptorUpdateTemplate ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDescriptorUpdateTemplateKHR( device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate ); } void vkDestroyDescriptorUpdateTemplateKHR( VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDescriptorUpdateTemplateKHR( device, descriptorUpdateTemplate, pAllocator ); } void vkUpdateDescriptorSetWithTemplateKHR( VkDevice device, VkDescriptorSet descriptorSet, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkUpdateDescriptorSetWithTemplateKHR( device, descriptorSet, descriptorUpdateTemplate, pData ); } //=== VK_NV_clip_space_w_scaling === void vkCmdSetViewportWScalingNV( VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewportWScalingNV * pViewportWScalings ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetViewportWScalingNV( commandBuffer, firstViewport, viewportCount, pViewportWScalings ); } //=== VK_EXT_direct_mode_display === VkResult vkReleaseDisplayEXT( VkPhysicalDevice physicalDevice, VkDisplayKHR display ) const VULKAN_HPP_NOEXCEPT { return ::vkReleaseDisplayEXT( physicalDevice, display ); } # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT ) //=== VK_EXT_acquire_xlib_display === VkResult vkAcquireXlibDisplayEXT( VkPhysicalDevice physicalDevice, Display * dpy, VkDisplayKHR display ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireXlibDisplayEXT( physicalDevice, dpy, display ); } VkResult vkGetRandROutputDisplayEXT( VkPhysicalDevice physicalDevice, Display * dpy, RROutput rrOutput, VkDisplayKHR * pDisplay ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRandROutputDisplayEXT( physicalDevice, dpy, rrOutput, pDisplay ); } # endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/ //=== VK_EXT_display_surface_counter === VkResult vkGetPhysicalDeviceSurfaceCapabilities2EXT( VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilities2EXT * pSurfaceCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfaceCapabilities2EXT( physicalDevice, surface, pSurfaceCapabilities ); } //=== VK_EXT_display_control === VkResult vkDisplayPowerControlEXT( VkDevice device, VkDisplayKHR display, const VkDisplayPowerInfoEXT * pDisplayPowerInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkDisplayPowerControlEXT( device, display, pDisplayPowerInfo ); } VkResult vkRegisterDeviceEventEXT( VkDevice device, const VkDeviceEventInfoEXT * pDeviceEventInfo, const VkAllocationCallbacks * pAllocator, VkFence * pFence ) const VULKAN_HPP_NOEXCEPT { return ::vkRegisterDeviceEventEXT( device, pDeviceEventInfo, pAllocator, pFence ); } VkResult vkRegisterDisplayEventEXT( VkDevice device, VkDisplayKHR display, const VkDisplayEventInfoEXT * pDisplayEventInfo, const VkAllocationCallbacks * pAllocator, VkFence * pFence ) const VULKAN_HPP_NOEXCEPT { return ::vkRegisterDisplayEventEXT( device, display, pDisplayEventInfo, pAllocator, pFence ); } VkResult vkGetSwapchainCounterEXT( VkDevice device, VkSwapchainKHR swapchain, VkSurfaceCounterFlagBitsEXT counter, uint64_t * pCounterValue ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSwapchainCounterEXT( device, swapchain, counter, pCounterValue ); } //=== VK_GOOGLE_display_timing === VkResult vkGetRefreshCycleDurationGOOGLE( VkDevice device, VkSwapchainKHR swapchain, VkRefreshCycleDurationGOOGLE * pDisplayTimingProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRefreshCycleDurationGOOGLE( device, swapchain, pDisplayTimingProperties ); } VkResult vkGetPastPresentationTimingGOOGLE( VkDevice device, VkSwapchainKHR swapchain, uint32_t * pPresentationTimingCount, VkPastPresentationTimingGOOGLE * pPresentationTimings ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPastPresentationTimingGOOGLE( device, swapchain, pPresentationTimingCount, pPresentationTimings ); } //=== VK_EXT_discard_rectangles === void vkCmdSetDiscardRectangleEXT( VkCommandBuffer commandBuffer, uint32_t firstDiscardRectangle, uint32_t discardRectangleCount, const VkRect2D * pDiscardRectangles ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDiscardRectangleEXT( commandBuffer, firstDiscardRectangle, discardRectangleCount, pDiscardRectangles ); } //=== VK_EXT_hdr_metadata === void vkSetHdrMetadataEXT( VkDevice device, uint32_t swapchainCount, const VkSwapchainKHR * pSwapchains, const VkHdrMetadataEXT * pMetadata ) const VULKAN_HPP_NOEXCEPT { return ::vkSetHdrMetadataEXT( device, swapchainCount, pSwapchains, pMetadata ); } //=== VK_KHR_create_renderpass2 === VkResult vkCreateRenderPass2KHR( VkDevice device, const VkRenderPassCreateInfo2 * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkRenderPass * pRenderPass ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateRenderPass2KHR( device, pCreateInfo, pAllocator, pRenderPass ); } void vkCmdBeginRenderPass2KHR( VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo * pRenderPassBegin, const VkSubpassBeginInfo * pSubpassBeginInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginRenderPass2KHR( commandBuffer, pRenderPassBegin, pSubpassBeginInfo ); } void vkCmdNextSubpass2KHR( VkCommandBuffer commandBuffer, const VkSubpassBeginInfo * pSubpassBeginInfo, const VkSubpassEndInfo * pSubpassEndInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdNextSubpass2KHR( commandBuffer, pSubpassBeginInfo, pSubpassEndInfo ); } void vkCmdEndRenderPass2KHR( VkCommandBuffer commandBuffer, const VkSubpassEndInfo * pSubpassEndInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndRenderPass2KHR( commandBuffer, pSubpassEndInfo ); } //=== VK_KHR_shared_presentable_image === VkResult vkGetSwapchainStatusKHR( VkDevice device, VkSwapchainKHR swapchain ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSwapchainStatusKHR( device, swapchain ); } //=== VK_KHR_external_fence_capabilities === void vkGetPhysicalDeviceExternalFencePropertiesKHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalFenceInfo * pExternalFenceInfo, VkExternalFenceProperties * pExternalFenceProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceExternalFencePropertiesKHR( physicalDevice, pExternalFenceInfo, pExternalFenceProperties ); } # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_fence_win32 === VkResult vkImportFenceWin32HandleKHR( VkDevice device, const VkImportFenceWin32HandleInfoKHR * pImportFenceWin32HandleInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkImportFenceWin32HandleKHR( device, pImportFenceWin32HandleInfo ); } VkResult vkGetFenceWin32HandleKHR( VkDevice device, const VkFenceGetWin32HandleInfoKHR * pGetWin32HandleInfo, HANDLE * pHandle ) const VULKAN_HPP_NOEXCEPT { return ::vkGetFenceWin32HandleKHR( device, pGetWin32HandleInfo, pHandle ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_fence_fd === VkResult vkImportFenceFdKHR( VkDevice device, const VkImportFenceFdInfoKHR * pImportFenceFdInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkImportFenceFdKHR( device, pImportFenceFdInfo ); } VkResult vkGetFenceFdKHR( VkDevice device, const VkFenceGetFdInfoKHR * pGetFdInfo, int * pFd ) const VULKAN_HPP_NOEXCEPT { return ::vkGetFenceFdKHR( device, pGetFdInfo, pFd ); } //=== VK_KHR_performance_query === VkResult vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, uint32_t * pCounterCount, VkPerformanceCounterKHR * pCounters, VkPerformanceCounterDescriptionKHR * pCounterDescriptions ) const VULKAN_HPP_NOEXCEPT { return ::vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( physicalDevice, queueFamilyIndex, pCounterCount, pCounters, pCounterDescriptions ); } void vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( VkPhysicalDevice physicalDevice, const VkQueryPoolPerformanceCreateInfoKHR * pPerformanceQueryCreateInfo, uint32_t * pNumPasses ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( physicalDevice, pPerformanceQueryCreateInfo, pNumPasses ); } VkResult vkAcquireProfilingLockKHR( VkDevice device, const VkAcquireProfilingLockInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireProfilingLockKHR( device, pInfo ); } void vkReleaseProfilingLockKHR( VkDevice device ) const VULKAN_HPP_NOEXCEPT { return ::vkReleaseProfilingLockKHR( device ); } //=== VK_KHR_get_surface_capabilities2 === VkResult vkGetPhysicalDeviceSurfaceCapabilities2KHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo, VkSurfaceCapabilities2KHR * pSurfaceCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfaceCapabilities2KHR( physicalDevice, pSurfaceInfo, pSurfaceCapabilities ); } VkResult vkGetPhysicalDeviceSurfaceFormats2KHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo, uint32_t * pSurfaceFormatCount, VkSurfaceFormat2KHR * pSurfaceFormats ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfaceFormats2KHR( physicalDevice, pSurfaceInfo, pSurfaceFormatCount, pSurfaceFormats ); } //=== VK_KHR_get_display_properties2 === VkResult vkGetPhysicalDeviceDisplayProperties2KHR( VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkDisplayProperties2KHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceDisplayProperties2KHR( physicalDevice, pPropertyCount, pProperties ); } VkResult vkGetPhysicalDeviceDisplayPlaneProperties2KHR( VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkDisplayPlaneProperties2KHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceDisplayPlaneProperties2KHR( physicalDevice, pPropertyCount, pProperties ); } VkResult vkGetDisplayModeProperties2KHR( VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t * pPropertyCount, VkDisplayModeProperties2KHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDisplayModeProperties2KHR( physicalDevice, display, pPropertyCount, pProperties ); } VkResult vkGetDisplayPlaneCapabilities2KHR( VkPhysicalDevice physicalDevice, const VkDisplayPlaneInfo2KHR * pDisplayPlaneInfo, VkDisplayPlaneCapabilities2KHR * pCapabilities ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDisplayPlaneCapabilities2KHR( physicalDevice, pDisplayPlaneInfo, pCapabilities ); } # if defined( VK_USE_PLATFORM_IOS_MVK ) //=== VK_MVK_ios_surface === VkResult vkCreateIOSSurfaceMVK( VkInstance instance, const VkIOSSurfaceCreateInfoMVK * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateIOSSurfaceMVK( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_IOS_MVK*/ # if defined( VK_USE_PLATFORM_MACOS_MVK ) //=== VK_MVK_macos_surface === VkResult vkCreateMacOSSurfaceMVK( VkInstance instance, const VkMacOSSurfaceCreateInfoMVK * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateMacOSSurfaceMVK( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_MACOS_MVK*/ //=== VK_EXT_debug_utils === VkResult vkSetDebugUtilsObjectNameEXT( VkDevice device, const VkDebugUtilsObjectNameInfoEXT * pNameInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkSetDebugUtilsObjectNameEXT( device, pNameInfo ); } VkResult vkSetDebugUtilsObjectTagEXT( VkDevice device, const VkDebugUtilsObjectTagInfoEXT * pTagInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkSetDebugUtilsObjectTagEXT( device, pTagInfo ); } void vkQueueBeginDebugUtilsLabelEXT( VkQueue queue, const VkDebugUtilsLabelEXT * pLabelInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueBeginDebugUtilsLabelEXT( queue, pLabelInfo ); } void vkQueueEndDebugUtilsLabelEXT( VkQueue queue ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueEndDebugUtilsLabelEXT( queue ); } void vkQueueInsertDebugUtilsLabelEXT( VkQueue queue, const VkDebugUtilsLabelEXT * pLabelInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueInsertDebugUtilsLabelEXT( queue, pLabelInfo ); } void vkCmdBeginDebugUtilsLabelEXT( VkCommandBuffer commandBuffer, const VkDebugUtilsLabelEXT * pLabelInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBeginDebugUtilsLabelEXT( commandBuffer, pLabelInfo ); } void vkCmdEndDebugUtilsLabelEXT( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEndDebugUtilsLabelEXT( commandBuffer ); } void vkCmdInsertDebugUtilsLabelEXT( VkCommandBuffer commandBuffer, const VkDebugUtilsLabelEXT * pLabelInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdInsertDebugUtilsLabelEXT( commandBuffer, pLabelInfo ); } VkResult vkCreateDebugUtilsMessengerEXT( VkInstance instance, const VkDebugUtilsMessengerCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDebugUtilsMessengerEXT * pMessenger ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDebugUtilsMessengerEXT( instance, pCreateInfo, pAllocator, pMessenger ); } void vkDestroyDebugUtilsMessengerEXT( VkInstance instance, VkDebugUtilsMessengerEXT messenger, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDebugUtilsMessengerEXT( instance, messenger, pAllocator ); } void vkSubmitDebugUtilsMessageEXT( VkInstance instance, VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageTypes, const VkDebugUtilsMessengerCallbackDataEXT * pCallbackData ) const VULKAN_HPP_NOEXCEPT { return ::vkSubmitDebugUtilsMessageEXT( instance, messageSeverity, messageTypes, pCallbackData ); } # if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === VkResult vkGetAndroidHardwareBufferPropertiesANDROID( VkDevice device, const struct AHardwareBuffer * buffer, VkAndroidHardwareBufferPropertiesANDROID * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetAndroidHardwareBufferPropertiesANDROID( device, buffer, pProperties ); } VkResult vkGetMemoryAndroidHardwareBufferANDROID( VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID * pInfo, struct AHardwareBuffer ** pBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryAndroidHardwareBufferANDROID( device, pInfo, pBuffer ); } # endif /*VK_USE_PLATFORM_ANDROID_KHR*/ //=== VK_EXT_sample_locations === void vkCmdSetSampleLocationsEXT( VkCommandBuffer commandBuffer, const VkSampleLocationsInfoEXT * pSampleLocationsInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetSampleLocationsEXT( commandBuffer, pSampleLocationsInfo ); } void vkGetPhysicalDeviceMultisamplePropertiesEXT( VkPhysicalDevice physicalDevice, VkSampleCountFlagBits samples, VkMultisamplePropertiesEXT * pMultisampleProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceMultisamplePropertiesEXT( physicalDevice, samples, pMultisampleProperties ); } //=== VK_KHR_get_memory_requirements2 === void vkGetImageMemoryRequirements2KHR( VkDevice device, const VkImageMemoryRequirementsInfo2 * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageMemoryRequirements2KHR( device, pInfo, pMemoryRequirements ); } void vkGetBufferMemoryRequirements2KHR( VkDevice device, const VkBufferMemoryRequirementsInfo2 * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferMemoryRequirements2KHR( device, pInfo, pMemoryRequirements ); } void vkGetImageSparseMemoryRequirements2KHR( VkDevice device, const VkImageSparseMemoryRequirementsInfo2 * pInfo, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 * pSparseMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageSparseMemoryRequirements2KHR( device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements ); } //=== VK_KHR_acceleration_structure === VkResult vkCreateAccelerationStructureKHR( VkDevice device, const VkAccelerationStructureCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkAccelerationStructureKHR * pAccelerationStructure ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateAccelerationStructureKHR( device, pCreateInfo, pAllocator, pAccelerationStructure ); } void vkDestroyAccelerationStructureKHR( VkDevice device, VkAccelerationStructureKHR accelerationStructure, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyAccelerationStructureKHR( device, accelerationStructure, pAllocator ); } void vkCmdBuildAccelerationStructuresKHR( VkCommandBuffer commandBuffer, uint32_t infoCount, const VkAccelerationStructureBuildGeometryInfoKHR * pInfos, const VkAccelerationStructureBuildRangeInfoKHR * const * ppBuildRangeInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBuildAccelerationStructuresKHR( commandBuffer, infoCount, pInfos, ppBuildRangeInfos ); } void vkCmdBuildAccelerationStructuresIndirectKHR( VkCommandBuffer commandBuffer, uint32_t infoCount, const VkAccelerationStructureBuildGeometryInfoKHR * pInfos, const VkDeviceAddress * pIndirectDeviceAddresses, const uint32_t * pIndirectStrides, const uint32_t * const * ppMaxPrimitiveCounts ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBuildAccelerationStructuresIndirectKHR( commandBuffer, infoCount, pInfos, pIndirectDeviceAddresses, pIndirectStrides, ppMaxPrimitiveCounts ); } VkResult vkBuildAccelerationStructuresKHR( VkDevice device, VkDeferredOperationKHR deferredOperation, uint32_t infoCount, const VkAccelerationStructureBuildGeometryInfoKHR * pInfos, const VkAccelerationStructureBuildRangeInfoKHR * const * ppBuildRangeInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkBuildAccelerationStructuresKHR( device, deferredOperation, infoCount, pInfos, ppBuildRangeInfos ); } VkResult vkCopyAccelerationStructureKHR( VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyAccelerationStructureInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCopyAccelerationStructureKHR( device, deferredOperation, pInfo ); } VkResult vkCopyAccelerationStructureToMemoryKHR( VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyAccelerationStructureToMemoryInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCopyAccelerationStructureToMemoryKHR( device, deferredOperation, pInfo ); } VkResult vkCopyMemoryToAccelerationStructureKHR( VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMemoryToAccelerationStructureInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCopyMemoryToAccelerationStructureKHR( device, deferredOperation, pInfo ); } VkResult vkWriteAccelerationStructuresPropertiesKHR( VkDevice device, uint32_t accelerationStructureCount, const VkAccelerationStructureKHR * pAccelerationStructures, VkQueryType queryType, size_t dataSize, void * pData, size_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkWriteAccelerationStructuresPropertiesKHR( device, accelerationStructureCount, pAccelerationStructures, queryType, dataSize, pData, stride ); } void vkCmdCopyAccelerationStructureKHR( VkCommandBuffer commandBuffer, const VkCopyAccelerationStructureInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyAccelerationStructureKHR( commandBuffer, pInfo ); } void vkCmdCopyAccelerationStructureToMemoryKHR( VkCommandBuffer commandBuffer, const VkCopyAccelerationStructureToMemoryInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyAccelerationStructureToMemoryKHR( commandBuffer, pInfo ); } void vkCmdCopyMemoryToAccelerationStructureKHR( VkCommandBuffer commandBuffer, const VkCopyMemoryToAccelerationStructureInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyMemoryToAccelerationStructureKHR( commandBuffer, pInfo ); } VkDeviceAddress vkGetAccelerationStructureDeviceAddressKHR( VkDevice device, const VkAccelerationStructureDeviceAddressInfoKHR * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetAccelerationStructureDeviceAddressKHR( device, pInfo ); } void vkCmdWriteAccelerationStructuresPropertiesKHR( VkCommandBuffer commandBuffer, uint32_t accelerationStructureCount, const VkAccelerationStructureKHR * pAccelerationStructures, VkQueryType queryType, VkQueryPool queryPool, uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteAccelerationStructuresPropertiesKHR( commandBuffer, accelerationStructureCount, pAccelerationStructures, queryType, queryPool, firstQuery ); } void vkGetDeviceAccelerationStructureCompatibilityKHR( VkDevice device, const VkAccelerationStructureVersionInfoKHR * pVersionInfo, VkAccelerationStructureCompatibilityKHR * pCompatibility ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceAccelerationStructureCompatibilityKHR( device, pVersionInfo, pCompatibility ); } void vkGetAccelerationStructureBuildSizesKHR( VkDevice device, VkAccelerationStructureBuildTypeKHR buildType, const VkAccelerationStructureBuildGeometryInfoKHR * pBuildInfo, const uint32_t * pMaxPrimitiveCounts, VkAccelerationStructureBuildSizesInfoKHR * pSizeInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetAccelerationStructureBuildSizesKHR( device, buildType, pBuildInfo, pMaxPrimitiveCounts, pSizeInfo ); } //=== VK_KHR_sampler_ycbcr_conversion === VkResult vkCreateSamplerYcbcrConversionKHR( VkDevice device, const VkSamplerYcbcrConversionCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSamplerYcbcrConversion * pYcbcrConversion ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateSamplerYcbcrConversionKHR( device, pCreateInfo, pAllocator, pYcbcrConversion ); } void vkDestroySamplerYcbcrConversionKHR( VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroySamplerYcbcrConversionKHR( device, ycbcrConversion, pAllocator ); } //=== VK_KHR_bind_memory2 === VkResult vkBindBufferMemory2KHR( VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfo * pBindInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkBindBufferMemory2KHR( device, bindInfoCount, pBindInfos ); } VkResult vkBindImageMemory2KHR( VkDevice device, uint32_t bindInfoCount, const VkBindImageMemoryInfo * pBindInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkBindImageMemory2KHR( device, bindInfoCount, pBindInfos ); } //=== VK_EXT_image_drm_format_modifier === VkResult vkGetImageDrmFormatModifierPropertiesEXT( VkDevice device, VkImage image, VkImageDrmFormatModifierPropertiesEXT * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageDrmFormatModifierPropertiesEXT( device, image, pProperties ); } //=== VK_EXT_validation_cache === VkResult vkCreateValidationCacheEXT( VkDevice device, const VkValidationCacheCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkValidationCacheEXT * pValidationCache ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateValidationCacheEXT( device, pCreateInfo, pAllocator, pValidationCache ); } void vkDestroyValidationCacheEXT( VkDevice device, VkValidationCacheEXT validationCache, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyValidationCacheEXT( device, validationCache, pAllocator ); } VkResult vkMergeValidationCachesEXT( VkDevice device, VkValidationCacheEXT dstCache, uint32_t srcCacheCount, const VkValidationCacheEXT * pSrcCaches ) const VULKAN_HPP_NOEXCEPT { return ::vkMergeValidationCachesEXT( device, dstCache, srcCacheCount, pSrcCaches ); } VkResult vkGetValidationCacheDataEXT( VkDevice device, VkValidationCacheEXT validationCache, size_t * pDataSize, void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetValidationCacheDataEXT( device, validationCache, pDataSize, pData ); } //=== VK_NV_shading_rate_image === void vkCmdBindShadingRateImageNV( VkCommandBuffer commandBuffer, VkImageView imageView, VkImageLayout imageLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindShadingRateImageNV( commandBuffer, imageView, imageLayout ); } void vkCmdSetViewportShadingRatePaletteNV( VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkShadingRatePaletteNV * pShadingRatePalettes ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetViewportShadingRatePaletteNV( commandBuffer, firstViewport, viewportCount, pShadingRatePalettes ); } void vkCmdSetCoarseSampleOrderNV( VkCommandBuffer commandBuffer, VkCoarseSampleOrderTypeNV sampleOrderType, uint32_t customSampleOrderCount, const VkCoarseSampleOrderCustomNV * pCustomSampleOrders ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetCoarseSampleOrderNV( commandBuffer, sampleOrderType, customSampleOrderCount, pCustomSampleOrders ); } //=== VK_NV_ray_tracing === VkResult vkCreateAccelerationStructureNV( VkDevice device, const VkAccelerationStructureCreateInfoNV * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkAccelerationStructureNV * pAccelerationStructure ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateAccelerationStructureNV( device, pCreateInfo, pAllocator, pAccelerationStructure ); } void vkDestroyAccelerationStructureNV( VkDevice device, VkAccelerationStructureNV accelerationStructure, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyAccelerationStructureNV( device, accelerationStructure, pAllocator ); } void vkGetAccelerationStructureMemoryRequirementsNV( VkDevice device, const VkAccelerationStructureMemoryRequirementsInfoNV * pInfo, VkMemoryRequirements2KHR * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetAccelerationStructureMemoryRequirementsNV( device, pInfo, pMemoryRequirements ); } VkResult vkBindAccelerationStructureMemoryNV( VkDevice device, uint32_t bindInfoCount, const VkBindAccelerationStructureMemoryInfoNV * pBindInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkBindAccelerationStructureMemoryNV( device, bindInfoCount, pBindInfos ); } void vkCmdBuildAccelerationStructureNV( VkCommandBuffer commandBuffer, const VkAccelerationStructureInfoNV * pInfo, VkBuffer instanceData, VkDeviceSize instanceOffset, VkBool32 update, VkAccelerationStructureNV dst, VkAccelerationStructureNV src, VkBuffer scratch, VkDeviceSize scratchOffset ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBuildAccelerationStructureNV( commandBuffer, pInfo, instanceData, instanceOffset, update, dst, src, scratch, scratchOffset ); } void vkCmdCopyAccelerationStructureNV( VkCommandBuffer commandBuffer, VkAccelerationStructureNV dst, VkAccelerationStructureNV src, VkCopyAccelerationStructureModeKHR mode ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyAccelerationStructureNV( commandBuffer, dst, src, mode ); } void vkCmdTraceRaysNV( VkCommandBuffer commandBuffer, VkBuffer raygenShaderBindingTableBuffer, VkDeviceSize raygenShaderBindingOffset, VkBuffer missShaderBindingTableBuffer, VkDeviceSize missShaderBindingOffset, VkDeviceSize missShaderBindingStride, VkBuffer hitShaderBindingTableBuffer, VkDeviceSize hitShaderBindingOffset, VkDeviceSize hitShaderBindingStride, VkBuffer callableShaderBindingTableBuffer, VkDeviceSize callableShaderBindingOffset, VkDeviceSize callableShaderBindingStride, uint32_t width, uint32_t height, uint32_t depth ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdTraceRaysNV( commandBuffer, raygenShaderBindingTableBuffer, raygenShaderBindingOffset, missShaderBindingTableBuffer, missShaderBindingOffset, missShaderBindingStride, hitShaderBindingTableBuffer, hitShaderBindingOffset, hitShaderBindingStride, callableShaderBindingTableBuffer, callableShaderBindingOffset, callableShaderBindingStride, width, height, depth ); } VkResult vkCreateRayTracingPipelinesNV( VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkRayTracingPipelineCreateInfoNV * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkPipeline * pPipelines ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateRayTracingPipelinesNV( device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines ); } VkResult vkGetRayTracingShaderGroupHandlesNV( VkDevice device, VkPipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRayTracingShaderGroupHandlesNV( device, pipeline, firstGroup, groupCount, dataSize, pData ); } VkResult vkGetAccelerationStructureHandleNV( VkDevice device, VkAccelerationStructureNV accelerationStructure, size_t dataSize, void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetAccelerationStructureHandleNV( device, accelerationStructure, dataSize, pData ); } void vkCmdWriteAccelerationStructuresPropertiesNV( VkCommandBuffer commandBuffer, uint32_t accelerationStructureCount, const VkAccelerationStructureNV * pAccelerationStructures, VkQueryType queryType, VkQueryPool queryPool, uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteAccelerationStructuresPropertiesNV( commandBuffer, accelerationStructureCount, pAccelerationStructures, queryType, queryPool, firstQuery ); } VkResult vkCompileDeferredNV( VkDevice device, VkPipeline pipeline, uint32_t shader ) const VULKAN_HPP_NOEXCEPT { return ::vkCompileDeferredNV( device, pipeline, shader ); } //=== VK_KHR_maintenance3 === void vkGetDescriptorSetLayoutSupportKHR( VkDevice device, const VkDescriptorSetLayoutCreateInfo * pCreateInfo, VkDescriptorSetLayoutSupport * pSupport ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDescriptorSetLayoutSupportKHR( device, pCreateInfo, pSupport ); } //=== VK_KHR_draw_indirect_count === void vkCmdDrawIndirectCountKHR( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndirectCountKHR( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } void vkCmdDrawIndexedIndirectCountKHR( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawIndexedIndirectCountKHR( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } //=== VK_EXT_external_memory_host === VkResult vkGetMemoryHostPointerPropertiesEXT( VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, const void * pHostPointer, VkMemoryHostPointerPropertiesEXT * pMemoryHostPointerProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryHostPointerPropertiesEXT( device, handleType, pHostPointer, pMemoryHostPointerProperties ); } //=== VK_AMD_buffer_marker === void vkCmdWriteBufferMarkerAMD( VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteBufferMarkerAMD( commandBuffer, pipelineStage, dstBuffer, dstOffset, marker ); } //=== VK_EXT_calibrated_timestamps === VkResult vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( VkPhysicalDevice physicalDevice, uint32_t * pTimeDomainCount, VkTimeDomainEXT * pTimeDomains ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( physicalDevice, pTimeDomainCount, pTimeDomains ); } VkResult vkGetCalibratedTimestampsEXT( VkDevice device, uint32_t timestampCount, const VkCalibratedTimestampInfoEXT * pTimestampInfos, uint64_t * pTimestamps, uint64_t * pMaxDeviation ) const VULKAN_HPP_NOEXCEPT { return ::vkGetCalibratedTimestampsEXT( device, timestampCount, pTimestampInfos, pTimestamps, pMaxDeviation ); } //=== VK_NV_mesh_shader === void vkCmdDrawMeshTasksNV( VkCommandBuffer commandBuffer, uint32_t taskCount, uint32_t firstTask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawMeshTasksNV( commandBuffer, taskCount, firstTask ); } void vkCmdDrawMeshTasksIndirectNV( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawMeshTasksIndirectNV( commandBuffer, buffer, offset, drawCount, stride ); } void vkCmdDrawMeshTasksIndirectCountNV( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawMeshTasksIndirectCountNV( commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride ); } //=== VK_NV_scissor_exclusive === void vkCmdSetExclusiveScissorNV( VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkRect2D * pExclusiveScissors ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetExclusiveScissorNV( commandBuffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissors ); } //=== VK_NV_device_diagnostic_checkpoints === void vkCmdSetCheckpointNV( VkCommandBuffer commandBuffer, const void * pCheckpointMarker ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetCheckpointNV( commandBuffer, pCheckpointMarker ); } void vkGetQueueCheckpointDataNV( VkQueue queue, uint32_t * pCheckpointDataCount, VkCheckpointDataNV * pCheckpointData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetQueueCheckpointDataNV( queue, pCheckpointDataCount, pCheckpointData ); } //=== VK_KHR_timeline_semaphore === VkResult vkGetSemaphoreCounterValueKHR( VkDevice device, VkSemaphore semaphore, uint64_t * pValue ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSemaphoreCounterValueKHR( device, semaphore, pValue ); } VkResult vkWaitSemaphoresKHR( VkDevice device, const VkSemaphoreWaitInfo * pWaitInfo, uint64_t timeout ) const VULKAN_HPP_NOEXCEPT { return ::vkWaitSemaphoresKHR( device, pWaitInfo, timeout ); } VkResult vkSignalSemaphoreKHR( VkDevice device, const VkSemaphoreSignalInfo * pSignalInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkSignalSemaphoreKHR( device, pSignalInfo ); } //=== VK_INTEL_performance_query === VkResult vkInitializePerformanceApiINTEL( VkDevice device, const VkInitializePerformanceApiInfoINTEL * pInitializeInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkInitializePerformanceApiINTEL( device, pInitializeInfo ); } void vkUninitializePerformanceApiINTEL( VkDevice device ) const VULKAN_HPP_NOEXCEPT { return ::vkUninitializePerformanceApiINTEL( device ); } VkResult vkCmdSetPerformanceMarkerINTEL( VkCommandBuffer commandBuffer, const VkPerformanceMarkerInfoINTEL * pMarkerInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPerformanceMarkerINTEL( commandBuffer, pMarkerInfo ); } VkResult vkCmdSetPerformanceStreamMarkerINTEL( VkCommandBuffer commandBuffer, const VkPerformanceStreamMarkerInfoINTEL * pMarkerInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPerformanceStreamMarkerINTEL( commandBuffer, pMarkerInfo ); } VkResult vkCmdSetPerformanceOverrideINTEL( VkCommandBuffer commandBuffer, const VkPerformanceOverrideInfoINTEL * pOverrideInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPerformanceOverrideINTEL( commandBuffer, pOverrideInfo ); } VkResult vkAcquirePerformanceConfigurationINTEL( VkDevice device, const VkPerformanceConfigurationAcquireInfoINTEL * pAcquireInfo, VkPerformanceConfigurationINTEL * pConfiguration ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquirePerformanceConfigurationINTEL( device, pAcquireInfo, pConfiguration ); } VkResult vkReleasePerformanceConfigurationINTEL( VkDevice device, VkPerformanceConfigurationINTEL configuration ) const VULKAN_HPP_NOEXCEPT { return ::vkReleasePerformanceConfigurationINTEL( device, configuration ); } VkResult vkQueueSetPerformanceConfigurationINTEL( VkQueue queue, VkPerformanceConfigurationINTEL configuration ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueSetPerformanceConfigurationINTEL( queue, configuration ); } VkResult vkGetPerformanceParameterINTEL( VkDevice device, VkPerformanceParameterTypeINTEL parameter, VkPerformanceValueINTEL * pValue ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPerformanceParameterINTEL( device, parameter, pValue ); } //=== VK_AMD_display_native_hdr === void vkSetLocalDimmingAMD( VkDevice device, VkSwapchainKHR swapChain, VkBool32 localDimmingEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkSetLocalDimmingAMD( device, swapChain, localDimmingEnable ); } # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_imagepipe_surface === VkResult vkCreateImagePipeSurfaceFUCHSIA( VkInstance instance, const VkImagePipeSurfaceCreateInfoFUCHSIA * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateImagePipeSurfaceFUCHSIA( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_FUCHSIA*/ # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_surface === VkResult vkCreateMetalSurfaceEXT( VkInstance instance, const VkMetalSurfaceCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateMetalSurfaceEXT( instance, pCreateInfo, pAllocator, pSurface ); } # endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_fragment_shading_rate === VkResult vkGetPhysicalDeviceFragmentShadingRatesKHR( VkPhysicalDevice physicalDevice, uint32_t * pFragmentShadingRateCount, VkPhysicalDeviceFragmentShadingRateKHR * pFragmentShadingRates ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceFragmentShadingRatesKHR( physicalDevice, pFragmentShadingRateCount, pFragmentShadingRates ); } void vkCmdSetFragmentShadingRateKHR( VkCommandBuffer commandBuffer, const VkExtent2D * pFragmentSize, const VkFragmentShadingRateCombinerOpKHR combinerOps[2] ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetFragmentShadingRateKHR( commandBuffer, pFragmentSize, combinerOps ); } //=== VK_EXT_buffer_device_address === VkDeviceAddress vkGetBufferDeviceAddressEXT( VkDevice device, const VkBufferDeviceAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferDeviceAddressEXT( device, pInfo ); } //=== VK_EXT_tooling_info === VkResult vkGetPhysicalDeviceToolPropertiesEXT( VkPhysicalDevice physicalDevice, uint32_t * pToolCount, VkPhysicalDeviceToolProperties * pToolProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceToolPropertiesEXT( physicalDevice, pToolCount, pToolProperties ); } //=== VK_KHR_present_wait === VkResult vkWaitForPresentKHR( VkDevice device, VkSwapchainKHR swapchain, uint64_t presentId, uint64_t timeout ) const VULKAN_HPP_NOEXCEPT { return ::vkWaitForPresentKHR( device, swapchain, presentId, timeout ); } //=== VK_NV_cooperative_matrix === VkResult vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkCooperativeMatrixPropertiesNV * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( physicalDevice, pPropertyCount, pProperties ); } //=== VK_NV_coverage_reduction_mode === VkResult vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( VkPhysicalDevice physicalDevice, uint32_t * pCombinationCount, VkFramebufferMixedSamplesCombinationNV * pCombinations ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( physicalDevice, pCombinationCount, pCombinations ); } # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_EXT_full_screen_exclusive === VkResult vkGetPhysicalDeviceSurfacePresentModes2EXT( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo, uint32_t * pPresentModeCount, VkPresentModeKHR * pPresentModes ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceSurfacePresentModes2EXT( physicalDevice, pSurfaceInfo, pPresentModeCount, pPresentModes ); } VkResult vkAcquireFullScreenExclusiveModeEXT( VkDevice device, VkSwapchainKHR swapchain ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireFullScreenExclusiveModeEXT( device, swapchain ); } VkResult vkReleaseFullScreenExclusiveModeEXT( VkDevice device, VkSwapchainKHR swapchain ) const VULKAN_HPP_NOEXCEPT { return ::vkReleaseFullScreenExclusiveModeEXT( device, swapchain ); } VkResult vkGetDeviceGroupSurfacePresentModes2EXT( VkDevice device, const VkPhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo, VkDeviceGroupPresentModeFlagsKHR * pModes ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceGroupSurfacePresentModes2EXT( device, pSurfaceInfo, pModes ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_headless_surface === VkResult vkCreateHeadlessSurfaceEXT( VkInstance instance, const VkHeadlessSurfaceCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateHeadlessSurfaceEXT( instance, pCreateInfo, pAllocator, pSurface ); } //=== VK_KHR_buffer_device_address === VkDeviceAddress vkGetBufferDeviceAddressKHR( VkDevice device, const VkBufferDeviceAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferDeviceAddressKHR( device, pInfo ); } uint64_t vkGetBufferOpaqueCaptureAddressKHR( VkDevice device, const VkBufferDeviceAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferOpaqueCaptureAddressKHR( device, pInfo ); } uint64_t vkGetDeviceMemoryOpaqueCaptureAddressKHR( VkDevice device, const VkDeviceMemoryOpaqueCaptureAddressInfo * pInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceMemoryOpaqueCaptureAddressKHR( device, pInfo ); } //=== VK_EXT_line_rasterization === void vkCmdSetLineStippleEXT( VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetLineStippleEXT( commandBuffer, lineStippleFactor, lineStipplePattern ); } //=== VK_EXT_host_query_reset === void vkResetQueryPoolEXT( VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT { return ::vkResetQueryPoolEXT( device, queryPool, firstQuery, queryCount ); } //=== VK_EXT_extended_dynamic_state === void vkCmdSetCullModeEXT( VkCommandBuffer commandBuffer, VkCullModeFlags cullMode ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetCullModeEXT( commandBuffer, cullMode ); } void vkCmdSetFrontFaceEXT( VkCommandBuffer commandBuffer, VkFrontFace frontFace ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetFrontFaceEXT( commandBuffer, frontFace ); } void vkCmdSetPrimitiveTopologyEXT( VkCommandBuffer commandBuffer, VkPrimitiveTopology primitiveTopology ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPrimitiveTopologyEXT( commandBuffer, primitiveTopology ); } void vkCmdSetViewportWithCountEXT( VkCommandBuffer commandBuffer, uint32_t viewportCount, const VkViewport * pViewports ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetViewportWithCountEXT( commandBuffer, viewportCount, pViewports ); } void vkCmdSetScissorWithCountEXT( VkCommandBuffer commandBuffer, uint32_t scissorCount, const VkRect2D * pScissors ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetScissorWithCountEXT( commandBuffer, scissorCount, pScissors ); } void vkCmdBindVertexBuffers2EXT( VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer * pBuffers, const VkDeviceSize * pOffsets, const VkDeviceSize * pSizes, const VkDeviceSize * pStrides ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindVertexBuffers2EXT( commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes, pStrides ); } void vkCmdSetDepthTestEnableEXT( VkCommandBuffer commandBuffer, VkBool32 depthTestEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthTestEnableEXT( commandBuffer, depthTestEnable ); } void vkCmdSetDepthWriteEnableEXT( VkCommandBuffer commandBuffer, VkBool32 depthWriteEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthWriteEnableEXT( commandBuffer, depthWriteEnable ); } void vkCmdSetDepthCompareOpEXT( VkCommandBuffer commandBuffer, VkCompareOp depthCompareOp ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthCompareOpEXT( commandBuffer, depthCompareOp ); } void vkCmdSetDepthBoundsTestEnableEXT( VkCommandBuffer commandBuffer, VkBool32 depthBoundsTestEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthBoundsTestEnableEXT( commandBuffer, depthBoundsTestEnable ); } void vkCmdSetStencilTestEnableEXT( VkCommandBuffer commandBuffer, VkBool32 stencilTestEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilTestEnableEXT( commandBuffer, stencilTestEnable ); } void vkCmdSetStencilOpEXT( VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetStencilOpEXT( commandBuffer, faceMask, failOp, passOp, depthFailOp, compareOp ); } //=== VK_KHR_deferred_host_operations === VkResult vkCreateDeferredOperationKHR( VkDevice device, const VkAllocationCallbacks * pAllocator, VkDeferredOperationKHR * pDeferredOperation ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDeferredOperationKHR( device, pAllocator, pDeferredOperation ); } void vkDestroyDeferredOperationKHR( VkDevice device, VkDeferredOperationKHR operation, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyDeferredOperationKHR( device, operation, pAllocator ); } uint32_t vkGetDeferredOperationMaxConcurrencyKHR( VkDevice device, VkDeferredOperationKHR operation ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeferredOperationMaxConcurrencyKHR( device, operation ); } VkResult vkGetDeferredOperationResultKHR( VkDevice device, VkDeferredOperationKHR operation ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeferredOperationResultKHR( device, operation ); } VkResult vkDeferredOperationJoinKHR( VkDevice device, VkDeferredOperationKHR operation ) const VULKAN_HPP_NOEXCEPT { return ::vkDeferredOperationJoinKHR( device, operation ); } //=== VK_KHR_pipeline_executable_properties === VkResult vkGetPipelineExecutablePropertiesKHR( VkDevice device, const VkPipelineInfoKHR * pPipelineInfo, uint32_t * pExecutableCount, VkPipelineExecutablePropertiesKHR * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPipelineExecutablePropertiesKHR( device, pPipelineInfo, pExecutableCount, pProperties ); } VkResult vkGetPipelineExecutableStatisticsKHR( VkDevice device, const VkPipelineExecutableInfoKHR * pExecutableInfo, uint32_t * pStatisticCount, VkPipelineExecutableStatisticKHR * pStatistics ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPipelineExecutableStatisticsKHR( device, pExecutableInfo, pStatisticCount, pStatistics ); } VkResult vkGetPipelineExecutableInternalRepresentationsKHR( VkDevice device, const VkPipelineExecutableInfoKHR * pExecutableInfo, uint32_t * pInternalRepresentationCount, VkPipelineExecutableInternalRepresentationKHR * pInternalRepresentations ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPipelineExecutableInternalRepresentationsKHR( device, pExecutableInfo, pInternalRepresentationCount, pInternalRepresentations ); } //=== VK_NV_device_generated_commands === void vkGetGeneratedCommandsMemoryRequirementsNV( VkDevice device, const VkGeneratedCommandsMemoryRequirementsInfoNV * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetGeneratedCommandsMemoryRequirementsNV( device, pInfo, pMemoryRequirements ); } void vkCmdPreprocessGeneratedCommandsNV( VkCommandBuffer commandBuffer, const VkGeneratedCommandsInfoNV * pGeneratedCommandsInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPreprocessGeneratedCommandsNV( commandBuffer, pGeneratedCommandsInfo ); } void vkCmdExecuteGeneratedCommandsNV( VkCommandBuffer commandBuffer, VkBool32 isPreprocessed, const VkGeneratedCommandsInfoNV * pGeneratedCommandsInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdExecuteGeneratedCommandsNV( commandBuffer, isPreprocessed, pGeneratedCommandsInfo ); } void vkCmdBindPipelineShaderGroupNV( VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline, uint32_t groupIndex ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindPipelineShaderGroupNV( commandBuffer, pipelineBindPoint, pipeline, groupIndex ); } VkResult vkCreateIndirectCommandsLayoutNV( VkDevice device, const VkIndirectCommandsLayoutCreateInfoNV * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkIndirectCommandsLayoutNV * pIndirectCommandsLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateIndirectCommandsLayoutNV( device, pCreateInfo, pAllocator, pIndirectCommandsLayout ); } void vkDestroyIndirectCommandsLayoutNV( VkDevice device, VkIndirectCommandsLayoutNV indirectCommandsLayout, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyIndirectCommandsLayoutNV( device, indirectCommandsLayout, pAllocator ); } //=== VK_EXT_acquire_drm_display === VkResult vkAcquireDrmDisplayEXT( VkPhysicalDevice physicalDevice, int32_t drmFd, VkDisplayKHR display ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireDrmDisplayEXT( physicalDevice, drmFd, display ); } VkResult vkGetDrmDisplayEXT( VkPhysicalDevice physicalDevice, int32_t drmFd, uint32_t connectorId, VkDisplayKHR * display ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDrmDisplayEXT( physicalDevice, drmFd, connectorId, display ); } //=== VK_EXT_private_data === VkResult vkCreatePrivateDataSlotEXT( VkDevice device, const VkPrivateDataSlotCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkPrivateDataSlot * pPrivateDataSlot ) const VULKAN_HPP_NOEXCEPT { return ::vkCreatePrivateDataSlotEXT( device, pCreateInfo, pAllocator, pPrivateDataSlot ); } void vkDestroyPrivateDataSlotEXT( VkDevice device, VkPrivateDataSlot privateDataSlot, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyPrivateDataSlotEXT( device, privateDataSlot, pAllocator ); } VkResult vkSetPrivateDataEXT( VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t data ) const VULKAN_HPP_NOEXCEPT { return ::vkSetPrivateDataEXT( device, objectType, objectHandle, privateDataSlot, data ); } void vkGetPrivateDataEXT( VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPrivateDataEXT( device, objectType, objectHandle, privateDataSlot, pData ); } # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_encode_queue === void vkCmdEncodeVideoKHR( VkCommandBuffer commandBuffer, const VkVideoEncodeInfoKHR * pEncodeInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdEncodeVideoKHR( commandBuffer, pEncodeInfo ); } # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === void vkExportMetalObjectsEXT( VkDevice device, VkExportMetalObjectsInfoEXT * pMetalObjectsInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkExportMetalObjectsEXT( device, pMetalObjectsInfo ); } # endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_synchronization2 === void vkCmdSetEvent2KHR( VkCommandBuffer commandBuffer, VkEvent event, const VkDependencyInfo * pDependencyInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetEvent2KHR( commandBuffer, event, pDependencyInfo ); } void vkCmdResetEvent2KHR( VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags2 stageMask ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResetEvent2KHR( commandBuffer, event, stageMask ); } void vkCmdWaitEvents2KHR( VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent * pEvents, const VkDependencyInfo * pDependencyInfos ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWaitEvents2KHR( commandBuffer, eventCount, pEvents, pDependencyInfos ); } void vkCmdPipelineBarrier2KHR( VkCommandBuffer commandBuffer, const VkDependencyInfo * pDependencyInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdPipelineBarrier2KHR( commandBuffer, pDependencyInfo ); } void vkCmdWriteTimestamp2KHR( VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkQueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteTimestamp2KHR( commandBuffer, stage, queryPool, query ); } VkResult vkQueueSubmit2KHR( VkQueue queue, uint32_t submitCount, const VkSubmitInfo2 * pSubmits, VkFence fence ) const VULKAN_HPP_NOEXCEPT { return ::vkQueueSubmit2KHR( queue, submitCount, pSubmits, fence ); } void vkCmdWriteBufferMarker2AMD( VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdWriteBufferMarker2AMD( commandBuffer, stage, dstBuffer, dstOffset, marker ); } void vkGetQueueCheckpointData2NV( VkQueue queue, uint32_t * pCheckpointDataCount, VkCheckpointData2NV * pCheckpointData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetQueueCheckpointData2NV( queue, pCheckpointDataCount, pCheckpointData ); } //=== VK_NV_fragment_shading_rate_enums === void vkCmdSetFragmentShadingRateEnumNV( VkCommandBuffer commandBuffer, VkFragmentShadingRateNV shadingRate, const VkFragmentShadingRateCombinerOpKHR combinerOps[2] ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetFragmentShadingRateEnumNV( commandBuffer, shadingRate, combinerOps ); } //=== VK_KHR_copy_commands2 === void vkCmdCopyBuffer2KHR( VkCommandBuffer commandBuffer, const VkCopyBufferInfo2 * pCopyBufferInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyBuffer2KHR( commandBuffer, pCopyBufferInfo ); } void vkCmdCopyImage2KHR( VkCommandBuffer commandBuffer, const VkCopyImageInfo2 * pCopyImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyImage2KHR( commandBuffer, pCopyImageInfo ); } void vkCmdCopyBufferToImage2KHR( VkCommandBuffer commandBuffer, const VkCopyBufferToImageInfo2 * pCopyBufferToImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyBufferToImage2KHR( commandBuffer, pCopyBufferToImageInfo ); } void vkCmdCopyImageToBuffer2KHR( VkCommandBuffer commandBuffer, const VkCopyImageToBufferInfo2 * pCopyImageToBufferInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdCopyImageToBuffer2KHR( commandBuffer, pCopyImageToBufferInfo ); } void vkCmdBlitImage2KHR( VkCommandBuffer commandBuffer, const VkBlitImageInfo2 * pBlitImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBlitImage2KHR( commandBuffer, pBlitImageInfo ); } void vkCmdResolveImage2KHR( VkCommandBuffer commandBuffer, const VkResolveImageInfo2 * pResolveImageInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdResolveImage2KHR( commandBuffer, pResolveImageInfo ); } //=== VK_EXT_image_compression_control === void vkGetImageSubresourceLayout2EXT( VkDevice device, VkImage image, const VkImageSubresource2EXT * pSubresource, VkSubresourceLayout2EXT * pLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkGetImageSubresourceLayout2EXT( device, image, pSubresource, pLayout ); } # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_acquire_winrt_display === VkResult vkAcquireWinrtDisplayNV( VkPhysicalDevice physicalDevice, VkDisplayKHR display ) const VULKAN_HPP_NOEXCEPT { return ::vkAcquireWinrtDisplayNV( physicalDevice, display ); } VkResult vkGetWinrtDisplayNV( VkPhysicalDevice physicalDevice, uint32_t deviceRelativeId, VkDisplayKHR * pDisplay ) const VULKAN_HPP_NOEXCEPT { return ::vkGetWinrtDisplayNV( physicalDevice, deviceRelativeId, pDisplay ); } # endif /*VK_USE_PLATFORM_WIN32_KHR*/ # if defined( VK_USE_PLATFORM_DIRECTFB_EXT ) //=== VK_EXT_directfb_surface === VkResult vkCreateDirectFBSurfaceEXT( VkInstance instance, const VkDirectFBSurfaceCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateDirectFBSurfaceEXT( instance, pCreateInfo, pAllocator, pSurface ); } VkBool32 vkGetPhysicalDeviceDirectFBPresentationSupportEXT( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, IDirectFB * dfb ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceDirectFBPresentationSupportEXT( physicalDevice, queueFamilyIndex, dfb ); } # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/ //=== VK_KHR_ray_tracing_pipeline === void vkCmdTraceRaysKHR( VkCommandBuffer commandBuffer, const VkStridedDeviceAddressRegionKHR * pRaygenShaderBindingTable, const VkStridedDeviceAddressRegionKHR * pMissShaderBindingTable, const VkStridedDeviceAddressRegionKHR * pHitShaderBindingTable, const VkStridedDeviceAddressRegionKHR * pCallableShaderBindingTable, uint32_t width, uint32_t height, uint32_t depth ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdTraceRaysKHR( commandBuffer, pRaygenShaderBindingTable, pMissShaderBindingTable, pHitShaderBindingTable, pCallableShaderBindingTable, width, height, depth ); } VkResult vkCreateRayTracingPipelinesKHR( VkDevice device, VkDeferredOperationKHR deferredOperation, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkRayTracingPipelineCreateInfoKHR * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkPipeline * pPipelines ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateRayTracingPipelinesKHR( device, deferredOperation, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines ); } VkResult vkGetRayTracingShaderGroupHandlesKHR( VkDevice device, VkPipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRayTracingShaderGroupHandlesKHR( device, pipeline, firstGroup, groupCount, dataSize, pData ); } VkResult vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( VkDevice device, VkPipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( device, pipeline, firstGroup, groupCount, dataSize, pData ); } void vkCmdTraceRaysIndirectKHR( VkCommandBuffer commandBuffer, const VkStridedDeviceAddressRegionKHR * pRaygenShaderBindingTable, const VkStridedDeviceAddressRegionKHR * pMissShaderBindingTable, const VkStridedDeviceAddressRegionKHR * pHitShaderBindingTable, const VkStridedDeviceAddressRegionKHR * pCallableShaderBindingTable, VkDeviceAddress indirectDeviceAddress ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdTraceRaysIndirectKHR( commandBuffer, pRaygenShaderBindingTable, pMissShaderBindingTable, pHitShaderBindingTable, pCallableShaderBindingTable, indirectDeviceAddress ); } VkDeviceSize vkGetRayTracingShaderGroupStackSizeKHR( VkDevice device, VkPipeline pipeline, uint32_t group, VkShaderGroupShaderKHR groupShader ) const VULKAN_HPP_NOEXCEPT { return ::vkGetRayTracingShaderGroupStackSizeKHR( device, pipeline, group, groupShader ); } void vkCmdSetRayTracingPipelineStackSizeKHR( VkCommandBuffer commandBuffer, uint32_t pipelineStackSize ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetRayTracingPipelineStackSizeKHR( commandBuffer, pipelineStackSize ); } //=== VK_EXT_vertex_input_dynamic_state === void vkCmdSetVertexInputEXT( VkCommandBuffer commandBuffer, uint32_t vertexBindingDescriptionCount, const VkVertexInputBindingDescription2EXT * pVertexBindingDescriptions, uint32_t vertexAttributeDescriptionCount, const VkVertexInputAttributeDescription2EXT * pVertexAttributeDescriptions ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetVertexInputEXT( commandBuffer, vertexBindingDescriptionCount, pVertexBindingDescriptions, vertexAttributeDescriptionCount, pVertexAttributeDescriptions ); } # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_memory === VkResult vkGetMemoryZirconHandleFUCHSIA( VkDevice device, const VkMemoryGetZirconHandleInfoFUCHSIA * pGetZirconHandleInfo, zx_handle_t * pZirconHandle ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryZirconHandleFUCHSIA( device, pGetZirconHandleInfo, pZirconHandle ); } VkResult vkGetMemoryZirconHandlePropertiesFUCHSIA( VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, zx_handle_t zirconHandle, VkMemoryZirconHandlePropertiesFUCHSIA * pMemoryZirconHandleProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryZirconHandlePropertiesFUCHSIA( device, handleType, zirconHandle, pMemoryZirconHandleProperties ); } # endif /*VK_USE_PLATFORM_FUCHSIA*/ # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_semaphore === VkResult vkImportSemaphoreZirconHandleFUCHSIA( VkDevice device, const VkImportSemaphoreZirconHandleInfoFUCHSIA * pImportSemaphoreZirconHandleInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkImportSemaphoreZirconHandleFUCHSIA( device, pImportSemaphoreZirconHandleInfo ); } VkResult vkGetSemaphoreZirconHandleFUCHSIA( VkDevice device, const VkSemaphoreGetZirconHandleInfoFUCHSIA * pGetZirconHandleInfo, zx_handle_t * pZirconHandle ) const VULKAN_HPP_NOEXCEPT { return ::vkGetSemaphoreZirconHandleFUCHSIA( device, pGetZirconHandleInfo, pZirconHandle ); } # endif /*VK_USE_PLATFORM_FUCHSIA*/ # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_buffer_collection === VkResult vkCreateBufferCollectionFUCHSIA( VkDevice device, const VkBufferCollectionCreateInfoFUCHSIA * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkBufferCollectionFUCHSIA * pCollection ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateBufferCollectionFUCHSIA( device, pCreateInfo, pAllocator, pCollection ); } VkResult vkSetBufferCollectionImageConstraintsFUCHSIA( VkDevice device, VkBufferCollectionFUCHSIA collection, const VkImageConstraintsInfoFUCHSIA * pImageConstraintsInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkSetBufferCollectionImageConstraintsFUCHSIA( device, collection, pImageConstraintsInfo ); } VkResult vkSetBufferCollectionBufferConstraintsFUCHSIA( VkDevice device, VkBufferCollectionFUCHSIA collection, const VkBufferConstraintsInfoFUCHSIA * pBufferConstraintsInfo ) const VULKAN_HPP_NOEXCEPT { return ::vkSetBufferCollectionBufferConstraintsFUCHSIA( device, collection, pBufferConstraintsInfo ); } void vkDestroyBufferCollectionFUCHSIA( VkDevice device, VkBufferCollectionFUCHSIA collection, const VkAllocationCallbacks * pAllocator ) const VULKAN_HPP_NOEXCEPT { return ::vkDestroyBufferCollectionFUCHSIA( device, collection, pAllocator ); } VkResult vkGetBufferCollectionPropertiesFUCHSIA( VkDevice device, VkBufferCollectionFUCHSIA collection, VkBufferCollectionPropertiesFUCHSIA * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetBufferCollectionPropertiesFUCHSIA( device, collection, pProperties ); } # endif /*VK_USE_PLATFORM_FUCHSIA*/ //=== VK_HUAWEI_subpass_shading === VkResult vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( VkDevice device, VkRenderPass renderpass, VkExtent2D * pMaxWorkgroupSize ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( device, renderpass, pMaxWorkgroupSize ); } void vkCmdSubpassShadingHUAWEI( VkCommandBuffer commandBuffer ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSubpassShadingHUAWEI( commandBuffer ); } //=== VK_HUAWEI_invocation_mask === void vkCmdBindInvocationMaskHUAWEI( VkCommandBuffer commandBuffer, VkImageView imageView, VkImageLayout imageLayout ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdBindInvocationMaskHUAWEI( commandBuffer, imageView, imageLayout ); } //=== VK_NV_external_memory_rdma === VkResult vkGetMemoryRemoteAddressNV( VkDevice device, const VkMemoryGetRemoteAddressInfoNV * pMemoryGetRemoteAddressInfo, VkRemoteAddressNV * pAddress ) const VULKAN_HPP_NOEXCEPT { return ::vkGetMemoryRemoteAddressNV( device, pMemoryGetRemoteAddressInfo, pAddress ); } //=== VK_EXT_pipeline_properties === VkResult vkGetPipelinePropertiesEXT( VkDevice device, const VkPipelineInfoEXT * pPipelineInfo, VkBaseOutStructure * pPipelineProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPipelinePropertiesEXT( device, pPipelineInfo, pPipelineProperties ); } //=== VK_EXT_extended_dynamic_state2 === void vkCmdSetPatchControlPointsEXT( VkCommandBuffer commandBuffer, uint32_t patchControlPoints ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPatchControlPointsEXT( commandBuffer, patchControlPoints ); } void vkCmdSetRasterizerDiscardEnableEXT( VkCommandBuffer commandBuffer, VkBool32 rasterizerDiscardEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetRasterizerDiscardEnableEXT( commandBuffer, rasterizerDiscardEnable ); } void vkCmdSetDepthBiasEnableEXT( VkCommandBuffer commandBuffer, VkBool32 depthBiasEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetDepthBiasEnableEXT( commandBuffer, depthBiasEnable ); } void vkCmdSetLogicOpEXT( VkCommandBuffer commandBuffer, VkLogicOp logicOp ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetLogicOpEXT( commandBuffer, logicOp ); } void vkCmdSetPrimitiveRestartEnableEXT( VkCommandBuffer commandBuffer, VkBool32 primitiveRestartEnable ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetPrimitiveRestartEnableEXT( commandBuffer, primitiveRestartEnable ); } # if defined( VK_USE_PLATFORM_SCREEN_QNX ) //=== VK_QNX_screen_surface === VkResult vkCreateScreenSurfaceQNX( VkInstance instance, const VkScreenSurfaceCreateInfoQNX * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSurfaceKHR * pSurface ) const VULKAN_HPP_NOEXCEPT { return ::vkCreateScreenSurfaceQNX( instance, pCreateInfo, pAllocator, pSurface ); } VkBool32 vkGetPhysicalDeviceScreenPresentationSupportQNX( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct _screen_window * window ) const VULKAN_HPP_NOEXCEPT { return ::vkGetPhysicalDeviceScreenPresentationSupportQNX( physicalDevice, queueFamilyIndex, window ); } # endif /*VK_USE_PLATFORM_SCREEN_QNX*/ //=== VK_EXT_color_write_enable === void vkCmdSetColorWriteEnableEXT( VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkBool32 * pColorWriteEnables ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdSetColorWriteEnableEXT( commandBuffer, attachmentCount, pColorWriteEnables ); } //=== VK_KHR_ray_tracing_maintenance1 === void vkCmdTraceRaysIndirect2KHR( VkCommandBuffer commandBuffer, VkDeviceAddress indirectDeviceAddress ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdTraceRaysIndirect2KHR( commandBuffer, indirectDeviceAddress ); } //=== VK_EXT_multi_draw === void vkCmdDrawMultiEXT( VkCommandBuffer commandBuffer, uint32_t drawCount, const VkMultiDrawInfoEXT * pVertexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawMultiEXT( commandBuffer, drawCount, pVertexInfo, instanceCount, firstInstance, stride ); } void vkCmdDrawMultiIndexedEXT( VkCommandBuffer commandBuffer, uint32_t drawCount, const VkMultiDrawIndexedInfoEXT * pIndexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride, const int32_t * pVertexOffset ) const VULKAN_HPP_NOEXCEPT { return ::vkCmdDrawMultiIndexedEXT( commandBuffer, drawCount, pIndexInfo, instanceCount, firstInstance, stride, pVertexOffset ); } //=== VK_EXT_pageable_device_local_memory === void vkSetDeviceMemoryPriorityEXT( VkDevice device, VkDeviceMemory memory, float priority ) const VULKAN_HPP_NOEXCEPT { return ::vkSetDeviceMemoryPriorityEXT( device, memory, priority ); } //=== VK_KHR_maintenance4 === void vkGetDeviceBufferMemoryRequirementsKHR( VkDevice device, const VkDeviceBufferMemoryRequirements * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceBufferMemoryRequirementsKHR( device, pInfo, pMemoryRequirements ); } void vkGetDeviceImageMemoryRequirementsKHR( VkDevice device, const VkDeviceImageMemoryRequirements * pInfo, VkMemoryRequirements2 * pMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceImageMemoryRequirementsKHR( device, pInfo, pMemoryRequirements ); } void vkGetDeviceImageSparseMemoryRequirementsKHR( VkDevice device, const VkDeviceImageMemoryRequirements * pInfo, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 * pSparseMemoryRequirements ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDeviceImageSparseMemoryRequirementsKHR( device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements ); } //=== VK_VALVE_descriptor_set_host_mapping === void vkGetDescriptorSetLayoutHostMappingInfoVALVE( VkDevice device, const VkDescriptorSetBindingReferenceVALVE * pBindingReference, VkDescriptorSetLayoutHostMappingInfoVALVE * pHostMapping ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDescriptorSetLayoutHostMappingInfoVALVE( device, pBindingReference, pHostMapping ); } void vkGetDescriptorSetHostMappingVALVE( VkDevice device, VkDescriptorSet descriptorSet, void ** ppData ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDescriptorSetHostMappingVALVE( device, descriptorSet, ppData ); } //=== VK_EXT_shader_module_identifier === void vkGetShaderModuleIdentifierEXT( VkDevice device, VkShaderModule shaderModule, VkShaderModuleIdentifierEXT * pIdentifier ) const VULKAN_HPP_NOEXCEPT { return ::vkGetShaderModuleIdentifierEXT( device, shaderModule, pIdentifier ); } void vkGetShaderModuleCreateInfoIdentifierEXT( VkDevice device, const VkShaderModuleCreateInfo * pCreateInfo, VkShaderModuleIdentifierEXT * pIdentifier ) const VULKAN_HPP_NOEXCEPT { return ::vkGetShaderModuleCreateInfoIdentifierEXT( device, pCreateInfo, pIdentifier ); } //=== VK_QCOM_tile_properties === VkResult vkGetFramebufferTilePropertiesQCOM( VkDevice device, VkFramebuffer framebuffer, uint32_t * pPropertiesCount, VkTilePropertiesQCOM * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetFramebufferTilePropertiesQCOM( device, framebuffer, pPropertiesCount, pProperties ); } VkResult vkGetDynamicRenderingTilePropertiesQCOM( VkDevice device, const VkRenderingInfo * pRenderingInfo, VkTilePropertiesQCOM * pProperties ) const VULKAN_HPP_NOEXCEPT { return ::vkGetDynamicRenderingTilePropertiesQCOM( device, pRenderingInfo, pProperties ); } }; #endif class DispatchLoaderDynamic; #if !defined( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC ) # if defined( VK_NO_PROTOTYPES ) # define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1 # else # define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 0 # endif #endif #if !defined( VULKAN_HPP_STORAGE_API ) # if defined( VULKAN_HPP_STORAGE_SHARED ) # if defined( _MSC_VER ) # if defined( VULKAN_HPP_STORAGE_SHARED_EXPORT ) # define VULKAN_HPP_STORAGE_API __declspec( dllexport ) # else # define VULKAN_HPP_STORAGE_API __declspec( dllimport ) # endif # elif defined( __clang__ ) || defined( __GNUC__ ) # if defined( VULKAN_HPP_STORAGE_SHARED_EXPORT ) # define VULKAN_HPP_STORAGE_API __attribute__( ( visibility( "default" ) ) ) # else # define VULKAN_HPP_STORAGE_API # endif # else # define VULKAN_HPP_STORAGE_API # pragma warning Unknown import / export semantics # endif # else # define VULKAN_HPP_STORAGE_API # endif #endif #if !defined( VULKAN_HPP_DEFAULT_DISPATCHER ) # if VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 # define VULKAN_HPP_DEFAULT_DISPATCHER ::VULKAN_HPP_NAMESPACE::defaultDispatchLoaderDynamic # define VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE \ namespace VULKAN_HPP_NAMESPACE \ { \ VULKAN_HPP_STORAGE_API DispatchLoaderDynamic defaultDispatchLoaderDynamic; \ } extern VULKAN_HPP_STORAGE_API DispatchLoaderDynamic defaultDispatchLoaderDynamic; # else static inline ::VULKAN_HPP_NAMESPACE::DispatchLoaderStatic & getDispatchLoaderStatic() { static ::VULKAN_HPP_NAMESPACE::DispatchLoaderStatic dls; return dls; } # define VULKAN_HPP_DEFAULT_DISPATCHER ::VULKAN_HPP_NAMESPACE::getDispatchLoaderStatic() # define VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE # endif #endif #if !defined( VULKAN_HPP_DEFAULT_DISPATCHER_TYPE ) # if VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 # define VULKAN_HPP_DEFAULT_DISPATCHER_TYPE ::VULKAN_HPP_NAMESPACE::DispatchLoaderDynamic # else # define VULKAN_HPP_DEFAULT_DISPATCHER_TYPE ::VULKAN_HPP_NAMESPACE::DispatchLoaderStatic # endif #endif #if defined( VULKAN_HPP_NO_DEFAULT_DISPATCHER ) # define VULKAN_HPP_DEFAULT_ARGUMENT_ASSIGNMENT # define VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT # define VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT #else # define VULKAN_HPP_DEFAULT_ARGUMENT_ASSIGNMENT = {} # define VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT = nullptr # define VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT = VULKAN_HPP_DEFAULT_DISPATCHER #endif #if !defined( VULKAN_HPP_NO_SMART_HANDLE ) struct AllocationCallbacks; template <typename OwnerType, typename Dispatch> class ObjectDestroy { public: ObjectDestroy() = default; ObjectDestroy( OwnerType owner, Optional<const AllocationCallbacks> allocationCallbacks VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT, Dispatch const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_allocationCallbacks( allocationCallbacks ) , m_dispatch( &dispatch ) { } OwnerType getOwner() const VULKAN_HPP_NOEXCEPT { return m_owner; } Optional<const AllocationCallbacks> getAllocator() const VULKAN_HPP_NOEXCEPT { return m_allocationCallbacks; } protected: template <typename T> void destroy( T t ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_owner && m_dispatch ); m_owner.destroy( t, m_allocationCallbacks, *m_dispatch ); } private: OwnerType m_owner = {}; Optional<const AllocationCallbacks> m_allocationCallbacks = nullptr; Dispatch const * m_dispatch = nullptr; }; class NoParent; template <typename Dispatch> class ObjectDestroy<NoParent, Dispatch> { public: ObjectDestroy() = default; ObjectDestroy( Optional<const AllocationCallbacks> allocationCallbacks, Dispatch const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT : m_allocationCallbacks( allocationCallbacks ) , m_dispatch( &dispatch ) { } Optional<const AllocationCallbacks> getAllocator() const VULKAN_HPP_NOEXCEPT { return m_allocationCallbacks; } protected: template <typename T> void destroy( T t ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_dispatch ); t.destroy( m_allocationCallbacks, *m_dispatch ); } private: Optional<const AllocationCallbacks> m_allocationCallbacks = nullptr; Dispatch const * m_dispatch = nullptr; }; template <typename OwnerType, typename Dispatch> class ObjectFree { public: ObjectFree() = default; ObjectFree( OwnerType owner, Optional<const AllocationCallbacks> allocationCallbacks VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT, Dispatch const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_allocationCallbacks( allocationCallbacks ) , m_dispatch( &dispatch ) { } OwnerType getOwner() const VULKAN_HPP_NOEXCEPT { return m_owner; } Optional<const AllocationCallbacks> getAllocator() const VULKAN_HPP_NOEXCEPT { return m_allocationCallbacks; } protected: template <typename T> void destroy( T t ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_owner && m_dispatch ); ( m_owner.free )( t, m_allocationCallbacks, *m_dispatch ); } private: OwnerType m_owner = {}; Optional<const AllocationCallbacks> m_allocationCallbacks = nullptr; Dispatch const * m_dispatch = nullptr; }; template <typename OwnerType, typename Dispatch> class ObjectRelease { public: ObjectRelease() = default; ObjectRelease( OwnerType owner, Dispatch const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_dispatch( &dispatch ) { } OwnerType getOwner() const VULKAN_HPP_NOEXCEPT { return m_owner; } protected: template <typename T> void destroy( T t ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( m_owner && m_dispatch ); m_owner.release( t, *m_dispatch ); } private: OwnerType m_owner = {}; Dispatch const * m_dispatch = nullptr; }; template <typename OwnerType, typename PoolType, typename Dispatch> class PoolFree { public: PoolFree() = default; PoolFree( OwnerType owner, PoolType pool, Dispatch const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_pool( pool ) , m_dispatch( &dispatch ) { } OwnerType getOwner() const VULKAN_HPP_NOEXCEPT { return m_owner; } PoolType getPool() const VULKAN_HPP_NOEXCEPT { return m_pool; } protected: template <typename T> void destroy( T t ) VULKAN_HPP_NOEXCEPT { ( m_owner.free )( m_pool, t, *m_dispatch ); } private: OwnerType m_owner = OwnerType(); PoolType m_pool = PoolType(); Dispatch const * m_dispatch = nullptr; }; #endif // !VULKAN_HPP_NO_SMART_HANDLE //================== //=== BASE TYPEs === //================== using Bool32 = uint32_t; using DeviceAddress = uint64_t; using DeviceSize = uint64_t; using RemoteAddressNV = void *; using SampleMask = uint32_t; } // namespace VULKAN_HPP_NAMESPACE #include <vulkan/vulkan_enums.hpp> #if !defined( VULKAN_HPP_NO_TO_STRING ) # include <vulkan/vulkan_to_string.hpp> #endif #ifndef VULKAN_HPP_NO_EXCEPTIONS namespace std { template <> struct is_error_code_enum<VULKAN_HPP_NAMESPACE::Result> : public true_type { }; } // namespace std #endif namespace VULKAN_HPP_NAMESPACE { #ifndef VULKAN_HPP_NO_EXCEPTIONS class ErrorCategoryImpl : public std::error_category { public: virtual const char * name() const VULKAN_HPP_NOEXCEPT override { return VULKAN_HPP_NAMESPACE_STRING "::Result"; } virtual std::string message( int ev ) const override { # if defined( VULKAN_HPP_NO_TO_STRING ) return std::to_string( ev ); # else return VULKAN_HPP_NAMESPACE::to_string( static_cast<VULKAN_HPP_NAMESPACE::Result>( ev ) ); # endif } }; class Error { public: Error() VULKAN_HPP_NOEXCEPT = default; Error( const Error & ) VULKAN_HPP_NOEXCEPT = default; virtual ~Error() VULKAN_HPP_NOEXCEPT = default; virtual const char * what() const VULKAN_HPP_NOEXCEPT = 0; }; class LogicError : public Error , public std::logic_error { public: explicit LogicError( const std::string & what ) : Error(), std::logic_error( what ) {} explicit LogicError( char const * what ) : Error(), std::logic_error( what ) {} virtual const char * what() const VULKAN_HPP_NOEXCEPT { return std::logic_error::what(); } }; class SystemError : public Error , public std::system_error { public: SystemError( std::error_code ec ) : Error(), std::system_error( ec ) {} SystemError( std::error_code ec, std::string const & what ) : Error(), std::system_error( ec, what ) {} SystemError( std::error_code ec, char const * what ) : Error(), std::system_error( ec, what ) {} SystemError( int ev, std::error_category const & ecat ) : Error(), std::system_error( ev, ecat ) {} SystemError( int ev, std::error_category const & ecat, std::string const & what ) : Error(), std::system_error( ev, ecat, what ) {} SystemError( int ev, std::error_category const & ecat, char const * what ) : Error(), std::system_error( ev, ecat, what ) {} virtual const char * what() const VULKAN_HPP_NOEXCEPT { return std::system_error::what(); } }; VULKAN_HPP_INLINE const std::error_category & errorCategory() VULKAN_HPP_NOEXCEPT { static ErrorCategoryImpl instance; return instance; } VULKAN_HPP_INLINE std::error_code make_error_code( Result e ) VULKAN_HPP_NOEXCEPT { return std::error_code( static_cast<int>( e ), errorCategory() ); } VULKAN_HPP_INLINE std::error_condition make_error_condition( Result e ) VULKAN_HPP_NOEXCEPT { return std::error_condition( static_cast<int>( e ), errorCategory() ); } class OutOfHostMemoryError : public SystemError { public: OutOfHostMemoryError( std::string const & message ) : SystemError( make_error_code( Result::eErrorOutOfHostMemory ), message ) {} OutOfHostMemoryError( char const * message ) : SystemError( make_error_code( Result::eErrorOutOfHostMemory ), message ) {} }; class OutOfDeviceMemoryError : public SystemError { public: OutOfDeviceMemoryError( std::string const & message ) : SystemError( make_error_code( Result::eErrorOutOfDeviceMemory ), message ) {} OutOfDeviceMemoryError( char const * message ) : SystemError( make_error_code( Result::eErrorOutOfDeviceMemory ), message ) {} }; class InitializationFailedError : public SystemError { public: InitializationFailedError( std::string const & message ) : SystemError( make_error_code( Result::eErrorInitializationFailed ), message ) {} InitializationFailedError( char const * message ) : SystemError( make_error_code( Result::eErrorInitializationFailed ), message ) {} }; class DeviceLostError : public SystemError { public: DeviceLostError( std::string const & message ) : SystemError( make_error_code( Result::eErrorDeviceLost ), message ) {} DeviceLostError( char const * message ) : SystemError( make_error_code( Result::eErrorDeviceLost ), message ) {} }; class MemoryMapFailedError : public SystemError { public: MemoryMapFailedError( std::string const & message ) : SystemError( make_error_code( Result::eErrorMemoryMapFailed ), message ) {} MemoryMapFailedError( char const * message ) : SystemError( make_error_code( Result::eErrorMemoryMapFailed ), message ) {} }; class LayerNotPresentError : public SystemError { public: LayerNotPresentError( std::string const & message ) : SystemError( make_error_code( Result::eErrorLayerNotPresent ), message ) {} LayerNotPresentError( char const * message ) : SystemError( make_error_code( Result::eErrorLayerNotPresent ), message ) {} }; class ExtensionNotPresentError : public SystemError { public: ExtensionNotPresentError( std::string const & message ) : SystemError( make_error_code( Result::eErrorExtensionNotPresent ), message ) {} ExtensionNotPresentError( char const * message ) : SystemError( make_error_code( Result::eErrorExtensionNotPresent ), message ) {} }; class FeatureNotPresentError : public SystemError { public: FeatureNotPresentError( std::string const & message ) : SystemError( make_error_code( Result::eErrorFeatureNotPresent ), message ) {} FeatureNotPresentError( char const * message ) : SystemError( make_error_code( Result::eErrorFeatureNotPresent ), message ) {} }; class IncompatibleDriverError : public SystemError { public: IncompatibleDriverError( std::string const & message ) : SystemError( make_error_code( Result::eErrorIncompatibleDriver ), message ) {} IncompatibleDriverError( char const * message ) : SystemError( make_error_code( Result::eErrorIncompatibleDriver ), message ) {} }; class TooManyObjectsError : public SystemError { public: TooManyObjectsError( std::string const & message ) : SystemError( make_error_code( Result::eErrorTooManyObjects ), message ) {} TooManyObjectsError( char const * message ) : SystemError( make_error_code( Result::eErrorTooManyObjects ), message ) {} }; class FormatNotSupportedError : public SystemError { public: FormatNotSupportedError( std::string const & message ) : SystemError( make_error_code( Result::eErrorFormatNotSupported ), message ) {} FormatNotSupportedError( char const * message ) : SystemError( make_error_code( Result::eErrorFormatNotSupported ), message ) {} }; class FragmentedPoolError : public SystemError { public: FragmentedPoolError( std::string const & message ) : SystemError( make_error_code( Result::eErrorFragmentedPool ), message ) {} FragmentedPoolError( char const * message ) : SystemError( make_error_code( Result::eErrorFragmentedPool ), message ) {} }; class UnknownError : public SystemError { public: UnknownError( std::string const & message ) : SystemError( make_error_code( Result::eErrorUnknown ), message ) {} UnknownError( char const * message ) : SystemError( make_error_code( Result::eErrorUnknown ), message ) {} }; class OutOfPoolMemoryError : public SystemError { public: OutOfPoolMemoryError( std::string const & message ) : SystemError( make_error_code( Result::eErrorOutOfPoolMemory ), message ) {} OutOfPoolMemoryError( char const * message ) : SystemError( make_error_code( Result::eErrorOutOfPoolMemory ), message ) {} }; class InvalidExternalHandleError : public SystemError { public: InvalidExternalHandleError( std::string const & message ) : SystemError( make_error_code( Result::eErrorInvalidExternalHandle ), message ) {} InvalidExternalHandleError( char const * message ) : SystemError( make_error_code( Result::eErrorInvalidExternalHandle ), message ) {} }; class FragmentationError : public SystemError { public: FragmentationError( std::string const & message ) : SystemError( make_error_code( Result::eErrorFragmentation ), message ) {} FragmentationError( char const * message ) : SystemError( make_error_code( Result::eErrorFragmentation ), message ) {} }; class InvalidOpaqueCaptureAddressError : public SystemError { public: InvalidOpaqueCaptureAddressError( std::string const & message ) : SystemError( make_error_code( Result::eErrorInvalidOpaqueCaptureAddress ), message ) {} InvalidOpaqueCaptureAddressError( char const * message ) : SystemError( make_error_code( Result::eErrorInvalidOpaqueCaptureAddress ), message ) {} }; class SurfaceLostKHRError : public SystemError { public: SurfaceLostKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorSurfaceLostKHR ), message ) {} SurfaceLostKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorSurfaceLostKHR ), message ) {} }; class NativeWindowInUseKHRError : public SystemError { public: NativeWindowInUseKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorNativeWindowInUseKHR ), message ) {} NativeWindowInUseKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorNativeWindowInUseKHR ), message ) {} }; class OutOfDateKHRError : public SystemError { public: OutOfDateKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorOutOfDateKHR ), message ) {} OutOfDateKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorOutOfDateKHR ), message ) {} }; class IncompatibleDisplayKHRError : public SystemError { public: IncompatibleDisplayKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorIncompatibleDisplayKHR ), message ) {} IncompatibleDisplayKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorIncompatibleDisplayKHR ), message ) {} }; class ValidationFailedEXTError : public SystemError { public: ValidationFailedEXTError( std::string const & message ) : SystemError( make_error_code( Result::eErrorValidationFailedEXT ), message ) {} ValidationFailedEXTError( char const * message ) : SystemError( make_error_code( Result::eErrorValidationFailedEXT ), message ) {} }; class InvalidShaderNVError : public SystemError { public: InvalidShaderNVError( std::string const & message ) : SystemError( make_error_code( Result::eErrorInvalidShaderNV ), message ) {} InvalidShaderNVError( char const * message ) : SystemError( make_error_code( Result::eErrorInvalidShaderNV ), message ) {} }; # if defined( VK_ENABLE_BETA_EXTENSIONS ) class ImageUsageNotSupportedKHRError : public SystemError { public: ImageUsageNotSupportedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorImageUsageNotSupportedKHR ), message ) {} ImageUsageNotSupportedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorImageUsageNotSupportedKHR ), message ) {} }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) class VideoPictureLayoutNotSupportedKHRError : public SystemError { public: VideoPictureLayoutNotSupportedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorVideoPictureLayoutNotSupportedKHR ), message ) { } VideoPictureLayoutNotSupportedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorVideoPictureLayoutNotSupportedKHR ), message ) { } }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) class VideoProfileOperationNotSupportedKHRError : public SystemError { public: VideoProfileOperationNotSupportedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorVideoProfileOperationNotSupportedKHR ), message ) { } VideoProfileOperationNotSupportedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorVideoProfileOperationNotSupportedKHR ), message ) { } }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) class VideoProfileFormatNotSupportedKHRError : public SystemError { public: VideoProfileFormatNotSupportedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorVideoProfileFormatNotSupportedKHR ), message ) { } VideoProfileFormatNotSupportedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorVideoProfileFormatNotSupportedKHR ), message ) { } }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) class VideoProfileCodecNotSupportedKHRError : public SystemError { public: VideoProfileCodecNotSupportedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorVideoProfileCodecNotSupportedKHR ), message ) { } VideoProfileCodecNotSupportedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorVideoProfileCodecNotSupportedKHR ), message ) {} }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) class VideoStdVersionNotSupportedKHRError : public SystemError { public: VideoStdVersionNotSupportedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorVideoStdVersionNotSupportedKHR ), message ) { } VideoStdVersionNotSupportedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorVideoStdVersionNotSupportedKHR ), message ) {} }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ class InvalidDrmFormatModifierPlaneLayoutEXTError : public SystemError { public: InvalidDrmFormatModifierPlaneLayoutEXTError( std::string const & message ) : SystemError( make_error_code( Result::eErrorInvalidDrmFormatModifierPlaneLayoutEXT ), message ) { } InvalidDrmFormatModifierPlaneLayoutEXTError( char const * message ) : SystemError( make_error_code( Result::eErrorInvalidDrmFormatModifierPlaneLayoutEXT ), message ) { } }; class NotPermittedKHRError : public SystemError { public: NotPermittedKHRError( std::string const & message ) : SystemError( make_error_code( Result::eErrorNotPermittedKHR ), message ) {} NotPermittedKHRError( char const * message ) : SystemError( make_error_code( Result::eErrorNotPermittedKHR ), message ) {} }; # if defined( VK_USE_PLATFORM_WIN32_KHR ) class FullScreenExclusiveModeLostEXTError : public SystemError { public: FullScreenExclusiveModeLostEXTError( std::string const & message ) : SystemError( make_error_code( Result::eErrorFullScreenExclusiveModeLostEXT ), message ) { } FullScreenExclusiveModeLostEXTError( char const * message ) : SystemError( make_error_code( Result::eErrorFullScreenExclusiveModeLostEXT ), message ) {} }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ class CompressionExhaustedEXTError : public SystemError { public: CompressionExhaustedEXTError( std::string const & message ) : SystemError( make_error_code( Result::eErrorCompressionExhaustedEXT ), message ) {} CompressionExhaustedEXTError( char const * message ) : SystemError( make_error_code( Result::eErrorCompressionExhaustedEXT ), message ) {} }; namespace { [[noreturn]] void throwResultException( Result result, char const * message ) { switch ( result ) { case Result::eErrorOutOfHostMemory: throw OutOfHostMemoryError( message ); case Result::eErrorOutOfDeviceMemory: throw OutOfDeviceMemoryError( message ); case Result::eErrorInitializationFailed: throw InitializationFailedError( message ); case Result::eErrorDeviceLost: throw DeviceLostError( message ); case Result::eErrorMemoryMapFailed: throw MemoryMapFailedError( message ); case Result::eErrorLayerNotPresent: throw LayerNotPresentError( message ); case Result::eErrorExtensionNotPresent: throw ExtensionNotPresentError( message ); case Result::eErrorFeatureNotPresent: throw FeatureNotPresentError( message ); case Result::eErrorIncompatibleDriver: throw IncompatibleDriverError( message ); case Result::eErrorTooManyObjects: throw TooManyObjectsError( message ); case Result::eErrorFormatNotSupported: throw FormatNotSupportedError( message ); case Result::eErrorFragmentedPool: throw FragmentedPoolError( message ); case Result::eErrorUnknown: throw UnknownError( message ); case Result::eErrorOutOfPoolMemory: throw OutOfPoolMemoryError( message ); case Result::eErrorInvalidExternalHandle: throw InvalidExternalHandleError( message ); case Result::eErrorFragmentation: throw FragmentationError( message ); case Result::eErrorInvalidOpaqueCaptureAddress: throw InvalidOpaqueCaptureAddressError( message ); case Result::eErrorSurfaceLostKHR: throw SurfaceLostKHRError( message ); case Result::eErrorNativeWindowInUseKHR: throw NativeWindowInUseKHRError( message ); case Result::eErrorOutOfDateKHR: throw OutOfDateKHRError( message ); case Result::eErrorIncompatibleDisplayKHR: throw IncompatibleDisplayKHRError( message ); case Result::eErrorValidationFailedEXT: throw ValidationFailedEXTError( message ); case Result::eErrorInvalidShaderNV: throw InvalidShaderNVError( message ); # if defined( VK_ENABLE_BETA_EXTENSIONS ) case Result::eErrorImageUsageNotSupportedKHR: throw ImageUsageNotSupportedKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) case Result::eErrorVideoPictureLayoutNotSupportedKHR: throw VideoPictureLayoutNotSupportedKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) case Result::eErrorVideoProfileOperationNotSupportedKHR: throw VideoProfileOperationNotSupportedKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) case Result::eErrorVideoProfileFormatNotSupportedKHR: throw VideoProfileFormatNotSupportedKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) case Result::eErrorVideoProfileCodecNotSupportedKHR: throw VideoProfileCodecNotSupportedKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) case Result::eErrorVideoStdVersionNotSupportedKHR: throw VideoStdVersionNotSupportedKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ case Result::eErrorInvalidDrmFormatModifierPlaneLayoutEXT: throw InvalidDrmFormatModifierPlaneLayoutEXTError( message ); case Result::eErrorNotPermittedKHR: throw NotPermittedKHRError( message ); # if defined( VK_USE_PLATFORM_WIN32_KHR ) case Result::eErrorFullScreenExclusiveModeLostEXT: throw FullScreenExclusiveModeLostEXTError( message ); # endif /*VK_USE_PLATFORM_WIN32_KHR*/ case Result::eErrorCompressionExhaustedEXT: throw CompressionExhaustedEXTError( message ); default: throw SystemError( make_error_code( result ) ); } } } // namespace #endif template <typename T> void ignore( T const & ) VULKAN_HPP_NOEXCEPT { } template <typename T> struct ResultValue { #ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, T & v ) VULKAN_HPP_NOEXCEPT( VULKAN_HPP_NOEXCEPT( T( v ) ) ) #else ResultValue( Result r, T & v ) #endif : result( r ), value( v ) { } #ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, T && v ) VULKAN_HPP_NOEXCEPT( VULKAN_HPP_NOEXCEPT( T( std::move( v ) ) ) ) #else ResultValue( Result r, T && v ) #endif : result( r ), value( std::move( v ) ) { } Result result; T value; operator std::tuple<Result &, T &>() VULKAN_HPP_NOEXCEPT { return std::tuple<Result &, T &>( result, value ); } }; #if !defined( VULKAN_HPP_NO_SMART_HANDLE ) template <typename Type, typename Dispatch> struct ResultValue<UniqueHandle<Type, Dispatch>> { # ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, UniqueHandle<Type, Dispatch> && v ) VULKAN_HPP_NOEXCEPT # else ResultValue( Result r, UniqueHandle<Type, Dispatch> && v ) # endif : result( r ) , value( std::move( v ) ) { } std::tuple<Result, UniqueHandle<Type, Dispatch>> asTuple() { return std::make_tuple( result, std::move( value ) ); } Result result; UniqueHandle<Type, Dispatch> value; }; template <typename Type, typename Dispatch> struct ResultValue<std::vector<UniqueHandle<Type, Dispatch>>> { # ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, std::vector<UniqueHandle<Type, Dispatch>> && v ) VULKAN_HPP_NOEXCEPT # else ResultValue( Result r, std::vector<UniqueHandle<Type, Dispatch>> && v ) # endif : result( r ) , value( std::move( v ) ) { } std::tuple<Result, std::vector<UniqueHandle<Type, Dispatch>>> asTuple() { return std::make_tuple( result, std::move( value ) ); } Result result; std::vector<UniqueHandle<Type, Dispatch>> value; }; #endif template <typename T> struct ResultValueType { #ifdef VULKAN_HPP_NO_EXCEPTIONS typedef ResultValue<T> type; #else typedef T type; #endif }; template <> struct ResultValueType<void> { #ifdef VULKAN_HPP_NO_EXCEPTIONS typedef Result type; #else typedef void type; #endif }; VULKAN_HPP_INLINE typename ResultValueType<void>::type createResultValueType( Result result ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS return result; #else ignore( result ); #endif } template <typename T> VULKAN_HPP_INLINE typename ResultValueType<T>::type createResultValueType( Result result, T & data ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS return ResultValue<T>( result, data ); #else ignore( result ); return data; #endif } template <typename T> VULKAN_HPP_INLINE typename ResultValueType<T>::type createResultValueType( Result result, T && data ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS return ResultValue<T>( result, std::move( data ) ); #else ignore( result ); return std::move( data ); #endif } VULKAN_HPP_INLINE void resultCheck( Result result, char const * message ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS ignore( result ); // just in case VULKAN_HPP_ASSERT_ON_RESULT is empty ignore( message ); VULKAN_HPP_ASSERT_ON_RESULT( result == Result::eSuccess ); #else if ( result != Result::eSuccess ) { throwResultException( result, message ); } #endif } VULKAN_HPP_INLINE void resultCheck( Result result, char const * message, std::initializer_list<Result> successCodes ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS ignore( result ); // just in case VULKAN_HPP_ASSERT_ON_RESULT is empty ignore( message ); ignore( successCodes ); // just in case VULKAN_HPP_ASSERT_ON_RESULT is empty VULKAN_HPP_ASSERT_ON_RESULT( std::find( successCodes.begin(), successCodes.end(), result ) != successCodes.end() ); #else if ( std::find( successCodes.begin(), successCodes.end(), result ) == successCodes.end() ) { throwResultException( result, message ); } #endif } } // namespace VULKAN_HPP_NAMESPACE // clang-format off #include <vulkan/vulkan_handles.hpp> #include <vulkan/vulkan_structs.hpp> #include <vulkan/vulkan_funcs.hpp> // clang-format on namespace VULKAN_HPP_NAMESPACE { #if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE ) //======================= //=== STRUCTS EXTENDS === //======================= //=== VK_VERSION_1_0 === template <> struct StructExtends<ShaderModuleCreateInfo, PipelineShaderStageCreateInfo> { enum { value = true }; }; //=== VK_VERSION_1_1 === template <> struct StructExtends<PhysicalDeviceSubgroupProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevice16BitStorageFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevice16BitStorageFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MemoryDedicatedRequirements, MemoryRequirements2> { enum { value = true }; }; template <> struct StructExtends<MemoryDedicatedAllocateInfo, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<MemoryAllocateFlagsInfo, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupRenderPassBeginInfo, RenderPassBeginInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupRenderPassBeginInfo, RenderingInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupCommandBufferBeginInfo, CommandBufferBeginInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupSubmitInfo, SubmitInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupBindSparseInfo, BindSparseInfo> { enum { value = true }; }; template <> struct StructExtends<BindBufferMemoryDeviceGroupInfo, BindBufferMemoryInfo> { enum { value = true }; }; template <> struct StructExtends<BindImageMemoryDeviceGroupInfo, BindImageMemoryInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupDeviceCreateInfo, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFeatures2, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePointClippingProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<RenderPassInputAttachmentAspectCreateInfo, RenderPassCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageViewUsageCreateInfo, ImageViewCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineTessellationDomainOriginStateCreateInfo, PipelineTessellationStateCreateInfo> { enum { value = true }; }; template <> struct StructExtends<RenderPassMultiviewCreateInfo, RenderPassCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMultiviewFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMultiviewFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMultiviewProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVariablePointersFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVariablePointersFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceProtectedMemoryFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceProtectedMemoryFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceProtectedMemoryProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<ProtectedSubmitInfo, SubmitInfo> { enum { value = true }; }; template <> struct StructExtends<SamplerYcbcrConversionInfo, SamplerCreateInfo> { enum { value = true }; }; template <> struct StructExtends<SamplerYcbcrConversionInfo, ImageViewCreateInfo> { enum { value = true }; }; template <> struct StructExtends<BindImagePlaneMemoryInfo, BindImageMemoryInfo> { enum { value = true }; }; template <> struct StructExtends<ImagePlaneMemoryRequirementsInfo, ImageMemoryRequirementsInfo2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSamplerYcbcrConversionFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSamplerYcbcrConversionFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<SamplerYcbcrConversionImageFormatProperties, ImageFormatProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExternalImageFormatInfo, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<ExternalImageFormatProperties, ImageFormatProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceIDProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<ExternalMemoryImageCreateInfo, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExternalMemoryBufferCreateInfo, BufferCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMemoryAllocateInfo, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportFenceCreateInfo, FenceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportSemaphoreCreateInfo, SemaphoreCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMaintenance3Properties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderDrawParametersFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderDrawParametersFeatures, DeviceCreateInfo> { enum { value = true }; }; //=== VK_VERSION_1_2 === template <> struct StructExtends<PhysicalDeviceVulkan11Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan11Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan11Properties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan12Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan12Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan12Properties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<ImageFormatListCreateInfo, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageFormatListCreateInfo, SwapchainCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<ImageFormatListCreateInfo, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevice8BitStorageFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevice8BitStorageFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDriverProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderAtomicInt64Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderAtomicInt64Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderFloat16Int8Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderFloat16Int8Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFloatControlsProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<DescriptorSetLayoutBindingFlagsCreateInfo, DescriptorSetLayoutCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDescriptorIndexingFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDescriptorIndexingFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDescriptorIndexingProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<DescriptorSetVariableDescriptorCountAllocateInfo, DescriptorSetAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<DescriptorSetVariableDescriptorCountLayoutSupport, DescriptorSetLayoutSupport> { enum { value = true }; }; template <> struct StructExtends<SubpassDescriptionDepthStencilResolve, SubpassDescription2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDepthStencilResolveProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceScalarBlockLayoutFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceScalarBlockLayoutFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageStencilUsageCreateInfo, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageStencilUsageCreateInfo, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<SamplerReductionModeCreateInfo, SamplerCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSamplerFilterMinmaxProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkanMemoryModelFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkanMemoryModelFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImagelessFramebufferFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImagelessFramebufferFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<FramebufferAttachmentsCreateInfo, FramebufferCreateInfo> { enum { value = true }; }; template <> struct StructExtends<RenderPassAttachmentBeginInfo, RenderPassBeginInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceUniformBufferStandardLayoutFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceUniformBufferStandardLayoutFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderSubgroupExtendedTypesFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderSubgroupExtendedTypesFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSeparateDepthStencilLayoutsFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSeparateDepthStencilLayoutsFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<AttachmentReferenceStencilLayout, AttachmentReference2> { enum { value = true }; }; template <> struct StructExtends<AttachmentDescriptionStencilLayout, AttachmentDescription2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceHostQueryResetFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceHostQueryResetFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTimelineSemaphoreFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTimelineSemaphoreFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTimelineSemaphoreProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<SemaphoreTypeCreateInfo, SemaphoreCreateInfo> { enum { value = true }; }; template <> struct StructExtends<SemaphoreTypeCreateInfo, PhysicalDeviceExternalSemaphoreInfo> { enum { value = true }; }; template <> struct StructExtends<TimelineSemaphoreSubmitInfo, SubmitInfo> { enum { value = true }; }; template <> struct StructExtends<TimelineSemaphoreSubmitInfo, BindSparseInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceBufferDeviceAddressFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceBufferDeviceAddressFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<BufferOpaqueCaptureAddressCreateInfo, BufferCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MemoryOpaqueCaptureAddressAllocateInfo, MemoryAllocateInfo> { enum { value = true }; }; //=== VK_VERSION_1_3 === template <> struct StructExtends<PhysicalDeviceVulkan13Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan13Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVulkan13Properties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineCreationFeedbackCreateInfo, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineCreationFeedbackCreateInfo, ComputePipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineCreationFeedbackCreateInfo, RayTracingPipelineCreateInfoNV> { enum { value = true }; }; template <> struct StructExtends<PipelineCreationFeedbackCreateInfo, RayTracingPipelineCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderTerminateInvocationFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderTerminateInvocationFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderDemoteToHelperInvocationFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderDemoteToHelperInvocationFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePrivateDataFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePrivateDataFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DevicePrivateDataCreateInfo, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePipelineCreationCacheControlFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePipelineCreationCacheControlFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MemoryBarrier2, SubpassDependency2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSynchronization2Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSynchronization2Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceZeroInitializeWorkgroupMemoryFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceZeroInitializeWorkgroupMemoryFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageRobustnessFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageRobustnessFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubgroupSizeControlFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubgroupSizeControlFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubgroupSizeControlProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineShaderStageRequiredSubgroupSizeCreateInfo, PipelineShaderStageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceInlineUniformBlockFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceInlineUniformBlockFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceInlineUniformBlockProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<WriteDescriptorSetInlineUniformBlock, WriteDescriptorSet> { enum { value = true }; }; template <> struct StructExtends<DescriptorPoolInlineUniformBlockCreateInfo, DescriptorPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTextureCompressionASTCHDRFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTextureCompressionASTCHDRFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineRenderingCreateInfo, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDynamicRenderingFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDynamicRenderingFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<CommandBufferInheritanceRenderingInfo, CommandBufferInheritanceInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderIntegerDotProductFeatures, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderIntegerDotProductFeatures, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderIntegerDotProductProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTexelBufferAlignmentProperties, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<FormatProperties3, FormatProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMaintenance4Features, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMaintenance4Features, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMaintenance4Properties, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_KHR_swapchain === template <> struct StructExtends<ImageSwapchainCreateInfoKHR, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<BindImageMemorySwapchainInfoKHR, BindImageMemoryInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupPresentInfoKHR, PresentInfoKHR> { enum { value = true }; }; template <> struct StructExtends<DeviceGroupSwapchainCreateInfoKHR, SwapchainCreateInfoKHR> { enum { value = true }; }; //=== VK_KHR_display_swapchain === template <> struct StructExtends<DisplayPresentInfoKHR, PresentInfoKHR> { enum { value = true }; }; //=== VK_EXT_debug_report === template <> struct StructExtends<DebugReportCallbackCreateInfoEXT, InstanceCreateInfo> { enum { value = true }; }; //=== VK_AMD_rasterization_order === template <> struct StructExtends<PipelineRasterizationStateRasterizationOrderAMD, PipelineRasterizationStateCreateInfo> { enum { value = true }; }; # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_queue === template <> struct StructExtends<QueueFamilyQueryResultStatusProperties2KHR, QueueFamilyProperties2> { enum { value = true }; }; template <> struct StructExtends<VideoQueueFamilyProperties2KHR, QueueFamilyProperties2> { enum { value = true }; }; template <> struct StructExtends<VideoProfileKHR, QueryPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<VideoProfilesKHR, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<VideoProfilesKHR, PhysicalDeviceVideoFormatInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoProfilesKHR, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<VideoProfilesKHR, BufferCreateInfo> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_decode_queue === template <> struct StructExtends<VideoDecodeCapabilitiesKHR, VideoCapabilitiesKHR> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_NV_dedicated_allocation === template <> struct StructExtends<DedicatedAllocationImageCreateInfoNV, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DedicatedAllocationBufferCreateInfoNV, BufferCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DedicatedAllocationMemoryAllocateInfoNV, MemoryAllocateInfo> { enum { value = true }; }; //=== VK_EXT_transform_feedback === template <> struct StructExtends<PhysicalDeviceTransformFeedbackFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTransformFeedbackFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTransformFeedbackPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineRasterizationStateStreamCreateInfoEXT, PipelineRasterizationStateCreateInfo> { enum { value = true }; }; # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_EXT_video_encode_h264 === template <> struct StructExtends<VideoEncodeH264CapabilitiesEXT, VideoCapabilitiesKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264SessionParametersCreateInfoEXT, VideoSessionParametersCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264SessionParametersAddInfoEXT, VideoSessionParametersUpdateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264VclFrameInfoEXT, VideoEncodeInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264EmitPictureParametersEXT, VideoEncodeInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264ProfileEXT, VideoProfileKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264ProfileEXT, QueryPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264RateControlInfoEXT, VideoEncodeRateControlInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH264RateControlLayerInfoEXT, VideoEncodeRateControlLayerInfoKHR> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_EXT_video_encode_h265 === template <> struct StructExtends<VideoEncodeH265CapabilitiesEXT, VideoCapabilitiesKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265SessionParametersCreateInfoEXT, VideoSessionParametersCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265SessionParametersAddInfoEXT, VideoSessionParametersUpdateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265VclFrameInfoEXT, VideoEncodeInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265EmitPictureParametersEXT, VideoEncodeInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265ProfileEXT, VideoProfileKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265ProfileEXT, QueryPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265RateControlInfoEXT, VideoEncodeRateControlInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeH265RateControlLayerInfoEXT, VideoEncodeRateControlLayerInfoKHR> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_EXT_video_decode_h264 === template <> struct StructExtends<VideoDecodeH264ProfileEXT, VideoProfileKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264ProfileEXT, QueryPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264CapabilitiesEXT, VideoCapabilitiesKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264SessionParametersCreateInfoEXT, VideoSessionParametersCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264SessionParametersAddInfoEXT, VideoSessionParametersUpdateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264PictureInfoEXT, VideoDecodeInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264MvcEXT, VideoDecodeH264PictureInfoEXT> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH264DpbSlotInfoEXT, VideoReferenceSlotKHR> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_AMD_texture_gather_bias_lod === template <> struct StructExtends<TextureLODGatherFormatPropertiesAMD, ImageFormatProperties2> { enum { value = true }; }; //=== VK_KHR_dynamic_rendering === template <> struct StructExtends<RenderingFragmentShadingRateAttachmentInfoKHR, RenderingInfo> { enum { value = true }; }; template <> struct StructExtends<RenderingFragmentDensityMapAttachmentInfoEXT, RenderingInfo> { enum { value = true }; }; template <> struct StructExtends<AttachmentSampleCountInfoAMD, CommandBufferInheritanceInfo> { enum { value = true }; }; template <> struct StructExtends<AttachmentSampleCountInfoAMD, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MultiviewPerViewAttributesInfoNVX, CommandBufferInheritanceInfo> { enum { value = true }; }; template <> struct StructExtends<MultiviewPerViewAttributesInfoNVX, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MultiviewPerViewAttributesInfoNVX, RenderingInfo> { enum { value = true }; }; //=== VK_NV_corner_sampled_image === template <> struct StructExtends<PhysicalDeviceCornerSampledImageFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCornerSampledImageFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_external_memory === template <> struct StructExtends<ExternalMemoryImageCreateInfoNV, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMemoryAllocateInfoNV, MemoryAllocateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_external_memory_win32 === template <> struct StructExtends<ImportMemoryWin32HandleInfoNV, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMemoryWin32HandleInfoNV, MemoryAllocateInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_win32_keyed_mutex === template <> struct StructExtends<Win32KeyedMutexAcquireReleaseInfoNV, SubmitInfo> { enum { value = true }; }; template <> struct StructExtends<Win32KeyedMutexAcquireReleaseInfoNV, SubmitInfo2> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_validation_flags === template <> struct StructExtends<ValidationFlagsEXT, InstanceCreateInfo> { enum { value = true }; }; //=== VK_EXT_astc_decode_mode === template <> struct StructExtends<ImageViewASTCDecodeModeEXT, ImageViewCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceASTCDecodeFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceASTCDecodeFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_pipeline_robustness === template <> struct StructExtends<PhysicalDevicePipelineRobustnessFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePipelineRobustnessFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePipelineRobustnessPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineRobustnessCreateInfoEXT, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineRobustnessCreateInfoEXT, ComputePipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineRobustnessCreateInfoEXT, PipelineShaderStageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineRobustnessCreateInfoEXT, RayTracingPipelineCreateInfoKHR> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_memory_win32 === template <> struct StructExtends<ImportMemoryWin32HandleInfoKHR, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMemoryWin32HandleInfoKHR, MemoryAllocateInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_memory_fd === template <> struct StructExtends<ImportMemoryFdInfoKHR, MemoryAllocateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_win32_keyed_mutex === template <> struct StructExtends<Win32KeyedMutexAcquireReleaseInfoKHR, SubmitInfo> { enum { value = true }; }; template <> struct StructExtends<Win32KeyedMutexAcquireReleaseInfoKHR, SubmitInfo2> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_semaphore_win32 === template <> struct StructExtends<ExportSemaphoreWin32HandleInfoKHR, SemaphoreCreateInfo> { enum { value = true }; }; template <> struct StructExtends<D3D12FenceSubmitInfoKHR, SubmitInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_push_descriptor === template <> struct StructExtends<PhysicalDevicePushDescriptorPropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_EXT_conditional_rendering === template <> struct StructExtends<PhysicalDeviceConditionalRenderingFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceConditionalRenderingFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<CommandBufferInheritanceConditionalRenderingInfoEXT, CommandBufferInheritanceInfo> { enum { value = true }; }; //=== VK_KHR_incremental_present === template <> struct StructExtends<PresentRegionsKHR, PresentInfoKHR> { enum { value = true }; }; //=== VK_NV_clip_space_w_scaling === template <> struct StructExtends<PipelineViewportWScalingStateCreateInfoNV, PipelineViewportStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_display_control === template <> struct StructExtends<SwapchainCounterCreateInfoEXT, SwapchainCreateInfoKHR> { enum { value = true }; }; //=== VK_GOOGLE_display_timing === template <> struct StructExtends<PresentTimesInfoGOOGLE, PresentInfoKHR> { enum { value = true }; }; //=== VK_NVX_multiview_per_view_attributes === template <> struct StructExtends<PhysicalDeviceMultiviewPerViewAttributesPropertiesNVX, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_NV_viewport_swizzle === template <> struct StructExtends<PipelineViewportSwizzleStateCreateInfoNV, PipelineViewportStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_discard_rectangles === template <> struct StructExtends<PhysicalDeviceDiscardRectanglePropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineDiscardRectangleStateCreateInfoEXT, GraphicsPipelineCreateInfo> { enum { value = true }; }; //=== VK_EXT_conservative_rasterization === template <> struct StructExtends<PhysicalDeviceConservativeRasterizationPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineRasterizationConservativeStateCreateInfoEXT, PipelineRasterizationStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_depth_clip_enable === template <> struct StructExtends<PhysicalDeviceDepthClipEnableFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDepthClipEnableFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineRasterizationDepthClipStateCreateInfoEXT, PipelineRasterizationStateCreateInfo> { enum { value = true }; }; //=== VK_KHR_shared_presentable_image === template <> struct StructExtends<SharedPresentSurfaceCapabilitiesKHR, SurfaceCapabilities2KHR> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_fence_win32 === template <> struct StructExtends<ExportFenceWin32HandleInfoKHR, FenceCreateInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_performance_query === template <> struct StructExtends<PhysicalDevicePerformanceQueryFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePerformanceQueryFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePerformanceQueryPropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<QueryPoolPerformanceCreateInfoKHR, QueryPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PerformanceQuerySubmitInfoKHR, SubmitInfo> { enum { value = true }; }; template <> struct StructExtends<PerformanceQuerySubmitInfoKHR, SubmitInfo2> { enum { value = true }; }; //=== VK_EXT_debug_utils === template <> struct StructExtends<DebugUtilsMessengerCreateInfoEXT, InstanceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DebugUtilsObjectNameInfoEXT, PipelineShaderStageCreateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === template <> struct StructExtends<AndroidHardwareBufferUsageANDROID, ImageFormatProperties2> { enum { value = true }; }; template <> struct StructExtends<AndroidHardwareBufferFormatPropertiesANDROID, AndroidHardwareBufferPropertiesANDROID> { enum { value = true }; }; template <> struct StructExtends<ImportAndroidHardwareBufferInfoANDROID, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<ExternalFormatANDROID, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExternalFormatANDROID, SamplerYcbcrConversionCreateInfo> { enum { value = true }; }; template <> struct StructExtends<AndroidHardwareBufferFormatProperties2ANDROID, AndroidHardwareBufferPropertiesANDROID> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_ANDROID_KHR*/ //=== VK_EXT_sample_locations === template <> struct StructExtends<SampleLocationsInfoEXT, ImageMemoryBarrier> { enum { value = true }; }; template <> struct StructExtends<SampleLocationsInfoEXT, ImageMemoryBarrier2> { enum { value = true }; }; template <> struct StructExtends<RenderPassSampleLocationsBeginInfoEXT, RenderPassBeginInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineSampleLocationsStateCreateInfoEXT, PipelineMultisampleStateCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSampleLocationsPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_EXT_blend_operation_advanced === template <> struct StructExtends<PhysicalDeviceBlendOperationAdvancedFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceBlendOperationAdvancedFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceBlendOperationAdvancedPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineColorBlendAdvancedStateCreateInfoEXT, PipelineColorBlendStateCreateInfo> { enum { value = true }; }; //=== VK_NV_fragment_coverage_to_color === template <> struct StructExtends<PipelineCoverageToColorStateCreateInfoNV, PipelineMultisampleStateCreateInfo> { enum { value = true }; }; //=== VK_KHR_acceleration_structure === template <> struct StructExtends<WriteDescriptorSetAccelerationStructureKHR, WriteDescriptorSet> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceAccelerationStructureFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceAccelerationStructureFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceAccelerationStructurePropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_NV_framebuffer_mixed_samples === template <> struct StructExtends<PipelineCoverageModulationStateCreateInfoNV, PipelineMultisampleStateCreateInfo> { enum { value = true }; }; //=== VK_NV_shader_sm_builtins === template <> struct StructExtends<PhysicalDeviceShaderSMBuiltinsPropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderSMBuiltinsFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderSMBuiltinsFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_image_drm_format_modifier === template <> struct StructExtends<DrmFormatModifierPropertiesListEXT, FormatProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageDrmFormatModifierInfoEXT, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<ImageDrmFormatModifierListCreateInfoEXT, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageDrmFormatModifierExplicitCreateInfoEXT, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DrmFormatModifierPropertiesList2EXT, FormatProperties2> { enum { value = true }; }; //=== VK_EXT_validation_cache === template <> struct StructExtends<ShaderModuleValidationCacheCreateInfoEXT, ShaderModuleCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ShaderModuleValidationCacheCreateInfoEXT, PipelineShaderStageCreateInfo> { enum { value = true }; }; # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_portability_subset === template <> struct StructExtends<PhysicalDevicePortabilitySubsetFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePortabilitySubsetFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePortabilitySubsetPropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_NV_shading_rate_image === template <> struct StructExtends<PipelineViewportShadingRateImageStateCreateInfoNV, PipelineViewportStateCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShadingRateImageFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShadingRateImageFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShadingRateImagePropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineViewportCoarseSampleOrderStateCreateInfoNV, PipelineViewportStateCreateInfo> { enum { value = true }; }; //=== VK_NV_ray_tracing === template <> struct StructExtends<WriteDescriptorSetAccelerationStructureNV, WriteDescriptorSet> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayTracingPropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_NV_representative_fragment_test === template <> struct StructExtends<PhysicalDeviceRepresentativeFragmentTestFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRepresentativeFragmentTestFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineRepresentativeFragmentTestStateCreateInfoNV, GraphicsPipelineCreateInfo> { enum { value = true }; }; //=== VK_EXT_filter_cubic === template <> struct StructExtends<PhysicalDeviceImageViewImageFormatInfoEXT, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<FilterCubicImageViewImageFormatPropertiesEXT, ImageFormatProperties2> { enum { value = true }; }; //=== VK_EXT_external_memory_host === template <> struct StructExtends<ImportMemoryHostPointerInfoEXT, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExternalMemoryHostPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_KHR_shader_clock === template <> struct StructExtends<PhysicalDeviceShaderClockFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderClockFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_AMD_pipeline_compiler_control === template <> struct StructExtends<PipelineCompilerControlCreateInfoAMD, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineCompilerControlCreateInfoAMD, ComputePipelineCreateInfo> { enum { value = true }; }; //=== VK_AMD_shader_core_properties === template <> struct StructExtends<PhysicalDeviceShaderCorePropertiesAMD, PhysicalDeviceProperties2> { enum { value = true }; }; # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_EXT_video_decode_h265 === template <> struct StructExtends<VideoDecodeH265ProfileEXT, VideoProfileKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH265ProfileEXT, QueryPoolCreateInfo> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH265CapabilitiesEXT, VideoCapabilitiesKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH265SessionParametersCreateInfoEXT, VideoSessionParametersCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH265SessionParametersAddInfoEXT, VideoSessionParametersUpdateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH265PictureInfoEXT, VideoDecodeInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoDecodeH265DpbSlotInfoEXT, VideoReferenceSlotKHR> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_KHR_global_priority === template <> struct StructExtends<DeviceQueueGlobalPriorityCreateInfoKHR, DeviceQueueCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceGlobalPriorityQueryFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceGlobalPriorityQueryFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<QueueFamilyGlobalPriorityPropertiesKHR, QueueFamilyProperties2> { enum { value = true }; }; //=== VK_AMD_memory_overallocation_behavior === template <> struct StructExtends<DeviceMemoryOverallocationCreateInfoAMD, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_vertex_attribute_divisor === template <> struct StructExtends<PhysicalDeviceVertexAttributeDivisorPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineVertexInputDivisorStateCreateInfoEXT, PipelineVertexInputStateCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVertexAttributeDivisorFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVertexAttributeDivisorFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_GGP ) //=== VK_GGP_frame_token === template <> struct StructExtends<PresentFrameTokenGGP, PresentInfoKHR> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_GGP*/ //=== VK_NV_compute_shader_derivatives === template <> struct StructExtends<PhysicalDeviceComputeShaderDerivativesFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceComputeShaderDerivativesFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_mesh_shader === template <> struct StructExtends<PhysicalDeviceMeshShaderFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMeshShaderFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMeshShaderPropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_NV_shader_image_footprint === template <> struct StructExtends<PhysicalDeviceShaderImageFootprintFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderImageFootprintFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_scissor_exclusive === template <> struct StructExtends<PipelineViewportExclusiveScissorStateCreateInfoNV, PipelineViewportStateCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExclusiveScissorFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExclusiveScissorFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_device_diagnostic_checkpoints === template <> struct StructExtends<QueueFamilyCheckpointPropertiesNV, QueueFamilyProperties2> { enum { value = true }; }; //=== VK_INTEL_shader_integer_functions2 === template <> struct StructExtends<PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL, DeviceCreateInfo> { enum { value = true }; }; //=== VK_INTEL_performance_query === template <> struct StructExtends<QueryPoolPerformanceQueryCreateInfoINTEL, QueryPoolCreateInfo> { enum { value = true }; }; //=== VK_EXT_pci_bus_info === template <> struct StructExtends<PhysicalDevicePCIBusInfoPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_AMD_display_native_hdr === template <> struct StructExtends<DisplayNativeHdrSurfaceCapabilitiesAMD, SurfaceCapabilities2KHR> { enum { value = true }; }; template <> struct StructExtends<SwapchainDisplayNativeHdrCreateInfoAMD, SwapchainCreateInfoKHR> { enum { value = true }; }; //=== VK_EXT_fragment_density_map === template <> struct StructExtends<PhysicalDeviceFragmentDensityMapFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentDensityMapFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentDensityMapPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<RenderPassFragmentDensityMapCreateInfoEXT, RenderPassCreateInfo> { enum { value = true }; }; template <> struct StructExtends<RenderPassFragmentDensityMapCreateInfoEXT, RenderPassCreateInfo2> { enum { value = true }; }; //=== VK_KHR_fragment_shading_rate === template <> struct StructExtends<FragmentShadingRateAttachmentInfoKHR, SubpassDescription2> { enum { value = true }; }; template <> struct StructExtends<PipelineFragmentShadingRateStateCreateInfoKHR, GraphicsPipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShadingRateFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShadingRateFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShadingRatePropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_AMD_shader_core_properties2 === template <> struct StructExtends<PhysicalDeviceShaderCoreProperties2AMD, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_AMD_device_coherent_memory === template <> struct StructExtends<PhysicalDeviceCoherentMemoryFeaturesAMD, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCoherentMemoryFeaturesAMD, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_shader_image_atomic_int64 === template <> struct StructExtends<PhysicalDeviceShaderImageAtomicInt64FeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderImageAtomicInt64FeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_memory_budget === template <> struct StructExtends<PhysicalDeviceMemoryBudgetPropertiesEXT, PhysicalDeviceMemoryProperties2> { enum { value = true }; }; //=== VK_EXT_memory_priority === template <> struct StructExtends<PhysicalDeviceMemoryPriorityFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMemoryPriorityFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MemoryPriorityAllocateInfoEXT, MemoryAllocateInfo> { enum { value = true }; }; //=== VK_KHR_surface_protected_capabilities === template <> struct StructExtends<SurfaceProtectedCapabilitiesKHR, SurfaceCapabilities2KHR> { enum { value = true }; }; //=== VK_NV_dedicated_allocation_image_aliasing === template <> struct StructExtends<PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_buffer_device_address === template <> struct StructExtends<PhysicalDeviceBufferDeviceAddressFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceBufferDeviceAddressFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<BufferDeviceAddressCreateInfoEXT, BufferCreateInfo> { enum { value = true }; }; //=== VK_EXT_validation_features === template <> struct StructExtends<ValidationFeaturesEXT, InstanceCreateInfo> { enum { value = true }; }; //=== VK_KHR_present_wait === template <> struct StructExtends<PhysicalDevicePresentWaitFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePresentWaitFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_cooperative_matrix === template <> struct StructExtends<PhysicalDeviceCooperativeMatrixFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCooperativeMatrixFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCooperativeMatrixPropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_NV_coverage_reduction_mode === template <> struct StructExtends<PhysicalDeviceCoverageReductionModeFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCoverageReductionModeFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineCoverageReductionStateCreateInfoNV, PipelineMultisampleStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_fragment_shader_interlock === template <> struct StructExtends<PhysicalDeviceFragmentShaderInterlockFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShaderInterlockFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_ycbcr_image_arrays === template <> struct StructExtends<PhysicalDeviceYcbcrImageArraysFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceYcbcrImageArraysFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_provoking_vertex === template <> struct StructExtends<PhysicalDeviceProvokingVertexFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceProvokingVertexFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceProvokingVertexPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineRasterizationProvokingVertexStateCreateInfoEXT, PipelineRasterizationStateCreateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_EXT_full_screen_exclusive === template <> struct StructExtends<SurfaceFullScreenExclusiveInfoEXT, PhysicalDeviceSurfaceInfo2KHR> { enum { value = true }; }; template <> struct StructExtends<SurfaceFullScreenExclusiveInfoEXT, SwapchainCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<SurfaceCapabilitiesFullScreenExclusiveEXT, SurfaceCapabilities2KHR> { enum { value = true }; }; template <> struct StructExtends<SurfaceFullScreenExclusiveWin32InfoEXT, PhysicalDeviceSurfaceInfo2KHR> { enum { value = true }; }; template <> struct StructExtends<SurfaceFullScreenExclusiveWin32InfoEXT, SwapchainCreateInfoKHR> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_line_rasterization === template <> struct StructExtends<PhysicalDeviceLineRasterizationFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceLineRasterizationFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceLineRasterizationPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineRasterizationLineStateCreateInfoEXT, PipelineRasterizationStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_shader_atomic_float === template <> struct StructExtends<PhysicalDeviceShaderAtomicFloatFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderAtomicFloatFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_index_type_uint8 === template <> struct StructExtends<PhysicalDeviceIndexTypeUint8FeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceIndexTypeUint8FeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_extended_dynamic_state === template <> struct StructExtends<PhysicalDeviceExtendedDynamicStateFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExtendedDynamicStateFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_KHR_pipeline_executable_properties === template <> struct StructExtends<PhysicalDevicePipelineExecutablePropertiesFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePipelineExecutablePropertiesFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_shader_atomic_float2 === template <> struct StructExtends<PhysicalDeviceShaderAtomicFloat2FeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderAtomicFloat2FeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_device_generated_commands === template <> struct StructExtends<PhysicalDeviceDeviceGeneratedCommandsPropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDeviceGeneratedCommandsFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDeviceGeneratedCommandsFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<GraphicsPipelineShaderGroupsCreateInfoNV, GraphicsPipelineCreateInfo> { enum { value = true }; }; //=== VK_NV_inherited_viewport_scissor === template <> struct StructExtends<PhysicalDeviceInheritedViewportScissorFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceInheritedViewportScissorFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<CommandBufferInheritanceViewportScissorInfoNV, CommandBufferInheritanceInfo> { enum { value = true }; }; //=== VK_EXT_texel_buffer_alignment === template <> struct StructExtends<PhysicalDeviceTexelBufferAlignmentFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTexelBufferAlignmentFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_QCOM_render_pass_transform === template <> struct StructExtends<RenderPassTransformBeginInfoQCOM, RenderPassBeginInfo> { enum { value = true }; }; template <> struct StructExtends<CommandBufferInheritanceRenderPassTransformInfoQCOM, CommandBufferInheritanceInfo> { enum { value = true }; }; //=== VK_EXT_device_memory_report === template <> struct StructExtends<PhysicalDeviceDeviceMemoryReportFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDeviceMemoryReportFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceDeviceMemoryReportCreateInfoEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_robustness2 === template <> struct StructExtends<PhysicalDeviceRobustness2FeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRobustness2FeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRobustness2PropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_EXT_custom_border_color === template <> struct StructExtends<SamplerCustomBorderColorCreateInfoEXT, SamplerCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCustomBorderColorPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCustomBorderColorFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceCustomBorderColorFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_KHR_pipeline_library === template <> struct StructExtends<PipelineLibraryCreateInfoKHR, GraphicsPipelineCreateInfo> { enum { value = true }; }; //=== VK_KHR_present_id === template <> struct StructExtends<PresentIdKHR, PresentInfoKHR> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePresentIdFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePresentIdFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; # if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_encode_queue === template <> struct StructExtends<VideoEncodeCapabilitiesKHR, VideoCapabilitiesKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeRateControlInfoKHR, VideoCodingControlInfoKHR> { enum { value = true }; }; template <> struct StructExtends<VideoEncodeRateControlLayerInfoKHR, VideoCodingControlInfoKHR> { enum { value = true }; }; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_NV_device_diagnostics_config === template <> struct StructExtends<PhysicalDeviceDiagnosticsConfigFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDiagnosticsConfigFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<DeviceDiagnosticsConfigCreateInfoNV, DeviceCreateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, InstanceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, ImageViewCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, BufferViewCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, SemaphoreCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalObjectCreateInfoEXT, EventCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalDeviceInfoEXT, ExportMetalObjectsInfoEXT> { enum { value = true }; }; template <> struct StructExtends<ExportMetalCommandQueueInfoEXT, ExportMetalObjectsInfoEXT> { enum { value = true }; }; template <> struct StructExtends<ExportMetalBufferInfoEXT, ExportMetalObjectsInfoEXT> { enum { value = true }; }; template <> struct StructExtends<ImportMetalBufferInfoEXT, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalTextureInfoEXT, ExportMetalObjectsInfoEXT> { enum { value = true }; }; template <> struct StructExtends<ImportMetalTextureInfoEXT, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalIOSurfaceInfoEXT, ExportMetalObjectsInfoEXT> { enum { value = true }; }; template <> struct StructExtends<ImportMetalIOSurfaceInfoEXT, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ExportMetalSharedEventInfoEXT, ExportMetalObjectsInfoEXT> { enum { value = true }; }; template <> struct StructExtends<ImportMetalSharedEventInfoEXT, SemaphoreCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImportMetalSharedEventInfoEXT, EventCreateInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_synchronization2 === template <> struct StructExtends<QueueFamilyCheckpointProperties2NV, QueueFamilyProperties2> { enum { value = true }; }; //=== VK_EXT_graphics_pipeline_library === template <> struct StructExtends<PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<GraphicsPipelineLibraryCreateInfoEXT, GraphicsPipelineCreateInfo> { enum { value = true }; }; //=== VK_AMD_shader_early_and_late_fragment_tests === template <> struct StructExtends<PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD, DeviceCreateInfo> { enum { value = true }; }; //=== VK_KHR_fragment_shader_barycentric === template <> struct StructExtends<PhysicalDeviceFragmentShaderBarycentricFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShaderBarycentricFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShaderBarycentricPropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_KHR_shader_subgroup_uniform_control_flow === template <> struct StructExtends<PhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_fragment_shading_rate_enums === template <> struct StructExtends<PhysicalDeviceFragmentShadingRateEnumsFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShadingRateEnumsFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentShadingRateEnumsPropertiesNV, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineFragmentShadingRateEnumStateCreateInfoNV, GraphicsPipelineCreateInfo> { enum { value = true }; }; //=== VK_NV_ray_tracing_motion_blur === template <> struct StructExtends<AccelerationStructureGeometryMotionTrianglesDataNV, AccelerationStructureGeometryTrianglesDataKHR> { enum { value = true }; }; template <> struct StructExtends<AccelerationStructureMotionInfoNV, AccelerationStructureCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayTracingMotionBlurFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayTracingMotionBlurFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_ycbcr_2plane_444_formats === template <> struct StructExtends<PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_fragment_density_map2 === template <> struct StructExtends<PhysicalDeviceFragmentDensityMap2FeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentDensityMap2FeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentDensityMap2PropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_QCOM_rotated_copy_commands === template <> struct StructExtends<CopyCommandTransformInfoQCOM, BufferImageCopy2> { enum { value = true }; }; template <> struct StructExtends<CopyCommandTransformInfoQCOM, ImageBlit2> { enum { value = true }; }; //=== VK_KHR_workgroup_memory_explicit_layout === template <> struct StructExtends<PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_image_compression_control === template <> struct StructExtends<PhysicalDeviceImageCompressionControlFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageCompressionControlFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageCompressionControlEXT, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageCompressionControlEXT, SwapchainCreateInfoKHR> { enum { value = true }; }; template <> struct StructExtends<ImageCompressionControlEXT, PhysicalDeviceImageFormatInfo2> { enum { value = true }; }; template <> struct StructExtends<ImageCompressionPropertiesEXT, ImageFormatProperties2> { enum { value = true }; }; template <> struct StructExtends<ImageCompressionPropertiesEXT, SurfaceFormat2KHR> { enum { value = true }; }; template <> struct StructExtends<ImageCompressionPropertiesEXT, SubresourceLayout2EXT> { enum { value = true }; }; //=== VK_EXT_attachment_feedback_loop_layout === template <> struct StructExtends<PhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_4444_formats === template <> struct StructExtends<PhysicalDevice4444FormatsFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevice4444FormatsFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_ARM_rasterization_order_attachment_access === template <> struct StructExtends<PhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARM, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARM, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_rgba10x6_formats === template <> struct StructExtends<PhysicalDeviceRGBA10X6FormatsFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRGBA10X6FormatsFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_KHR_ray_tracing_pipeline === template <> struct StructExtends<PhysicalDeviceRayTracingPipelineFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayTracingPipelineFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayTracingPipelinePropertiesKHR, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_KHR_ray_query === template <> struct StructExtends<PhysicalDeviceRayQueryFeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayQueryFeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_VALVE_mutable_descriptor_type === template <> struct StructExtends<PhysicalDeviceMutableDescriptorTypeFeaturesVALVE, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMutableDescriptorTypeFeaturesVALVE, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MutableDescriptorTypeCreateInfoVALVE, DescriptorSetLayoutCreateInfo> { enum { value = true }; }; template <> struct StructExtends<MutableDescriptorTypeCreateInfoVALVE, DescriptorPoolCreateInfo> { enum { value = true }; }; //=== VK_EXT_vertex_input_dynamic_state === template <> struct StructExtends<PhysicalDeviceVertexInputDynamicStateFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceVertexInputDynamicStateFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_physical_device_drm === template <> struct StructExtends<PhysicalDeviceDrmPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_EXT_depth_clip_control === template <> struct StructExtends<PhysicalDeviceDepthClipControlFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDepthClipControlFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineViewportDepthClipControlCreateInfoEXT, PipelineViewportStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_primitive_topology_list_restart === template <> struct StructExtends<PhysicalDevicePrimitiveTopologyListRestartFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePrimitiveTopologyListRestartFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_memory === template <> struct StructExtends<ImportMemoryZirconHandleInfoFUCHSIA, MemoryAllocateInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_FUCHSIA*/ # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_buffer_collection === template <> struct StructExtends<ImportMemoryBufferCollectionFUCHSIA, MemoryAllocateInfo> { enum { value = true }; }; template <> struct StructExtends<BufferCollectionImageCreateInfoFUCHSIA, ImageCreateInfo> { enum { value = true }; }; template <> struct StructExtends<BufferCollectionBufferCreateInfoFUCHSIA, BufferCreateInfo> { enum { value = true }; }; # endif /*VK_USE_PLATFORM_FUCHSIA*/ //=== VK_HUAWEI_subpass_shading === template <> struct StructExtends<SubpassShadingPipelineCreateInfoHUAWEI, ComputePipelineCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubpassShadingFeaturesHUAWEI, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubpassShadingFeaturesHUAWEI, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubpassShadingPropertiesHUAWEI, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_HUAWEI_invocation_mask === template <> struct StructExtends<PhysicalDeviceInvocationMaskFeaturesHUAWEI, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceInvocationMaskFeaturesHUAWEI, DeviceCreateInfo> { enum { value = true }; }; //=== VK_NV_external_memory_rdma === template <> struct StructExtends<PhysicalDeviceExternalMemoryRDMAFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExternalMemoryRDMAFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_pipeline_properties === template <> struct StructExtends<PhysicalDevicePipelinePropertiesFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePipelinePropertiesFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_multisampled_render_to_single_sampled === template <> struct StructExtends<PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<SubpassResolvePerformanceQueryEXT, FormatProperties2> { enum { value = true }; }; template <> struct StructExtends<MultisampledRenderToSingleSampledInfoEXT, SubpassDescription2> { enum { value = true }; }; template <> struct StructExtends<MultisampledRenderToSingleSampledInfoEXT, RenderingInfo> { enum { value = true }; }; //=== VK_EXT_extended_dynamic_state2 === template <> struct StructExtends<PhysicalDeviceExtendedDynamicState2FeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceExtendedDynamicState2FeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_color_write_enable === template <> struct StructExtends<PhysicalDeviceColorWriteEnableFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceColorWriteEnableFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PipelineColorWriteCreateInfoEXT, PipelineColorBlendStateCreateInfo> { enum { value = true }; }; //=== VK_EXT_primitives_generated_query === template <> struct StructExtends<PhysicalDevicePrimitivesGeneratedQueryFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePrimitivesGeneratedQueryFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_KHR_ray_tracing_maintenance1 === template <> struct StructExtends<PhysicalDeviceRayTracingMaintenance1FeaturesKHR, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceRayTracingMaintenance1FeaturesKHR, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_image_view_min_lod === template <> struct StructExtends<PhysicalDeviceImageViewMinLodFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageViewMinLodFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<ImageViewMinLodCreateInfoEXT, ImageViewCreateInfo> { enum { value = true }; }; //=== VK_EXT_multi_draw === template <> struct StructExtends<PhysicalDeviceMultiDrawFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMultiDrawFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceMultiDrawPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_EXT_image_2d_view_of_3d === template <> struct StructExtends<PhysicalDeviceImage2DViewOf3DFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImage2DViewOf3DFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_border_color_swizzle === template <> struct StructExtends<PhysicalDeviceBorderColorSwizzleFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceBorderColorSwizzleFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<SamplerBorderColorComponentMappingCreateInfoEXT, SamplerCreateInfo> { enum { value = true }; }; //=== VK_EXT_pageable_device_local_memory === template <> struct StructExtends<PhysicalDevicePageableDeviceLocalMemoryFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDevicePageableDeviceLocalMemoryFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_VALVE_descriptor_set_host_mapping === template <> struct StructExtends<PhysicalDeviceDescriptorSetHostMappingFeaturesVALVE, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceDescriptorSetHostMappingFeaturesVALVE, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_non_seamless_cube_map === template <> struct StructExtends<PhysicalDeviceNonSeamlessCubeMapFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceNonSeamlessCubeMapFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_QCOM_fragment_density_map_offset === template <> struct StructExtends<PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<SubpassFragmentDensityMapOffsetEndInfoQCOM, SubpassEndInfo> { enum { value = true }; }; //=== VK_NV_linear_color_attachment === template <> struct StructExtends<PhysicalDeviceLinearColorAttachmentFeaturesNV, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceLinearColorAttachmentFeaturesNV, DeviceCreateInfo> { enum { value = true }; }; //=== VK_EXT_image_compression_control_swapchain === template <> struct StructExtends<PhysicalDeviceImageCompressionControlSwapchainFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageCompressionControlSwapchainFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; //=== VK_QCOM_image_processing === template <> struct StructExtends<ImageViewSampleWeightCreateInfoQCOM, ImageViewCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageProcessingFeaturesQCOM, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageProcessingFeaturesQCOM, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceImageProcessingPropertiesQCOM, PhysicalDeviceProperties2> { enum { value = true }; }; //=== VK_EXT_subpass_merge_feedback === template <> struct StructExtends<PhysicalDeviceSubpassMergeFeedbackFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceSubpassMergeFeedbackFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<RenderPassCreationControlEXT, RenderPassCreateInfo2> { enum { value = true }; }; template <> struct StructExtends<RenderPassCreationControlEXT, SubpassDescription2> { enum { value = true }; }; template <> struct StructExtends<RenderPassCreationFeedbackCreateInfoEXT, RenderPassCreateInfo2> { enum { value = true }; }; template <> struct StructExtends<RenderPassSubpassFeedbackCreateInfoEXT, SubpassDescription2> { enum { value = true }; }; //=== VK_EXT_shader_module_identifier === template <> struct StructExtends<PhysicalDeviceShaderModuleIdentifierFeaturesEXT, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderModuleIdentifierFeaturesEXT, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceShaderModuleIdentifierPropertiesEXT, PhysicalDeviceProperties2> { enum { value = true }; }; template <> struct StructExtends<PipelineShaderStageModuleIdentifierCreateInfoEXT, PipelineShaderStageCreateInfo> { enum { value = true }; }; //=== VK_QCOM_tile_properties === template <> struct StructExtends<PhysicalDeviceTilePropertiesFeaturesQCOM, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceTilePropertiesFeaturesQCOM, DeviceCreateInfo> { enum { value = true }; }; //=== VK_SEC_amigo_profiling === template <> struct StructExtends<PhysicalDeviceAmigoProfilingFeaturesSEC, PhysicalDeviceFeatures2> { enum { value = true }; }; template <> struct StructExtends<PhysicalDeviceAmigoProfilingFeaturesSEC, DeviceCreateInfo> { enum { value = true }; }; template <> struct StructExtends<AmigoProfilingSubmitInfoSEC, SubmitInfo> { enum { value = true }; }; #endif // VULKAN_HPP_DISABLE_ENHANCED_MODE #if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL class DynamicLoader { public: # ifdef VULKAN_HPP_NO_EXCEPTIONS DynamicLoader( std::string const & vulkanLibraryName = {} ) VULKAN_HPP_NOEXCEPT # else DynamicLoader( std::string const & vulkanLibraryName = {} ) # endif { if ( !vulkanLibraryName.empty() ) { # if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNXNTO__ ) || defined( __Fuchsia__ ) m_library = dlopen( vulkanLibraryName.c_str(), RTLD_NOW | RTLD_LOCAL ); # elif defined( _WIN32 ) m_library = ::LoadLibraryA( vulkanLibraryName.c_str() ); # else # error unsupported platform # endif } else { # if defined( __unix__ ) || defined( __QNXNTO__ ) || defined( __Fuchsia__ ) m_library = dlopen( "libvulkan.so", RTLD_NOW | RTLD_LOCAL ); if ( m_library == nullptr ) { m_library = dlopen( "libvulkan.so.1", RTLD_NOW | RTLD_LOCAL ); } # elif defined( __APPLE__ ) m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL ); # elif defined( _WIN32 ) m_library = ::LoadLibraryA( "vulkan-1.dll" ); # else # error unsupported platform # endif } # ifndef VULKAN_HPP_NO_EXCEPTIONS if ( m_library == nullptr ) { // NOTE there should be an InitializationFailedError, but msvc insists on the symbol does not exist within the scope of this function. throw std::runtime_error( "Failed to load vulkan library!" ); } # endif } DynamicLoader( DynamicLoader const & ) = delete; DynamicLoader( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT : m_library( other.m_library ) { other.m_library = nullptr; } DynamicLoader & operator=( DynamicLoader const & ) = delete; DynamicLoader & operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT { std::swap( m_library, other.m_library ); return *this; } ~DynamicLoader() VULKAN_HPP_NOEXCEPT { if ( m_library ) { # if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNXNTO__ ) || defined( __Fuchsia__ ) dlclose( m_library ); # elif defined( _WIN32 ) ::FreeLibrary( m_library ); # else # error unsupported platform # endif } } template <typename T> T getProcAddress( const char * function ) const VULKAN_HPP_NOEXCEPT { # if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNXNTO__ ) || defined( __Fuchsia__ ) return (T)dlsym( m_library, function ); # elif defined( _WIN32 ) return ( T )::GetProcAddress( m_library, function ); # else # error unsupported platform # endif } bool success() const VULKAN_HPP_NOEXCEPT { return m_library != nullptr; } private: # if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNXNTO__ ) || defined( __Fuchsia__ ) void * m_library; # elif defined( _WIN32 ) ::HINSTANCE m_library; # else # error unsupported platform # endif }; #endif using PFN_dummy = void ( * )(); class DispatchLoaderDynamic : public DispatchLoaderBase { public: //=== VK_VERSION_1_0 === PFN_vkCreateInstance vkCreateInstance = 0; PFN_vkDestroyInstance vkDestroyInstance = 0; PFN_vkEnumeratePhysicalDevices vkEnumeratePhysicalDevices = 0; PFN_vkGetPhysicalDeviceFeatures vkGetPhysicalDeviceFeatures = 0; PFN_vkGetPhysicalDeviceFormatProperties vkGetPhysicalDeviceFormatProperties = 0; PFN_vkGetPhysicalDeviceImageFormatProperties vkGetPhysicalDeviceImageFormatProperties = 0; PFN_vkGetPhysicalDeviceProperties vkGetPhysicalDeviceProperties = 0; PFN_vkGetPhysicalDeviceQueueFamilyProperties vkGetPhysicalDeviceQueueFamilyProperties = 0; PFN_vkGetPhysicalDeviceMemoryProperties vkGetPhysicalDeviceMemoryProperties = 0; PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = 0; PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr = 0; PFN_vkCreateDevice vkCreateDevice = 0; PFN_vkDestroyDevice vkDestroyDevice = 0; PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties = 0; PFN_vkEnumerateDeviceExtensionProperties vkEnumerateDeviceExtensionProperties = 0; PFN_vkEnumerateInstanceLayerProperties vkEnumerateInstanceLayerProperties = 0; PFN_vkEnumerateDeviceLayerProperties vkEnumerateDeviceLayerProperties = 0; PFN_vkGetDeviceQueue vkGetDeviceQueue = 0; PFN_vkQueueSubmit vkQueueSubmit = 0; PFN_vkQueueWaitIdle vkQueueWaitIdle = 0; PFN_vkDeviceWaitIdle vkDeviceWaitIdle = 0; PFN_vkAllocateMemory vkAllocateMemory = 0; PFN_vkFreeMemory vkFreeMemory = 0; PFN_vkMapMemory vkMapMemory = 0; PFN_vkUnmapMemory vkUnmapMemory = 0; PFN_vkFlushMappedMemoryRanges vkFlushMappedMemoryRanges = 0; PFN_vkInvalidateMappedMemoryRanges vkInvalidateMappedMemoryRanges = 0; PFN_vkGetDeviceMemoryCommitment vkGetDeviceMemoryCommitment = 0; PFN_vkBindBufferMemory vkBindBufferMemory = 0; PFN_vkBindImageMemory vkBindImageMemory = 0; PFN_vkGetBufferMemoryRequirements vkGetBufferMemoryRequirements = 0; PFN_vkGetImageMemoryRequirements vkGetImageMemoryRequirements = 0; PFN_vkGetImageSparseMemoryRequirements vkGetImageSparseMemoryRequirements = 0; PFN_vkGetPhysicalDeviceSparseImageFormatProperties vkGetPhysicalDeviceSparseImageFormatProperties = 0; PFN_vkQueueBindSparse vkQueueBindSparse = 0; PFN_vkCreateFence vkCreateFence = 0; PFN_vkDestroyFence vkDestroyFence = 0; PFN_vkResetFences vkResetFences = 0; PFN_vkGetFenceStatus vkGetFenceStatus = 0; PFN_vkWaitForFences vkWaitForFences = 0; PFN_vkCreateSemaphore vkCreateSemaphore = 0; PFN_vkDestroySemaphore vkDestroySemaphore = 0; PFN_vkCreateEvent vkCreateEvent = 0; PFN_vkDestroyEvent vkDestroyEvent = 0; PFN_vkGetEventStatus vkGetEventStatus = 0; PFN_vkSetEvent vkSetEvent = 0; PFN_vkResetEvent vkResetEvent = 0; PFN_vkCreateQueryPool vkCreateQueryPool = 0; PFN_vkDestroyQueryPool vkDestroyQueryPool = 0; PFN_vkGetQueryPoolResults vkGetQueryPoolResults = 0; PFN_vkCreateBuffer vkCreateBuffer = 0; PFN_vkDestroyBuffer vkDestroyBuffer = 0; PFN_vkCreateBufferView vkCreateBufferView = 0; PFN_vkDestroyBufferView vkDestroyBufferView = 0; PFN_vkCreateImage vkCreateImage = 0; PFN_vkDestroyImage vkDestroyImage = 0; PFN_vkGetImageSubresourceLayout vkGetImageSubresourceLayout = 0; PFN_vkCreateImageView vkCreateImageView = 0; PFN_vkDestroyImageView vkDestroyImageView = 0; PFN_vkCreateShaderModule vkCreateShaderModule = 0; PFN_vkDestroyShaderModule vkDestroyShaderModule = 0; PFN_vkCreatePipelineCache vkCreatePipelineCache = 0; PFN_vkDestroyPipelineCache vkDestroyPipelineCache = 0; PFN_vkGetPipelineCacheData vkGetPipelineCacheData = 0; PFN_vkMergePipelineCaches vkMergePipelineCaches = 0; PFN_vkCreateGraphicsPipelines vkCreateGraphicsPipelines = 0; PFN_vkCreateComputePipelines vkCreateComputePipelines = 0; PFN_vkDestroyPipeline vkDestroyPipeline = 0; PFN_vkCreatePipelineLayout vkCreatePipelineLayout = 0; PFN_vkDestroyPipelineLayout vkDestroyPipelineLayout = 0; PFN_vkCreateSampler vkCreateSampler = 0; PFN_vkDestroySampler vkDestroySampler = 0; PFN_vkCreateDescriptorSetLayout vkCreateDescriptorSetLayout = 0; PFN_vkDestroyDescriptorSetLayout vkDestroyDescriptorSetLayout = 0; PFN_vkCreateDescriptorPool vkCreateDescriptorPool = 0; PFN_vkDestroyDescriptorPool vkDestroyDescriptorPool = 0; PFN_vkResetDescriptorPool vkResetDescriptorPool = 0; PFN_vkAllocateDescriptorSets vkAllocateDescriptorSets = 0; PFN_vkFreeDescriptorSets vkFreeDescriptorSets = 0; PFN_vkUpdateDescriptorSets vkUpdateDescriptorSets = 0; PFN_vkCreateFramebuffer vkCreateFramebuffer = 0; PFN_vkDestroyFramebuffer vkDestroyFramebuffer = 0; PFN_vkCreateRenderPass vkCreateRenderPass = 0; PFN_vkDestroyRenderPass vkDestroyRenderPass = 0; PFN_vkGetRenderAreaGranularity vkGetRenderAreaGranularity = 0; PFN_vkCreateCommandPool vkCreateCommandPool = 0; PFN_vkDestroyCommandPool vkDestroyCommandPool = 0; PFN_vkResetCommandPool vkResetCommandPool = 0; PFN_vkAllocateCommandBuffers vkAllocateCommandBuffers = 0; PFN_vkFreeCommandBuffers vkFreeCommandBuffers = 0; PFN_vkBeginCommandBuffer vkBeginCommandBuffer = 0; PFN_vkEndCommandBuffer vkEndCommandBuffer = 0; PFN_vkResetCommandBuffer vkResetCommandBuffer = 0; PFN_vkCmdBindPipeline vkCmdBindPipeline = 0; PFN_vkCmdSetViewport vkCmdSetViewport = 0; PFN_vkCmdSetScissor vkCmdSetScissor = 0; PFN_vkCmdSetLineWidth vkCmdSetLineWidth = 0; PFN_vkCmdSetDepthBias vkCmdSetDepthBias = 0; PFN_vkCmdSetBlendConstants vkCmdSetBlendConstants = 0; PFN_vkCmdSetDepthBounds vkCmdSetDepthBounds = 0; PFN_vkCmdSetStencilCompareMask vkCmdSetStencilCompareMask = 0; PFN_vkCmdSetStencilWriteMask vkCmdSetStencilWriteMask = 0; PFN_vkCmdSetStencilReference vkCmdSetStencilReference = 0; PFN_vkCmdBindDescriptorSets vkCmdBindDescriptorSets = 0; PFN_vkCmdBindIndexBuffer vkCmdBindIndexBuffer = 0; PFN_vkCmdBindVertexBuffers vkCmdBindVertexBuffers = 0; PFN_vkCmdDraw vkCmdDraw = 0; PFN_vkCmdDrawIndexed vkCmdDrawIndexed = 0; PFN_vkCmdDrawIndirect vkCmdDrawIndirect = 0; PFN_vkCmdDrawIndexedIndirect vkCmdDrawIndexedIndirect = 0; PFN_vkCmdDispatch vkCmdDispatch = 0; PFN_vkCmdDispatchIndirect vkCmdDispatchIndirect = 0; PFN_vkCmdCopyBuffer vkCmdCopyBuffer = 0; PFN_vkCmdCopyImage vkCmdCopyImage = 0; PFN_vkCmdBlitImage vkCmdBlitImage = 0; PFN_vkCmdCopyBufferToImage vkCmdCopyBufferToImage = 0; PFN_vkCmdCopyImageToBuffer vkCmdCopyImageToBuffer = 0; PFN_vkCmdUpdateBuffer vkCmdUpdateBuffer = 0; PFN_vkCmdFillBuffer vkCmdFillBuffer = 0; PFN_vkCmdClearColorImage vkCmdClearColorImage = 0; PFN_vkCmdClearDepthStencilImage vkCmdClearDepthStencilImage = 0; PFN_vkCmdClearAttachments vkCmdClearAttachments = 0; PFN_vkCmdResolveImage vkCmdResolveImage = 0; PFN_vkCmdSetEvent vkCmdSetEvent = 0; PFN_vkCmdResetEvent vkCmdResetEvent = 0; PFN_vkCmdWaitEvents vkCmdWaitEvents = 0; PFN_vkCmdPipelineBarrier vkCmdPipelineBarrier = 0; PFN_vkCmdBeginQuery vkCmdBeginQuery = 0; PFN_vkCmdEndQuery vkCmdEndQuery = 0; PFN_vkCmdResetQueryPool vkCmdResetQueryPool = 0; PFN_vkCmdWriteTimestamp vkCmdWriteTimestamp = 0; PFN_vkCmdCopyQueryPoolResults vkCmdCopyQueryPoolResults = 0; PFN_vkCmdPushConstants vkCmdPushConstants = 0; PFN_vkCmdBeginRenderPass vkCmdBeginRenderPass = 0; PFN_vkCmdNextSubpass vkCmdNextSubpass = 0; PFN_vkCmdEndRenderPass vkCmdEndRenderPass = 0; PFN_vkCmdExecuteCommands vkCmdExecuteCommands = 0; //=== VK_VERSION_1_1 === PFN_vkEnumerateInstanceVersion vkEnumerateInstanceVersion = 0; PFN_vkBindBufferMemory2 vkBindBufferMemory2 = 0; PFN_vkBindImageMemory2 vkBindImageMemory2 = 0; PFN_vkGetDeviceGroupPeerMemoryFeatures vkGetDeviceGroupPeerMemoryFeatures = 0; PFN_vkCmdSetDeviceMask vkCmdSetDeviceMask = 0; PFN_vkCmdDispatchBase vkCmdDispatchBase = 0; PFN_vkEnumeratePhysicalDeviceGroups vkEnumeratePhysicalDeviceGroups = 0; PFN_vkGetImageMemoryRequirements2 vkGetImageMemoryRequirements2 = 0; PFN_vkGetBufferMemoryRequirements2 vkGetBufferMemoryRequirements2 = 0; PFN_vkGetImageSparseMemoryRequirements2 vkGetImageSparseMemoryRequirements2 = 0; PFN_vkGetPhysicalDeviceFeatures2 vkGetPhysicalDeviceFeatures2 = 0; PFN_vkGetPhysicalDeviceProperties2 vkGetPhysicalDeviceProperties2 = 0; PFN_vkGetPhysicalDeviceFormatProperties2 vkGetPhysicalDeviceFormatProperties2 = 0; PFN_vkGetPhysicalDeviceImageFormatProperties2 vkGetPhysicalDeviceImageFormatProperties2 = 0; PFN_vkGetPhysicalDeviceQueueFamilyProperties2 vkGetPhysicalDeviceQueueFamilyProperties2 = 0; PFN_vkGetPhysicalDeviceMemoryProperties2 vkGetPhysicalDeviceMemoryProperties2 = 0; PFN_vkGetPhysicalDeviceSparseImageFormatProperties2 vkGetPhysicalDeviceSparseImageFormatProperties2 = 0; PFN_vkTrimCommandPool vkTrimCommandPool = 0; PFN_vkGetDeviceQueue2 vkGetDeviceQueue2 = 0; PFN_vkCreateSamplerYcbcrConversion vkCreateSamplerYcbcrConversion = 0; PFN_vkDestroySamplerYcbcrConversion vkDestroySamplerYcbcrConversion = 0; PFN_vkCreateDescriptorUpdateTemplate vkCreateDescriptorUpdateTemplate = 0; PFN_vkDestroyDescriptorUpdateTemplate vkDestroyDescriptorUpdateTemplate = 0; PFN_vkUpdateDescriptorSetWithTemplate vkUpdateDescriptorSetWithTemplate = 0; PFN_vkGetPhysicalDeviceExternalBufferProperties vkGetPhysicalDeviceExternalBufferProperties = 0; PFN_vkGetPhysicalDeviceExternalFenceProperties vkGetPhysicalDeviceExternalFenceProperties = 0; PFN_vkGetPhysicalDeviceExternalSemaphoreProperties vkGetPhysicalDeviceExternalSemaphoreProperties = 0; PFN_vkGetDescriptorSetLayoutSupport vkGetDescriptorSetLayoutSupport = 0; //=== VK_VERSION_1_2 === PFN_vkCmdDrawIndirectCount vkCmdDrawIndirectCount = 0; PFN_vkCmdDrawIndexedIndirectCount vkCmdDrawIndexedIndirectCount = 0; PFN_vkCreateRenderPass2 vkCreateRenderPass2 = 0; PFN_vkCmdBeginRenderPass2 vkCmdBeginRenderPass2 = 0; PFN_vkCmdNextSubpass2 vkCmdNextSubpass2 = 0; PFN_vkCmdEndRenderPass2 vkCmdEndRenderPass2 = 0; PFN_vkResetQueryPool vkResetQueryPool = 0; PFN_vkGetSemaphoreCounterValue vkGetSemaphoreCounterValue = 0; PFN_vkWaitSemaphores vkWaitSemaphores = 0; PFN_vkSignalSemaphore vkSignalSemaphore = 0; PFN_vkGetBufferDeviceAddress vkGetBufferDeviceAddress = 0; PFN_vkGetBufferOpaqueCaptureAddress vkGetBufferOpaqueCaptureAddress = 0; PFN_vkGetDeviceMemoryOpaqueCaptureAddress vkGetDeviceMemoryOpaqueCaptureAddress = 0; //=== VK_VERSION_1_3 === PFN_vkGetPhysicalDeviceToolProperties vkGetPhysicalDeviceToolProperties = 0; PFN_vkCreatePrivateDataSlot vkCreatePrivateDataSlot = 0; PFN_vkDestroyPrivateDataSlot vkDestroyPrivateDataSlot = 0; PFN_vkSetPrivateData vkSetPrivateData = 0; PFN_vkGetPrivateData vkGetPrivateData = 0; PFN_vkCmdSetEvent2 vkCmdSetEvent2 = 0; PFN_vkCmdResetEvent2 vkCmdResetEvent2 = 0; PFN_vkCmdWaitEvents2 vkCmdWaitEvents2 = 0; PFN_vkCmdPipelineBarrier2 vkCmdPipelineBarrier2 = 0; PFN_vkCmdWriteTimestamp2 vkCmdWriteTimestamp2 = 0; PFN_vkQueueSubmit2 vkQueueSubmit2 = 0; PFN_vkCmdCopyBuffer2 vkCmdCopyBuffer2 = 0; PFN_vkCmdCopyImage2 vkCmdCopyImage2 = 0; PFN_vkCmdCopyBufferToImage2 vkCmdCopyBufferToImage2 = 0; PFN_vkCmdCopyImageToBuffer2 vkCmdCopyImageToBuffer2 = 0; PFN_vkCmdBlitImage2 vkCmdBlitImage2 = 0; PFN_vkCmdResolveImage2 vkCmdResolveImage2 = 0; PFN_vkCmdBeginRendering vkCmdBeginRendering = 0; PFN_vkCmdEndRendering vkCmdEndRendering = 0; PFN_vkCmdSetCullMode vkCmdSetCullMode = 0; PFN_vkCmdSetFrontFace vkCmdSetFrontFace = 0; PFN_vkCmdSetPrimitiveTopology vkCmdSetPrimitiveTopology = 0; PFN_vkCmdSetViewportWithCount vkCmdSetViewportWithCount = 0; PFN_vkCmdSetScissorWithCount vkCmdSetScissorWithCount = 0; PFN_vkCmdBindVertexBuffers2 vkCmdBindVertexBuffers2 = 0; PFN_vkCmdSetDepthTestEnable vkCmdSetDepthTestEnable = 0; PFN_vkCmdSetDepthWriteEnable vkCmdSetDepthWriteEnable = 0; PFN_vkCmdSetDepthCompareOp vkCmdSetDepthCompareOp = 0; PFN_vkCmdSetDepthBoundsTestEnable vkCmdSetDepthBoundsTestEnable = 0; PFN_vkCmdSetStencilTestEnable vkCmdSetStencilTestEnable = 0; PFN_vkCmdSetStencilOp vkCmdSetStencilOp = 0; PFN_vkCmdSetRasterizerDiscardEnable vkCmdSetRasterizerDiscardEnable = 0; PFN_vkCmdSetDepthBiasEnable vkCmdSetDepthBiasEnable = 0; PFN_vkCmdSetPrimitiveRestartEnable vkCmdSetPrimitiveRestartEnable = 0; PFN_vkGetDeviceBufferMemoryRequirements vkGetDeviceBufferMemoryRequirements = 0; PFN_vkGetDeviceImageMemoryRequirements vkGetDeviceImageMemoryRequirements = 0; PFN_vkGetDeviceImageSparseMemoryRequirements vkGetDeviceImageSparseMemoryRequirements = 0; //=== VK_KHR_surface === PFN_vkDestroySurfaceKHR vkDestroySurfaceKHR = 0; PFN_vkGetPhysicalDeviceSurfaceSupportKHR vkGetPhysicalDeviceSurfaceSupportKHR = 0; PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR vkGetPhysicalDeviceSurfaceCapabilitiesKHR = 0; PFN_vkGetPhysicalDeviceSurfaceFormatsKHR vkGetPhysicalDeviceSurfaceFormatsKHR = 0; PFN_vkGetPhysicalDeviceSurfacePresentModesKHR vkGetPhysicalDeviceSurfacePresentModesKHR = 0; //=== VK_KHR_swapchain === PFN_vkCreateSwapchainKHR vkCreateSwapchainKHR = 0; PFN_vkDestroySwapchainKHR vkDestroySwapchainKHR = 0; PFN_vkGetSwapchainImagesKHR vkGetSwapchainImagesKHR = 0; PFN_vkAcquireNextImageKHR vkAcquireNextImageKHR = 0; PFN_vkQueuePresentKHR vkQueuePresentKHR = 0; PFN_vkGetDeviceGroupPresentCapabilitiesKHR vkGetDeviceGroupPresentCapabilitiesKHR = 0; PFN_vkGetDeviceGroupSurfacePresentModesKHR vkGetDeviceGroupSurfacePresentModesKHR = 0; PFN_vkGetPhysicalDevicePresentRectanglesKHR vkGetPhysicalDevicePresentRectanglesKHR = 0; PFN_vkAcquireNextImage2KHR vkAcquireNextImage2KHR = 0; //=== VK_KHR_display === PFN_vkGetPhysicalDeviceDisplayPropertiesKHR vkGetPhysicalDeviceDisplayPropertiesKHR = 0; PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR vkGetPhysicalDeviceDisplayPlanePropertiesKHR = 0; PFN_vkGetDisplayPlaneSupportedDisplaysKHR vkGetDisplayPlaneSupportedDisplaysKHR = 0; PFN_vkGetDisplayModePropertiesKHR vkGetDisplayModePropertiesKHR = 0; PFN_vkCreateDisplayModeKHR vkCreateDisplayModeKHR = 0; PFN_vkGetDisplayPlaneCapabilitiesKHR vkGetDisplayPlaneCapabilitiesKHR = 0; PFN_vkCreateDisplayPlaneSurfaceKHR vkCreateDisplayPlaneSurfaceKHR = 0; //=== VK_KHR_display_swapchain === PFN_vkCreateSharedSwapchainsKHR vkCreateSharedSwapchainsKHR = 0; #if defined( VK_USE_PLATFORM_XLIB_KHR ) //=== VK_KHR_xlib_surface === PFN_vkCreateXlibSurfaceKHR vkCreateXlibSurfaceKHR = 0; PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR vkGetPhysicalDeviceXlibPresentationSupportKHR = 0; #else PFN_dummy vkCreateXlibSurfaceKHR_placeholder = 0; PFN_dummy vkGetPhysicalDeviceXlibPresentationSupportKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_XLIB_KHR*/ #if defined( VK_USE_PLATFORM_XCB_KHR ) //=== VK_KHR_xcb_surface === PFN_vkCreateXcbSurfaceKHR vkCreateXcbSurfaceKHR = 0; PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR vkGetPhysicalDeviceXcbPresentationSupportKHR = 0; #else PFN_dummy vkCreateXcbSurfaceKHR_placeholder = 0; PFN_dummy vkGetPhysicalDeviceXcbPresentationSupportKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_XCB_KHR*/ #if defined( VK_USE_PLATFORM_WAYLAND_KHR ) //=== VK_KHR_wayland_surface === PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR = 0; PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR vkGetPhysicalDeviceWaylandPresentationSupportKHR = 0; #else PFN_dummy vkCreateWaylandSurfaceKHR_placeholder = 0; PFN_dummy vkGetPhysicalDeviceWaylandPresentationSupportKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_WAYLAND_KHR*/ #if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_KHR_android_surface === PFN_vkCreateAndroidSurfaceKHR vkCreateAndroidSurfaceKHR = 0; #else PFN_dummy vkCreateAndroidSurfaceKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_win32_surface === PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR = 0; PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR vkGetPhysicalDeviceWin32PresentationSupportKHR = 0; #else PFN_dummy vkCreateWin32SurfaceKHR_placeholder = 0; PFN_dummy vkGetPhysicalDeviceWin32PresentationSupportKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_debug_report === PFN_vkCreateDebugReportCallbackEXT vkCreateDebugReportCallbackEXT = 0; PFN_vkDestroyDebugReportCallbackEXT vkDestroyDebugReportCallbackEXT = 0; PFN_vkDebugReportMessageEXT vkDebugReportMessageEXT = 0; //=== VK_EXT_debug_marker === PFN_vkDebugMarkerSetObjectTagEXT vkDebugMarkerSetObjectTagEXT = 0; PFN_vkDebugMarkerSetObjectNameEXT vkDebugMarkerSetObjectNameEXT = 0; PFN_vkCmdDebugMarkerBeginEXT vkCmdDebugMarkerBeginEXT = 0; PFN_vkCmdDebugMarkerEndEXT vkCmdDebugMarkerEndEXT = 0; PFN_vkCmdDebugMarkerInsertEXT vkCmdDebugMarkerInsertEXT = 0; #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_queue === PFN_vkGetPhysicalDeviceVideoCapabilitiesKHR vkGetPhysicalDeviceVideoCapabilitiesKHR = 0; PFN_vkGetPhysicalDeviceVideoFormatPropertiesKHR vkGetPhysicalDeviceVideoFormatPropertiesKHR = 0; PFN_vkCreateVideoSessionKHR vkCreateVideoSessionKHR = 0; PFN_vkDestroyVideoSessionKHR vkDestroyVideoSessionKHR = 0; PFN_vkGetVideoSessionMemoryRequirementsKHR vkGetVideoSessionMemoryRequirementsKHR = 0; PFN_vkBindVideoSessionMemoryKHR vkBindVideoSessionMemoryKHR = 0; PFN_vkCreateVideoSessionParametersKHR vkCreateVideoSessionParametersKHR = 0; PFN_vkUpdateVideoSessionParametersKHR vkUpdateVideoSessionParametersKHR = 0; PFN_vkDestroyVideoSessionParametersKHR vkDestroyVideoSessionParametersKHR = 0; PFN_vkCmdBeginVideoCodingKHR vkCmdBeginVideoCodingKHR = 0; PFN_vkCmdEndVideoCodingKHR vkCmdEndVideoCodingKHR = 0; PFN_vkCmdControlVideoCodingKHR vkCmdControlVideoCodingKHR = 0; #else PFN_dummy vkGetPhysicalDeviceVideoCapabilitiesKHR_placeholder = 0; PFN_dummy vkGetPhysicalDeviceVideoFormatPropertiesKHR_placeholder = 0; PFN_dummy vkCreateVideoSessionKHR_placeholder = 0; PFN_dummy vkDestroyVideoSessionKHR_placeholder = 0; PFN_dummy vkGetVideoSessionMemoryRequirementsKHR_placeholder = 0; PFN_dummy vkBindVideoSessionMemoryKHR_placeholder = 0; PFN_dummy vkCreateVideoSessionParametersKHR_placeholder = 0; PFN_dummy vkUpdateVideoSessionParametersKHR_placeholder = 0; PFN_dummy vkDestroyVideoSessionParametersKHR_placeholder = 0; PFN_dummy vkCmdBeginVideoCodingKHR_placeholder = 0; PFN_dummy vkCmdEndVideoCodingKHR_placeholder = 0; PFN_dummy vkCmdControlVideoCodingKHR_placeholder = 0; #endif /*VK_ENABLE_BETA_EXTENSIONS*/ #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_decode_queue === PFN_vkCmdDecodeVideoKHR vkCmdDecodeVideoKHR = 0; #else PFN_dummy vkCmdDecodeVideoKHR_placeholder = 0; #endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_EXT_transform_feedback === PFN_vkCmdBindTransformFeedbackBuffersEXT vkCmdBindTransformFeedbackBuffersEXT = 0; PFN_vkCmdBeginTransformFeedbackEXT vkCmdBeginTransformFeedbackEXT = 0; PFN_vkCmdEndTransformFeedbackEXT vkCmdEndTransformFeedbackEXT = 0; PFN_vkCmdBeginQueryIndexedEXT vkCmdBeginQueryIndexedEXT = 0; PFN_vkCmdEndQueryIndexedEXT vkCmdEndQueryIndexedEXT = 0; PFN_vkCmdDrawIndirectByteCountEXT vkCmdDrawIndirectByteCountEXT = 0; //=== VK_NVX_binary_import === PFN_vkCreateCuModuleNVX vkCreateCuModuleNVX = 0; PFN_vkCreateCuFunctionNVX vkCreateCuFunctionNVX = 0; PFN_vkDestroyCuModuleNVX vkDestroyCuModuleNVX = 0; PFN_vkDestroyCuFunctionNVX vkDestroyCuFunctionNVX = 0; PFN_vkCmdCuLaunchKernelNVX vkCmdCuLaunchKernelNVX = 0; //=== VK_NVX_image_view_handle === PFN_vkGetImageViewHandleNVX vkGetImageViewHandleNVX = 0; PFN_vkGetImageViewAddressNVX vkGetImageViewAddressNVX = 0; //=== VK_AMD_draw_indirect_count === PFN_vkCmdDrawIndirectCountAMD vkCmdDrawIndirectCountAMD = 0; PFN_vkCmdDrawIndexedIndirectCountAMD vkCmdDrawIndexedIndirectCountAMD = 0; //=== VK_AMD_shader_info === PFN_vkGetShaderInfoAMD vkGetShaderInfoAMD = 0; //=== VK_KHR_dynamic_rendering === PFN_vkCmdBeginRenderingKHR vkCmdBeginRenderingKHR = 0; PFN_vkCmdEndRenderingKHR vkCmdEndRenderingKHR = 0; #if defined( VK_USE_PLATFORM_GGP ) //=== VK_GGP_stream_descriptor_surface === PFN_vkCreateStreamDescriptorSurfaceGGP vkCreateStreamDescriptorSurfaceGGP = 0; #else PFN_dummy vkCreateStreamDescriptorSurfaceGGP_placeholder = 0; #endif /*VK_USE_PLATFORM_GGP*/ //=== VK_NV_external_memory_capabilities === PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV vkGetPhysicalDeviceExternalImageFormatPropertiesNV = 0; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_external_memory_win32 === PFN_vkGetMemoryWin32HandleNV vkGetMemoryWin32HandleNV = 0; #else PFN_dummy vkGetMemoryWin32HandleNV_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_get_physical_device_properties2 === PFN_vkGetPhysicalDeviceFeatures2KHR vkGetPhysicalDeviceFeatures2KHR = 0; PFN_vkGetPhysicalDeviceProperties2KHR vkGetPhysicalDeviceProperties2KHR = 0; PFN_vkGetPhysicalDeviceFormatProperties2KHR vkGetPhysicalDeviceFormatProperties2KHR = 0; PFN_vkGetPhysicalDeviceImageFormatProperties2KHR vkGetPhysicalDeviceImageFormatProperties2KHR = 0; PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR vkGetPhysicalDeviceQueueFamilyProperties2KHR = 0; PFN_vkGetPhysicalDeviceMemoryProperties2KHR vkGetPhysicalDeviceMemoryProperties2KHR = 0; PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR vkGetPhysicalDeviceSparseImageFormatProperties2KHR = 0; //=== VK_KHR_device_group === PFN_vkGetDeviceGroupPeerMemoryFeaturesKHR vkGetDeviceGroupPeerMemoryFeaturesKHR = 0; PFN_vkCmdSetDeviceMaskKHR vkCmdSetDeviceMaskKHR = 0; PFN_vkCmdDispatchBaseKHR vkCmdDispatchBaseKHR = 0; #if defined( VK_USE_PLATFORM_VI_NN ) //=== VK_NN_vi_surface === PFN_vkCreateViSurfaceNN vkCreateViSurfaceNN = 0; #else PFN_dummy vkCreateViSurfaceNN_placeholder = 0; #endif /*VK_USE_PLATFORM_VI_NN*/ //=== VK_KHR_maintenance1 === PFN_vkTrimCommandPoolKHR vkTrimCommandPoolKHR = 0; //=== VK_KHR_device_group_creation === PFN_vkEnumeratePhysicalDeviceGroupsKHR vkEnumeratePhysicalDeviceGroupsKHR = 0; //=== VK_KHR_external_memory_capabilities === PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHR vkGetPhysicalDeviceExternalBufferPropertiesKHR = 0; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_memory_win32 === PFN_vkGetMemoryWin32HandleKHR vkGetMemoryWin32HandleKHR = 0; PFN_vkGetMemoryWin32HandlePropertiesKHR vkGetMemoryWin32HandlePropertiesKHR = 0; #else PFN_dummy vkGetMemoryWin32HandleKHR_placeholder = 0; PFN_dummy vkGetMemoryWin32HandlePropertiesKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_memory_fd === PFN_vkGetMemoryFdKHR vkGetMemoryFdKHR = 0; PFN_vkGetMemoryFdPropertiesKHR vkGetMemoryFdPropertiesKHR = 0; //=== VK_KHR_external_semaphore_capabilities === PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR vkGetPhysicalDeviceExternalSemaphorePropertiesKHR = 0; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_semaphore_win32 === PFN_vkImportSemaphoreWin32HandleKHR vkImportSemaphoreWin32HandleKHR = 0; PFN_vkGetSemaphoreWin32HandleKHR vkGetSemaphoreWin32HandleKHR = 0; #else PFN_dummy vkImportSemaphoreWin32HandleKHR_placeholder = 0; PFN_dummy vkGetSemaphoreWin32HandleKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_semaphore_fd === PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHR = 0; PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHR = 0; //=== VK_KHR_push_descriptor === PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSetKHR = 0; PFN_vkCmdPushDescriptorSetWithTemplateKHR vkCmdPushDescriptorSetWithTemplateKHR = 0; //=== VK_EXT_conditional_rendering === PFN_vkCmdBeginConditionalRenderingEXT vkCmdBeginConditionalRenderingEXT = 0; PFN_vkCmdEndConditionalRenderingEXT vkCmdEndConditionalRenderingEXT = 0; //=== VK_KHR_descriptor_update_template === PFN_vkCreateDescriptorUpdateTemplateKHR vkCreateDescriptorUpdateTemplateKHR = 0; PFN_vkDestroyDescriptorUpdateTemplateKHR vkDestroyDescriptorUpdateTemplateKHR = 0; PFN_vkUpdateDescriptorSetWithTemplateKHR vkUpdateDescriptorSetWithTemplateKHR = 0; //=== VK_NV_clip_space_w_scaling === PFN_vkCmdSetViewportWScalingNV vkCmdSetViewportWScalingNV = 0; //=== VK_EXT_direct_mode_display === PFN_vkReleaseDisplayEXT vkReleaseDisplayEXT = 0; #if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT ) //=== VK_EXT_acquire_xlib_display === PFN_vkAcquireXlibDisplayEXT vkAcquireXlibDisplayEXT = 0; PFN_vkGetRandROutputDisplayEXT vkGetRandROutputDisplayEXT = 0; #else PFN_dummy vkAcquireXlibDisplayEXT_placeholder = 0; PFN_dummy vkGetRandROutputDisplayEXT_placeholder = 0; #endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/ //=== VK_EXT_display_surface_counter === PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT vkGetPhysicalDeviceSurfaceCapabilities2EXT = 0; //=== VK_EXT_display_control === PFN_vkDisplayPowerControlEXT vkDisplayPowerControlEXT = 0; PFN_vkRegisterDeviceEventEXT vkRegisterDeviceEventEXT = 0; PFN_vkRegisterDisplayEventEXT vkRegisterDisplayEventEXT = 0; PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT = 0; //=== VK_GOOGLE_display_timing === PFN_vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE = 0; PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE = 0; //=== VK_EXT_discard_rectangles === PFN_vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT = 0; //=== VK_EXT_hdr_metadata === PFN_vkSetHdrMetadataEXT vkSetHdrMetadataEXT = 0; //=== VK_KHR_create_renderpass2 === PFN_vkCreateRenderPass2KHR vkCreateRenderPass2KHR = 0; PFN_vkCmdBeginRenderPass2KHR vkCmdBeginRenderPass2KHR = 0; PFN_vkCmdNextSubpass2KHR vkCmdNextSubpass2KHR = 0; PFN_vkCmdEndRenderPass2KHR vkCmdEndRenderPass2KHR = 0; //=== VK_KHR_shared_presentable_image === PFN_vkGetSwapchainStatusKHR vkGetSwapchainStatusKHR = 0; //=== VK_KHR_external_fence_capabilities === PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR vkGetPhysicalDeviceExternalFencePropertiesKHR = 0; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_fence_win32 === PFN_vkImportFenceWin32HandleKHR vkImportFenceWin32HandleKHR = 0; PFN_vkGetFenceWin32HandleKHR vkGetFenceWin32HandleKHR = 0; #else PFN_dummy vkImportFenceWin32HandleKHR_placeholder = 0; PFN_dummy vkGetFenceWin32HandleKHR_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_fence_fd === PFN_vkImportFenceFdKHR vkImportFenceFdKHR = 0; PFN_vkGetFenceFdKHR vkGetFenceFdKHR = 0; //=== VK_KHR_performance_query === PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = 0; PFN_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR = 0; PFN_vkAcquireProfilingLockKHR vkAcquireProfilingLockKHR = 0; PFN_vkReleaseProfilingLockKHR vkReleaseProfilingLockKHR = 0; //=== VK_KHR_get_surface_capabilities2 === PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR vkGetPhysicalDeviceSurfaceCapabilities2KHR = 0; PFN_vkGetPhysicalDeviceSurfaceFormats2KHR vkGetPhysicalDeviceSurfaceFormats2KHR = 0; //=== VK_KHR_get_display_properties2 === PFN_vkGetPhysicalDeviceDisplayProperties2KHR vkGetPhysicalDeviceDisplayProperties2KHR = 0; PFN_vkGetPhysicalDeviceDisplayPlaneProperties2KHR vkGetPhysicalDeviceDisplayPlaneProperties2KHR = 0; PFN_vkGetDisplayModeProperties2KHR vkGetDisplayModeProperties2KHR = 0; PFN_vkGetDisplayPlaneCapabilities2KHR vkGetDisplayPlaneCapabilities2KHR = 0; #if defined( VK_USE_PLATFORM_IOS_MVK ) //=== VK_MVK_ios_surface === PFN_vkCreateIOSSurfaceMVK vkCreateIOSSurfaceMVK = 0; #else PFN_dummy vkCreateIOSSurfaceMVK_placeholder = 0; #endif /*VK_USE_PLATFORM_IOS_MVK*/ #if defined( VK_USE_PLATFORM_MACOS_MVK ) //=== VK_MVK_macos_surface === PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK = 0; #else PFN_dummy vkCreateMacOSSurfaceMVK_placeholder = 0; #endif /*VK_USE_PLATFORM_MACOS_MVK*/ //=== VK_EXT_debug_utils === PFN_vkSetDebugUtilsObjectNameEXT vkSetDebugUtilsObjectNameEXT = 0; PFN_vkSetDebugUtilsObjectTagEXT vkSetDebugUtilsObjectTagEXT = 0; PFN_vkQueueBeginDebugUtilsLabelEXT vkQueueBeginDebugUtilsLabelEXT = 0; PFN_vkQueueEndDebugUtilsLabelEXT vkQueueEndDebugUtilsLabelEXT = 0; PFN_vkQueueInsertDebugUtilsLabelEXT vkQueueInsertDebugUtilsLabelEXT = 0; PFN_vkCmdBeginDebugUtilsLabelEXT vkCmdBeginDebugUtilsLabelEXT = 0; PFN_vkCmdEndDebugUtilsLabelEXT vkCmdEndDebugUtilsLabelEXT = 0; PFN_vkCmdInsertDebugUtilsLabelEXT vkCmdInsertDebugUtilsLabelEXT = 0; PFN_vkCreateDebugUtilsMessengerEXT vkCreateDebugUtilsMessengerEXT = 0; PFN_vkDestroyDebugUtilsMessengerEXT vkDestroyDebugUtilsMessengerEXT = 0; PFN_vkSubmitDebugUtilsMessageEXT vkSubmitDebugUtilsMessageEXT = 0; #if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === PFN_vkGetAndroidHardwareBufferPropertiesANDROID vkGetAndroidHardwareBufferPropertiesANDROID = 0; PFN_vkGetMemoryAndroidHardwareBufferANDROID vkGetMemoryAndroidHardwareBufferANDROID = 0; #else PFN_dummy vkGetAndroidHardwareBufferPropertiesANDROID_placeholder = 0; PFN_dummy vkGetMemoryAndroidHardwareBufferANDROID_placeholder = 0; #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ //=== VK_EXT_sample_locations === PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT = 0; PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT vkGetPhysicalDeviceMultisamplePropertiesEXT = 0; //=== VK_KHR_get_memory_requirements2 === PFN_vkGetImageMemoryRequirements2KHR vkGetImageMemoryRequirements2KHR = 0; PFN_vkGetBufferMemoryRequirements2KHR vkGetBufferMemoryRequirements2KHR = 0; PFN_vkGetImageSparseMemoryRequirements2KHR vkGetImageSparseMemoryRequirements2KHR = 0; //=== VK_KHR_acceleration_structure === PFN_vkCreateAccelerationStructureKHR vkCreateAccelerationStructureKHR = 0; PFN_vkDestroyAccelerationStructureKHR vkDestroyAccelerationStructureKHR = 0; PFN_vkCmdBuildAccelerationStructuresKHR vkCmdBuildAccelerationStructuresKHR = 0; PFN_vkCmdBuildAccelerationStructuresIndirectKHR vkCmdBuildAccelerationStructuresIndirectKHR = 0; PFN_vkBuildAccelerationStructuresKHR vkBuildAccelerationStructuresKHR = 0; PFN_vkCopyAccelerationStructureKHR vkCopyAccelerationStructureKHR = 0; PFN_vkCopyAccelerationStructureToMemoryKHR vkCopyAccelerationStructureToMemoryKHR = 0; PFN_vkCopyMemoryToAccelerationStructureKHR vkCopyMemoryToAccelerationStructureKHR = 0; PFN_vkWriteAccelerationStructuresPropertiesKHR vkWriteAccelerationStructuresPropertiesKHR = 0; PFN_vkCmdCopyAccelerationStructureKHR vkCmdCopyAccelerationStructureKHR = 0; PFN_vkCmdCopyAccelerationStructureToMemoryKHR vkCmdCopyAccelerationStructureToMemoryKHR = 0; PFN_vkCmdCopyMemoryToAccelerationStructureKHR vkCmdCopyMemoryToAccelerationStructureKHR = 0; PFN_vkGetAccelerationStructureDeviceAddressKHR vkGetAccelerationStructureDeviceAddressKHR = 0; PFN_vkCmdWriteAccelerationStructuresPropertiesKHR vkCmdWriteAccelerationStructuresPropertiesKHR = 0; PFN_vkGetDeviceAccelerationStructureCompatibilityKHR vkGetDeviceAccelerationStructureCompatibilityKHR = 0; PFN_vkGetAccelerationStructureBuildSizesKHR vkGetAccelerationStructureBuildSizesKHR = 0; //=== VK_KHR_sampler_ycbcr_conversion === PFN_vkCreateSamplerYcbcrConversionKHR vkCreateSamplerYcbcrConversionKHR = 0; PFN_vkDestroySamplerYcbcrConversionKHR vkDestroySamplerYcbcrConversionKHR = 0; //=== VK_KHR_bind_memory2 === PFN_vkBindBufferMemory2KHR vkBindBufferMemory2KHR = 0; PFN_vkBindImageMemory2KHR vkBindImageMemory2KHR = 0; //=== VK_EXT_image_drm_format_modifier === PFN_vkGetImageDrmFormatModifierPropertiesEXT vkGetImageDrmFormatModifierPropertiesEXT = 0; //=== VK_EXT_validation_cache === PFN_vkCreateValidationCacheEXT vkCreateValidationCacheEXT = 0; PFN_vkDestroyValidationCacheEXT vkDestroyValidationCacheEXT = 0; PFN_vkMergeValidationCachesEXT vkMergeValidationCachesEXT = 0; PFN_vkGetValidationCacheDataEXT vkGetValidationCacheDataEXT = 0; //=== VK_NV_shading_rate_image === PFN_vkCmdBindShadingRateImageNV vkCmdBindShadingRateImageNV = 0; PFN_vkCmdSetViewportShadingRatePaletteNV vkCmdSetViewportShadingRatePaletteNV = 0; PFN_vkCmdSetCoarseSampleOrderNV vkCmdSetCoarseSampleOrderNV = 0; //=== VK_NV_ray_tracing === PFN_vkCreateAccelerationStructureNV vkCreateAccelerationStructureNV = 0; PFN_vkDestroyAccelerationStructureNV vkDestroyAccelerationStructureNV = 0; PFN_vkGetAccelerationStructureMemoryRequirementsNV vkGetAccelerationStructureMemoryRequirementsNV = 0; PFN_vkBindAccelerationStructureMemoryNV vkBindAccelerationStructureMemoryNV = 0; PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV = 0; PFN_vkCmdCopyAccelerationStructureNV vkCmdCopyAccelerationStructureNV = 0; PFN_vkCmdTraceRaysNV vkCmdTraceRaysNV = 0; PFN_vkCreateRayTracingPipelinesNV vkCreateRayTracingPipelinesNV = 0; PFN_vkGetRayTracingShaderGroupHandlesNV vkGetRayTracingShaderGroupHandlesNV = 0; PFN_vkGetAccelerationStructureHandleNV vkGetAccelerationStructureHandleNV = 0; PFN_vkCmdWriteAccelerationStructuresPropertiesNV vkCmdWriteAccelerationStructuresPropertiesNV = 0; PFN_vkCompileDeferredNV vkCompileDeferredNV = 0; //=== VK_KHR_maintenance3 === PFN_vkGetDescriptorSetLayoutSupportKHR vkGetDescriptorSetLayoutSupportKHR = 0; //=== VK_KHR_draw_indirect_count === PFN_vkCmdDrawIndirectCountKHR vkCmdDrawIndirectCountKHR = 0; PFN_vkCmdDrawIndexedIndirectCountKHR vkCmdDrawIndexedIndirectCountKHR = 0; //=== VK_EXT_external_memory_host === PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT = 0; //=== VK_AMD_buffer_marker === PFN_vkCmdWriteBufferMarkerAMD vkCmdWriteBufferMarkerAMD = 0; //=== VK_EXT_calibrated_timestamps === PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT vkGetPhysicalDeviceCalibrateableTimeDomainsEXT = 0; PFN_vkGetCalibratedTimestampsEXT vkGetCalibratedTimestampsEXT = 0; //=== VK_NV_mesh_shader === PFN_vkCmdDrawMeshTasksNV vkCmdDrawMeshTasksNV = 0; PFN_vkCmdDrawMeshTasksIndirectNV vkCmdDrawMeshTasksIndirectNV = 0; PFN_vkCmdDrawMeshTasksIndirectCountNV vkCmdDrawMeshTasksIndirectCountNV = 0; //=== VK_NV_scissor_exclusive === PFN_vkCmdSetExclusiveScissorNV vkCmdSetExclusiveScissorNV = 0; //=== VK_NV_device_diagnostic_checkpoints === PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV = 0; PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV = 0; //=== VK_KHR_timeline_semaphore === PFN_vkGetSemaphoreCounterValueKHR vkGetSemaphoreCounterValueKHR = 0; PFN_vkWaitSemaphoresKHR vkWaitSemaphoresKHR = 0; PFN_vkSignalSemaphoreKHR vkSignalSemaphoreKHR = 0; //=== VK_INTEL_performance_query === PFN_vkInitializePerformanceApiINTEL vkInitializePerformanceApiINTEL = 0; PFN_vkUninitializePerformanceApiINTEL vkUninitializePerformanceApiINTEL = 0; PFN_vkCmdSetPerformanceMarkerINTEL vkCmdSetPerformanceMarkerINTEL = 0; PFN_vkCmdSetPerformanceStreamMarkerINTEL vkCmdSetPerformanceStreamMarkerINTEL = 0; PFN_vkCmdSetPerformanceOverrideINTEL vkCmdSetPerformanceOverrideINTEL = 0; PFN_vkAcquirePerformanceConfigurationINTEL vkAcquirePerformanceConfigurationINTEL = 0; PFN_vkReleasePerformanceConfigurationINTEL vkReleasePerformanceConfigurationINTEL = 0; PFN_vkQueueSetPerformanceConfigurationINTEL vkQueueSetPerformanceConfigurationINTEL = 0; PFN_vkGetPerformanceParameterINTEL vkGetPerformanceParameterINTEL = 0; //=== VK_AMD_display_native_hdr === PFN_vkSetLocalDimmingAMD vkSetLocalDimmingAMD = 0; #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_imagepipe_surface === PFN_vkCreateImagePipeSurfaceFUCHSIA vkCreateImagePipeSurfaceFUCHSIA = 0; #else PFN_dummy vkCreateImagePipeSurfaceFUCHSIA_placeholder = 0; #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_surface === PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT = 0; #else PFN_dummy vkCreateMetalSurfaceEXT_placeholder = 0; #endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_fragment_shading_rate === PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR vkGetPhysicalDeviceFragmentShadingRatesKHR = 0; PFN_vkCmdSetFragmentShadingRateKHR vkCmdSetFragmentShadingRateKHR = 0; //=== VK_EXT_buffer_device_address === PFN_vkGetBufferDeviceAddressEXT vkGetBufferDeviceAddressEXT = 0; //=== VK_EXT_tooling_info === PFN_vkGetPhysicalDeviceToolPropertiesEXT vkGetPhysicalDeviceToolPropertiesEXT = 0; //=== VK_KHR_present_wait === PFN_vkWaitForPresentKHR vkWaitForPresentKHR = 0; //=== VK_NV_cooperative_matrix === PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV vkGetPhysicalDeviceCooperativeMatrixPropertiesNV = 0; //=== VK_NV_coverage_reduction_mode === PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV = 0; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_EXT_full_screen_exclusive === PFN_vkGetPhysicalDeviceSurfacePresentModes2EXT vkGetPhysicalDeviceSurfacePresentModes2EXT = 0; PFN_vkAcquireFullScreenExclusiveModeEXT vkAcquireFullScreenExclusiveModeEXT = 0; PFN_vkReleaseFullScreenExclusiveModeEXT vkReleaseFullScreenExclusiveModeEXT = 0; PFN_vkGetDeviceGroupSurfacePresentModes2EXT vkGetDeviceGroupSurfacePresentModes2EXT = 0; #else PFN_dummy vkGetPhysicalDeviceSurfacePresentModes2EXT_placeholder = 0; PFN_dummy vkAcquireFullScreenExclusiveModeEXT_placeholder = 0; PFN_dummy vkReleaseFullScreenExclusiveModeEXT_placeholder = 0; PFN_dummy vkGetDeviceGroupSurfacePresentModes2EXT_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_headless_surface === PFN_vkCreateHeadlessSurfaceEXT vkCreateHeadlessSurfaceEXT = 0; //=== VK_KHR_buffer_device_address === PFN_vkGetBufferDeviceAddressKHR vkGetBufferDeviceAddressKHR = 0; PFN_vkGetBufferOpaqueCaptureAddressKHR vkGetBufferOpaqueCaptureAddressKHR = 0; PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR vkGetDeviceMemoryOpaqueCaptureAddressKHR = 0; //=== VK_EXT_line_rasterization === PFN_vkCmdSetLineStippleEXT vkCmdSetLineStippleEXT = 0; //=== VK_EXT_host_query_reset === PFN_vkResetQueryPoolEXT vkResetQueryPoolEXT = 0; //=== VK_EXT_extended_dynamic_state === PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT = 0; PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFaceEXT = 0; PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopologyEXT = 0; PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCountEXT = 0; PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCountEXT = 0; PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT = 0; PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnableEXT = 0; PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnableEXT = 0; PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT = 0; PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT = 0; PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnableEXT = 0; PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOpEXT = 0; //=== VK_KHR_deferred_host_operations === PFN_vkCreateDeferredOperationKHR vkCreateDeferredOperationKHR = 0; PFN_vkDestroyDeferredOperationKHR vkDestroyDeferredOperationKHR = 0; PFN_vkGetDeferredOperationMaxConcurrencyKHR vkGetDeferredOperationMaxConcurrencyKHR = 0; PFN_vkGetDeferredOperationResultKHR vkGetDeferredOperationResultKHR = 0; PFN_vkDeferredOperationJoinKHR vkDeferredOperationJoinKHR = 0; //=== VK_KHR_pipeline_executable_properties === PFN_vkGetPipelineExecutablePropertiesKHR vkGetPipelineExecutablePropertiesKHR = 0; PFN_vkGetPipelineExecutableStatisticsKHR vkGetPipelineExecutableStatisticsKHR = 0; PFN_vkGetPipelineExecutableInternalRepresentationsKHR vkGetPipelineExecutableInternalRepresentationsKHR = 0; //=== VK_NV_device_generated_commands === PFN_vkGetGeneratedCommandsMemoryRequirementsNV vkGetGeneratedCommandsMemoryRequirementsNV = 0; PFN_vkCmdPreprocessGeneratedCommandsNV vkCmdPreprocessGeneratedCommandsNV = 0; PFN_vkCmdExecuteGeneratedCommandsNV vkCmdExecuteGeneratedCommandsNV = 0; PFN_vkCmdBindPipelineShaderGroupNV vkCmdBindPipelineShaderGroupNV = 0; PFN_vkCreateIndirectCommandsLayoutNV vkCreateIndirectCommandsLayoutNV = 0; PFN_vkDestroyIndirectCommandsLayoutNV vkDestroyIndirectCommandsLayoutNV = 0; //=== VK_EXT_acquire_drm_display === PFN_vkAcquireDrmDisplayEXT vkAcquireDrmDisplayEXT = 0; PFN_vkGetDrmDisplayEXT vkGetDrmDisplayEXT = 0; //=== VK_EXT_private_data === PFN_vkCreatePrivateDataSlotEXT vkCreatePrivateDataSlotEXT = 0; PFN_vkDestroyPrivateDataSlotEXT vkDestroyPrivateDataSlotEXT = 0; PFN_vkSetPrivateDataEXT vkSetPrivateDataEXT = 0; PFN_vkGetPrivateDataEXT vkGetPrivateDataEXT = 0; #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_encode_queue === PFN_vkCmdEncodeVideoKHR vkCmdEncodeVideoKHR = 0; #else PFN_dummy vkCmdEncodeVideoKHR_placeholder = 0; #endif /*VK_ENABLE_BETA_EXTENSIONS*/ #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === PFN_vkExportMetalObjectsEXT vkExportMetalObjectsEXT = 0; #else PFN_dummy vkExportMetalObjectsEXT_placeholder = 0; #endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_synchronization2 === PFN_vkCmdSetEvent2KHR vkCmdSetEvent2KHR = 0; PFN_vkCmdResetEvent2KHR vkCmdResetEvent2KHR = 0; PFN_vkCmdWaitEvents2KHR vkCmdWaitEvents2KHR = 0; PFN_vkCmdPipelineBarrier2KHR vkCmdPipelineBarrier2KHR = 0; PFN_vkCmdWriteTimestamp2KHR vkCmdWriteTimestamp2KHR = 0; PFN_vkQueueSubmit2KHR vkQueueSubmit2KHR = 0; PFN_vkCmdWriteBufferMarker2AMD vkCmdWriteBufferMarker2AMD = 0; PFN_vkGetQueueCheckpointData2NV vkGetQueueCheckpointData2NV = 0; //=== VK_NV_fragment_shading_rate_enums === PFN_vkCmdSetFragmentShadingRateEnumNV vkCmdSetFragmentShadingRateEnumNV = 0; //=== VK_KHR_copy_commands2 === PFN_vkCmdCopyBuffer2KHR vkCmdCopyBuffer2KHR = 0; PFN_vkCmdCopyImage2KHR vkCmdCopyImage2KHR = 0; PFN_vkCmdCopyBufferToImage2KHR vkCmdCopyBufferToImage2KHR = 0; PFN_vkCmdCopyImageToBuffer2KHR vkCmdCopyImageToBuffer2KHR = 0; PFN_vkCmdBlitImage2KHR vkCmdBlitImage2KHR = 0; PFN_vkCmdResolveImage2KHR vkCmdResolveImage2KHR = 0; //=== VK_EXT_image_compression_control === PFN_vkGetImageSubresourceLayout2EXT vkGetImageSubresourceLayout2EXT = 0; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_acquire_winrt_display === PFN_vkAcquireWinrtDisplayNV vkAcquireWinrtDisplayNV = 0; PFN_vkGetWinrtDisplayNV vkGetWinrtDisplayNV = 0; #else PFN_dummy vkAcquireWinrtDisplayNV_placeholder = 0; PFN_dummy vkGetWinrtDisplayNV_placeholder = 0; #endif /*VK_USE_PLATFORM_WIN32_KHR*/ #if defined( VK_USE_PLATFORM_DIRECTFB_EXT ) //=== VK_EXT_directfb_surface === PFN_vkCreateDirectFBSurfaceEXT vkCreateDirectFBSurfaceEXT = 0; PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT vkGetPhysicalDeviceDirectFBPresentationSupportEXT = 0; #else PFN_dummy vkCreateDirectFBSurfaceEXT_placeholder = 0; PFN_dummy vkGetPhysicalDeviceDirectFBPresentationSupportEXT_placeholder = 0; #endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/ //=== VK_KHR_ray_tracing_pipeline === PFN_vkCmdTraceRaysKHR vkCmdTraceRaysKHR = 0; PFN_vkCreateRayTracingPipelinesKHR vkCreateRayTracingPipelinesKHR = 0; PFN_vkGetRayTracingShaderGroupHandlesKHR vkGetRayTracingShaderGroupHandlesKHR = 0; PFN_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR vkGetRayTracingCaptureReplayShaderGroupHandlesKHR = 0; PFN_vkCmdTraceRaysIndirectKHR vkCmdTraceRaysIndirectKHR = 0; PFN_vkGetRayTracingShaderGroupStackSizeKHR vkGetRayTracingShaderGroupStackSizeKHR = 0; PFN_vkCmdSetRayTracingPipelineStackSizeKHR vkCmdSetRayTracingPipelineStackSizeKHR = 0; //=== VK_EXT_vertex_input_dynamic_state === PFN_vkCmdSetVertexInputEXT vkCmdSetVertexInputEXT = 0; #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_memory === PFN_vkGetMemoryZirconHandleFUCHSIA vkGetMemoryZirconHandleFUCHSIA = 0; PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA vkGetMemoryZirconHandlePropertiesFUCHSIA = 0; #else PFN_dummy vkGetMemoryZirconHandleFUCHSIA_placeholder = 0; PFN_dummy vkGetMemoryZirconHandlePropertiesFUCHSIA_placeholder = 0; #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_semaphore === PFN_vkImportSemaphoreZirconHandleFUCHSIA vkImportSemaphoreZirconHandleFUCHSIA = 0; PFN_vkGetSemaphoreZirconHandleFUCHSIA vkGetSemaphoreZirconHandleFUCHSIA = 0; #else PFN_dummy vkImportSemaphoreZirconHandleFUCHSIA_placeholder = 0; PFN_dummy vkGetSemaphoreZirconHandleFUCHSIA_placeholder = 0; #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_buffer_collection === PFN_vkCreateBufferCollectionFUCHSIA vkCreateBufferCollectionFUCHSIA = 0; PFN_vkSetBufferCollectionImageConstraintsFUCHSIA vkSetBufferCollectionImageConstraintsFUCHSIA = 0; PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA vkSetBufferCollectionBufferConstraintsFUCHSIA = 0; PFN_vkDestroyBufferCollectionFUCHSIA vkDestroyBufferCollectionFUCHSIA = 0; PFN_vkGetBufferCollectionPropertiesFUCHSIA vkGetBufferCollectionPropertiesFUCHSIA = 0; #else PFN_dummy vkCreateBufferCollectionFUCHSIA_placeholder = 0; PFN_dummy vkSetBufferCollectionImageConstraintsFUCHSIA_placeholder = 0; PFN_dummy vkSetBufferCollectionBufferConstraintsFUCHSIA_placeholder = 0; PFN_dummy vkDestroyBufferCollectionFUCHSIA_placeholder = 0; PFN_dummy vkGetBufferCollectionPropertiesFUCHSIA_placeholder = 0; #endif /*VK_USE_PLATFORM_FUCHSIA*/ //=== VK_HUAWEI_subpass_shading === PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI = 0; PFN_vkCmdSubpassShadingHUAWEI vkCmdSubpassShadingHUAWEI = 0; //=== VK_HUAWEI_invocation_mask === PFN_vkCmdBindInvocationMaskHUAWEI vkCmdBindInvocationMaskHUAWEI = 0; //=== VK_NV_external_memory_rdma === PFN_vkGetMemoryRemoteAddressNV vkGetMemoryRemoteAddressNV = 0; //=== VK_EXT_pipeline_properties === PFN_vkGetPipelinePropertiesEXT vkGetPipelinePropertiesEXT = 0; //=== VK_EXT_extended_dynamic_state2 === PFN_vkCmdSetPatchControlPointsEXT vkCmdSetPatchControlPointsEXT = 0; PFN_vkCmdSetRasterizerDiscardEnableEXT vkCmdSetRasterizerDiscardEnableEXT = 0; PFN_vkCmdSetDepthBiasEnableEXT vkCmdSetDepthBiasEnableEXT = 0; PFN_vkCmdSetLogicOpEXT vkCmdSetLogicOpEXT = 0; PFN_vkCmdSetPrimitiveRestartEnableEXT vkCmdSetPrimitiveRestartEnableEXT = 0; #if defined( VK_USE_PLATFORM_SCREEN_QNX ) //=== VK_QNX_screen_surface === PFN_vkCreateScreenSurfaceQNX vkCreateScreenSurfaceQNX = 0; PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX vkGetPhysicalDeviceScreenPresentationSupportQNX = 0; #else PFN_dummy vkCreateScreenSurfaceQNX_placeholder = 0; PFN_dummy vkGetPhysicalDeviceScreenPresentationSupportQNX_placeholder = 0; #endif /*VK_USE_PLATFORM_SCREEN_QNX*/ //=== VK_EXT_color_write_enable === PFN_vkCmdSetColorWriteEnableEXT vkCmdSetColorWriteEnableEXT = 0; //=== VK_KHR_ray_tracing_maintenance1 === PFN_vkCmdTraceRaysIndirect2KHR vkCmdTraceRaysIndirect2KHR = 0; //=== VK_EXT_multi_draw === PFN_vkCmdDrawMultiEXT vkCmdDrawMultiEXT = 0; PFN_vkCmdDrawMultiIndexedEXT vkCmdDrawMultiIndexedEXT = 0; //=== VK_EXT_pageable_device_local_memory === PFN_vkSetDeviceMemoryPriorityEXT vkSetDeviceMemoryPriorityEXT = 0; //=== VK_KHR_maintenance4 === PFN_vkGetDeviceBufferMemoryRequirementsKHR vkGetDeviceBufferMemoryRequirementsKHR = 0; PFN_vkGetDeviceImageMemoryRequirementsKHR vkGetDeviceImageMemoryRequirementsKHR = 0; PFN_vkGetDeviceImageSparseMemoryRequirementsKHR vkGetDeviceImageSparseMemoryRequirementsKHR = 0; //=== VK_VALVE_descriptor_set_host_mapping === PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE vkGetDescriptorSetLayoutHostMappingInfoVALVE = 0; PFN_vkGetDescriptorSetHostMappingVALVE vkGetDescriptorSetHostMappingVALVE = 0; //=== VK_EXT_shader_module_identifier === PFN_vkGetShaderModuleIdentifierEXT vkGetShaderModuleIdentifierEXT = 0; PFN_vkGetShaderModuleCreateInfoIdentifierEXT vkGetShaderModuleCreateInfoIdentifierEXT = 0; //=== VK_QCOM_tile_properties === PFN_vkGetFramebufferTilePropertiesQCOM vkGetFramebufferTilePropertiesQCOM = 0; PFN_vkGetDynamicRenderingTilePropertiesQCOM vkGetDynamicRenderingTilePropertiesQCOM = 0; public: DispatchLoaderDynamic() VULKAN_HPP_NOEXCEPT = default; DispatchLoaderDynamic( DispatchLoaderDynamic const & rhs ) VULKAN_HPP_NOEXCEPT = default; #if !defined( VK_NO_PROTOTYPES ) // This interface is designed to be used for per-device function pointers in combination with a linked vulkan library. template <typename DynamicLoader> void init( VULKAN_HPP_NAMESPACE::Instance const & instance, VULKAN_HPP_NAMESPACE::Device const & device, DynamicLoader const & dl ) VULKAN_HPP_NOEXCEPT { PFN_vkGetInstanceProcAddr getInstanceProcAddr = dl.template getProcAddress<PFN_vkGetInstanceProcAddr>( "vkGetInstanceProcAddr" ); PFN_vkGetDeviceProcAddr getDeviceProcAddr = dl.template getProcAddress<PFN_vkGetDeviceProcAddr>( "vkGetDeviceProcAddr" ); init( static_cast<VkInstance>( instance ), getInstanceProcAddr, static_cast<VkDevice>( device ), device ? getDeviceProcAddr : nullptr ); } // This interface is designed to be used for per-device function pointers in combination with a linked vulkan library. template <typename DynamicLoader # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL = VULKAN_HPP_NAMESPACE::DynamicLoader # endif > void init( VULKAN_HPP_NAMESPACE::Instance const & instance, VULKAN_HPP_NAMESPACE::Device const & device ) VULKAN_HPP_NOEXCEPT { static DynamicLoader dl; init( instance, device, dl ); } #endif // !defined( VK_NO_PROTOTYPES ) DispatchLoaderDynamic( PFN_vkGetInstanceProcAddr getInstanceProcAddr ) VULKAN_HPP_NOEXCEPT { init( getInstanceProcAddr ); } void init( PFN_vkGetInstanceProcAddr getInstanceProcAddr ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( getInstanceProcAddr ); vkGetInstanceProcAddr = getInstanceProcAddr; //=== VK_VERSION_1_0 === vkCreateInstance = PFN_vkCreateInstance( vkGetInstanceProcAddr( NULL, "vkCreateInstance" ) ); vkEnumerateInstanceExtensionProperties = PFN_vkEnumerateInstanceExtensionProperties( vkGetInstanceProcAddr( NULL, "vkEnumerateInstanceExtensionProperties" ) ); vkEnumerateInstanceLayerProperties = PFN_vkEnumerateInstanceLayerProperties( vkGetInstanceProcAddr( NULL, "vkEnumerateInstanceLayerProperties" ) ); //=== VK_VERSION_1_1 === vkEnumerateInstanceVersion = PFN_vkEnumerateInstanceVersion( vkGetInstanceProcAddr( NULL, "vkEnumerateInstanceVersion" ) ); } // This interface does not require a linked vulkan library. DispatchLoaderDynamic( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr, VkDevice device = {}, PFN_vkGetDeviceProcAddr getDeviceProcAddr = nullptr ) VULKAN_HPP_NOEXCEPT { init( instance, getInstanceProcAddr, device, getDeviceProcAddr ); } // This interface does not require a linked vulkan library. void init( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr, VkDevice device = {}, PFN_vkGetDeviceProcAddr /*getDeviceProcAddr*/ = nullptr ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( instance && getInstanceProcAddr ); vkGetInstanceProcAddr = getInstanceProcAddr; init( VULKAN_HPP_NAMESPACE::Instance( instance ) ); if ( device ) { init( VULKAN_HPP_NAMESPACE::Device( device ) ); } } void init( VULKAN_HPP_NAMESPACE::Instance instanceCpp ) VULKAN_HPP_NOEXCEPT { VkInstance instance = static_cast<VkInstance>( instanceCpp ); //=== VK_VERSION_1_0 === vkDestroyInstance = PFN_vkDestroyInstance( vkGetInstanceProcAddr( instance, "vkDestroyInstance" ) ); vkEnumeratePhysicalDevices = PFN_vkEnumeratePhysicalDevices( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDevices" ) ); vkGetPhysicalDeviceFeatures = PFN_vkGetPhysicalDeviceFeatures( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFeatures" ) ); vkGetPhysicalDeviceFormatProperties = PFN_vkGetPhysicalDeviceFormatProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFormatProperties" ) ); vkGetPhysicalDeviceImageFormatProperties = PFN_vkGetPhysicalDeviceImageFormatProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceImageFormatProperties" ) ); vkGetPhysicalDeviceProperties = PFN_vkGetPhysicalDeviceProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceProperties" ) ); vkGetPhysicalDeviceQueueFamilyProperties = PFN_vkGetPhysicalDeviceQueueFamilyProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyProperties" ) ); vkGetPhysicalDeviceMemoryProperties = PFN_vkGetPhysicalDeviceMemoryProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMemoryProperties" ) ); vkGetDeviceProcAddr = PFN_vkGetDeviceProcAddr( vkGetInstanceProcAddr( instance, "vkGetDeviceProcAddr" ) ); vkCreateDevice = PFN_vkCreateDevice( vkGetInstanceProcAddr( instance, "vkCreateDevice" ) ); vkDestroyDevice = PFN_vkDestroyDevice( vkGetInstanceProcAddr( instance, "vkDestroyDevice" ) ); vkEnumerateDeviceExtensionProperties = PFN_vkEnumerateDeviceExtensionProperties( vkGetInstanceProcAddr( instance, "vkEnumerateDeviceExtensionProperties" ) ); vkEnumerateDeviceLayerProperties = PFN_vkEnumerateDeviceLayerProperties( vkGetInstanceProcAddr( instance, "vkEnumerateDeviceLayerProperties" ) ); vkGetDeviceQueue = PFN_vkGetDeviceQueue( vkGetInstanceProcAddr( instance, "vkGetDeviceQueue" ) ); vkQueueSubmit = PFN_vkQueueSubmit( vkGetInstanceProcAddr( instance, "vkQueueSubmit" ) ); vkQueueWaitIdle = PFN_vkQueueWaitIdle( vkGetInstanceProcAddr( instance, "vkQueueWaitIdle" ) ); vkDeviceWaitIdle = PFN_vkDeviceWaitIdle( vkGetInstanceProcAddr( instance, "vkDeviceWaitIdle" ) ); vkAllocateMemory = PFN_vkAllocateMemory( vkGetInstanceProcAddr( instance, "vkAllocateMemory" ) ); vkFreeMemory = PFN_vkFreeMemory( vkGetInstanceProcAddr( instance, "vkFreeMemory" ) ); vkMapMemory = PFN_vkMapMemory( vkGetInstanceProcAddr( instance, "vkMapMemory" ) ); vkUnmapMemory = PFN_vkUnmapMemory( vkGetInstanceProcAddr( instance, "vkUnmapMemory" ) ); vkFlushMappedMemoryRanges = PFN_vkFlushMappedMemoryRanges( vkGetInstanceProcAddr( instance, "vkFlushMappedMemoryRanges" ) ); vkInvalidateMappedMemoryRanges = PFN_vkInvalidateMappedMemoryRanges( vkGetInstanceProcAddr( instance, "vkInvalidateMappedMemoryRanges" ) ); vkGetDeviceMemoryCommitment = PFN_vkGetDeviceMemoryCommitment( vkGetInstanceProcAddr( instance, "vkGetDeviceMemoryCommitment" ) ); vkBindBufferMemory = PFN_vkBindBufferMemory( vkGetInstanceProcAddr( instance, "vkBindBufferMemory" ) ); vkBindImageMemory = PFN_vkBindImageMemory( vkGetInstanceProcAddr( instance, "vkBindImageMemory" ) ); vkGetBufferMemoryRequirements = PFN_vkGetBufferMemoryRequirements( vkGetInstanceProcAddr( instance, "vkGetBufferMemoryRequirements" ) ); vkGetImageMemoryRequirements = PFN_vkGetImageMemoryRequirements( vkGetInstanceProcAddr( instance, "vkGetImageMemoryRequirements" ) ); vkGetImageSparseMemoryRequirements = PFN_vkGetImageSparseMemoryRequirements( vkGetInstanceProcAddr( instance, "vkGetImageSparseMemoryRequirements" ) ); vkGetPhysicalDeviceSparseImageFormatProperties = PFN_vkGetPhysicalDeviceSparseImageFormatProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSparseImageFormatProperties" ) ); vkQueueBindSparse = PFN_vkQueueBindSparse( vkGetInstanceProcAddr( instance, "vkQueueBindSparse" ) ); vkCreateFence = PFN_vkCreateFence( vkGetInstanceProcAddr( instance, "vkCreateFence" ) ); vkDestroyFence = PFN_vkDestroyFence( vkGetInstanceProcAddr( instance, "vkDestroyFence" ) ); vkResetFences = PFN_vkResetFences( vkGetInstanceProcAddr( instance, "vkResetFences" ) ); vkGetFenceStatus = PFN_vkGetFenceStatus( vkGetInstanceProcAddr( instance, "vkGetFenceStatus" ) ); vkWaitForFences = PFN_vkWaitForFences( vkGetInstanceProcAddr( instance, "vkWaitForFences" ) ); vkCreateSemaphore = PFN_vkCreateSemaphore( vkGetInstanceProcAddr( instance, "vkCreateSemaphore" ) ); vkDestroySemaphore = PFN_vkDestroySemaphore( vkGetInstanceProcAddr( instance, "vkDestroySemaphore" ) ); vkCreateEvent = PFN_vkCreateEvent( vkGetInstanceProcAddr( instance, "vkCreateEvent" ) ); vkDestroyEvent = PFN_vkDestroyEvent( vkGetInstanceProcAddr( instance, "vkDestroyEvent" ) ); vkGetEventStatus = PFN_vkGetEventStatus( vkGetInstanceProcAddr( instance, "vkGetEventStatus" ) ); vkSetEvent = PFN_vkSetEvent( vkGetInstanceProcAddr( instance, "vkSetEvent" ) ); vkResetEvent = PFN_vkResetEvent( vkGetInstanceProcAddr( instance, "vkResetEvent" ) ); vkCreateQueryPool = PFN_vkCreateQueryPool( vkGetInstanceProcAddr( instance, "vkCreateQueryPool" ) ); vkDestroyQueryPool = PFN_vkDestroyQueryPool( vkGetInstanceProcAddr( instance, "vkDestroyQueryPool" ) ); vkGetQueryPoolResults = PFN_vkGetQueryPoolResults( vkGetInstanceProcAddr( instance, "vkGetQueryPoolResults" ) ); vkCreateBuffer = PFN_vkCreateBuffer( vkGetInstanceProcAddr( instance, "vkCreateBuffer" ) ); vkDestroyBuffer = PFN_vkDestroyBuffer( vkGetInstanceProcAddr( instance, "vkDestroyBuffer" ) ); vkCreateBufferView = PFN_vkCreateBufferView( vkGetInstanceProcAddr( instance, "vkCreateBufferView" ) ); vkDestroyBufferView = PFN_vkDestroyBufferView( vkGetInstanceProcAddr( instance, "vkDestroyBufferView" ) ); vkCreateImage = PFN_vkCreateImage( vkGetInstanceProcAddr( instance, "vkCreateImage" ) ); vkDestroyImage = PFN_vkDestroyImage( vkGetInstanceProcAddr( instance, "vkDestroyImage" ) ); vkGetImageSubresourceLayout = PFN_vkGetImageSubresourceLayout( vkGetInstanceProcAddr( instance, "vkGetImageSubresourceLayout" ) ); vkCreateImageView = PFN_vkCreateImageView( vkGetInstanceProcAddr( instance, "vkCreateImageView" ) ); vkDestroyImageView = PFN_vkDestroyImageView( vkGetInstanceProcAddr( instance, "vkDestroyImageView" ) ); vkCreateShaderModule = PFN_vkCreateShaderModule( vkGetInstanceProcAddr( instance, "vkCreateShaderModule" ) ); vkDestroyShaderModule = PFN_vkDestroyShaderModule( vkGetInstanceProcAddr( instance, "vkDestroyShaderModule" ) ); vkCreatePipelineCache = PFN_vkCreatePipelineCache( vkGetInstanceProcAddr( instance, "vkCreatePipelineCache" ) ); vkDestroyPipelineCache = PFN_vkDestroyPipelineCache( vkGetInstanceProcAddr( instance, "vkDestroyPipelineCache" ) ); vkGetPipelineCacheData = PFN_vkGetPipelineCacheData( vkGetInstanceProcAddr( instance, "vkGetPipelineCacheData" ) ); vkMergePipelineCaches = PFN_vkMergePipelineCaches( vkGetInstanceProcAddr( instance, "vkMergePipelineCaches" ) ); vkCreateGraphicsPipelines = PFN_vkCreateGraphicsPipelines( vkGetInstanceProcAddr( instance, "vkCreateGraphicsPipelines" ) ); vkCreateComputePipelines = PFN_vkCreateComputePipelines( vkGetInstanceProcAddr( instance, "vkCreateComputePipelines" ) ); vkDestroyPipeline = PFN_vkDestroyPipeline( vkGetInstanceProcAddr( instance, "vkDestroyPipeline" ) ); vkCreatePipelineLayout = PFN_vkCreatePipelineLayout( vkGetInstanceProcAddr( instance, "vkCreatePipelineLayout" ) ); vkDestroyPipelineLayout = PFN_vkDestroyPipelineLayout( vkGetInstanceProcAddr( instance, "vkDestroyPipelineLayout" ) ); vkCreateSampler = PFN_vkCreateSampler( vkGetInstanceProcAddr( instance, "vkCreateSampler" ) ); vkDestroySampler = PFN_vkDestroySampler( vkGetInstanceProcAddr( instance, "vkDestroySampler" ) ); vkCreateDescriptorSetLayout = PFN_vkCreateDescriptorSetLayout( vkGetInstanceProcAddr( instance, "vkCreateDescriptorSetLayout" ) ); vkDestroyDescriptorSetLayout = PFN_vkDestroyDescriptorSetLayout( vkGetInstanceProcAddr( instance, "vkDestroyDescriptorSetLayout" ) ); vkCreateDescriptorPool = PFN_vkCreateDescriptorPool( vkGetInstanceProcAddr( instance, "vkCreateDescriptorPool" ) ); vkDestroyDescriptorPool = PFN_vkDestroyDescriptorPool( vkGetInstanceProcAddr( instance, "vkDestroyDescriptorPool" ) ); vkResetDescriptorPool = PFN_vkResetDescriptorPool( vkGetInstanceProcAddr( instance, "vkResetDescriptorPool" ) ); vkAllocateDescriptorSets = PFN_vkAllocateDescriptorSets( vkGetInstanceProcAddr( instance, "vkAllocateDescriptorSets" ) ); vkFreeDescriptorSets = PFN_vkFreeDescriptorSets( vkGetInstanceProcAddr( instance, "vkFreeDescriptorSets" ) ); vkUpdateDescriptorSets = PFN_vkUpdateDescriptorSets( vkGetInstanceProcAddr( instance, "vkUpdateDescriptorSets" ) ); vkCreateFramebuffer = PFN_vkCreateFramebuffer( vkGetInstanceProcAddr( instance, "vkCreateFramebuffer" ) ); vkDestroyFramebuffer = PFN_vkDestroyFramebuffer( vkGetInstanceProcAddr( instance, "vkDestroyFramebuffer" ) ); vkCreateRenderPass = PFN_vkCreateRenderPass( vkGetInstanceProcAddr( instance, "vkCreateRenderPass" ) ); vkDestroyRenderPass = PFN_vkDestroyRenderPass( vkGetInstanceProcAddr( instance, "vkDestroyRenderPass" ) ); vkGetRenderAreaGranularity = PFN_vkGetRenderAreaGranularity( vkGetInstanceProcAddr( instance, "vkGetRenderAreaGranularity" ) ); vkCreateCommandPool = PFN_vkCreateCommandPool( vkGetInstanceProcAddr( instance, "vkCreateCommandPool" ) ); vkDestroyCommandPool = PFN_vkDestroyCommandPool( vkGetInstanceProcAddr( instance, "vkDestroyCommandPool" ) ); vkResetCommandPool = PFN_vkResetCommandPool( vkGetInstanceProcAddr( instance, "vkResetCommandPool" ) ); vkAllocateCommandBuffers = PFN_vkAllocateCommandBuffers( vkGetInstanceProcAddr( instance, "vkAllocateCommandBuffers" ) ); vkFreeCommandBuffers = PFN_vkFreeCommandBuffers( vkGetInstanceProcAddr( instance, "vkFreeCommandBuffers" ) ); vkBeginCommandBuffer = PFN_vkBeginCommandBuffer( vkGetInstanceProcAddr( instance, "vkBeginCommandBuffer" ) ); vkEndCommandBuffer = PFN_vkEndCommandBuffer( vkGetInstanceProcAddr( instance, "vkEndCommandBuffer" ) ); vkResetCommandBuffer = PFN_vkResetCommandBuffer( vkGetInstanceProcAddr( instance, "vkResetCommandBuffer" ) ); vkCmdBindPipeline = PFN_vkCmdBindPipeline( vkGetInstanceProcAddr( instance, "vkCmdBindPipeline" ) ); vkCmdSetViewport = PFN_vkCmdSetViewport( vkGetInstanceProcAddr( instance, "vkCmdSetViewport" ) ); vkCmdSetScissor = PFN_vkCmdSetScissor( vkGetInstanceProcAddr( instance, "vkCmdSetScissor" ) ); vkCmdSetLineWidth = PFN_vkCmdSetLineWidth( vkGetInstanceProcAddr( instance, "vkCmdSetLineWidth" ) ); vkCmdSetDepthBias = PFN_vkCmdSetDepthBias( vkGetInstanceProcAddr( instance, "vkCmdSetDepthBias" ) ); vkCmdSetBlendConstants = PFN_vkCmdSetBlendConstants( vkGetInstanceProcAddr( instance, "vkCmdSetBlendConstants" ) ); vkCmdSetDepthBounds = PFN_vkCmdSetDepthBounds( vkGetInstanceProcAddr( instance, "vkCmdSetDepthBounds" ) ); vkCmdSetStencilCompareMask = PFN_vkCmdSetStencilCompareMask( vkGetInstanceProcAddr( instance, "vkCmdSetStencilCompareMask" ) ); vkCmdSetStencilWriteMask = PFN_vkCmdSetStencilWriteMask( vkGetInstanceProcAddr( instance, "vkCmdSetStencilWriteMask" ) ); vkCmdSetStencilReference = PFN_vkCmdSetStencilReference( vkGetInstanceProcAddr( instance, "vkCmdSetStencilReference" ) ); vkCmdBindDescriptorSets = PFN_vkCmdBindDescriptorSets( vkGetInstanceProcAddr( instance, "vkCmdBindDescriptorSets" ) ); vkCmdBindIndexBuffer = PFN_vkCmdBindIndexBuffer( vkGetInstanceProcAddr( instance, "vkCmdBindIndexBuffer" ) ); vkCmdBindVertexBuffers = PFN_vkCmdBindVertexBuffers( vkGetInstanceProcAddr( instance, "vkCmdBindVertexBuffers" ) ); vkCmdDraw = PFN_vkCmdDraw( vkGetInstanceProcAddr( instance, "vkCmdDraw" ) ); vkCmdDrawIndexed = PFN_vkCmdDrawIndexed( vkGetInstanceProcAddr( instance, "vkCmdDrawIndexed" ) ); vkCmdDrawIndirect = PFN_vkCmdDrawIndirect( vkGetInstanceProcAddr( instance, "vkCmdDrawIndirect" ) ); vkCmdDrawIndexedIndirect = PFN_vkCmdDrawIndexedIndirect( vkGetInstanceProcAddr( instance, "vkCmdDrawIndexedIndirect" ) ); vkCmdDispatch = PFN_vkCmdDispatch( vkGetInstanceProcAddr( instance, "vkCmdDispatch" ) ); vkCmdDispatchIndirect = PFN_vkCmdDispatchIndirect( vkGetInstanceProcAddr( instance, "vkCmdDispatchIndirect" ) ); vkCmdCopyBuffer = PFN_vkCmdCopyBuffer( vkGetInstanceProcAddr( instance, "vkCmdCopyBuffer" ) ); vkCmdCopyImage = PFN_vkCmdCopyImage( vkGetInstanceProcAddr( instance, "vkCmdCopyImage" ) ); vkCmdBlitImage = PFN_vkCmdBlitImage( vkGetInstanceProcAddr( instance, "vkCmdBlitImage" ) ); vkCmdCopyBufferToImage = PFN_vkCmdCopyBufferToImage( vkGetInstanceProcAddr( instance, "vkCmdCopyBufferToImage" ) ); vkCmdCopyImageToBuffer = PFN_vkCmdCopyImageToBuffer( vkGetInstanceProcAddr( instance, "vkCmdCopyImageToBuffer" ) ); vkCmdUpdateBuffer = PFN_vkCmdUpdateBuffer( vkGetInstanceProcAddr( instance, "vkCmdUpdateBuffer" ) ); vkCmdFillBuffer = PFN_vkCmdFillBuffer( vkGetInstanceProcAddr( instance, "vkCmdFillBuffer" ) ); vkCmdClearColorImage = PFN_vkCmdClearColorImage( vkGetInstanceProcAddr( instance, "vkCmdClearColorImage" ) ); vkCmdClearDepthStencilImage = PFN_vkCmdClearDepthStencilImage( vkGetInstanceProcAddr( instance, "vkCmdClearDepthStencilImage" ) ); vkCmdClearAttachments = PFN_vkCmdClearAttachments( vkGetInstanceProcAddr( instance, "vkCmdClearAttachments" ) ); vkCmdResolveImage = PFN_vkCmdResolveImage( vkGetInstanceProcAddr( instance, "vkCmdResolveImage" ) ); vkCmdSetEvent = PFN_vkCmdSetEvent( vkGetInstanceProcAddr( instance, "vkCmdSetEvent" ) ); vkCmdResetEvent = PFN_vkCmdResetEvent( vkGetInstanceProcAddr( instance, "vkCmdResetEvent" ) ); vkCmdWaitEvents = PFN_vkCmdWaitEvents( vkGetInstanceProcAddr( instance, "vkCmdWaitEvents" ) ); vkCmdPipelineBarrier = PFN_vkCmdPipelineBarrier( vkGetInstanceProcAddr( instance, "vkCmdPipelineBarrier" ) ); vkCmdBeginQuery = PFN_vkCmdBeginQuery( vkGetInstanceProcAddr( instance, "vkCmdBeginQuery" ) ); vkCmdEndQuery = PFN_vkCmdEndQuery( vkGetInstanceProcAddr( instance, "vkCmdEndQuery" ) ); vkCmdResetQueryPool = PFN_vkCmdResetQueryPool( vkGetInstanceProcAddr( instance, "vkCmdResetQueryPool" ) ); vkCmdWriteTimestamp = PFN_vkCmdWriteTimestamp( vkGetInstanceProcAddr( instance, "vkCmdWriteTimestamp" ) ); vkCmdCopyQueryPoolResults = PFN_vkCmdCopyQueryPoolResults( vkGetInstanceProcAddr( instance, "vkCmdCopyQueryPoolResults" ) ); vkCmdPushConstants = PFN_vkCmdPushConstants( vkGetInstanceProcAddr( instance, "vkCmdPushConstants" ) ); vkCmdBeginRenderPass = PFN_vkCmdBeginRenderPass( vkGetInstanceProcAddr( instance, "vkCmdBeginRenderPass" ) ); vkCmdNextSubpass = PFN_vkCmdNextSubpass( vkGetInstanceProcAddr( instance, "vkCmdNextSubpass" ) ); vkCmdEndRenderPass = PFN_vkCmdEndRenderPass( vkGetInstanceProcAddr( instance, "vkCmdEndRenderPass" ) ); vkCmdExecuteCommands = PFN_vkCmdExecuteCommands( vkGetInstanceProcAddr( instance, "vkCmdExecuteCommands" ) ); //=== VK_VERSION_1_1 === vkBindBufferMemory2 = PFN_vkBindBufferMemory2( vkGetInstanceProcAddr( instance, "vkBindBufferMemory2" ) ); vkBindImageMemory2 = PFN_vkBindImageMemory2( vkGetInstanceProcAddr( instance, "vkBindImageMemory2" ) ); vkGetDeviceGroupPeerMemoryFeatures = PFN_vkGetDeviceGroupPeerMemoryFeatures( vkGetInstanceProcAddr( instance, "vkGetDeviceGroupPeerMemoryFeatures" ) ); vkCmdSetDeviceMask = PFN_vkCmdSetDeviceMask( vkGetInstanceProcAddr( instance, "vkCmdSetDeviceMask" ) ); vkCmdDispatchBase = PFN_vkCmdDispatchBase( vkGetInstanceProcAddr( instance, "vkCmdDispatchBase" ) ); vkEnumeratePhysicalDeviceGroups = PFN_vkEnumeratePhysicalDeviceGroups( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceGroups" ) ); vkGetImageMemoryRequirements2 = PFN_vkGetImageMemoryRequirements2( vkGetInstanceProcAddr( instance, "vkGetImageMemoryRequirements2" ) ); vkGetBufferMemoryRequirements2 = PFN_vkGetBufferMemoryRequirements2( vkGetInstanceProcAddr( instance, "vkGetBufferMemoryRequirements2" ) ); vkGetImageSparseMemoryRequirements2 = PFN_vkGetImageSparseMemoryRequirements2( vkGetInstanceProcAddr( instance, "vkGetImageSparseMemoryRequirements2" ) ); vkGetPhysicalDeviceFeatures2 = PFN_vkGetPhysicalDeviceFeatures2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFeatures2" ) ); vkGetPhysicalDeviceProperties2 = PFN_vkGetPhysicalDeviceProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceProperties2" ) ); vkGetPhysicalDeviceFormatProperties2 = PFN_vkGetPhysicalDeviceFormatProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFormatProperties2" ) ); vkGetPhysicalDeviceImageFormatProperties2 = PFN_vkGetPhysicalDeviceImageFormatProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceImageFormatProperties2" ) ); vkGetPhysicalDeviceQueueFamilyProperties2 = PFN_vkGetPhysicalDeviceQueueFamilyProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyProperties2" ) ); vkGetPhysicalDeviceMemoryProperties2 = PFN_vkGetPhysicalDeviceMemoryProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMemoryProperties2" ) ); vkGetPhysicalDeviceSparseImageFormatProperties2 = PFN_vkGetPhysicalDeviceSparseImageFormatProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSparseImageFormatProperties2" ) ); vkTrimCommandPool = PFN_vkTrimCommandPool( vkGetInstanceProcAddr( instance, "vkTrimCommandPool" ) ); vkGetDeviceQueue2 = PFN_vkGetDeviceQueue2( vkGetInstanceProcAddr( instance, "vkGetDeviceQueue2" ) ); vkCreateSamplerYcbcrConversion = PFN_vkCreateSamplerYcbcrConversion( vkGetInstanceProcAddr( instance, "vkCreateSamplerYcbcrConversion" ) ); vkDestroySamplerYcbcrConversion = PFN_vkDestroySamplerYcbcrConversion( vkGetInstanceProcAddr( instance, "vkDestroySamplerYcbcrConversion" ) ); vkCreateDescriptorUpdateTemplate = PFN_vkCreateDescriptorUpdateTemplate( vkGetInstanceProcAddr( instance, "vkCreateDescriptorUpdateTemplate" ) ); vkDestroyDescriptorUpdateTemplate = PFN_vkDestroyDescriptorUpdateTemplate( vkGetInstanceProcAddr( instance, "vkDestroyDescriptorUpdateTemplate" ) ); vkUpdateDescriptorSetWithTemplate = PFN_vkUpdateDescriptorSetWithTemplate( vkGetInstanceProcAddr( instance, "vkUpdateDescriptorSetWithTemplate" ) ); vkGetPhysicalDeviceExternalBufferProperties = PFN_vkGetPhysicalDeviceExternalBufferProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalBufferProperties" ) ); vkGetPhysicalDeviceExternalFenceProperties = PFN_vkGetPhysicalDeviceExternalFenceProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalFenceProperties" ) ); vkGetPhysicalDeviceExternalSemaphoreProperties = PFN_vkGetPhysicalDeviceExternalSemaphoreProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalSemaphoreProperties" ) ); vkGetDescriptorSetLayoutSupport = PFN_vkGetDescriptorSetLayoutSupport( vkGetInstanceProcAddr( instance, "vkGetDescriptorSetLayoutSupport" ) ); //=== VK_VERSION_1_2 === vkCmdDrawIndirectCount = PFN_vkCmdDrawIndirectCount( vkGetInstanceProcAddr( instance, "vkCmdDrawIndirectCount" ) ); vkCmdDrawIndexedIndirectCount = PFN_vkCmdDrawIndexedIndirectCount( vkGetInstanceProcAddr( instance, "vkCmdDrawIndexedIndirectCount" ) ); vkCreateRenderPass2 = PFN_vkCreateRenderPass2( vkGetInstanceProcAddr( instance, "vkCreateRenderPass2" ) ); vkCmdBeginRenderPass2 = PFN_vkCmdBeginRenderPass2( vkGetInstanceProcAddr( instance, "vkCmdBeginRenderPass2" ) ); vkCmdNextSubpass2 = PFN_vkCmdNextSubpass2( vkGetInstanceProcAddr( instance, "vkCmdNextSubpass2" ) ); vkCmdEndRenderPass2 = PFN_vkCmdEndRenderPass2( vkGetInstanceProcAddr( instance, "vkCmdEndRenderPass2" ) ); vkResetQueryPool = PFN_vkResetQueryPool( vkGetInstanceProcAddr( instance, "vkResetQueryPool" ) ); vkGetSemaphoreCounterValue = PFN_vkGetSemaphoreCounterValue( vkGetInstanceProcAddr( instance, "vkGetSemaphoreCounterValue" ) ); vkWaitSemaphores = PFN_vkWaitSemaphores( vkGetInstanceProcAddr( instance, "vkWaitSemaphores" ) ); vkSignalSemaphore = PFN_vkSignalSemaphore( vkGetInstanceProcAddr( instance, "vkSignalSemaphore" ) ); vkGetBufferDeviceAddress = PFN_vkGetBufferDeviceAddress( vkGetInstanceProcAddr( instance, "vkGetBufferDeviceAddress" ) ); vkGetBufferOpaqueCaptureAddress = PFN_vkGetBufferOpaqueCaptureAddress( vkGetInstanceProcAddr( instance, "vkGetBufferOpaqueCaptureAddress" ) ); vkGetDeviceMemoryOpaqueCaptureAddress = PFN_vkGetDeviceMemoryOpaqueCaptureAddress( vkGetInstanceProcAddr( instance, "vkGetDeviceMemoryOpaqueCaptureAddress" ) ); //=== VK_VERSION_1_3 === vkGetPhysicalDeviceToolProperties = PFN_vkGetPhysicalDeviceToolProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceToolProperties" ) ); vkCreatePrivateDataSlot = PFN_vkCreatePrivateDataSlot( vkGetInstanceProcAddr( instance, "vkCreatePrivateDataSlot" ) ); vkDestroyPrivateDataSlot = PFN_vkDestroyPrivateDataSlot( vkGetInstanceProcAddr( instance, "vkDestroyPrivateDataSlot" ) ); vkSetPrivateData = PFN_vkSetPrivateData( vkGetInstanceProcAddr( instance, "vkSetPrivateData" ) ); vkGetPrivateData = PFN_vkGetPrivateData( vkGetInstanceProcAddr( instance, "vkGetPrivateData" ) ); vkCmdSetEvent2 = PFN_vkCmdSetEvent2( vkGetInstanceProcAddr( instance, "vkCmdSetEvent2" ) ); vkCmdResetEvent2 = PFN_vkCmdResetEvent2( vkGetInstanceProcAddr( instance, "vkCmdResetEvent2" ) ); vkCmdWaitEvents2 = PFN_vkCmdWaitEvents2( vkGetInstanceProcAddr( instance, "vkCmdWaitEvents2" ) ); vkCmdPipelineBarrier2 = PFN_vkCmdPipelineBarrier2( vkGetInstanceProcAddr( instance, "vkCmdPipelineBarrier2" ) ); vkCmdWriteTimestamp2 = PFN_vkCmdWriteTimestamp2( vkGetInstanceProcAddr( instance, "vkCmdWriteTimestamp2" ) ); vkQueueSubmit2 = PFN_vkQueueSubmit2( vkGetInstanceProcAddr( instance, "vkQueueSubmit2" ) ); vkCmdCopyBuffer2 = PFN_vkCmdCopyBuffer2( vkGetInstanceProcAddr( instance, "vkCmdCopyBuffer2" ) ); vkCmdCopyImage2 = PFN_vkCmdCopyImage2( vkGetInstanceProcAddr( instance, "vkCmdCopyImage2" ) ); vkCmdCopyBufferToImage2 = PFN_vkCmdCopyBufferToImage2( vkGetInstanceProcAddr( instance, "vkCmdCopyBufferToImage2" ) ); vkCmdCopyImageToBuffer2 = PFN_vkCmdCopyImageToBuffer2( vkGetInstanceProcAddr( instance, "vkCmdCopyImageToBuffer2" ) ); vkCmdBlitImage2 = PFN_vkCmdBlitImage2( vkGetInstanceProcAddr( instance, "vkCmdBlitImage2" ) ); vkCmdResolveImage2 = PFN_vkCmdResolveImage2( vkGetInstanceProcAddr( instance, "vkCmdResolveImage2" ) ); vkCmdBeginRendering = PFN_vkCmdBeginRendering( vkGetInstanceProcAddr( instance, "vkCmdBeginRendering" ) ); vkCmdEndRendering = PFN_vkCmdEndRendering( vkGetInstanceProcAddr( instance, "vkCmdEndRendering" ) ); vkCmdSetCullMode = PFN_vkCmdSetCullMode( vkGetInstanceProcAddr( instance, "vkCmdSetCullMode" ) ); vkCmdSetFrontFace = PFN_vkCmdSetFrontFace( vkGetInstanceProcAddr( instance, "vkCmdSetFrontFace" ) ); vkCmdSetPrimitiveTopology = PFN_vkCmdSetPrimitiveTopology( vkGetInstanceProcAddr( instance, "vkCmdSetPrimitiveTopology" ) ); vkCmdSetViewportWithCount = PFN_vkCmdSetViewportWithCount( vkGetInstanceProcAddr( instance, "vkCmdSetViewportWithCount" ) ); vkCmdSetScissorWithCount = PFN_vkCmdSetScissorWithCount( vkGetInstanceProcAddr( instance, "vkCmdSetScissorWithCount" ) ); vkCmdBindVertexBuffers2 = PFN_vkCmdBindVertexBuffers2( vkGetInstanceProcAddr( instance, "vkCmdBindVertexBuffers2" ) ); vkCmdSetDepthTestEnable = PFN_vkCmdSetDepthTestEnable( vkGetInstanceProcAddr( instance, "vkCmdSetDepthTestEnable" ) ); vkCmdSetDepthWriteEnable = PFN_vkCmdSetDepthWriteEnable( vkGetInstanceProcAddr( instance, "vkCmdSetDepthWriteEnable" ) ); vkCmdSetDepthCompareOp = PFN_vkCmdSetDepthCompareOp( vkGetInstanceProcAddr( instance, "vkCmdSetDepthCompareOp" ) ); vkCmdSetDepthBoundsTestEnable = PFN_vkCmdSetDepthBoundsTestEnable( vkGetInstanceProcAddr( instance, "vkCmdSetDepthBoundsTestEnable" ) ); vkCmdSetStencilTestEnable = PFN_vkCmdSetStencilTestEnable( vkGetInstanceProcAddr( instance, "vkCmdSetStencilTestEnable" ) ); vkCmdSetStencilOp = PFN_vkCmdSetStencilOp( vkGetInstanceProcAddr( instance, "vkCmdSetStencilOp" ) ); vkCmdSetRasterizerDiscardEnable = PFN_vkCmdSetRasterizerDiscardEnable( vkGetInstanceProcAddr( instance, "vkCmdSetRasterizerDiscardEnable" ) ); vkCmdSetDepthBiasEnable = PFN_vkCmdSetDepthBiasEnable( vkGetInstanceProcAddr( instance, "vkCmdSetDepthBiasEnable" ) ); vkCmdSetPrimitiveRestartEnable = PFN_vkCmdSetPrimitiveRestartEnable( vkGetInstanceProcAddr( instance, "vkCmdSetPrimitiveRestartEnable" ) ); vkGetDeviceBufferMemoryRequirements = PFN_vkGetDeviceBufferMemoryRequirements( vkGetInstanceProcAddr( instance, "vkGetDeviceBufferMemoryRequirements" ) ); vkGetDeviceImageMemoryRequirements = PFN_vkGetDeviceImageMemoryRequirements( vkGetInstanceProcAddr( instance, "vkGetDeviceImageMemoryRequirements" ) ); vkGetDeviceImageSparseMemoryRequirements = PFN_vkGetDeviceImageSparseMemoryRequirements( vkGetInstanceProcAddr( instance, "vkGetDeviceImageSparseMemoryRequirements" ) ); //=== VK_KHR_surface === vkDestroySurfaceKHR = PFN_vkDestroySurfaceKHR( vkGetInstanceProcAddr( instance, "vkDestroySurfaceKHR" ) ); vkGetPhysicalDeviceSurfaceSupportKHR = PFN_vkGetPhysicalDeviceSurfaceSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceSupportKHR" ) ); vkGetPhysicalDeviceSurfaceCapabilitiesKHR = PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceCapabilitiesKHR" ) ); vkGetPhysicalDeviceSurfaceFormatsKHR = PFN_vkGetPhysicalDeviceSurfaceFormatsKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceFormatsKHR" ) ); vkGetPhysicalDeviceSurfacePresentModesKHR = PFN_vkGetPhysicalDeviceSurfacePresentModesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfacePresentModesKHR" ) ); //=== VK_KHR_swapchain === vkCreateSwapchainKHR = PFN_vkCreateSwapchainKHR( vkGetInstanceProcAddr( instance, "vkCreateSwapchainKHR" ) ); vkDestroySwapchainKHR = PFN_vkDestroySwapchainKHR( vkGetInstanceProcAddr( instance, "vkDestroySwapchainKHR" ) ); vkGetSwapchainImagesKHR = PFN_vkGetSwapchainImagesKHR( vkGetInstanceProcAddr( instance, "vkGetSwapchainImagesKHR" ) ); vkAcquireNextImageKHR = PFN_vkAcquireNextImageKHR( vkGetInstanceProcAddr( instance, "vkAcquireNextImageKHR" ) ); vkQueuePresentKHR = PFN_vkQueuePresentKHR( vkGetInstanceProcAddr( instance, "vkQueuePresentKHR" ) ); vkGetDeviceGroupPresentCapabilitiesKHR = PFN_vkGetDeviceGroupPresentCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceGroupPresentCapabilitiesKHR" ) ); vkGetDeviceGroupSurfacePresentModesKHR = PFN_vkGetDeviceGroupSurfacePresentModesKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceGroupSurfacePresentModesKHR" ) ); vkGetPhysicalDevicePresentRectanglesKHR = PFN_vkGetPhysicalDevicePresentRectanglesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDevicePresentRectanglesKHR" ) ); vkAcquireNextImage2KHR = PFN_vkAcquireNextImage2KHR( vkGetInstanceProcAddr( instance, "vkAcquireNextImage2KHR" ) ); //=== VK_KHR_display === vkGetPhysicalDeviceDisplayPropertiesKHR = PFN_vkGetPhysicalDeviceDisplayPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayPropertiesKHR" ) ); vkGetPhysicalDeviceDisplayPlanePropertiesKHR = PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayPlanePropertiesKHR" ) ); vkGetDisplayPlaneSupportedDisplaysKHR = PFN_vkGetDisplayPlaneSupportedDisplaysKHR( vkGetInstanceProcAddr( instance, "vkGetDisplayPlaneSupportedDisplaysKHR" ) ); vkGetDisplayModePropertiesKHR = PFN_vkGetDisplayModePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetDisplayModePropertiesKHR" ) ); vkCreateDisplayModeKHR = PFN_vkCreateDisplayModeKHR( vkGetInstanceProcAddr( instance, "vkCreateDisplayModeKHR" ) ); vkGetDisplayPlaneCapabilitiesKHR = PFN_vkGetDisplayPlaneCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetDisplayPlaneCapabilitiesKHR" ) ); vkCreateDisplayPlaneSurfaceKHR = PFN_vkCreateDisplayPlaneSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateDisplayPlaneSurfaceKHR" ) ); //=== VK_KHR_display_swapchain === vkCreateSharedSwapchainsKHR = PFN_vkCreateSharedSwapchainsKHR( vkGetInstanceProcAddr( instance, "vkCreateSharedSwapchainsKHR" ) ); #if defined( VK_USE_PLATFORM_XLIB_KHR ) //=== VK_KHR_xlib_surface === vkCreateXlibSurfaceKHR = PFN_vkCreateXlibSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateXlibSurfaceKHR" ) ); vkGetPhysicalDeviceXlibPresentationSupportKHR = PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceXlibPresentationSupportKHR" ) ); #endif /*VK_USE_PLATFORM_XLIB_KHR*/ #if defined( VK_USE_PLATFORM_XCB_KHR ) //=== VK_KHR_xcb_surface === vkCreateXcbSurfaceKHR = PFN_vkCreateXcbSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateXcbSurfaceKHR" ) ); vkGetPhysicalDeviceXcbPresentationSupportKHR = PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceXcbPresentationSupportKHR" ) ); #endif /*VK_USE_PLATFORM_XCB_KHR*/ #if defined( VK_USE_PLATFORM_WAYLAND_KHR ) //=== VK_KHR_wayland_surface === vkCreateWaylandSurfaceKHR = PFN_vkCreateWaylandSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateWaylandSurfaceKHR" ) ); vkGetPhysicalDeviceWaylandPresentationSupportKHR = PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR" ) ); #endif /*VK_USE_PLATFORM_WAYLAND_KHR*/ #if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_KHR_android_surface === vkCreateAndroidSurfaceKHR = PFN_vkCreateAndroidSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateAndroidSurfaceKHR" ) ); #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_win32_surface === vkCreateWin32SurfaceKHR = PFN_vkCreateWin32SurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateWin32SurfaceKHR" ) ); vkGetPhysicalDeviceWin32PresentationSupportKHR = PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_debug_report === vkCreateDebugReportCallbackEXT = PFN_vkCreateDebugReportCallbackEXT( vkGetInstanceProcAddr( instance, "vkCreateDebugReportCallbackEXT" ) ); vkDestroyDebugReportCallbackEXT = PFN_vkDestroyDebugReportCallbackEXT( vkGetInstanceProcAddr( instance, "vkDestroyDebugReportCallbackEXT" ) ); vkDebugReportMessageEXT = PFN_vkDebugReportMessageEXT( vkGetInstanceProcAddr( instance, "vkDebugReportMessageEXT" ) ); //=== VK_EXT_debug_marker === vkDebugMarkerSetObjectTagEXT = PFN_vkDebugMarkerSetObjectTagEXT( vkGetInstanceProcAddr( instance, "vkDebugMarkerSetObjectTagEXT" ) ); vkDebugMarkerSetObjectNameEXT = PFN_vkDebugMarkerSetObjectNameEXT( vkGetInstanceProcAddr( instance, "vkDebugMarkerSetObjectNameEXT" ) ); vkCmdDebugMarkerBeginEXT = PFN_vkCmdDebugMarkerBeginEXT( vkGetInstanceProcAddr( instance, "vkCmdDebugMarkerBeginEXT" ) ); vkCmdDebugMarkerEndEXT = PFN_vkCmdDebugMarkerEndEXT( vkGetInstanceProcAddr( instance, "vkCmdDebugMarkerEndEXT" ) ); vkCmdDebugMarkerInsertEXT = PFN_vkCmdDebugMarkerInsertEXT( vkGetInstanceProcAddr( instance, "vkCmdDebugMarkerInsertEXT" ) ); #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_queue === vkGetPhysicalDeviceVideoCapabilitiesKHR = PFN_vkGetPhysicalDeviceVideoCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceVideoCapabilitiesKHR" ) ); vkGetPhysicalDeviceVideoFormatPropertiesKHR = PFN_vkGetPhysicalDeviceVideoFormatPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceVideoFormatPropertiesKHR" ) ); vkCreateVideoSessionKHR = PFN_vkCreateVideoSessionKHR( vkGetInstanceProcAddr( instance, "vkCreateVideoSessionKHR" ) ); vkDestroyVideoSessionKHR = PFN_vkDestroyVideoSessionKHR( vkGetInstanceProcAddr( instance, "vkDestroyVideoSessionKHR" ) ); vkGetVideoSessionMemoryRequirementsKHR = PFN_vkGetVideoSessionMemoryRequirementsKHR( vkGetInstanceProcAddr( instance, "vkGetVideoSessionMemoryRequirementsKHR" ) ); vkBindVideoSessionMemoryKHR = PFN_vkBindVideoSessionMemoryKHR( vkGetInstanceProcAddr( instance, "vkBindVideoSessionMemoryKHR" ) ); vkCreateVideoSessionParametersKHR = PFN_vkCreateVideoSessionParametersKHR( vkGetInstanceProcAddr( instance, "vkCreateVideoSessionParametersKHR" ) ); vkUpdateVideoSessionParametersKHR = PFN_vkUpdateVideoSessionParametersKHR( vkGetInstanceProcAddr( instance, "vkUpdateVideoSessionParametersKHR" ) ); vkDestroyVideoSessionParametersKHR = PFN_vkDestroyVideoSessionParametersKHR( vkGetInstanceProcAddr( instance, "vkDestroyVideoSessionParametersKHR" ) ); vkCmdBeginVideoCodingKHR = PFN_vkCmdBeginVideoCodingKHR( vkGetInstanceProcAddr( instance, "vkCmdBeginVideoCodingKHR" ) ); vkCmdEndVideoCodingKHR = PFN_vkCmdEndVideoCodingKHR( vkGetInstanceProcAddr( instance, "vkCmdEndVideoCodingKHR" ) ); vkCmdControlVideoCodingKHR = PFN_vkCmdControlVideoCodingKHR( vkGetInstanceProcAddr( instance, "vkCmdControlVideoCodingKHR" ) ); #endif /*VK_ENABLE_BETA_EXTENSIONS*/ #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_decode_queue === vkCmdDecodeVideoKHR = PFN_vkCmdDecodeVideoKHR( vkGetInstanceProcAddr( instance, "vkCmdDecodeVideoKHR" ) ); #endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_EXT_transform_feedback === vkCmdBindTransformFeedbackBuffersEXT = PFN_vkCmdBindTransformFeedbackBuffersEXT( vkGetInstanceProcAddr( instance, "vkCmdBindTransformFeedbackBuffersEXT" ) ); vkCmdBeginTransformFeedbackEXT = PFN_vkCmdBeginTransformFeedbackEXT( vkGetInstanceProcAddr( instance, "vkCmdBeginTransformFeedbackEXT" ) ); vkCmdEndTransformFeedbackEXT = PFN_vkCmdEndTransformFeedbackEXT( vkGetInstanceProcAddr( instance, "vkCmdEndTransformFeedbackEXT" ) ); vkCmdBeginQueryIndexedEXT = PFN_vkCmdBeginQueryIndexedEXT( vkGetInstanceProcAddr( instance, "vkCmdBeginQueryIndexedEXT" ) ); vkCmdEndQueryIndexedEXT = PFN_vkCmdEndQueryIndexedEXT( vkGetInstanceProcAddr( instance, "vkCmdEndQueryIndexedEXT" ) ); vkCmdDrawIndirectByteCountEXT = PFN_vkCmdDrawIndirectByteCountEXT( vkGetInstanceProcAddr( instance, "vkCmdDrawIndirectByteCountEXT" ) ); //=== VK_NVX_binary_import === vkCreateCuModuleNVX = PFN_vkCreateCuModuleNVX( vkGetInstanceProcAddr( instance, "vkCreateCuModuleNVX" ) ); vkCreateCuFunctionNVX = PFN_vkCreateCuFunctionNVX( vkGetInstanceProcAddr( instance, "vkCreateCuFunctionNVX" ) ); vkDestroyCuModuleNVX = PFN_vkDestroyCuModuleNVX( vkGetInstanceProcAddr( instance, "vkDestroyCuModuleNVX" ) ); vkDestroyCuFunctionNVX = PFN_vkDestroyCuFunctionNVX( vkGetInstanceProcAddr( instance, "vkDestroyCuFunctionNVX" ) ); vkCmdCuLaunchKernelNVX = PFN_vkCmdCuLaunchKernelNVX( vkGetInstanceProcAddr( instance, "vkCmdCuLaunchKernelNVX" ) ); //=== VK_NVX_image_view_handle === vkGetImageViewHandleNVX = PFN_vkGetImageViewHandleNVX( vkGetInstanceProcAddr( instance, "vkGetImageViewHandleNVX" ) ); vkGetImageViewAddressNVX = PFN_vkGetImageViewAddressNVX( vkGetInstanceProcAddr( instance, "vkGetImageViewAddressNVX" ) ); //=== VK_AMD_draw_indirect_count === vkCmdDrawIndirectCountAMD = PFN_vkCmdDrawIndirectCountAMD( vkGetInstanceProcAddr( instance, "vkCmdDrawIndirectCountAMD" ) ); if ( !vkCmdDrawIndirectCount ) vkCmdDrawIndirectCount = vkCmdDrawIndirectCountAMD; vkCmdDrawIndexedIndirectCountAMD = PFN_vkCmdDrawIndexedIndirectCountAMD( vkGetInstanceProcAddr( instance, "vkCmdDrawIndexedIndirectCountAMD" ) ); if ( !vkCmdDrawIndexedIndirectCount ) vkCmdDrawIndexedIndirectCount = vkCmdDrawIndexedIndirectCountAMD; //=== VK_AMD_shader_info === vkGetShaderInfoAMD = PFN_vkGetShaderInfoAMD( vkGetInstanceProcAddr( instance, "vkGetShaderInfoAMD" ) ); //=== VK_KHR_dynamic_rendering === vkCmdBeginRenderingKHR = PFN_vkCmdBeginRenderingKHR( vkGetInstanceProcAddr( instance, "vkCmdBeginRenderingKHR" ) ); if ( !vkCmdBeginRendering ) vkCmdBeginRendering = vkCmdBeginRenderingKHR; vkCmdEndRenderingKHR = PFN_vkCmdEndRenderingKHR( vkGetInstanceProcAddr( instance, "vkCmdEndRenderingKHR" ) ); if ( !vkCmdEndRendering ) vkCmdEndRendering = vkCmdEndRenderingKHR; #if defined( VK_USE_PLATFORM_GGP ) //=== VK_GGP_stream_descriptor_surface === vkCreateStreamDescriptorSurfaceGGP = PFN_vkCreateStreamDescriptorSurfaceGGP( vkGetInstanceProcAddr( instance, "vkCreateStreamDescriptorSurfaceGGP" ) ); #endif /*VK_USE_PLATFORM_GGP*/ //=== VK_NV_external_memory_capabilities === vkGetPhysicalDeviceExternalImageFormatPropertiesNV = PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalImageFormatPropertiesNV" ) ); #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_external_memory_win32 === vkGetMemoryWin32HandleNV = PFN_vkGetMemoryWin32HandleNV( vkGetInstanceProcAddr( instance, "vkGetMemoryWin32HandleNV" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_get_physical_device_properties2 === vkGetPhysicalDeviceFeatures2KHR = PFN_vkGetPhysicalDeviceFeatures2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFeatures2KHR" ) ); if ( !vkGetPhysicalDeviceFeatures2 ) vkGetPhysicalDeviceFeatures2 = vkGetPhysicalDeviceFeatures2KHR; vkGetPhysicalDeviceProperties2KHR = PFN_vkGetPhysicalDeviceProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceProperties2KHR" ) ); if ( !vkGetPhysicalDeviceProperties2 ) vkGetPhysicalDeviceProperties2 = vkGetPhysicalDeviceProperties2KHR; vkGetPhysicalDeviceFormatProperties2KHR = PFN_vkGetPhysicalDeviceFormatProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFormatProperties2KHR" ) ); if ( !vkGetPhysicalDeviceFormatProperties2 ) vkGetPhysicalDeviceFormatProperties2 = vkGetPhysicalDeviceFormatProperties2KHR; vkGetPhysicalDeviceImageFormatProperties2KHR = PFN_vkGetPhysicalDeviceImageFormatProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceImageFormatProperties2KHR" ) ); if ( !vkGetPhysicalDeviceImageFormatProperties2 ) vkGetPhysicalDeviceImageFormatProperties2 = vkGetPhysicalDeviceImageFormatProperties2KHR; vkGetPhysicalDeviceQueueFamilyProperties2KHR = PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyProperties2KHR" ) ); if ( !vkGetPhysicalDeviceQueueFamilyProperties2 ) vkGetPhysicalDeviceQueueFamilyProperties2 = vkGetPhysicalDeviceQueueFamilyProperties2KHR; vkGetPhysicalDeviceMemoryProperties2KHR = PFN_vkGetPhysicalDeviceMemoryProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMemoryProperties2KHR" ) ); if ( !vkGetPhysicalDeviceMemoryProperties2 ) vkGetPhysicalDeviceMemoryProperties2 = vkGetPhysicalDeviceMemoryProperties2KHR; vkGetPhysicalDeviceSparseImageFormatProperties2KHR = PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSparseImageFormatProperties2KHR" ) ); if ( !vkGetPhysicalDeviceSparseImageFormatProperties2 ) vkGetPhysicalDeviceSparseImageFormatProperties2 = vkGetPhysicalDeviceSparseImageFormatProperties2KHR; //=== VK_KHR_device_group === vkGetDeviceGroupPeerMemoryFeaturesKHR = PFN_vkGetDeviceGroupPeerMemoryFeaturesKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceGroupPeerMemoryFeaturesKHR" ) ); if ( !vkGetDeviceGroupPeerMemoryFeatures ) vkGetDeviceGroupPeerMemoryFeatures = vkGetDeviceGroupPeerMemoryFeaturesKHR; vkCmdSetDeviceMaskKHR = PFN_vkCmdSetDeviceMaskKHR( vkGetInstanceProcAddr( instance, "vkCmdSetDeviceMaskKHR" ) ); if ( !vkCmdSetDeviceMask ) vkCmdSetDeviceMask = vkCmdSetDeviceMaskKHR; vkCmdDispatchBaseKHR = PFN_vkCmdDispatchBaseKHR( vkGetInstanceProcAddr( instance, "vkCmdDispatchBaseKHR" ) ); if ( !vkCmdDispatchBase ) vkCmdDispatchBase = vkCmdDispatchBaseKHR; #if defined( VK_USE_PLATFORM_VI_NN ) //=== VK_NN_vi_surface === vkCreateViSurfaceNN = PFN_vkCreateViSurfaceNN( vkGetInstanceProcAddr( instance, "vkCreateViSurfaceNN" ) ); #endif /*VK_USE_PLATFORM_VI_NN*/ //=== VK_KHR_maintenance1 === vkTrimCommandPoolKHR = PFN_vkTrimCommandPoolKHR( vkGetInstanceProcAddr( instance, "vkTrimCommandPoolKHR" ) ); if ( !vkTrimCommandPool ) vkTrimCommandPool = vkTrimCommandPoolKHR; //=== VK_KHR_device_group_creation === vkEnumeratePhysicalDeviceGroupsKHR = PFN_vkEnumeratePhysicalDeviceGroupsKHR( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceGroupsKHR" ) ); if ( !vkEnumeratePhysicalDeviceGroups ) vkEnumeratePhysicalDeviceGroups = vkEnumeratePhysicalDeviceGroupsKHR; //=== VK_KHR_external_memory_capabilities === vkGetPhysicalDeviceExternalBufferPropertiesKHR = PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalBufferPropertiesKHR" ) ); if ( !vkGetPhysicalDeviceExternalBufferProperties ) vkGetPhysicalDeviceExternalBufferProperties = vkGetPhysicalDeviceExternalBufferPropertiesKHR; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_memory_win32 === vkGetMemoryWin32HandleKHR = PFN_vkGetMemoryWin32HandleKHR( vkGetInstanceProcAddr( instance, "vkGetMemoryWin32HandleKHR" ) ); vkGetMemoryWin32HandlePropertiesKHR = PFN_vkGetMemoryWin32HandlePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetMemoryWin32HandlePropertiesKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_memory_fd === vkGetMemoryFdKHR = PFN_vkGetMemoryFdKHR( vkGetInstanceProcAddr( instance, "vkGetMemoryFdKHR" ) ); vkGetMemoryFdPropertiesKHR = PFN_vkGetMemoryFdPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetMemoryFdPropertiesKHR" ) ); //=== VK_KHR_external_semaphore_capabilities === vkGetPhysicalDeviceExternalSemaphorePropertiesKHR = PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalSemaphorePropertiesKHR" ) ); if ( !vkGetPhysicalDeviceExternalSemaphoreProperties ) vkGetPhysicalDeviceExternalSemaphoreProperties = vkGetPhysicalDeviceExternalSemaphorePropertiesKHR; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_semaphore_win32 === vkImportSemaphoreWin32HandleKHR = PFN_vkImportSemaphoreWin32HandleKHR( vkGetInstanceProcAddr( instance, "vkImportSemaphoreWin32HandleKHR" ) ); vkGetSemaphoreWin32HandleKHR = PFN_vkGetSemaphoreWin32HandleKHR( vkGetInstanceProcAddr( instance, "vkGetSemaphoreWin32HandleKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_semaphore_fd === vkImportSemaphoreFdKHR = PFN_vkImportSemaphoreFdKHR( vkGetInstanceProcAddr( instance, "vkImportSemaphoreFdKHR" ) ); vkGetSemaphoreFdKHR = PFN_vkGetSemaphoreFdKHR( vkGetInstanceProcAddr( instance, "vkGetSemaphoreFdKHR" ) ); //=== VK_KHR_push_descriptor === vkCmdPushDescriptorSetKHR = PFN_vkCmdPushDescriptorSetKHR( vkGetInstanceProcAddr( instance, "vkCmdPushDescriptorSetKHR" ) ); vkCmdPushDescriptorSetWithTemplateKHR = PFN_vkCmdPushDescriptorSetWithTemplateKHR( vkGetInstanceProcAddr( instance, "vkCmdPushDescriptorSetWithTemplateKHR" ) ); //=== VK_EXT_conditional_rendering === vkCmdBeginConditionalRenderingEXT = PFN_vkCmdBeginConditionalRenderingEXT( vkGetInstanceProcAddr( instance, "vkCmdBeginConditionalRenderingEXT" ) ); vkCmdEndConditionalRenderingEXT = PFN_vkCmdEndConditionalRenderingEXT( vkGetInstanceProcAddr( instance, "vkCmdEndConditionalRenderingEXT" ) ); //=== VK_KHR_descriptor_update_template === vkCreateDescriptorUpdateTemplateKHR = PFN_vkCreateDescriptorUpdateTemplateKHR( vkGetInstanceProcAddr( instance, "vkCreateDescriptorUpdateTemplateKHR" ) ); if ( !vkCreateDescriptorUpdateTemplate ) vkCreateDescriptorUpdateTemplate = vkCreateDescriptorUpdateTemplateKHR; vkDestroyDescriptorUpdateTemplateKHR = PFN_vkDestroyDescriptorUpdateTemplateKHR( vkGetInstanceProcAddr( instance, "vkDestroyDescriptorUpdateTemplateKHR" ) ); if ( !vkDestroyDescriptorUpdateTemplate ) vkDestroyDescriptorUpdateTemplate = vkDestroyDescriptorUpdateTemplateKHR; vkUpdateDescriptorSetWithTemplateKHR = PFN_vkUpdateDescriptorSetWithTemplateKHR( vkGetInstanceProcAddr( instance, "vkUpdateDescriptorSetWithTemplateKHR" ) ); if ( !vkUpdateDescriptorSetWithTemplate ) vkUpdateDescriptorSetWithTemplate = vkUpdateDescriptorSetWithTemplateKHR; //=== VK_NV_clip_space_w_scaling === vkCmdSetViewportWScalingNV = PFN_vkCmdSetViewportWScalingNV( vkGetInstanceProcAddr( instance, "vkCmdSetViewportWScalingNV" ) ); //=== VK_EXT_direct_mode_display === vkReleaseDisplayEXT = PFN_vkReleaseDisplayEXT( vkGetInstanceProcAddr( instance, "vkReleaseDisplayEXT" ) ); #if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT ) //=== VK_EXT_acquire_xlib_display === vkAcquireXlibDisplayEXT = PFN_vkAcquireXlibDisplayEXT( vkGetInstanceProcAddr( instance, "vkAcquireXlibDisplayEXT" ) ); vkGetRandROutputDisplayEXT = PFN_vkGetRandROutputDisplayEXT( vkGetInstanceProcAddr( instance, "vkGetRandROutputDisplayEXT" ) ); #endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/ //=== VK_EXT_display_surface_counter === vkGetPhysicalDeviceSurfaceCapabilities2EXT = PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceCapabilities2EXT" ) ); //=== VK_EXT_display_control === vkDisplayPowerControlEXT = PFN_vkDisplayPowerControlEXT( vkGetInstanceProcAddr( instance, "vkDisplayPowerControlEXT" ) ); vkRegisterDeviceEventEXT = PFN_vkRegisterDeviceEventEXT( vkGetInstanceProcAddr( instance, "vkRegisterDeviceEventEXT" ) ); vkRegisterDisplayEventEXT = PFN_vkRegisterDisplayEventEXT( vkGetInstanceProcAddr( instance, "vkRegisterDisplayEventEXT" ) ); vkGetSwapchainCounterEXT = PFN_vkGetSwapchainCounterEXT( vkGetInstanceProcAddr( instance, "vkGetSwapchainCounterEXT" ) ); //=== VK_GOOGLE_display_timing === vkGetRefreshCycleDurationGOOGLE = PFN_vkGetRefreshCycleDurationGOOGLE( vkGetInstanceProcAddr( instance, "vkGetRefreshCycleDurationGOOGLE" ) ); vkGetPastPresentationTimingGOOGLE = PFN_vkGetPastPresentationTimingGOOGLE( vkGetInstanceProcAddr( instance, "vkGetPastPresentationTimingGOOGLE" ) ); //=== VK_EXT_discard_rectangles === vkCmdSetDiscardRectangleEXT = PFN_vkCmdSetDiscardRectangleEXT( vkGetInstanceProcAddr( instance, "vkCmdSetDiscardRectangleEXT" ) ); //=== VK_EXT_hdr_metadata === vkSetHdrMetadataEXT = PFN_vkSetHdrMetadataEXT( vkGetInstanceProcAddr( instance, "vkSetHdrMetadataEXT" ) ); //=== VK_KHR_create_renderpass2 === vkCreateRenderPass2KHR = PFN_vkCreateRenderPass2KHR( vkGetInstanceProcAddr( instance, "vkCreateRenderPass2KHR" ) ); if ( !vkCreateRenderPass2 ) vkCreateRenderPass2 = vkCreateRenderPass2KHR; vkCmdBeginRenderPass2KHR = PFN_vkCmdBeginRenderPass2KHR( vkGetInstanceProcAddr( instance, "vkCmdBeginRenderPass2KHR" ) ); if ( !vkCmdBeginRenderPass2 ) vkCmdBeginRenderPass2 = vkCmdBeginRenderPass2KHR; vkCmdNextSubpass2KHR = PFN_vkCmdNextSubpass2KHR( vkGetInstanceProcAddr( instance, "vkCmdNextSubpass2KHR" ) ); if ( !vkCmdNextSubpass2 ) vkCmdNextSubpass2 = vkCmdNextSubpass2KHR; vkCmdEndRenderPass2KHR = PFN_vkCmdEndRenderPass2KHR( vkGetInstanceProcAddr( instance, "vkCmdEndRenderPass2KHR" ) ); if ( !vkCmdEndRenderPass2 ) vkCmdEndRenderPass2 = vkCmdEndRenderPass2KHR; //=== VK_KHR_shared_presentable_image === vkGetSwapchainStatusKHR = PFN_vkGetSwapchainStatusKHR( vkGetInstanceProcAddr( instance, "vkGetSwapchainStatusKHR" ) ); //=== VK_KHR_external_fence_capabilities === vkGetPhysicalDeviceExternalFencePropertiesKHR = PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalFencePropertiesKHR" ) ); if ( !vkGetPhysicalDeviceExternalFenceProperties ) vkGetPhysicalDeviceExternalFenceProperties = vkGetPhysicalDeviceExternalFencePropertiesKHR; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_fence_win32 === vkImportFenceWin32HandleKHR = PFN_vkImportFenceWin32HandleKHR( vkGetInstanceProcAddr( instance, "vkImportFenceWin32HandleKHR" ) ); vkGetFenceWin32HandleKHR = PFN_vkGetFenceWin32HandleKHR( vkGetInstanceProcAddr( instance, "vkGetFenceWin32HandleKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_fence_fd === vkImportFenceFdKHR = PFN_vkImportFenceFdKHR( vkGetInstanceProcAddr( instance, "vkImportFenceFdKHR" ) ); vkGetFenceFdKHR = PFN_vkGetFenceFdKHR( vkGetInstanceProcAddr( instance, "vkGetFenceFdKHR" ) ); //=== VK_KHR_performance_query === vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR" ) ); vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR = PFN_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR" ) ); vkAcquireProfilingLockKHR = PFN_vkAcquireProfilingLockKHR( vkGetInstanceProcAddr( instance, "vkAcquireProfilingLockKHR" ) ); vkReleaseProfilingLockKHR = PFN_vkReleaseProfilingLockKHR( vkGetInstanceProcAddr( instance, "vkReleaseProfilingLockKHR" ) ); //=== VK_KHR_get_surface_capabilities2 === vkGetPhysicalDeviceSurfaceCapabilities2KHR = PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceCapabilities2KHR" ) ); vkGetPhysicalDeviceSurfaceFormats2KHR = PFN_vkGetPhysicalDeviceSurfaceFormats2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceFormats2KHR" ) ); //=== VK_KHR_get_display_properties2 === vkGetPhysicalDeviceDisplayProperties2KHR = PFN_vkGetPhysicalDeviceDisplayProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayProperties2KHR" ) ); vkGetPhysicalDeviceDisplayPlaneProperties2KHR = PFN_vkGetPhysicalDeviceDisplayPlaneProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayPlaneProperties2KHR" ) ); vkGetDisplayModeProperties2KHR = PFN_vkGetDisplayModeProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetDisplayModeProperties2KHR" ) ); vkGetDisplayPlaneCapabilities2KHR = PFN_vkGetDisplayPlaneCapabilities2KHR( vkGetInstanceProcAddr( instance, "vkGetDisplayPlaneCapabilities2KHR" ) ); #if defined( VK_USE_PLATFORM_IOS_MVK ) //=== VK_MVK_ios_surface === vkCreateIOSSurfaceMVK = PFN_vkCreateIOSSurfaceMVK( vkGetInstanceProcAddr( instance, "vkCreateIOSSurfaceMVK" ) ); #endif /*VK_USE_PLATFORM_IOS_MVK*/ #if defined( VK_USE_PLATFORM_MACOS_MVK ) //=== VK_MVK_macos_surface === vkCreateMacOSSurfaceMVK = PFN_vkCreateMacOSSurfaceMVK( vkGetInstanceProcAddr( instance, "vkCreateMacOSSurfaceMVK" ) ); #endif /*VK_USE_PLATFORM_MACOS_MVK*/ //=== VK_EXT_debug_utils === vkSetDebugUtilsObjectNameEXT = PFN_vkSetDebugUtilsObjectNameEXT( vkGetInstanceProcAddr( instance, "vkSetDebugUtilsObjectNameEXT" ) ); vkSetDebugUtilsObjectTagEXT = PFN_vkSetDebugUtilsObjectTagEXT( vkGetInstanceProcAddr( instance, "vkSetDebugUtilsObjectTagEXT" ) ); vkQueueBeginDebugUtilsLabelEXT = PFN_vkQueueBeginDebugUtilsLabelEXT( vkGetInstanceProcAddr( instance, "vkQueueBeginDebugUtilsLabelEXT" ) ); vkQueueEndDebugUtilsLabelEXT = PFN_vkQueueEndDebugUtilsLabelEXT( vkGetInstanceProcAddr( instance, "vkQueueEndDebugUtilsLabelEXT" ) ); vkQueueInsertDebugUtilsLabelEXT = PFN_vkQueueInsertDebugUtilsLabelEXT( vkGetInstanceProcAddr( instance, "vkQueueInsertDebugUtilsLabelEXT" ) ); vkCmdBeginDebugUtilsLabelEXT = PFN_vkCmdBeginDebugUtilsLabelEXT( vkGetInstanceProcAddr( instance, "vkCmdBeginDebugUtilsLabelEXT" ) ); vkCmdEndDebugUtilsLabelEXT = PFN_vkCmdEndDebugUtilsLabelEXT( vkGetInstanceProcAddr( instance, "vkCmdEndDebugUtilsLabelEXT" ) ); vkCmdInsertDebugUtilsLabelEXT = PFN_vkCmdInsertDebugUtilsLabelEXT( vkGetInstanceProcAddr( instance, "vkCmdInsertDebugUtilsLabelEXT" ) ); vkCreateDebugUtilsMessengerEXT = PFN_vkCreateDebugUtilsMessengerEXT( vkGetInstanceProcAddr( instance, "vkCreateDebugUtilsMessengerEXT" ) ); vkDestroyDebugUtilsMessengerEXT = PFN_vkDestroyDebugUtilsMessengerEXT( vkGetInstanceProcAddr( instance, "vkDestroyDebugUtilsMessengerEXT" ) ); vkSubmitDebugUtilsMessageEXT = PFN_vkSubmitDebugUtilsMessageEXT( vkGetInstanceProcAddr( instance, "vkSubmitDebugUtilsMessageEXT" ) ); #if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === vkGetAndroidHardwareBufferPropertiesANDROID = PFN_vkGetAndroidHardwareBufferPropertiesANDROID( vkGetInstanceProcAddr( instance, "vkGetAndroidHardwareBufferPropertiesANDROID" ) ); vkGetMemoryAndroidHardwareBufferANDROID = PFN_vkGetMemoryAndroidHardwareBufferANDROID( vkGetInstanceProcAddr( instance, "vkGetMemoryAndroidHardwareBufferANDROID" ) ); #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ //=== VK_EXT_sample_locations === vkCmdSetSampleLocationsEXT = PFN_vkCmdSetSampleLocationsEXT( vkGetInstanceProcAddr( instance, "vkCmdSetSampleLocationsEXT" ) ); vkGetPhysicalDeviceMultisamplePropertiesEXT = PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMultisamplePropertiesEXT" ) ); //=== VK_KHR_get_memory_requirements2 === vkGetImageMemoryRequirements2KHR = PFN_vkGetImageMemoryRequirements2KHR( vkGetInstanceProcAddr( instance, "vkGetImageMemoryRequirements2KHR" ) ); if ( !vkGetImageMemoryRequirements2 ) vkGetImageMemoryRequirements2 = vkGetImageMemoryRequirements2KHR; vkGetBufferMemoryRequirements2KHR = PFN_vkGetBufferMemoryRequirements2KHR( vkGetInstanceProcAddr( instance, "vkGetBufferMemoryRequirements2KHR" ) ); if ( !vkGetBufferMemoryRequirements2 ) vkGetBufferMemoryRequirements2 = vkGetBufferMemoryRequirements2KHR; vkGetImageSparseMemoryRequirements2KHR = PFN_vkGetImageSparseMemoryRequirements2KHR( vkGetInstanceProcAddr( instance, "vkGetImageSparseMemoryRequirements2KHR" ) ); if ( !vkGetImageSparseMemoryRequirements2 ) vkGetImageSparseMemoryRequirements2 = vkGetImageSparseMemoryRequirements2KHR; //=== VK_KHR_acceleration_structure === vkCreateAccelerationStructureKHR = PFN_vkCreateAccelerationStructureKHR( vkGetInstanceProcAddr( instance, "vkCreateAccelerationStructureKHR" ) ); vkDestroyAccelerationStructureKHR = PFN_vkDestroyAccelerationStructureKHR( vkGetInstanceProcAddr( instance, "vkDestroyAccelerationStructureKHR" ) ); vkCmdBuildAccelerationStructuresKHR = PFN_vkCmdBuildAccelerationStructuresKHR( vkGetInstanceProcAddr( instance, "vkCmdBuildAccelerationStructuresKHR" ) ); vkCmdBuildAccelerationStructuresIndirectKHR = PFN_vkCmdBuildAccelerationStructuresIndirectKHR( vkGetInstanceProcAddr( instance, "vkCmdBuildAccelerationStructuresIndirectKHR" ) ); vkBuildAccelerationStructuresKHR = PFN_vkBuildAccelerationStructuresKHR( vkGetInstanceProcAddr( instance, "vkBuildAccelerationStructuresKHR" ) ); vkCopyAccelerationStructureKHR = PFN_vkCopyAccelerationStructureKHR( vkGetInstanceProcAddr( instance, "vkCopyAccelerationStructureKHR" ) ); vkCopyAccelerationStructureToMemoryKHR = PFN_vkCopyAccelerationStructureToMemoryKHR( vkGetInstanceProcAddr( instance, "vkCopyAccelerationStructureToMemoryKHR" ) ); vkCopyMemoryToAccelerationStructureKHR = PFN_vkCopyMemoryToAccelerationStructureKHR( vkGetInstanceProcAddr( instance, "vkCopyMemoryToAccelerationStructureKHR" ) ); vkWriteAccelerationStructuresPropertiesKHR = PFN_vkWriteAccelerationStructuresPropertiesKHR( vkGetInstanceProcAddr( instance, "vkWriteAccelerationStructuresPropertiesKHR" ) ); vkCmdCopyAccelerationStructureKHR = PFN_vkCmdCopyAccelerationStructureKHR( vkGetInstanceProcAddr( instance, "vkCmdCopyAccelerationStructureKHR" ) ); vkCmdCopyAccelerationStructureToMemoryKHR = PFN_vkCmdCopyAccelerationStructureToMemoryKHR( vkGetInstanceProcAddr( instance, "vkCmdCopyAccelerationStructureToMemoryKHR" ) ); vkCmdCopyMemoryToAccelerationStructureKHR = PFN_vkCmdCopyMemoryToAccelerationStructureKHR( vkGetInstanceProcAddr( instance, "vkCmdCopyMemoryToAccelerationStructureKHR" ) ); vkGetAccelerationStructureDeviceAddressKHR = PFN_vkGetAccelerationStructureDeviceAddressKHR( vkGetInstanceProcAddr( instance, "vkGetAccelerationStructureDeviceAddressKHR" ) ); vkCmdWriteAccelerationStructuresPropertiesKHR = PFN_vkCmdWriteAccelerationStructuresPropertiesKHR( vkGetInstanceProcAddr( instance, "vkCmdWriteAccelerationStructuresPropertiesKHR" ) ); vkGetDeviceAccelerationStructureCompatibilityKHR = PFN_vkGetDeviceAccelerationStructureCompatibilityKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceAccelerationStructureCompatibilityKHR" ) ); vkGetAccelerationStructureBuildSizesKHR = PFN_vkGetAccelerationStructureBuildSizesKHR( vkGetInstanceProcAddr( instance, "vkGetAccelerationStructureBuildSizesKHR" ) ); //=== VK_KHR_sampler_ycbcr_conversion === vkCreateSamplerYcbcrConversionKHR = PFN_vkCreateSamplerYcbcrConversionKHR( vkGetInstanceProcAddr( instance, "vkCreateSamplerYcbcrConversionKHR" ) ); if ( !vkCreateSamplerYcbcrConversion ) vkCreateSamplerYcbcrConversion = vkCreateSamplerYcbcrConversionKHR; vkDestroySamplerYcbcrConversionKHR = PFN_vkDestroySamplerYcbcrConversionKHR( vkGetInstanceProcAddr( instance, "vkDestroySamplerYcbcrConversionKHR" ) ); if ( !vkDestroySamplerYcbcrConversion ) vkDestroySamplerYcbcrConversion = vkDestroySamplerYcbcrConversionKHR; //=== VK_KHR_bind_memory2 === vkBindBufferMemory2KHR = PFN_vkBindBufferMemory2KHR( vkGetInstanceProcAddr( instance, "vkBindBufferMemory2KHR" ) ); if ( !vkBindBufferMemory2 ) vkBindBufferMemory2 = vkBindBufferMemory2KHR; vkBindImageMemory2KHR = PFN_vkBindImageMemory2KHR( vkGetInstanceProcAddr( instance, "vkBindImageMemory2KHR" ) ); if ( !vkBindImageMemory2 ) vkBindImageMemory2 = vkBindImageMemory2KHR; //=== VK_EXT_image_drm_format_modifier === vkGetImageDrmFormatModifierPropertiesEXT = PFN_vkGetImageDrmFormatModifierPropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetImageDrmFormatModifierPropertiesEXT" ) ); //=== VK_EXT_validation_cache === vkCreateValidationCacheEXT = PFN_vkCreateValidationCacheEXT( vkGetInstanceProcAddr( instance, "vkCreateValidationCacheEXT" ) ); vkDestroyValidationCacheEXT = PFN_vkDestroyValidationCacheEXT( vkGetInstanceProcAddr( instance, "vkDestroyValidationCacheEXT" ) ); vkMergeValidationCachesEXT = PFN_vkMergeValidationCachesEXT( vkGetInstanceProcAddr( instance, "vkMergeValidationCachesEXT" ) ); vkGetValidationCacheDataEXT = PFN_vkGetValidationCacheDataEXT( vkGetInstanceProcAddr( instance, "vkGetValidationCacheDataEXT" ) ); //=== VK_NV_shading_rate_image === vkCmdBindShadingRateImageNV = PFN_vkCmdBindShadingRateImageNV( vkGetInstanceProcAddr( instance, "vkCmdBindShadingRateImageNV" ) ); vkCmdSetViewportShadingRatePaletteNV = PFN_vkCmdSetViewportShadingRatePaletteNV( vkGetInstanceProcAddr( instance, "vkCmdSetViewportShadingRatePaletteNV" ) ); vkCmdSetCoarseSampleOrderNV = PFN_vkCmdSetCoarseSampleOrderNV( vkGetInstanceProcAddr( instance, "vkCmdSetCoarseSampleOrderNV" ) ); //=== VK_NV_ray_tracing === vkCreateAccelerationStructureNV = PFN_vkCreateAccelerationStructureNV( vkGetInstanceProcAddr( instance, "vkCreateAccelerationStructureNV" ) ); vkDestroyAccelerationStructureNV = PFN_vkDestroyAccelerationStructureNV( vkGetInstanceProcAddr( instance, "vkDestroyAccelerationStructureNV" ) ); vkGetAccelerationStructureMemoryRequirementsNV = PFN_vkGetAccelerationStructureMemoryRequirementsNV( vkGetInstanceProcAddr( instance, "vkGetAccelerationStructureMemoryRequirementsNV" ) ); vkBindAccelerationStructureMemoryNV = PFN_vkBindAccelerationStructureMemoryNV( vkGetInstanceProcAddr( instance, "vkBindAccelerationStructureMemoryNV" ) ); vkCmdBuildAccelerationStructureNV = PFN_vkCmdBuildAccelerationStructureNV( vkGetInstanceProcAddr( instance, "vkCmdBuildAccelerationStructureNV" ) ); vkCmdCopyAccelerationStructureNV = PFN_vkCmdCopyAccelerationStructureNV( vkGetInstanceProcAddr( instance, "vkCmdCopyAccelerationStructureNV" ) ); vkCmdTraceRaysNV = PFN_vkCmdTraceRaysNV( vkGetInstanceProcAddr( instance, "vkCmdTraceRaysNV" ) ); vkCreateRayTracingPipelinesNV = PFN_vkCreateRayTracingPipelinesNV( vkGetInstanceProcAddr( instance, "vkCreateRayTracingPipelinesNV" ) ); vkGetRayTracingShaderGroupHandlesNV = PFN_vkGetRayTracingShaderGroupHandlesNV( vkGetInstanceProcAddr( instance, "vkGetRayTracingShaderGroupHandlesNV" ) ); if ( !vkGetRayTracingShaderGroupHandlesKHR ) vkGetRayTracingShaderGroupHandlesKHR = vkGetRayTracingShaderGroupHandlesNV; vkGetAccelerationStructureHandleNV = PFN_vkGetAccelerationStructureHandleNV( vkGetInstanceProcAddr( instance, "vkGetAccelerationStructureHandleNV" ) ); vkCmdWriteAccelerationStructuresPropertiesNV = PFN_vkCmdWriteAccelerationStructuresPropertiesNV( vkGetInstanceProcAddr( instance, "vkCmdWriteAccelerationStructuresPropertiesNV" ) ); vkCompileDeferredNV = PFN_vkCompileDeferredNV( vkGetInstanceProcAddr( instance, "vkCompileDeferredNV" ) ); //=== VK_KHR_maintenance3 === vkGetDescriptorSetLayoutSupportKHR = PFN_vkGetDescriptorSetLayoutSupportKHR( vkGetInstanceProcAddr( instance, "vkGetDescriptorSetLayoutSupportKHR" ) ); if ( !vkGetDescriptorSetLayoutSupport ) vkGetDescriptorSetLayoutSupport = vkGetDescriptorSetLayoutSupportKHR; //=== VK_KHR_draw_indirect_count === vkCmdDrawIndirectCountKHR = PFN_vkCmdDrawIndirectCountKHR( vkGetInstanceProcAddr( instance, "vkCmdDrawIndirectCountKHR" ) ); if ( !vkCmdDrawIndirectCount ) vkCmdDrawIndirectCount = vkCmdDrawIndirectCountKHR; vkCmdDrawIndexedIndirectCountKHR = PFN_vkCmdDrawIndexedIndirectCountKHR( vkGetInstanceProcAddr( instance, "vkCmdDrawIndexedIndirectCountKHR" ) ); if ( !vkCmdDrawIndexedIndirectCount ) vkCmdDrawIndexedIndirectCount = vkCmdDrawIndexedIndirectCountKHR; //=== VK_EXT_external_memory_host === vkGetMemoryHostPointerPropertiesEXT = PFN_vkGetMemoryHostPointerPropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetMemoryHostPointerPropertiesEXT" ) ); //=== VK_AMD_buffer_marker === vkCmdWriteBufferMarkerAMD = PFN_vkCmdWriteBufferMarkerAMD( vkGetInstanceProcAddr( instance, "vkCmdWriteBufferMarkerAMD" ) ); //=== VK_EXT_calibrated_timestamps === vkGetPhysicalDeviceCalibrateableTimeDomainsEXT = PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCalibrateableTimeDomainsEXT" ) ); vkGetCalibratedTimestampsEXT = PFN_vkGetCalibratedTimestampsEXT( vkGetInstanceProcAddr( instance, "vkGetCalibratedTimestampsEXT" ) ); //=== VK_NV_mesh_shader === vkCmdDrawMeshTasksNV = PFN_vkCmdDrawMeshTasksNV( vkGetInstanceProcAddr( instance, "vkCmdDrawMeshTasksNV" ) ); vkCmdDrawMeshTasksIndirectNV = PFN_vkCmdDrawMeshTasksIndirectNV( vkGetInstanceProcAddr( instance, "vkCmdDrawMeshTasksIndirectNV" ) ); vkCmdDrawMeshTasksIndirectCountNV = PFN_vkCmdDrawMeshTasksIndirectCountNV( vkGetInstanceProcAddr( instance, "vkCmdDrawMeshTasksIndirectCountNV" ) ); //=== VK_NV_scissor_exclusive === vkCmdSetExclusiveScissorNV = PFN_vkCmdSetExclusiveScissorNV( vkGetInstanceProcAddr( instance, "vkCmdSetExclusiveScissorNV" ) ); //=== VK_NV_device_diagnostic_checkpoints === vkCmdSetCheckpointNV = PFN_vkCmdSetCheckpointNV( vkGetInstanceProcAddr( instance, "vkCmdSetCheckpointNV" ) ); vkGetQueueCheckpointDataNV = PFN_vkGetQueueCheckpointDataNV( vkGetInstanceProcAddr( instance, "vkGetQueueCheckpointDataNV" ) ); //=== VK_KHR_timeline_semaphore === vkGetSemaphoreCounterValueKHR = PFN_vkGetSemaphoreCounterValueKHR( vkGetInstanceProcAddr( instance, "vkGetSemaphoreCounterValueKHR" ) ); if ( !vkGetSemaphoreCounterValue ) vkGetSemaphoreCounterValue = vkGetSemaphoreCounterValueKHR; vkWaitSemaphoresKHR = PFN_vkWaitSemaphoresKHR( vkGetInstanceProcAddr( instance, "vkWaitSemaphoresKHR" ) ); if ( !vkWaitSemaphores ) vkWaitSemaphores = vkWaitSemaphoresKHR; vkSignalSemaphoreKHR = PFN_vkSignalSemaphoreKHR( vkGetInstanceProcAddr( instance, "vkSignalSemaphoreKHR" ) ); if ( !vkSignalSemaphore ) vkSignalSemaphore = vkSignalSemaphoreKHR; //=== VK_INTEL_performance_query === vkInitializePerformanceApiINTEL = PFN_vkInitializePerformanceApiINTEL( vkGetInstanceProcAddr( instance, "vkInitializePerformanceApiINTEL" ) ); vkUninitializePerformanceApiINTEL = PFN_vkUninitializePerformanceApiINTEL( vkGetInstanceProcAddr( instance, "vkUninitializePerformanceApiINTEL" ) ); vkCmdSetPerformanceMarkerINTEL = PFN_vkCmdSetPerformanceMarkerINTEL( vkGetInstanceProcAddr( instance, "vkCmdSetPerformanceMarkerINTEL" ) ); vkCmdSetPerformanceStreamMarkerINTEL = PFN_vkCmdSetPerformanceStreamMarkerINTEL( vkGetInstanceProcAddr( instance, "vkCmdSetPerformanceStreamMarkerINTEL" ) ); vkCmdSetPerformanceOverrideINTEL = PFN_vkCmdSetPerformanceOverrideINTEL( vkGetInstanceProcAddr( instance, "vkCmdSetPerformanceOverrideINTEL" ) ); vkAcquirePerformanceConfigurationINTEL = PFN_vkAcquirePerformanceConfigurationINTEL( vkGetInstanceProcAddr( instance, "vkAcquirePerformanceConfigurationINTEL" ) ); vkReleasePerformanceConfigurationINTEL = PFN_vkReleasePerformanceConfigurationINTEL( vkGetInstanceProcAddr( instance, "vkReleasePerformanceConfigurationINTEL" ) ); vkQueueSetPerformanceConfigurationINTEL = PFN_vkQueueSetPerformanceConfigurationINTEL( vkGetInstanceProcAddr( instance, "vkQueueSetPerformanceConfigurationINTEL" ) ); vkGetPerformanceParameterINTEL = PFN_vkGetPerformanceParameterINTEL( vkGetInstanceProcAddr( instance, "vkGetPerformanceParameterINTEL" ) ); //=== VK_AMD_display_native_hdr === vkSetLocalDimmingAMD = PFN_vkSetLocalDimmingAMD( vkGetInstanceProcAddr( instance, "vkSetLocalDimmingAMD" ) ); #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_imagepipe_surface === vkCreateImagePipeSurfaceFUCHSIA = PFN_vkCreateImagePipeSurfaceFUCHSIA( vkGetInstanceProcAddr( instance, "vkCreateImagePipeSurfaceFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_surface === vkCreateMetalSurfaceEXT = PFN_vkCreateMetalSurfaceEXT( vkGetInstanceProcAddr( instance, "vkCreateMetalSurfaceEXT" ) ); #endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_fragment_shading_rate === vkGetPhysicalDeviceFragmentShadingRatesKHR = PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFragmentShadingRatesKHR" ) ); vkCmdSetFragmentShadingRateKHR = PFN_vkCmdSetFragmentShadingRateKHR( vkGetInstanceProcAddr( instance, "vkCmdSetFragmentShadingRateKHR" ) ); //=== VK_EXT_buffer_device_address === vkGetBufferDeviceAddressEXT = PFN_vkGetBufferDeviceAddressEXT( vkGetInstanceProcAddr( instance, "vkGetBufferDeviceAddressEXT" ) ); if ( !vkGetBufferDeviceAddress ) vkGetBufferDeviceAddress = vkGetBufferDeviceAddressEXT; //=== VK_EXT_tooling_info === vkGetPhysicalDeviceToolPropertiesEXT = PFN_vkGetPhysicalDeviceToolPropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceToolPropertiesEXT" ) ); if ( !vkGetPhysicalDeviceToolProperties ) vkGetPhysicalDeviceToolProperties = vkGetPhysicalDeviceToolPropertiesEXT; //=== VK_KHR_present_wait === vkWaitForPresentKHR = PFN_vkWaitForPresentKHR( vkGetInstanceProcAddr( instance, "vkWaitForPresentKHR" ) ); //=== VK_NV_cooperative_matrix === vkGetPhysicalDeviceCooperativeMatrixPropertiesNV = PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeMatrixPropertiesNV" ) ); //=== VK_NV_coverage_reduction_mode === vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV = PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV" ) ); #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_EXT_full_screen_exclusive === vkGetPhysicalDeviceSurfacePresentModes2EXT = PFN_vkGetPhysicalDeviceSurfacePresentModes2EXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfacePresentModes2EXT" ) ); vkAcquireFullScreenExclusiveModeEXT = PFN_vkAcquireFullScreenExclusiveModeEXT( vkGetInstanceProcAddr( instance, "vkAcquireFullScreenExclusiveModeEXT" ) ); vkReleaseFullScreenExclusiveModeEXT = PFN_vkReleaseFullScreenExclusiveModeEXT( vkGetInstanceProcAddr( instance, "vkReleaseFullScreenExclusiveModeEXT" ) ); vkGetDeviceGroupSurfacePresentModes2EXT = PFN_vkGetDeviceGroupSurfacePresentModes2EXT( vkGetInstanceProcAddr( instance, "vkGetDeviceGroupSurfacePresentModes2EXT" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_EXT_headless_surface === vkCreateHeadlessSurfaceEXT = PFN_vkCreateHeadlessSurfaceEXT( vkGetInstanceProcAddr( instance, "vkCreateHeadlessSurfaceEXT" ) ); //=== VK_KHR_buffer_device_address === vkGetBufferDeviceAddressKHR = PFN_vkGetBufferDeviceAddressKHR( vkGetInstanceProcAddr( instance, "vkGetBufferDeviceAddressKHR" ) ); if ( !vkGetBufferDeviceAddress ) vkGetBufferDeviceAddress = vkGetBufferDeviceAddressKHR; vkGetBufferOpaqueCaptureAddressKHR = PFN_vkGetBufferOpaqueCaptureAddressKHR( vkGetInstanceProcAddr( instance, "vkGetBufferOpaqueCaptureAddressKHR" ) ); if ( !vkGetBufferOpaqueCaptureAddress ) vkGetBufferOpaqueCaptureAddress = vkGetBufferOpaqueCaptureAddressKHR; vkGetDeviceMemoryOpaqueCaptureAddressKHR = PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceMemoryOpaqueCaptureAddressKHR" ) ); if ( !vkGetDeviceMemoryOpaqueCaptureAddress ) vkGetDeviceMemoryOpaqueCaptureAddress = vkGetDeviceMemoryOpaqueCaptureAddressKHR; //=== VK_EXT_line_rasterization === vkCmdSetLineStippleEXT = PFN_vkCmdSetLineStippleEXT( vkGetInstanceProcAddr( instance, "vkCmdSetLineStippleEXT" ) ); //=== VK_EXT_host_query_reset === vkResetQueryPoolEXT = PFN_vkResetQueryPoolEXT( vkGetInstanceProcAddr( instance, "vkResetQueryPoolEXT" ) ); if ( !vkResetQueryPool ) vkResetQueryPool = vkResetQueryPoolEXT; //=== VK_EXT_extended_dynamic_state === vkCmdSetCullModeEXT = PFN_vkCmdSetCullModeEXT( vkGetInstanceProcAddr( instance, "vkCmdSetCullModeEXT" ) ); if ( !vkCmdSetCullMode ) vkCmdSetCullMode = vkCmdSetCullModeEXT; vkCmdSetFrontFaceEXT = PFN_vkCmdSetFrontFaceEXT( vkGetInstanceProcAddr( instance, "vkCmdSetFrontFaceEXT" ) ); if ( !vkCmdSetFrontFace ) vkCmdSetFrontFace = vkCmdSetFrontFaceEXT; vkCmdSetPrimitiveTopologyEXT = PFN_vkCmdSetPrimitiveTopologyEXT( vkGetInstanceProcAddr( instance, "vkCmdSetPrimitiveTopologyEXT" ) ); if ( !vkCmdSetPrimitiveTopology ) vkCmdSetPrimitiveTopology = vkCmdSetPrimitiveTopologyEXT; vkCmdSetViewportWithCountEXT = PFN_vkCmdSetViewportWithCountEXT( vkGetInstanceProcAddr( instance, "vkCmdSetViewportWithCountEXT" ) ); if ( !vkCmdSetViewportWithCount ) vkCmdSetViewportWithCount = vkCmdSetViewportWithCountEXT; vkCmdSetScissorWithCountEXT = PFN_vkCmdSetScissorWithCountEXT( vkGetInstanceProcAddr( instance, "vkCmdSetScissorWithCountEXT" ) ); if ( !vkCmdSetScissorWithCount ) vkCmdSetScissorWithCount = vkCmdSetScissorWithCountEXT; vkCmdBindVertexBuffers2EXT = PFN_vkCmdBindVertexBuffers2EXT( vkGetInstanceProcAddr( instance, "vkCmdBindVertexBuffers2EXT" ) ); if ( !vkCmdBindVertexBuffers2 ) vkCmdBindVertexBuffers2 = vkCmdBindVertexBuffers2EXT; vkCmdSetDepthTestEnableEXT = PFN_vkCmdSetDepthTestEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetDepthTestEnableEXT" ) ); if ( !vkCmdSetDepthTestEnable ) vkCmdSetDepthTestEnable = vkCmdSetDepthTestEnableEXT; vkCmdSetDepthWriteEnableEXT = PFN_vkCmdSetDepthWriteEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetDepthWriteEnableEXT" ) ); if ( !vkCmdSetDepthWriteEnable ) vkCmdSetDepthWriteEnable = vkCmdSetDepthWriteEnableEXT; vkCmdSetDepthCompareOpEXT = PFN_vkCmdSetDepthCompareOpEXT( vkGetInstanceProcAddr( instance, "vkCmdSetDepthCompareOpEXT" ) ); if ( !vkCmdSetDepthCompareOp ) vkCmdSetDepthCompareOp = vkCmdSetDepthCompareOpEXT; vkCmdSetDepthBoundsTestEnableEXT = PFN_vkCmdSetDepthBoundsTestEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetDepthBoundsTestEnableEXT" ) ); if ( !vkCmdSetDepthBoundsTestEnable ) vkCmdSetDepthBoundsTestEnable = vkCmdSetDepthBoundsTestEnableEXT; vkCmdSetStencilTestEnableEXT = PFN_vkCmdSetStencilTestEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetStencilTestEnableEXT" ) ); if ( !vkCmdSetStencilTestEnable ) vkCmdSetStencilTestEnable = vkCmdSetStencilTestEnableEXT; vkCmdSetStencilOpEXT = PFN_vkCmdSetStencilOpEXT( vkGetInstanceProcAddr( instance, "vkCmdSetStencilOpEXT" ) ); if ( !vkCmdSetStencilOp ) vkCmdSetStencilOp = vkCmdSetStencilOpEXT; //=== VK_KHR_deferred_host_operations === vkCreateDeferredOperationKHR = PFN_vkCreateDeferredOperationKHR( vkGetInstanceProcAddr( instance, "vkCreateDeferredOperationKHR" ) ); vkDestroyDeferredOperationKHR = PFN_vkDestroyDeferredOperationKHR( vkGetInstanceProcAddr( instance, "vkDestroyDeferredOperationKHR" ) ); vkGetDeferredOperationMaxConcurrencyKHR = PFN_vkGetDeferredOperationMaxConcurrencyKHR( vkGetInstanceProcAddr( instance, "vkGetDeferredOperationMaxConcurrencyKHR" ) ); vkGetDeferredOperationResultKHR = PFN_vkGetDeferredOperationResultKHR( vkGetInstanceProcAddr( instance, "vkGetDeferredOperationResultKHR" ) ); vkDeferredOperationJoinKHR = PFN_vkDeferredOperationJoinKHR( vkGetInstanceProcAddr( instance, "vkDeferredOperationJoinKHR" ) ); //=== VK_KHR_pipeline_executable_properties === vkGetPipelineExecutablePropertiesKHR = PFN_vkGetPipelineExecutablePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPipelineExecutablePropertiesKHR" ) ); vkGetPipelineExecutableStatisticsKHR = PFN_vkGetPipelineExecutableStatisticsKHR( vkGetInstanceProcAddr( instance, "vkGetPipelineExecutableStatisticsKHR" ) ); vkGetPipelineExecutableInternalRepresentationsKHR = PFN_vkGetPipelineExecutableInternalRepresentationsKHR( vkGetInstanceProcAddr( instance, "vkGetPipelineExecutableInternalRepresentationsKHR" ) ); //=== VK_NV_device_generated_commands === vkGetGeneratedCommandsMemoryRequirementsNV = PFN_vkGetGeneratedCommandsMemoryRequirementsNV( vkGetInstanceProcAddr( instance, "vkGetGeneratedCommandsMemoryRequirementsNV" ) ); vkCmdPreprocessGeneratedCommandsNV = PFN_vkCmdPreprocessGeneratedCommandsNV( vkGetInstanceProcAddr( instance, "vkCmdPreprocessGeneratedCommandsNV" ) ); vkCmdExecuteGeneratedCommandsNV = PFN_vkCmdExecuteGeneratedCommandsNV( vkGetInstanceProcAddr( instance, "vkCmdExecuteGeneratedCommandsNV" ) ); vkCmdBindPipelineShaderGroupNV = PFN_vkCmdBindPipelineShaderGroupNV( vkGetInstanceProcAddr( instance, "vkCmdBindPipelineShaderGroupNV" ) ); vkCreateIndirectCommandsLayoutNV = PFN_vkCreateIndirectCommandsLayoutNV( vkGetInstanceProcAddr( instance, "vkCreateIndirectCommandsLayoutNV" ) ); vkDestroyIndirectCommandsLayoutNV = PFN_vkDestroyIndirectCommandsLayoutNV( vkGetInstanceProcAddr( instance, "vkDestroyIndirectCommandsLayoutNV" ) ); //=== VK_EXT_acquire_drm_display === vkAcquireDrmDisplayEXT = PFN_vkAcquireDrmDisplayEXT( vkGetInstanceProcAddr( instance, "vkAcquireDrmDisplayEXT" ) ); vkGetDrmDisplayEXT = PFN_vkGetDrmDisplayEXT( vkGetInstanceProcAddr( instance, "vkGetDrmDisplayEXT" ) ); //=== VK_EXT_private_data === vkCreatePrivateDataSlotEXT = PFN_vkCreatePrivateDataSlotEXT( vkGetInstanceProcAddr( instance, "vkCreatePrivateDataSlotEXT" ) ); if ( !vkCreatePrivateDataSlot ) vkCreatePrivateDataSlot = vkCreatePrivateDataSlotEXT; vkDestroyPrivateDataSlotEXT = PFN_vkDestroyPrivateDataSlotEXT( vkGetInstanceProcAddr( instance, "vkDestroyPrivateDataSlotEXT" ) ); if ( !vkDestroyPrivateDataSlot ) vkDestroyPrivateDataSlot = vkDestroyPrivateDataSlotEXT; vkSetPrivateDataEXT = PFN_vkSetPrivateDataEXT( vkGetInstanceProcAddr( instance, "vkSetPrivateDataEXT" ) ); if ( !vkSetPrivateData ) vkSetPrivateData = vkSetPrivateDataEXT; vkGetPrivateDataEXT = PFN_vkGetPrivateDataEXT( vkGetInstanceProcAddr( instance, "vkGetPrivateDataEXT" ) ); if ( !vkGetPrivateData ) vkGetPrivateData = vkGetPrivateDataEXT; #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_encode_queue === vkCmdEncodeVideoKHR = PFN_vkCmdEncodeVideoKHR( vkGetInstanceProcAddr( instance, "vkCmdEncodeVideoKHR" ) ); #endif /*VK_ENABLE_BETA_EXTENSIONS*/ #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === vkExportMetalObjectsEXT = PFN_vkExportMetalObjectsEXT( vkGetInstanceProcAddr( instance, "vkExportMetalObjectsEXT" ) ); #endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_synchronization2 === vkCmdSetEvent2KHR = PFN_vkCmdSetEvent2KHR( vkGetInstanceProcAddr( instance, "vkCmdSetEvent2KHR" ) ); if ( !vkCmdSetEvent2 ) vkCmdSetEvent2 = vkCmdSetEvent2KHR; vkCmdResetEvent2KHR = PFN_vkCmdResetEvent2KHR( vkGetInstanceProcAddr( instance, "vkCmdResetEvent2KHR" ) ); if ( !vkCmdResetEvent2 ) vkCmdResetEvent2 = vkCmdResetEvent2KHR; vkCmdWaitEvents2KHR = PFN_vkCmdWaitEvents2KHR( vkGetInstanceProcAddr( instance, "vkCmdWaitEvents2KHR" ) ); if ( !vkCmdWaitEvents2 ) vkCmdWaitEvents2 = vkCmdWaitEvents2KHR; vkCmdPipelineBarrier2KHR = PFN_vkCmdPipelineBarrier2KHR( vkGetInstanceProcAddr( instance, "vkCmdPipelineBarrier2KHR" ) ); if ( !vkCmdPipelineBarrier2 ) vkCmdPipelineBarrier2 = vkCmdPipelineBarrier2KHR; vkCmdWriteTimestamp2KHR = PFN_vkCmdWriteTimestamp2KHR( vkGetInstanceProcAddr( instance, "vkCmdWriteTimestamp2KHR" ) ); if ( !vkCmdWriteTimestamp2 ) vkCmdWriteTimestamp2 = vkCmdWriteTimestamp2KHR; vkQueueSubmit2KHR = PFN_vkQueueSubmit2KHR( vkGetInstanceProcAddr( instance, "vkQueueSubmit2KHR" ) ); if ( !vkQueueSubmit2 ) vkQueueSubmit2 = vkQueueSubmit2KHR; vkCmdWriteBufferMarker2AMD = PFN_vkCmdWriteBufferMarker2AMD( vkGetInstanceProcAddr( instance, "vkCmdWriteBufferMarker2AMD" ) ); vkGetQueueCheckpointData2NV = PFN_vkGetQueueCheckpointData2NV( vkGetInstanceProcAddr( instance, "vkGetQueueCheckpointData2NV" ) ); //=== VK_NV_fragment_shading_rate_enums === vkCmdSetFragmentShadingRateEnumNV = PFN_vkCmdSetFragmentShadingRateEnumNV( vkGetInstanceProcAddr( instance, "vkCmdSetFragmentShadingRateEnumNV" ) ); //=== VK_KHR_copy_commands2 === vkCmdCopyBuffer2KHR = PFN_vkCmdCopyBuffer2KHR( vkGetInstanceProcAddr( instance, "vkCmdCopyBuffer2KHR" ) ); if ( !vkCmdCopyBuffer2 ) vkCmdCopyBuffer2 = vkCmdCopyBuffer2KHR; vkCmdCopyImage2KHR = PFN_vkCmdCopyImage2KHR( vkGetInstanceProcAddr( instance, "vkCmdCopyImage2KHR" ) ); if ( !vkCmdCopyImage2 ) vkCmdCopyImage2 = vkCmdCopyImage2KHR; vkCmdCopyBufferToImage2KHR = PFN_vkCmdCopyBufferToImage2KHR( vkGetInstanceProcAddr( instance, "vkCmdCopyBufferToImage2KHR" ) ); if ( !vkCmdCopyBufferToImage2 ) vkCmdCopyBufferToImage2 = vkCmdCopyBufferToImage2KHR; vkCmdCopyImageToBuffer2KHR = PFN_vkCmdCopyImageToBuffer2KHR( vkGetInstanceProcAddr( instance, "vkCmdCopyImageToBuffer2KHR" ) ); if ( !vkCmdCopyImageToBuffer2 ) vkCmdCopyImageToBuffer2 = vkCmdCopyImageToBuffer2KHR; vkCmdBlitImage2KHR = PFN_vkCmdBlitImage2KHR( vkGetInstanceProcAddr( instance, "vkCmdBlitImage2KHR" ) ); if ( !vkCmdBlitImage2 ) vkCmdBlitImage2 = vkCmdBlitImage2KHR; vkCmdResolveImage2KHR = PFN_vkCmdResolveImage2KHR( vkGetInstanceProcAddr( instance, "vkCmdResolveImage2KHR" ) ); if ( !vkCmdResolveImage2 ) vkCmdResolveImage2 = vkCmdResolveImage2KHR; //=== VK_EXT_image_compression_control === vkGetImageSubresourceLayout2EXT = PFN_vkGetImageSubresourceLayout2EXT( vkGetInstanceProcAddr( instance, "vkGetImageSubresourceLayout2EXT" ) ); #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_acquire_winrt_display === vkAcquireWinrtDisplayNV = PFN_vkAcquireWinrtDisplayNV( vkGetInstanceProcAddr( instance, "vkAcquireWinrtDisplayNV" ) ); vkGetWinrtDisplayNV = PFN_vkGetWinrtDisplayNV( vkGetInstanceProcAddr( instance, "vkGetWinrtDisplayNV" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ #if defined( VK_USE_PLATFORM_DIRECTFB_EXT ) //=== VK_EXT_directfb_surface === vkCreateDirectFBSurfaceEXT = PFN_vkCreateDirectFBSurfaceEXT( vkGetInstanceProcAddr( instance, "vkCreateDirectFBSurfaceEXT" ) ); vkGetPhysicalDeviceDirectFBPresentationSupportEXT = PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDirectFBPresentationSupportEXT" ) ); #endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/ //=== VK_KHR_ray_tracing_pipeline === vkCmdTraceRaysKHR = PFN_vkCmdTraceRaysKHR( vkGetInstanceProcAddr( instance, "vkCmdTraceRaysKHR" ) ); vkCreateRayTracingPipelinesKHR = PFN_vkCreateRayTracingPipelinesKHR( vkGetInstanceProcAddr( instance, "vkCreateRayTracingPipelinesKHR" ) ); vkGetRayTracingShaderGroupHandlesKHR = PFN_vkGetRayTracingShaderGroupHandlesKHR( vkGetInstanceProcAddr( instance, "vkGetRayTracingShaderGroupHandlesKHR" ) ); vkGetRayTracingCaptureReplayShaderGroupHandlesKHR = PFN_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( vkGetInstanceProcAddr( instance, "vkGetRayTracingCaptureReplayShaderGroupHandlesKHR" ) ); vkCmdTraceRaysIndirectKHR = PFN_vkCmdTraceRaysIndirectKHR( vkGetInstanceProcAddr( instance, "vkCmdTraceRaysIndirectKHR" ) ); vkGetRayTracingShaderGroupStackSizeKHR = PFN_vkGetRayTracingShaderGroupStackSizeKHR( vkGetInstanceProcAddr( instance, "vkGetRayTracingShaderGroupStackSizeKHR" ) ); vkCmdSetRayTracingPipelineStackSizeKHR = PFN_vkCmdSetRayTracingPipelineStackSizeKHR( vkGetInstanceProcAddr( instance, "vkCmdSetRayTracingPipelineStackSizeKHR" ) ); //=== VK_EXT_vertex_input_dynamic_state === vkCmdSetVertexInputEXT = PFN_vkCmdSetVertexInputEXT( vkGetInstanceProcAddr( instance, "vkCmdSetVertexInputEXT" ) ); #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_memory === vkGetMemoryZirconHandleFUCHSIA = PFN_vkGetMemoryZirconHandleFUCHSIA( vkGetInstanceProcAddr( instance, "vkGetMemoryZirconHandleFUCHSIA" ) ); vkGetMemoryZirconHandlePropertiesFUCHSIA = PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA( vkGetInstanceProcAddr( instance, "vkGetMemoryZirconHandlePropertiesFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_semaphore === vkImportSemaphoreZirconHandleFUCHSIA = PFN_vkImportSemaphoreZirconHandleFUCHSIA( vkGetInstanceProcAddr( instance, "vkImportSemaphoreZirconHandleFUCHSIA" ) ); vkGetSemaphoreZirconHandleFUCHSIA = PFN_vkGetSemaphoreZirconHandleFUCHSIA( vkGetInstanceProcAddr( instance, "vkGetSemaphoreZirconHandleFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_buffer_collection === vkCreateBufferCollectionFUCHSIA = PFN_vkCreateBufferCollectionFUCHSIA( vkGetInstanceProcAddr( instance, "vkCreateBufferCollectionFUCHSIA" ) ); vkSetBufferCollectionImageConstraintsFUCHSIA = PFN_vkSetBufferCollectionImageConstraintsFUCHSIA( vkGetInstanceProcAddr( instance, "vkSetBufferCollectionImageConstraintsFUCHSIA" ) ); vkSetBufferCollectionBufferConstraintsFUCHSIA = PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA( vkGetInstanceProcAddr( instance, "vkSetBufferCollectionBufferConstraintsFUCHSIA" ) ); vkDestroyBufferCollectionFUCHSIA = PFN_vkDestroyBufferCollectionFUCHSIA( vkGetInstanceProcAddr( instance, "vkDestroyBufferCollectionFUCHSIA" ) ); vkGetBufferCollectionPropertiesFUCHSIA = PFN_vkGetBufferCollectionPropertiesFUCHSIA( vkGetInstanceProcAddr( instance, "vkGetBufferCollectionPropertiesFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ //=== VK_HUAWEI_subpass_shading === vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI = PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( vkGetInstanceProcAddr( instance, "vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI" ) ); vkCmdSubpassShadingHUAWEI = PFN_vkCmdSubpassShadingHUAWEI( vkGetInstanceProcAddr( instance, "vkCmdSubpassShadingHUAWEI" ) ); //=== VK_HUAWEI_invocation_mask === vkCmdBindInvocationMaskHUAWEI = PFN_vkCmdBindInvocationMaskHUAWEI( vkGetInstanceProcAddr( instance, "vkCmdBindInvocationMaskHUAWEI" ) ); //=== VK_NV_external_memory_rdma === vkGetMemoryRemoteAddressNV = PFN_vkGetMemoryRemoteAddressNV( vkGetInstanceProcAddr( instance, "vkGetMemoryRemoteAddressNV" ) ); //=== VK_EXT_pipeline_properties === vkGetPipelinePropertiesEXT = PFN_vkGetPipelinePropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetPipelinePropertiesEXT" ) ); //=== VK_EXT_extended_dynamic_state2 === vkCmdSetPatchControlPointsEXT = PFN_vkCmdSetPatchControlPointsEXT( vkGetInstanceProcAddr( instance, "vkCmdSetPatchControlPointsEXT" ) ); vkCmdSetRasterizerDiscardEnableEXT = PFN_vkCmdSetRasterizerDiscardEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetRasterizerDiscardEnableEXT" ) ); if ( !vkCmdSetRasterizerDiscardEnable ) vkCmdSetRasterizerDiscardEnable = vkCmdSetRasterizerDiscardEnableEXT; vkCmdSetDepthBiasEnableEXT = PFN_vkCmdSetDepthBiasEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetDepthBiasEnableEXT" ) ); if ( !vkCmdSetDepthBiasEnable ) vkCmdSetDepthBiasEnable = vkCmdSetDepthBiasEnableEXT; vkCmdSetLogicOpEXT = PFN_vkCmdSetLogicOpEXT( vkGetInstanceProcAddr( instance, "vkCmdSetLogicOpEXT" ) ); vkCmdSetPrimitiveRestartEnableEXT = PFN_vkCmdSetPrimitiveRestartEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetPrimitiveRestartEnableEXT" ) ); if ( !vkCmdSetPrimitiveRestartEnable ) vkCmdSetPrimitiveRestartEnable = vkCmdSetPrimitiveRestartEnableEXT; #if defined( VK_USE_PLATFORM_SCREEN_QNX ) //=== VK_QNX_screen_surface === vkCreateScreenSurfaceQNX = PFN_vkCreateScreenSurfaceQNX( vkGetInstanceProcAddr( instance, "vkCreateScreenSurfaceQNX" ) ); vkGetPhysicalDeviceScreenPresentationSupportQNX = PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceScreenPresentationSupportQNX" ) ); #endif /*VK_USE_PLATFORM_SCREEN_QNX*/ //=== VK_EXT_color_write_enable === vkCmdSetColorWriteEnableEXT = PFN_vkCmdSetColorWriteEnableEXT( vkGetInstanceProcAddr( instance, "vkCmdSetColorWriteEnableEXT" ) ); //=== VK_KHR_ray_tracing_maintenance1 === vkCmdTraceRaysIndirect2KHR = PFN_vkCmdTraceRaysIndirect2KHR( vkGetInstanceProcAddr( instance, "vkCmdTraceRaysIndirect2KHR" ) ); //=== VK_EXT_multi_draw === vkCmdDrawMultiEXT = PFN_vkCmdDrawMultiEXT( vkGetInstanceProcAddr( instance, "vkCmdDrawMultiEXT" ) ); vkCmdDrawMultiIndexedEXT = PFN_vkCmdDrawMultiIndexedEXT( vkGetInstanceProcAddr( instance, "vkCmdDrawMultiIndexedEXT" ) ); //=== VK_EXT_pageable_device_local_memory === vkSetDeviceMemoryPriorityEXT = PFN_vkSetDeviceMemoryPriorityEXT( vkGetInstanceProcAddr( instance, "vkSetDeviceMemoryPriorityEXT" ) ); //=== VK_KHR_maintenance4 === vkGetDeviceBufferMemoryRequirementsKHR = PFN_vkGetDeviceBufferMemoryRequirementsKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceBufferMemoryRequirementsKHR" ) ); if ( !vkGetDeviceBufferMemoryRequirements ) vkGetDeviceBufferMemoryRequirements = vkGetDeviceBufferMemoryRequirementsKHR; vkGetDeviceImageMemoryRequirementsKHR = PFN_vkGetDeviceImageMemoryRequirementsKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceImageMemoryRequirementsKHR" ) ); if ( !vkGetDeviceImageMemoryRequirements ) vkGetDeviceImageMemoryRequirements = vkGetDeviceImageMemoryRequirementsKHR; vkGetDeviceImageSparseMemoryRequirementsKHR = PFN_vkGetDeviceImageSparseMemoryRequirementsKHR( vkGetInstanceProcAddr( instance, "vkGetDeviceImageSparseMemoryRequirementsKHR" ) ); if ( !vkGetDeviceImageSparseMemoryRequirements ) vkGetDeviceImageSparseMemoryRequirements = vkGetDeviceImageSparseMemoryRequirementsKHR; //=== VK_VALVE_descriptor_set_host_mapping === vkGetDescriptorSetLayoutHostMappingInfoVALVE = PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE( vkGetInstanceProcAddr( instance, "vkGetDescriptorSetLayoutHostMappingInfoVALVE" ) ); vkGetDescriptorSetHostMappingVALVE = PFN_vkGetDescriptorSetHostMappingVALVE( vkGetInstanceProcAddr( instance, "vkGetDescriptorSetHostMappingVALVE" ) ); //=== VK_EXT_shader_module_identifier === vkGetShaderModuleIdentifierEXT = PFN_vkGetShaderModuleIdentifierEXT( vkGetInstanceProcAddr( instance, "vkGetShaderModuleIdentifierEXT" ) ); vkGetShaderModuleCreateInfoIdentifierEXT = PFN_vkGetShaderModuleCreateInfoIdentifierEXT( vkGetInstanceProcAddr( instance, "vkGetShaderModuleCreateInfoIdentifierEXT" ) ); //=== VK_QCOM_tile_properties === vkGetFramebufferTilePropertiesQCOM = PFN_vkGetFramebufferTilePropertiesQCOM( vkGetInstanceProcAddr( instance, "vkGetFramebufferTilePropertiesQCOM" ) ); vkGetDynamicRenderingTilePropertiesQCOM = PFN_vkGetDynamicRenderingTilePropertiesQCOM( vkGetInstanceProcAddr( instance, "vkGetDynamicRenderingTilePropertiesQCOM" ) ); } void init( VULKAN_HPP_NAMESPACE::Device deviceCpp ) VULKAN_HPP_NOEXCEPT { VkDevice device = static_cast<VkDevice>( deviceCpp ); //=== VK_VERSION_1_0 === vkGetDeviceProcAddr = PFN_vkGetDeviceProcAddr( vkGetDeviceProcAddr( device, "vkGetDeviceProcAddr" ) ); vkDestroyDevice = PFN_vkDestroyDevice( vkGetDeviceProcAddr( device, "vkDestroyDevice" ) ); vkGetDeviceQueue = PFN_vkGetDeviceQueue( vkGetDeviceProcAddr( device, "vkGetDeviceQueue" ) ); vkQueueSubmit = PFN_vkQueueSubmit( vkGetDeviceProcAddr( device, "vkQueueSubmit" ) ); vkQueueWaitIdle = PFN_vkQueueWaitIdle( vkGetDeviceProcAddr( device, "vkQueueWaitIdle" ) ); vkDeviceWaitIdle = PFN_vkDeviceWaitIdle( vkGetDeviceProcAddr( device, "vkDeviceWaitIdle" ) ); vkAllocateMemory = PFN_vkAllocateMemory( vkGetDeviceProcAddr( device, "vkAllocateMemory" ) ); vkFreeMemory = PFN_vkFreeMemory( vkGetDeviceProcAddr( device, "vkFreeMemory" ) ); vkMapMemory = PFN_vkMapMemory( vkGetDeviceProcAddr( device, "vkMapMemory" ) ); vkUnmapMemory = PFN_vkUnmapMemory( vkGetDeviceProcAddr( device, "vkUnmapMemory" ) ); vkFlushMappedMemoryRanges = PFN_vkFlushMappedMemoryRanges( vkGetDeviceProcAddr( device, "vkFlushMappedMemoryRanges" ) ); vkInvalidateMappedMemoryRanges = PFN_vkInvalidateMappedMemoryRanges( vkGetDeviceProcAddr( device, "vkInvalidateMappedMemoryRanges" ) ); vkGetDeviceMemoryCommitment = PFN_vkGetDeviceMemoryCommitment( vkGetDeviceProcAddr( device, "vkGetDeviceMemoryCommitment" ) ); vkBindBufferMemory = PFN_vkBindBufferMemory( vkGetDeviceProcAddr( device, "vkBindBufferMemory" ) ); vkBindImageMemory = PFN_vkBindImageMemory( vkGetDeviceProcAddr( device, "vkBindImageMemory" ) ); vkGetBufferMemoryRequirements = PFN_vkGetBufferMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetBufferMemoryRequirements" ) ); vkGetImageMemoryRequirements = PFN_vkGetImageMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetImageMemoryRequirements" ) ); vkGetImageSparseMemoryRequirements = PFN_vkGetImageSparseMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetImageSparseMemoryRequirements" ) ); vkQueueBindSparse = PFN_vkQueueBindSparse( vkGetDeviceProcAddr( device, "vkQueueBindSparse" ) ); vkCreateFence = PFN_vkCreateFence( vkGetDeviceProcAddr( device, "vkCreateFence" ) ); vkDestroyFence = PFN_vkDestroyFence( vkGetDeviceProcAddr( device, "vkDestroyFence" ) ); vkResetFences = PFN_vkResetFences( vkGetDeviceProcAddr( device, "vkResetFences" ) ); vkGetFenceStatus = PFN_vkGetFenceStatus( vkGetDeviceProcAddr( device, "vkGetFenceStatus" ) ); vkWaitForFences = PFN_vkWaitForFences( vkGetDeviceProcAddr( device, "vkWaitForFences" ) ); vkCreateSemaphore = PFN_vkCreateSemaphore( vkGetDeviceProcAddr( device, "vkCreateSemaphore" ) ); vkDestroySemaphore = PFN_vkDestroySemaphore( vkGetDeviceProcAddr( device, "vkDestroySemaphore" ) ); vkCreateEvent = PFN_vkCreateEvent( vkGetDeviceProcAddr( device, "vkCreateEvent" ) ); vkDestroyEvent = PFN_vkDestroyEvent( vkGetDeviceProcAddr( device, "vkDestroyEvent" ) ); vkGetEventStatus = PFN_vkGetEventStatus( vkGetDeviceProcAddr( device, "vkGetEventStatus" ) ); vkSetEvent = PFN_vkSetEvent( vkGetDeviceProcAddr( device, "vkSetEvent" ) ); vkResetEvent = PFN_vkResetEvent( vkGetDeviceProcAddr( device, "vkResetEvent" ) ); vkCreateQueryPool = PFN_vkCreateQueryPool( vkGetDeviceProcAddr( device, "vkCreateQueryPool" ) ); vkDestroyQueryPool = PFN_vkDestroyQueryPool( vkGetDeviceProcAddr( device, "vkDestroyQueryPool" ) ); vkGetQueryPoolResults = PFN_vkGetQueryPoolResults( vkGetDeviceProcAddr( device, "vkGetQueryPoolResults" ) ); vkCreateBuffer = PFN_vkCreateBuffer( vkGetDeviceProcAddr( device, "vkCreateBuffer" ) ); vkDestroyBuffer = PFN_vkDestroyBuffer( vkGetDeviceProcAddr( device, "vkDestroyBuffer" ) ); vkCreateBufferView = PFN_vkCreateBufferView( vkGetDeviceProcAddr( device, "vkCreateBufferView" ) ); vkDestroyBufferView = PFN_vkDestroyBufferView( vkGetDeviceProcAddr( device, "vkDestroyBufferView" ) ); vkCreateImage = PFN_vkCreateImage( vkGetDeviceProcAddr( device, "vkCreateImage" ) ); vkDestroyImage = PFN_vkDestroyImage( vkGetDeviceProcAddr( device, "vkDestroyImage" ) ); vkGetImageSubresourceLayout = PFN_vkGetImageSubresourceLayout( vkGetDeviceProcAddr( device, "vkGetImageSubresourceLayout" ) ); vkCreateImageView = PFN_vkCreateImageView( vkGetDeviceProcAddr( device, "vkCreateImageView" ) ); vkDestroyImageView = PFN_vkDestroyImageView( vkGetDeviceProcAddr( device, "vkDestroyImageView" ) ); vkCreateShaderModule = PFN_vkCreateShaderModule( vkGetDeviceProcAddr( device, "vkCreateShaderModule" ) ); vkDestroyShaderModule = PFN_vkDestroyShaderModule( vkGetDeviceProcAddr( device, "vkDestroyShaderModule" ) ); vkCreatePipelineCache = PFN_vkCreatePipelineCache( vkGetDeviceProcAddr( device, "vkCreatePipelineCache" ) ); vkDestroyPipelineCache = PFN_vkDestroyPipelineCache( vkGetDeviceProcAddr( device, "vkDestroyPipelineCache" ) ); vkGetPipelineCacheData = PFN_vkGetPipelineCacheData( vkGetDeviceProcAddr( device, "vkGetPipelineCacheData" ) ); vkMergePipelineCaches = PFN_vkMergePipelineCaches( vkGetDeviceProcAddr( device, "vkMergePipelineCaches" ) ); vkCreateGraphicsPipelines = PFN_vkCreateGraphicsPipelines( vkGetDeviceProcAddr( device, "vkCreateGraphicsPipelines" ) ); vkCreateComputePipelines = PFN_vkCreateComputePipelines( vkGetDeviceProcAddr( device, "vkCreateComputePipelines" ) ); vkDestroyPipeline = PFN_vkDestroyPipeline( vkGetDeviceProcAddr( device, "vkDestroyPipeline" ) ); vkCreatePipelineLayout = PFN_vkCreatePipelineLayout( vkGetDeviceProcAddr( device, "vkCreatePipelineLayout" ) ); vkDestroyPipelineLayout = PFN_vkDestroyPipelineLayout( vkGetDeviceProcAddr( device, "vkDestroyPipelineLayout" ) ); vkCreateSampler = PFN_vkCreateSampler( vkGetDeviceProcAddr( device, "vkCreateSampler" ) ); vkDestroySampler = PFN_vkDestroySampler( vkGetDeviceProcAddr( device, "vkDestroySampler" ) ); vkCreateDescriptorSetLayout = PFN_vkCreateDescriptorSetLayout( vkGetDeviceProcAddr( device, "vkCreateDescriptorSetLayout" ) ); vkDestroyDescriptorSetLayout = PFN_vkDestroyDescriptorSetLayout( vkGetDeviceProcAddr( device, "vkDestroyDescriptorSetLayout" ) ); vkCreateDescriptorPool = PFN_vkCreateDescriptorPool( vkGetDeviceProcAddr( device, "vkCreateDescriptorPool" ) ); vkDestroyDescriptorPool = PFN_vkDestroyDescriptorPool( vkGetDeviceProcAddr( device, "vkDestroyDescriptorPool" ) ); vkResetDescriptorPool = PFN_vkResetDescriptorPool( vkGetDeviceProcAddr( device, "vkResetDescriptorPool" ) ); vkAllocateDescriptorSets = PFN_vkAllocateDescriptorSets( vkGetDeviceProcAddr( device, "vkAllocateDescriptorSets" ) ); vkFreeDescriptorSets = PFN_vkFreeDescriptorSets( vkGetDeviceProcAddr( device, "vkFreeDescriptorSets" ) ); vkUpdateDescriptorSets = PFN_vkUpdateDescriptorSets( vkGetDeviceProcAddr( device, "vkUpdateDescriptorSets" ) ); vkCreateFramebuffer = PFN_vkCreateFramebuffer( vkGetDeviceProcAddr( device, "vkCreateFramebuffer" ) ); vkDestroyFramebuffer = PFN_vkDestroyFramebuffer( vkGetDeviceProcAddr( device, "vkDestroyFramebuffer" ) ); vkCreateRenderPass = PFN_vkCreateRenderPass( vkGetDeviceProcAddr( device, "vkCreateRenderPass" ) ); vkDestroyRenderPass = PFN_vkDestroyRenderPass( vkGetDeviceProcAddr( device, "vkDestroyRenderPass" ) ); vkGetRenderAreaGranularity = PFN_vkGetRenderAreaGranularity( vkGetDeviceProcAddr( device, "vkGetRenderAreaGranularity" ) ); vkCreateCommandPool = PFN_vkCreateCommandPool( vkGetDeviceProcAddr( device, "vkCreateCommandPool" ) ); vkDestroyCommandPool = PFN_vkDestroyCommandPool( vkGetDeviceProcAddr( device, "vkDestroyCommandPool" ) ); vkResetCommandPool = PFN_vkResetCommandPool( vkGetDeviceProcAddr( device, "vkResetCommandPool" ) ); vkAllocateCommandBuffers = PFN_vkAllocateCommandBuffers( vkGetDeviceProcAddr( device, "vkAllocateCommandBuffers" ) ); vkFreeCommandBuffers = PFN_vkFreeCommandBuffers( vkGetDeviceProcAddr( device, "vkFreeCommandBuffers" ) ); vkBeginCommandBuffer = PFN_vkBeginCommandBuffer( vkGetDeviceProcAddr( device, "vkBeginCommandBuffer" ) ); vkEndCommandBuffer = PFN_vkEndCommandBuffer( vkGetDeviceProcAddr( device, "vkEndCommandBuffer" ) ); vkResetCommandBuffer = PFN_vkResetCommandBuffer( vkGetDeviceProcAddr( device, "vkResetCommandBuffer" ) ); vkCmdBindPipeline = PFN_vkCmdBindPipeline( vkGetDeviceProcAddr( device, "vkCmdBindPipeline" ) ); vkCmdSetViewport = PFN_vkCmdSetViewport( vkGetDeviceProcAddr( device, "vkCmdSetViewport" ) ); vkCmdSetScissor = PFN_vkCmdSetScissor( vkGetDeviceProcAddr( device, "vkCmdSetScissor" ) ); vkCmdSetLineWidth = PFN_vkCmdSetLineWidth( vkGetDeviceProcAddr( device, "vkCmdSetLineWidth" ) ); vkCmdSetDepthBias = PFN_vkCmdSetDepthBias( vkGetDeviceProcAddr( device, "vkCmdSetDepthBias" ) ); vkCmdSetBlendConstants = PFN_vkCmdSetBlendConstants( vkGetDeviceProcAddr( device, "vkCmdSetBlendConstants" ) ); vkCmdSetDepthBounds = PFN_vkCmdSetDepthBounds( vkGetDeviceProcAddr( device, "vkCmdSetDepthBounds" ) ); vkCmdSetStencilCompareMask = PFN_vkCmdSetStencilCompareMask( vkGetDeviceProcAddr( device, "vkCmdSetStencilCompareMask" ) ); vkCmdSetStencilWriteMask = PFN_vkCmdSetStencilWriteMask( vkGetDeviceProcAddr( device, "vkCmdSetStencilWriteMask" ) ); vkCmdSetStencilReference = PFN_vkCmdSetStencilReference( vkGetDeviceProcAddr( device, "vkCmdSetStencilReference" ) ); vkCmdBindDescriptorSets = PFN_vkCmdBindDescriptorSets( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorSets" ) ); vkCmdBindIndexBuffer = PFN_vkCmdBindIndexBuffer( vkGetDeviceProcAddr( device, "vkCmdBindIndexBuffer" ) ); vkCmdBindVertexBuffers = PFN_vkCmdBindVertexBuffers( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers" ) ); vkCmdDraw = PFN_vkCmdDraw( vkGetDeviceProcAddr( device, "vkCmdDraw" ) ); vkCmdDrawIndexed = PFN_vkCmdDrawIndexed( vkGetDeviceProcAddr( device, "vkCmdDrawIndexed" ) ); vkCmdDrawIndirect = PFN_vkCmdDrawIndirect( vkGetDeviceProcAddr( device, "vkCmdDrawIndirect" ) ); vkCmdDrawIndexedIndirect = PFN_vkCmdDrawIndexedIndirect( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirect" ) ); vkCmdDispatch = PFN_vkCmdDispatch( vkGetDeviceProcAddr( device, "vkCmdDispatch" ) ); vkCmdDispatchIndirect = PFN_vkCmdDispatchIndirect( vkGetDeviceProcAddr( device, "vkCmdDispatchIndirect" ) ); vkCmdCopyBuffer = PFN_vkCmdCopyBuffer( vkGetDeviceProcAddr( device, "vkCmdCopyBuffer" ) ); vkCmdCopyImage = PFN_vkCmdCopyImage( vkGetDeviceProcAddr( device, "vkCmdCopyImage" ) ); vkCmdBlitImage = PFN_vkCmdBlitImage( vkGetDeviceProcAddr( device, "vkCmdBlitImage" ) ); vkCmdCopyBufferToImage = PFN_vkCmdCopyBufferToImage( vkGetDeviceProcAddr( device, "vkCmdCopyBufferToImage" ) ); vkCmdCopyImageToBuffer = PFN_vkCmdCopyImageToBuffer( vkGetDeviceProcAddr( device, "vkCmdCopyImageToBuffer" ) ); vkCmdUpdateBuffer = PFN_vkCmdUpdateBuffer( vkGetDeviceProcAddr( device, "vkCmdUpdateBuffer" ) ); vkCmdFillBuffer = PFN_vkCmdFillBuffer( vkGetDeviceProcAddr( device, "vkCmdFillBuffer" ) ); vkCmdClearColorImage = PFN_vkCmdClearColorImage( vkGetDeviceProcAddr( device, "vkCmdClearColorImage" ) ); vkCmdClearDepthStencilImage = PFN_vkCmdClearDepthStencilImage( vkGetDeviceProcAddr( device, "vkCmdClearDepthStencilImage" ) ); vkCmdClearAttachments = PFN_vkCmdClearAttachments( vkGetDeviceProcAddr( device, "vkCmdClearAttachments" ) ); vkCmdResolveImage = PFN_vkCmdResolveImage( vkGetDeviceProcAddr( device, "vkCmdResolveImage" ) ); vkCmdSetEvent = PFN_vkCmdSetEvent( vkGetDeviceProcAddr( device, "vkCmdSetEvent" ) ); vkCmdResetEvent = PFN_vkCmdResetEvent( vkGetDeviceProcAddr( device, "vkCmdResetEvent" ) ); vkCmdWaitEvents = PFN_vkCmdWaitEvents( vkGetDeviceProcAddr( device, "vkCmdWaitEvents" ) ); vkCmdPipelineBarrier = PFN_vkCmdPipelineBarrier( vkGetDeviceProcAddr( device, "vkCmdPipelineBarrier" ) ); vkCmdBeginQuery = PFN_vkCmdBeginQuery( vkGetDeviceProcAddr( device, "vkCmdBeginQuery" ) ); vkCmdEndQuery = PFN_vkCmdEndQuery( vkGetDeviceProcAddr( device, "vkCmdEndQuery" ) ); vkCmdResetQueryPool = PFN_vkCmdResetQueryPool( vkGetDeviceProcAddr( device, "vkCmdResetQueryPool" ) ); vkCmdWriteTimestamp = PFN_vkCmdWriteTimestamp( vkGetDeviceProcAddr( device, "vkCmdWriteTimestamp" ) ); vkCmdCopyQueryPoolResults = PFN_vkCmdCopyQueryPoolResults( vkGetDeviceProcAddr( device, "vkCmdCopyQueryPoolResults" ) ); vkCmdPushConstants = PFN_vkCmdPushConstants( vkGetDeviceProcAddr( device, "vkCmdPushConstants" ) ); vkCmdBeginRenderPass = PFN_vkCmdBeginRenderPass( vkGetDeviceProcAddr( device, "vkCmdBeginRenderPass" ) ); vkCmdNextSubpass = PFN_vkCmdNextSubpass( vkGetDeviceProcAddr( device, "vkCmdNextSubpass" ) ); vkCmdEndRenderPass = PFN_vkCmdEndRenderPass( vkGetDeviceProcAddr( device, "vkCmdEndRenderPass" ) ); vkCmdExecuteCommands = PFN_vkCmdExecuteCommands( vkGetDeviceProcAddr( device, "vkCmdExecuteCommands" ) ); //=== VK_VERSION_1_1 === vkBindBufferMemory2 = PFN_vkBindBufferMemory2( vkGetDeviceProcAddr( device, "vkBindBufferMemory2" ) ); vkBindImageMemory2 = PFN_vkBindImageMemory2( vkGetDeviceProcAddr( device, "vkBindImageMemory2" ) ); vkGetDeviceGroupPeerMemoryFeatures = PFN_vkGetDeviceGroupPeerMemoryFeatures( vkGetDeviceProcAddr( device, "vkGetDeviceGroupPeerMemoryFeatures" ) ); vkCmdSetDeviceMask = PFN_vkCmdSetDeviceMask( vkGetDeviceProcAddr( device, "vkCmdSetDeviceMask" ) ); vkCmdDispatchBase = PFN_vkCmdDispatchBase( vkGetDeviceProcAddr( device, "vkCmdDispatchBase" ) ); vkGetImageMemoryRequirements2 = PFN_vkGetImageMemoryRequirements2( vkGetDeviceProcAddr( device, "vkGetImageMemoryRequirements2" ) ); vkGetBufferMemoryRequirements2 = PFN_vkGetBufferMemoryRequirements2( vkGetDeviceProcAddr( device, "vkGetBufferMemoryRequirements2" ) ); vkGetImageSparseMemoryRequirements2 = PFN_vkGetImageSparseMemoryRequirements2( vkGetDeviceProcAddr( device, "vkGetImageSparseMemoryRequirements2" ) ); vkTrimCommandPool = PFN_vkTrimCommandPool( vkGetDeviceProcAddr( device, "vkTrimCommandPool" ) ); vkGetDeviceQueue2 = PFN_vkGetDeviceQueue2( vkGetDeviceProcAddr( device, "vkGetDeviceQueue2" ) ); vkCreateSamplerYcbcrConversion = PFN_vkCreateSamplerYcbcrConversion( vkGetDeviceProcAddr( device, "vkCreateSamplerYcbcrConversion" ) ); vkDestroySamplerYcbcrConversion = PFN_vkDestroySamplerYcbcrConversion( vkGetDeviceProcAddr( device, "vkDestroySamplerYcbcrConversion" ) ); vkCreateDescriptorUpdateTemplate = PFN_vkCreateDescriptorUpdateTemplate( vkGetDeviceProcAddr( device, "vkCreateDescriptorUpdateTemplate" ) ); vkDestroyDescriptorUpdateTemplate = PFN_vkDestroyDescriptorUpdateTemplate( vkGetDeviceProcAddr( device, "vkDestroyDescriptorUpdateTemplate" ) ); vkUpdateDescriptorSetWithTemplate = PFN_vkUpdateDescriptorSetWithTemplate( vkGetDeviceProcAddr( device, "vkUpdateDescriptorSetWithTemplate" ) ); vkGetDescriptorSetLayoutSupport = PFN_vkGetDescriptorSetLayoutSupport( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutSupport" ) ); //=== VK_VERSION_1_2 === vkCmdDrawIndirectCount = PFN_vkCmdDrawIndirectCount( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCount" ) ); vkCmdDrawIndexedIndirectCount = PFN_vkCmdDrawIndexedIndirectCount( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCount" ) ); vkCreateRenderPass2 = PFN_vkCreateRenderPass2( vkGetDeviceProcAddr( device, "vkCreateRenderPass2" ) ); vkCmdBeginRenderPass2 = PFN_vkCmdBeginRenderPass2( vkGetDeviceProcAddr( device, "vkCmdBeginRenderPass2" ) ); vkCmdNextSubpass2 = PFN_vkCmdNextSubpass2( vkGetDeviceProcAddr( device, "vkCmdNextSubpass2" ) ); vkCmdEndRenderPass2 = PFN_vkCmdEndRenderPass2( vkGetDeviceProcAddr( device, "vkCmdEndRenderPass2" ) ); vkResetQueryPool = PFN_vkResetQueryPool( vkGetDeviceProcAddr( device, "vkResetQueryPool" ) ); vkGetSemaphoreCounterValue = PFN_vkGetSemaphoreCounterValue( vkGetDeviceProcAddr( device, "vkGetSemaphoreCounterValue" ) ); vkWaitSemaphores = PFN_vkWaitSemaphores( vkGetDeviceProcAddr( device, "vkWaitSemaphores" ) ); vkSignalSemaphore = PFN_vkSignalSemaphore( vkGetDeviceProcAddr( device, "vkSignalSemaphore" ) ); vkGetBufferDeviceAddress = PFN_vkGetBufferDeviceAddress( vkGetDeviceProcAddr( device, "vkGetBufferDeviceAddress" ) ); vkGetBufferOpaqueCaptureAddress = PFN_vkGetBufferOpaqueCaptureAddress( vkGetDeviceProcAddr( device, "vkGetBufferOpaqueCaptureAddress" ) ); vkGetDeviceMemoryOpaqueCaptureAddress = PFN_vkGetDeviceMemoryOpaqueCaptureAddress( vkGetDeviceProcAddr( device, "vkGetDeviceMemoryOpaqueCaptureAddress" ) ); //=== VK_VERSION_1_3 === vkCreatePrivateDataSlot = PFN_vkCreatePrivateDataSlot( vkGetDeviceProcAddr( device, "vkCreatePrivateDataSlot" ) ); vkDestroyPrivateDataSlot = PFN_vkDestroyPrivateDataSlot( vkGetDeviceProcAddr( device, "vkDestroyPrivateDataSlot" ) ); vkSetPrivateData = PFN_vkSetPrivateData( vkGetDeviceProcAddr( device, "vkSetPrivateData" ) ); vkGetPrivateData = PFN_vkGetPrivateData( vkGetDeviceProcAddr( device, "vkGetPrivateData" ) ); vkCmdSetEvent2 = PFN_vkCmdSetEvent2( vkGetDeviceProcAddr( device, "vkCmdSetEvent2" ) ); vkCmdResetEvent2 = PFN_vkCmdResetEvent2( vkGetDeviceProcAddr( device, "vkCmdResetEvent2" ) ); vkCmdWaitEvents2 = PFN_vkCmdWaitEvents2( vkGetDeviceProcAddr( device, "vkCmdWaitEvents2" ) ); vkCmdPipelineBarrier2 = PFN_vkCmdPipelineBarrier2( vkGetDeviceProcAddr( device, "vkCmdPipelineBarrier2" ) ); vkCmdWriteTimestamp2 = PFN_vkCmdWriteTimestamp2( vkGetDeviceProcAddr( device, "vkCmdWriteTimestamp2" ) ); vkQueueSubmit2 = PFN_vkQueueSubmit2( vkGetDeviceProcAddr( device, "vkQueueSubmit2" ) ); vkCmdCopyBuffer2 = PFN_vkCmdCopyBuffer2( vkGetDeviceProcAddr( device, "vkCmdCopyBuffer2" ) ); vkCmdCopyImage2 = PFN_vkCmdCopyImage2( vkGetDeviceProcAddr( device, "vkCmdCopyImage2" ) ); vkCmdCopyBufferToImage2 = PFN_vkCmdCopyBufferToImage2( vkGetDeviceProcAddr( device, "vkCmdCopyBufferToImage2" ) ); vkCmdCopyImageToBuffer2 = PFN_vkCmdCopyImageToBuffer2( vkGetDeviceProcAddr( device, "vkCmdCopyImageToBuffer2" ) ); vkCmdBlitImage2 = PFN_vkCmdBlitImage2( vkGetDeviceProcAddr( device, "vkCmdBlitImage2" ) ); vkCmdResolveImage2 = PFN_vkCmdResolveImage2( vkGetDeviceProcAddr( device, "vkCmdResolveImage2" ) ); vkCmdBeginRendering = PFN_vkCmdBeginRendering( vkGetDeviceProcAddr( device, "vkCmdBeginRendering" ) ); vkCmdEndRendering = PFN_vkCmdEndRendering( vkGetDeviceProcAddr( device, "vkCmdEndRendering" ) ); vkCmdSetCullMode = PFN_vkCmdSetCullMode( vkGetDeviceProcAddr( device, "vkCmdSetCullMode" ) ); vkCmdSetFrontFace = PFN_vkCmdSetFrontFace( vkGetDeviceProcAddr( device, "vkCmdSetFrontFace" ) ); vkCmdSetPrimitiveTopology = PFN_vkCmdSetPrimitiveTopology( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveTopology" ) ); vkCmdSetViewportWithCount = PFN_vkCmdSetViewportWithCount( vkGetDeviceProcAddr( device, "vkCmdSetViewportWithCount" ) ); vkCmdSetScissorWithCount = PFN_vkCmdSetScissorWithCount( vkGetDeviceProcAddr( device, "vkCmdSetScissorWithCount" ) ); vkCmdBindVertexBuffers2 = PFN_vkCmdBindVertexBuffers2( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers2" ) ); vkCmdSetDepthTestEnable = PFN_vkCmdSetDepthTestEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthTestEnable" ) ); vkCmdSetDepthWriteEnable = PFN_vkCmdSetDepthWriteEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthWriteEnable" ) ); vkCmdSetDepthCompareOp = PFN_vkCmdSetDepthCompareOp( vkGetDeviceProcAddr( device, "vkCmdSetDepthCompareOp" ) ); vkCmdSetDepthBoundsTestEnable = PFN_vkCmdSetDepthBoundsTestEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthBoundsTestEnable" ) ); vkCmdSetStencilTestEnable = PFN_vkCmdSetStencilTestEnable( vkGetDeviceProcAddr( device, "vkCmdSetStencilTestEnable" ) ); vkCmdSetStencilOp = PFN_vkCmdSetStencilOp( vkGetDeviceProcAddr( device, "vkCmdSetStencilOp" ) ); vkCmdSetRasterizerDiscardEnable = PFN_vkCmdSetRasterizerDiscardEnable( vkGetDeviceProcAddr( device, "vkCmdSetRasterizerDiscardEnable" ) ); vkCmdSetDepthBiasEnable = PFN_vkCmdSetDepthBiasEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthBiasEnable" ) ); vkCmdSetPrimitiveRestartEnable = PFN_vkCmdSetPrimitiveRestartEnable( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveRestartEnable" ) ); vkGetDeviceBufferMemoryRequirements = PFN_vkGetDeviceBufferMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetDeviceBufferMemoryRequirements" ) ); vkGetDeviceImageMemoryRequirements = PFN_vkGetDeviceImageMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetDeviceImageMemoryRequirements" ) ); vkGetDeviceImageSparseMemoryRequirements = PFN_vkGetDeviceImageSparseMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetDeviceImageSparseMemoryRequirements" ) ); //=== VK_KHR_swapchain === vkCreateSwapchainKHR = PFN_vkCreateSwapchainKHR( vkGetDeviceProcAddr( device, "vkCreateSwapchainKHR" ) ); vkDestroySwapchainKHR = PFN_vkDestroySwapchainKHR( vkGetDeviceProcAddr( device, "vkDestroySwapchainKHR" ) ); vkGetSwapchainImagesKHR = PFN_vkGetSwapchainImagesKHR( vkGetDeviceProcAddr( device, "vkGetSwapchainImagesKHR" ) ); vkAcquireNextImageKHR = PFN_vkAcquireNextImageKHR( vkGetDeviceProcAddr( device, "vkAcquireNextImageKHR" ) ); vkQueuePresentKHR = PFN_vkQueuePresentKHR( vkGetDeviceProcAddr( device, "vkQueuePresentKHR" ) ); vkGetDeviceGroupPresentCapabilitiesKHR = PFN_vkGetDeviceGroupPresentCapabilitiesKHR( vkGetDeviceProcAddr( device, "vkGetDeviceGroupPresentCapabilitiesKHR" ) ); vkGetDeviceGroupSurfacePresentModesKHR = PFN_vkGetDeviceGroupSurfacePresentModesKHR( vkGetDeviceProcAddr( device, "vkGetDeviceGroupSurfacePresentModesKHR" ) ); vkAcquireNextImage2KHR = PFN_vkAcquireNextImage2KHR( vkGetDeviceProcAddr( device, "vkAcquireNextImage2KHR" ) ); //=== VK_KHR_display_swapchain === vkCreateSharedSwapchainsKHR = PFN_vkCreateSharedSwapchainsKHR( vkGetDeviceProcAddr( device, "vkCreateSharedSwapchainsKHR" ) ); //=== VK_EXT_debug_marker === vkDebugMarkerSetObjectTagEXT = PFN_vkDebugMarkerSetObjectTagEXT( vkGetDeviceProcAddr( device, "vkDebugMarkerSetObjectTagEXT" ) ); vkDebugMarkerSetObjectNameEXT = PFN_vkDebugMarkerSetObjectNameEXT( vkGetDeviceProcAddr( device, "vkDebugMarkerSetObjectNameEXT" ) ); vkCmdDebugMarkerBeginEXT = PFN_vkCmdDebugMarkerBeginEXT( vkGetDeviceProcAddr( device, "vkCmdDebugMarkerBeginEXT" ) ); vkCmdDebugMarkerEndEXT = PFN_vkCmdDebugMarkerEndEXT( vkGetDeviceProcAddr( device, "vkCmdDebugMarkerEndEXT" ) ); vkCmdDebugMarkerInsertEXT = PFN_vkCmdDebugMarkerInsertEXT( vkGetDeviceProcAddr( device, "vkCmdDebugMarkerInsertEXT" ) ); #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_queue === vkCreateVideoSessionKHR = PFN_vkCreateVideoSessionKHR( vkGetDeviceProcAddr( device, "vkCreateVideoSessionKHR" ) ); vkDestroyVideoSessionKHR = PFN_vkDestroyVideoSessionKHR( vkGetDeviceProcAddr( device, "vkDestroyVideoSessionKHR" ) ); vkGetVideoSessionMemoryRequirementsKHR = PFN_vkGetVideoSessionMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetVideoSessionMemoryRequirementsKHR" ) ); vkBindVideoSessionMemoryKHR = PFN_vkBindVideoSessionMemoryKHR( vkGetDeviceProcAddr( device, "vkBindVideoSessionMemoryKHR" ) ); vkCreateVideoSessionParametersKHR = PFN_vkCreateVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkCreateVideoSessionParametersKHR" ) ); vkUpdateVideoSessionParametersKHR = PFN_vkUpdateVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkUpdateVideoSessionParametersKHR" ) ); vkDestroyVideoSessionParametersKHR = PFN_vkDestroyVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkDestroyVideoSessionParametersKHR" ) ); vkCmdBeginVideoCodingKHR = PFN_vkCmdBeginVideoCodingKHR( vkGetDeviceProcAddr( device, "vkCmdBeginVideoCodingKHR" ) ); vkCmdEndVideoCodingKHR = PFN_vkCmdEndVideoCodingKHR( vkGetDeviceProcAddr( device, "vkCmdEndVideoCodingKHR" ) ); vkCmdControlVideoCodingKHR = PFN_vkCmdControlVideoCodingKHR( vkGetDeviceProcAddr( device, "vkCmdControlVideoCodingKHR" ) ); #endif /*VK_ENABLE_BETA_EXTENSIONS*/ #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_decode_queue === vkCmdDecodeVideoKHR = PFN_vkCmdDecodeVideoKHR( vkGetDeviceProcAddr( device, "vkCmdDecodeVideoKHR" ) ); #endif /*VK_ENABLE_BETA_EXTENSIONS*/ //=== VK_EXT_transform_feedback === vkCmdBindTransformFeedbackBuffersEXT = PFN_vkCmdBindTransformFeedbackBuffersEXT( vkGetDeviceProcAddr( device, "vkCmdBindTransformFeedbackBuffersEXT" ) ); vkCmdBeginTransformFeedbackEXT = PFN_vkCmdBeginTransformFeedbackEXT( vkGetDeviceProcAddr( device, "vkCmdBeginTransformFeedbackEXT" ) ); vkCmdEndTransformFeedbackEXT = PFN_vkCmdEndTransformFeedbackEXT( vkGetDeviceProcAddr( device, "vkCmdEndTransformFeedbackEXT" ) ); vkCmdBeginQueryIndexedEXT = PFN_vkCmdBeginQueryIndexedEXT( vkGetDeviceProcAddr( device, "vkCmdBeginQueryIndexedEXT" ) ); vkCmdEndQueryIndexedEXT = PFN_vkCmdEndQueryIndexedEXT( vkGetDeviceProcAddr( device, "vkCmdEndQueryIndexedEXT" ) ); vkCmdDrawIndirectByteCountEXT = PFN_vkCmdDrawIndirectByteCountEXT( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectByteCountEXT" ) ); //=== VK_NVX_binary_import === vkCreateCuModuleNVX = PFN_vkCreateCuModuleNVX( vkGetDeviceProcAddr( device, "vkCreateCuModuleNVX" ) ); vkCreateCuFunctionNVX = PFN_vkCreateCuFunctionNVX( vkGetDeviceProcAddr( device, "vkCreateCuFunctionNVX" ) ); vkDestroyCuModuleNVX = PFN_vkDestroyCuModuleNVX( vkGetDeviceProcAddr( device, "vkDestroyCuModuleNVX" ) ); vkDestroyCuFunctionNVX = PFN_vkDestroyCuFunctionNVX( vkGetDeviceProcAddr( device, "vkDestroyCuFunctionNVX" ) ); vkCmdCuLaunchKernelNVX = PFN_vkCmdCuLaunchKernelNVX( vkGetDeviceProcAddr( device, "vkCmdCuLaunchKernelNVX" ) ); //=== VK_NVX_image_view_handle === vkGetImageViewHandleNVX = PFN_vkGetImageViewHandleNVX( vkGetDeviceProcAddr( device, "vkGetImageViewHandleNVX" ) ); vkGetImageViewAddressNVX = PFN_vkGetImageViewAddressNVX( vkGetDeviceProcAddr( device, "vkGetImageViewAddressNVX" ) ); //=== VK_AMD_draw_indirect_count === vkCmdDrawIndirectCountAMD = PFN_vkCmdDrawIndirectCountAMD( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCountAMD" ) ); if ( !vkCmdDrawIndirectCount ) vkCmdDrawIndirectCount = vkCmdDrawIndirectCountAMD; vkCmdDrawIndexedIndirectCountAMD = PFN_vkCmdDrawIndexedIndirectCountAMD( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCountAMD" ) ); if ( !vkCmdDrawIndexedIndirectCount ) vkCmdDrawIndexedIndirectCount = vkCmdDrawIndexedIndirectCountAMD; //=== VK_AMD_shader_info === vkGetShaderInfoAMD = PFN_vkGetShaderInfoAMD( vkGetDeviceProcAddr( device, "vkGetShaderInfoAMD" ) ); //=== VK_KHR_dynamic_rendering === vkCmdBeginRenderingKHR = PFN_vkCmdBeginRenderingKHR( vkGetDeviceProcAddr( device, "vkCmdBeginRenderingKHR" ) ); if ( !vkCmdBeginRendering ) vkCmdBeginRendering = vkCmdBeginRenderingKHR; vkCmdEndRenderingKHR = PFN_vkCmdEndRenderingKHR( vkGetDeviceProcAddr( device, "vkCmdEndRenderingKHR" ) ); if ( !vkCmdEndRendering ) vkCmdEndRendering = vkCmdEndRenderingKHR; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_NV_external_memory_win32 === vkGetMemoryWin32HandleNV = PFN_vkGetMemoryWin32HandleNV( vkGetDeviceProcAddr( device, "vkGetMemoryWin32HandleNV" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_device_group === vkGetDeviceGroupPeerMemoryFeaturesKHR = PFN_vkGetDeviceGroupPeerMemoryFeaturesKHR( vkGetDeviceProcAddr( device, "vkGetDeviceGroupPeerMemoryFeaturesKHR" ) ); if ( !vkGetDeviceGroupPeerMemoryFeatures ) vkGetDeviceGroupPeerMemoryFeatures = vkGetDeviceGroupPeerMemoryFeaturesKHR; vkCmdSetDeviceMaskKHR = PFN_vkCmdSetDeviceMaskKHR( vkGetDeviceProcAddr( device, "vkCmdSetDeviceMaskKHR" ) ); if ( !vkCmdSetDeviceMask ) vkCmdSetDeviceMask = vkCmdSetDeviceMaskKHR; vkCmdDispatchBaseKHR = PFN_vkCmdDispatchBaseKHR( vkGetDeviceProcAddr( device, "vkCmdDispatchBaseKHR" ) ); if ( !vkCmdDispatchBase ) vkCmdDispatchBase = vkCmdDispatchBaseKHR; //=== VK_KHR_maintenance1 === vkTrimCommandPoolKHR = PFN_vkTrimCommandPoolKHR( vkGetDeviceProcAddr( device, "vkTrimCommandPoolKHR" ) ); if ( !vkTrimCommandPool ) vkTrimCommandPool = vkTrimCommandPoolKHR; #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_memory_win32 === vkGetMemoryWin32HandleKHR = PFN_vkGetMemoryWin32HandleKHR( vkGetDeviceProcAddr( device, "vkGetMemoryWin32HandleKHR" ) ); vkGetMemoryWin32HandlePropertiesKHR = PFN_vkGetMemoryWin32HandlePropertiesKHR( vkGetDeviceProcAddr( device, "vkGetMemoryWin32HandlePropertiesKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_memory_fd === vkGetMemoryFdKHR = PFN_vkGetMemoryFdKHR( vkGetDeviceProcAddr( device, "vkGetMemoryFdKHR" ) ); vkGetMemoryFdPropertiesKHR = PFN_vkGetMemoryFdPropertiesKHR( vkGetDeviceProcAddr( device, "vkGetMemoryFdPropertiesKHR" ) ); #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_semaphore_win32 === vkImportSemaphoreWin32HandleKHR = PFN_vkImportSemaphoreWin32HandleKHR( vkGetDeviceProcAddr( device, "vkImportSemaphoreWin32HandleKHR" ) ); vkGetSemaphoreWin32HandleKHR = PFN_vkGetSemaphoreWin32HandleKHR( vkGetDeviceProcAddr( device, "vkGetSemaphoreWin32HandleKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_semaphore_fd === vkImportSemaphoreFdKHR = PFN_vkImportSemaphoreFdKHR( vkGetDeviceProcAddr( device, "vkImportSemaphoreFdKHR" ) ); vkGetSemaphoreFdKHR = PFN_vkGetSemaphoreFdKHR( vkGetDeviceProcAddr( device, "vkGetSemaphoreFdKHR" ) ); //=== VK_KHR_push_descriptor === vkCmdPushDescriptorSetKHR = PFN_vkCmdPushDescriptorSetKHR( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetKHR" ) ); vkCmdPushDescriptorSetWithTemplateKHR = PFN_vkCmdPushDescriptorSetWithTemplateKHR( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetWithTemplateKHR" ) ); //=== VK_EXT_conditional_rendering === vkCmdBeginConditionalRenderingEXT = PFN_vkCmdBeginConditionalRenderingEXT( vkGetDeviceProcAddr( device, "vkCmdBeginConditionalRenderingEXT" ) ); vkCmdEndConditionalRenderingEXT = PFN_vkCmdEndConditionalRenderingEXT( vkGetDeviceProcAddr( device, "vkCmdEndConditionalRenderingEXT" ) ); //=== VK_KHR_descriptor_update_template === vkCreateDescriptorUpdateTemplateKHR = PFN_vkCreateDescriptorUpdateTemplateKHR( vkGetDeviceProcAddr( device, "vkCreateDescriptorUpdateTemplateKHR" ) ); if ( !vkCreateDescriptorUpdateTemplate ) vkCreateDescriptorUpdateTemplate = vkCreateDescriptorUpdateTemplateKHR; vkDestroyDescriptorUpdateTemplateKHR = PFN_vkDestroyDescriptorUpdateTemplateKHR( vkGetDeviceProcAddr( device, "vkDestroyDescriptorUpdateTemplateKHR" ) ); if ( !vkDestroyDescriptorUpdateTemplate ) vkDestroyDescriptorUpdateTemplate = vkDestroyDescriptorUpdateTemplateKHR; vkUpdateDescriptorSetWithTemplateKHR = PFN_vkUpdateDescriptorSetWithTemplateKHR( vkGetDeviceProcAddr( device, "vkUpdateDescriptorSetWithTemplateKHR" ) ); if ( !vkUpdateDescriptorSetWithTemplate ) vkUpdateDescriptorSetWithTemplate = vkUpdateDescriptorSetWithTemplateKHR; //=== VK_NV_clip_space_w_scaling === vkCmdSetViewportWScalingNV = PFN_vkCmdSetViewportWScalingNV( vkGetDeviceProcAddr( device, "vkCmdSetViewportWScalingNV" ) ); //=== VK_EXT_display_control === vkDisplayPowerControlEXT = PFN_vkDisplayPowerControlEXT( vkGetDeviceProcAddr( device, "vkDisplayPowerControlEXT" ) ); vkRegisterDeviceEventEXT = PFN_vkRegisterDeviceEventEXT( vkGetDeviceProcAddr( device, "vkRegisterDeviceEventEXT" ) ); vkRegisterDisplayEventEXT = PFN_vkRegisterDisplayEventEXT( vkGetDeviceProcAddr( device, "vkRegisterDisplayEventEXT" ) ); vkGetSwapchainCounterEXT = PFN_vkGetSwapchainCounterEXT( vkGetDeviceProcAddr( device, "vkGetSwapchainCounterEXT" ) ); //=== VK_GOOGLE_display_timing === vkGetRefreshCycleDurationGOOGLE = PFN_vkGetRefreshCycleDurationGOOGLE( vkGetDeviceProcAddr( device, "vkGetRefreshCycleDurationGOOGLE" ) ); vkGetPastPresentationTimingGOOGLE = PFN_vkGetPastPresentationTimingGOOGLE( vkGetDeviceProcAddr( device, "vkGetPastPresentationTimingGOOGLE" ) ); //=== VK_EXT_discard_rectangles === vkCmdSetDiscardRectangleEXT = PFN_vkCmdSetDiscardRectangleEXT( vkGetDeviceProcAddr( device, "vkCmdSetDiscardRectangleEXT" ) ); //=== VK_EXT_hdr_metadata === vkSetHdrMetadataEXT = PFN_vkSetHdrMetadataEXT( vkGetDeviceProcAddr( device, "vkSetHdrMetadataEXT" ) ); //=== VK_KHR_create_renderpass2 === vkCreateRenderPass2KHR = PFN_vkCreateRenderPass2KHR( vkGetDeviceProcAddr( device, "vkCreateRenderPass2KHR" ) ); if ( !vkCreateRenderPass2 ) vkCreateRenderPass2 = vkCreateRenderPass2KHR; vkCmdBeginRenderPass2KHR = PFN_vkCmdBeginRenderPass2KHR( vkGetDeviceProcAddr( device, "vkCmdBeginRenderPass2KHR" ) ); if ( !vkCmdBeginRenderPass2 ) vkCmdBeginRenderPass2 = vkCmdBeginRenderPass2KHR; vkCmdNextSubpass2KHR = PFN_vkCmdNextSubpass2KHR( vkGetDeviceProcAddr( device, "vkCmdNextSubpass2KHR" ) ); if ( !vkCmdNextSubpass2 ) vkCmdNextSubpass2 = vkCmdNextSubpass2KHR; vkCmdEndRenderPass2KHR = PFN_vkCmdEndRenderPass2KHR( vkGetDeviceProcAddr( device, "vkCmdEndRenderPass2KHR" ) ); if ( !vkCmdEndRenderPass2 ) vkCmdEndRenderPass2 = vkCmdEndRenderPass2KHR; //=== VK_KHR_shared_presentable_image === vkGetSwapchainStatusKHR = PFN_vkGetSwapchainStatusKHR( vkGetDeviceProcAddr( device, "vkGetSwapchainStatusKHR" ) ); #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_KHR_external_fence_win32 === vkImportFenceWin32HandleKHR = PFN_vkImportFenceWin32HandleKHR( vkGetDeviceProcAddr( device, "vkImportFenceWin32HandleKHR" ) ); vkGetFenceWin32HandleKHR = PFN_vkGetFenceWin32HandleKHR( vkGetDeviceProcAddr( device, "vkGetFenceWin32HandleKHR" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_external_fence_fd === vkImportFenceFdKHR = PFN_vkImportFenceFdKHR( vkGetDeviceProcAddr( device, "vkImportFenceFdKHR" ) ); vkGetFenceFdKHR = PFN_vkGetFenceFdKHR( vkGetDeviceProcAddr( device, "vkGetFenceFdKHR" ) ); //=== VK_KHR_performance_query === vkAcquireProfilingLockKHR = PFN_vkAcquireProfilingLockKHR( vkGetDeviceProcAddr( device, "vkAcquireProfilingLockKHR" ) ); vkReleaseProfilingLockKHR = PFN_vkReleaseProfilingLockKHR( vkGetDeviceProcAddr( device, "vkReleaseProfilingLockKHR" ) ); //=== VK_EXT_debug_utils === vkSetDebugUtilsObjectNameEXT = PFN_vkSetDebugUtilsObjectNameEXT( vkGetDeviceProcAddr( device, "vkSetDebugUtilsObjectNameEXT" ) ); vkSetDebugUtilsObjectTagEXT = PFN_vkSetDebugUtilsObjectTagEXT( vkGetDeviceProcAddr( device, "vkSetDebugUtilsObjectTagEXT" ) ); vkQueueBeginDebugUtilsLabelEXT = PFN_vkQueueBeginDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkQueueBeginDebugUtilsLabelEXT" ) ); vkQueueEndDebugUtilsLabelEXT = PFN_vkQueueEndDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkQueueEndDebugUtilsLabelEXT" ) ); vkQueueInsertDebugUtilsLabelEXT = PFN_vkQueueInsertDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkQueueInsertDebugUtilsLabelEXT" ) ); vkCmdBeginDebugUtilsLabelEXT = PFN_vkCmdBeginDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdBeginDebugUtilsLabelEXT" ) ); vkCmdEndDebugUtilsLabelEXT = PFN_vkCmdEndDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdEndDebugUtilsLabelEXT" ) ); vkCmdInsertDebugUtilsLabelEXT = PFN_vkCmdInsertDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdInsertDebugUtilsLabelEXT" ) ); #if defined( VK_USE_PLATFORM_ANDROID_KHR ) //=== VK_ANDROID_external_memory_android_hardware_buffer === vkGetAndroidHardwareBufferPropertiesANDROID = PFN_vkGetAndroidHardwareBufferPropertiesANDROID( vkGetDeviceProcAddr( device, "vkGetAndroidHardwareBufferPropertiesANDROID" ) ); vkGetMemoryAndroidHardwareBufferANDROID = PFN_vkGetMemoryAndroidHardwareBufferANDROID( vkGetDeviceProcAddr( device, "vkGetMemoryAndroidHardwareBufferANDROID" ) ); #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ //=== VK_EXT_sample_locations === vkCmdSetSampleLocationsEXT = PFN_vkCmdSetSampleLocationsEXT( vkGetDeviceProcAddr( device, "vkCmdSetSampleLocationsEXT" ) ); //=== VK_KHR_get_memory_requirements2 === vkGetImageMemoryRequirements2KHR = PFN_vkGetImageMemoryRequirements2KHR( vkGetDeviceProcAddr( device, "vkGetImageMemoryRequirements2KHR" ) ); if ( !vkGetImageMemoryRequirements2 ) vkGetImageMemoryRequirements2 = vkGetImageMemoryRequirements2KHR; vkGetBufferMemoryRequirements2KHR = PFN_vkGetBufferMemoryRequirements2KHR( vkGetDeviceProcAddr( device, "vkGetBufferMemoryRequirements2KHR" ) ); if ( !vkGetBufferMemoryRequirements2 ) vkGetBufferMemoryRequirements2 = vkGetBufferMemoryRequirements2KHR; vkGetImageSparseMemoryRequirements2KHR = PFN_vkGetImageSparseMemoryRequirements2KHR( vkGetDeviceProcAddr( device, "vkGetImageSparseMemoryRequirements2KHR" ) ); if ( !vkGetImageSparseMemoryRequirements2 ) vkGetImageSparseMemoryRequirements2 = vkGetImageSparseMemoryRequirements2KHR; //=== VK_KHR_acceleration_structure === vkCreateAccelerationStructureKHR = PFN_vkCreateAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCreateAccelerationStructureKHR" ) ); vkDestroyAccelerationStructureKHR = PFN_vkDestroyAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkDestroyAccelerationStructureKHR" ) ); vkCmdBuildAccelerationStructuresKHR = PFN_vkCmdBuildAccelerationStructuresKHR( vkGetDeviceProcAddr( device, "vkCmdBuildAccelerationStructuresKHR" ) ); vkCmdBuildAccelerationStructuresIndirectKHR = PFN_vkCmdBuildAccelerationStructuresIndirectKHR( vkGetDeviceProcAddr( device, "vkCmdBuildAccelerationStructuresIndirectKHR" ) ); vkBuildAccelerationStructuresKHR = PFN_vkBuildAccelerationStructuresKHR( vkGetDeviceProcAddr( device, "vkBuildAccelerationStructuresKHR" ) ); vkCopyAccelerationStructureKHR = PFN_vkCopyAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCopyAccelerationStructureKHR" ) ); vkCopyAccelerationStructureToMemoryKHR = PFN_vkCopyAccelerationStructureToMemoryKHR( vkGetDeviceProcAddr( device, "vkCopyAccelerationStructureToMemoryKHR" ) ); vkCopyMemoryToAccelerationStructureKHR = PFN_vkCopyMemoryToAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCopyMemoryToAccelerationStructureKHR" ) ); vkWriteAccelerationStructuresPropertiesKHR = PFN_vkWriteAccelerationStructuresPropertiesKHR( vkGetDeviceProcAddr( device, "vkWriteAccelerationStructuresPropertiesKHR" ) ); vkCmdCopyAccelerationStructureKHR = PFN_vkCmdCopyAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCmdCopyAccelerationStructureKHR" ) ); vkCmdCopyAccelerationStructureToMemoryKHR = PFN_vkCmdCopyAccelerationStructureToMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdCopyAccelerationStructureToMemoryKHR" ) ); vkCmdCopyMemoryToAccelerationStructureKHR = PFN_vkCmdCopyMemoryToAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryToAccelerationStructureKHR" ) ); vkGetAccelerationStructureDeviceAddressKHR = PFN_vkGetAccelerationStructureDeviceAddressKHR( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureDeviceAddressKHR" ) ); vkCmdWriteAccelerationStructuresPropertiesKHR = PFN_vkCmdWriteAccelerationStructuresPropertiesKHR( vkGetDeviceProcAddr( device, "vkCmdWriteAccelerationStructuresPropertiesKHR" ) ); vkGetDeviceAccelerationStructureCompatibilityKHR = PFN_vkGetDeviceAccelerationStructureCompatibilityKHR( vkGetDeviceProcAddr( device, "vkGetDeviceAccelerationStructureCompatibilityKHR" ) ); vkGetAccelerationStructureBuildSizesKHR = PFN_vkGetAccelerationStructureBuildSizesKHR( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureBuildSizesKHR" ) ); //=== VK_KHR_sampler_ycbcr_conversion === vkCreateSamplerYcbcrConversionKHR = PFN_vkCreateSamplerYcbcrConversionKHR( vkGetDeviceProcAddr( device, "vkCreateSamplerYcbcrConversionKHR" ) ); if ( !vkCreateSamplerYcbcrConversion ) vkCreateSamplerYcbcrConversion = vkCreateSamplerYcbcrConversionKHR; vkDestroySamplerYcbcrConversionKHR = PFN_vkDestroySamplerYcbcrConversionKHR( vkGetDeviceProcAddr( device, "vkDestroySamplerYcbcrConversionKHR" ) ); if ( !vkDestroySamplerYcbcrConversion ) vkDestroySamplerYcbcrConversion = vkDestroySamplerYcbcrConversionKHR; //=== VK_KHR_bind_memory2 === vkBindBufferMemory2KHR = PFN_vkBindBufferMemory2KHR( vkGetDeviceProcAddr( device, "vkBindBufferMemory2KHR" ) ); if ( !vkBindBufferMemory2 ) vkBindBufferMemory2 = vkBindBufferMemory2KHR; vkBindImageMemory2KHR = PFN_vkBindImageMemory2KHR( vkGetDeviceProcAddr( device, "vkBindImageMemory2KHR" ) ); if ( !vkBindImageMemory2 ) vkBindImageMemory2 = vkBindImageMemory2KHR; //=== VK_EXT_image_drm_format_modifier === vkGetImageDrmFormatModifierPropertiesEXT = PFN_vkGetImageDrmFormatModifierPropertiesEXT( vkGetDeviceProcAddr( device, "vkGetImageDrmFormatModifierPropertiesEXT" ) ); //=== VK_EXT_validation_cache === vkCreateValidationCacheEXT = PFN_vkCreateValidationCacheEXT( vkGetDeviceProcAddr( device, "vkCreateValidationCacheEXT" ) ); vkDestroyValidationCacheEXT = PFN_vkDestroyValidationCacheEXT( vkGetDeviceProcAddr( device, "vkDestroyValidationCacheEXT" ) ); vkMergeValidationCachesEXT = PFN_vkMergeValidationCachesEXT( vkGetDeviceProcAddr( device, "vkMergeValidationCachesEXT" ) ); vkGetValidationCacheDataEXT = PFN_vkGetValidationCacheDataEXT( vkGetDeviceProcAddr( device, "vkGetValidationCacheDataEXT" ) ); //=== VK_NV_shading_rate_image === vkCmdBindShadingRateImageNV = PFN_vkCmdBindShadingRateImageNV( vkGetDeviceProcAddr( device, "vkCmdBindShadingRateImageNV" ) ); vkCmdSetViewportShadingRatePaletteNV = PFN_vkCmdSetViewportShadingRatePaletteNV( vkGetDeviceProcAddr( device, "vkCmdSetViewportShadingRatePaletteNV" ) ); vkCmdSetCoarseSampleOrderNV = PFN_vkCmdSetCoarseSampleOrderNV( vkGetDeviceProcAddr( device, "vkCmdSetCoarseSampleOrderNV" ) ); //=== VK_NV_ray_tracing === vkCreateAccelerationStructureNV = PFN_vkCreateAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkCreateAccelerationStructureNV" ) ); vkDestroyAccelerationStructureNV = PFN_vkDestroyAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkDestroyAccelerationStructureNV" ) ); vkGetAccelerationStructureMemoryRequirementsNV = PFN_vkGetAccelerationStructureMemoryRequirementsNV( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureMemoryRequirementsNV" ) ); vkBindAccelerationStructureMemoryNV = PFN_vkBindAccelerationStructureMemoryNV( vkGetDeviceProcAddr( device, "vkBindAccelerationStructureMemoryNV" ) ); vkCmdBuildAccelerationStructureNV = PFN_vkCmdBuildAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkCmdBuildAccelerationStructureNV" ) ); vkCmdCopyAccelerationStructureNV = PFN_vkCmdCopyAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkCmdCopyAccelerationStructureNV" ) ); vkCmdTraceRaysNV = PFN_vkCmdTraceRaysNV( vkGetDeviceProcAddr( device, "vkCmdTraceRaysNV" ) ); vkCreateRayTracingPipelinesNV = PFN_vkCreateRayTracingPipelinesNV( vkGetDeviceProcAddr( device, "vkCreateRayTracingPipelinesNV" ) ); vkGetRayTracingShaderGroupHandlesNV = PFN_vkGetRayTracingShaderGroupHandlesNV( vkGetDeviceProcAddr( device, "vkGetRayTracingShaderGroupHandlesNV" ) ); if ( !vkGetRayTracingShaderGroupHandlesKHR ) vkGetRayTracingShaderGroupHandlesKHR = vkGetRayTracingShaderGroupHandlesNV; vkGetAccelerationStructureHandleNV = PFN_vkGetAccelerationStructureHandleNV( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureHandleNV" ) ); vkCmdWriteAccelerationStructuresPropertiesNV = PFN_vkCmdWriteAccelerationStructuresPropertiesNV( vkGetDeviceProcAddr( device, "vkCmdWriteAccelerationStructuresPropertiesNV" ) ); vkCompileDeferredNV = PFN_vkCompileDeferredNV( vkGetDeviceProcAddr( device, "vkCompileDeferredNV" ) ); //=== VK_KHR_maintenance3 === vkGetDescriptorSetLayoutSupportKHR = PFN_vkGetDescriptorSetLayoutSupportKHR( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutSupportKHR" ) ); if ( !vkGetDescriptorSetLayoutSupport ) vkGetDescriptorSetLayoutSupport = vkGetDescriptorSetLayoutSupportKHR; //=== VK_KHR_draw_indirect_count === vkCmdDrawIndirectCountKHR = PFN_vkCmdDrawIndirectCountKHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCountKHR" ) ); if ( !vkCmdDrawIndirectCount ) vkCmdDrawIndirectCount = vkCmdDrawIndirectCountKHR; vkCmdDrawIndexedIndirectCountKHR = PFN_vkCmdDrawIndexedIndirectCountKHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCountKHR" ) ); if ( !vkCmdDrawIndexedIndirectCount ) vkCmdDrawIndexedIndirectCount = vkCmdDrawIndexedIndirectCountKHR; //=== VK_EXT_external_memory_host === vkGetMemoryHostPointerPropertiesEXT = PFN_vkGetMemoryHostPointerPropertiesEXT( vkGetDeviceProcAddr( device, "vkGetMemoryHostPointerPropertiesEXT" ) ); //=== VK_AMD_buffer_marker === vkCmdWriteBufferMarkerAMD = PFN_vkCmdWriteBufferMarkerAMD( vkGetDeviceProcAddr( device, "vkCmdWriteBufferMarkerAMD" ) ); //=== VK_EXT_calibrated_timestamps === vkGetCalibratedTimestampsEXT = PFN_vkGetCalibratedTimestampsEXT( vkGetDeviceProcAddr( device, "vkGetCalibratedTimestampsEXT" ) ); //=== VK_NV_mesh_shader === vkCmdDrawMeshTasksNV = PFN_vkCmdDrawMeshTasksNV( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksNV" ) ); vkCmdDrawMeshTasksIndirectNV = PFN_vkCmdDrawMeshTasksIndirectNV( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectNV" ) ); vkCmdDrawMeshTasksIndirectCountNV = PFN_vkCmdDrawMeshTasksIndirectCountNV( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectCountNV" ) ); //=== VK_NV_scissor_exclusive === vkCmdSetExclusiveScissorNV = PFN_vkCmdSetExclusiveScissorNV( vkGetDeviceProcAddr( device, "vkCmdSetExclusiveScissorNV" ) ); //=== VK_NV_device_diagnostic_checkpoints === vkCmdSetCheckpointNV = PFN_vkCmdSetCheckpointNV( vkGetDeviceProcAddr( device, "vkCmdSetCheckpointNV" ) ); vkGetQueueCheckpointDataNV = PFN_vkGetQueueCheckpointDataNV( vkGetDeviceProcAddr( device, "vkGetQueueCheckpointDataNV" ) ); //=== VK_KHR_timeline_semaphore === vkGetSemaphoreCounterValueKHR = PFN_vkGetSemaphoreCounterValueKHR( vkGetDeviceProcAddr( device, "vkGetSemaphoreCounterValueKHR" ) ); if ( !vkGetSemaphoreCounterValue ) vkGetSemaphoreCounterValue = vkGetSemaphoreCounterValueKHR; vkWaitSemaphoresKHR = PFN_vkWaitSemaphoresKHR( vkGetDeviceProcAddr( device, "vkWaitSemaphoresKHR" ) ); if ( !vkWaitSemaphores ) vkWaitSemaphores = vkWaitSemaphoresKHR; vkSignalSemaphoreKHR = PFN_vkSignalSemaphoreKHR( vkGetDeviceProcAddr( device, "vkSignalSemaphoreKHR" ) ); if ( !vkSignalSemaphore ) vkSignalSemaphore = vkSignalSemaphoreKHR; //=== VK_INTEL_performance_query === vkInitializePerformanceApiINTEL = PFN_vkInitializePerformanceApiINTEL( vkGetDeviceProcAddr( device, "vkInitializePerformanceApiINTEL" ) ); vkUninitializePerformanceApiINTEL = PFN_vkUninitializePerformanceApiINTEL( vkGetDeviceProcAddr( device, "vkUninitializePerformanceApiINTEL" ) ); vkCmdSetPerformanceMarkerINTEL = PFN_vkCmdSetPerformanceMarkerINTEL( vkGetDeviceProcAddr( device, "vkCmdSetPerformanceMarkerINTEL" ) ); vkCmdSetPerformanceStreamMarkerINTEL = PFN_vkCmdSetPerformanceStreamMarkerINTEL( vkGetDeviceProcAddr( device, "vkCmdSetPerformanceStreamMarkerINTEL" ) ); vkCmdSetPerformanceOverrideINTEL = PFN_vkCmdSetPerformanceOverrideINTEL( vkGetDeviceProcAddr( device, "vkCmdSetPerformanceOverrideINTEL" ) ); vkAcquirePerformanceConfigurationINTEL = PFN_vkAcquirePerformanceConfigurationINTEL( vkGetDeviceProcAddr( device, "vkAcquirePerformanceConfigurationINTEL" ) ); vkReleasePerformanceConfigurationINTEL = PFN_vkReleasePerformanceConfigurationINTEL( vkGetDeviceProcAddr( device, "vkReleasePerformanceConfigurationINTEL" ) ); vkQueueSetPerformanceConfigurationINTEL = PFN_vkQueueSetPerformanceConfigurationINTEL( vkGetDeviceProcAddr( device, "vkQueueSetPerformanceConfigurationINTEL" ) ); vkGetPerformanceParameterINTEL = PFN_vkGetPerformanceParameterINTEL( vkGetDeviceProcAddr( device, "vkGetPerformanceParameterINTEL" ) ); //=== VK_AMD_display_native_hdr === vkSetLocalDimmingAMD = PFN_vkSetLocalDimmingAMD( vkGetDeviceProcAddr( device, "vkSetLocalDimmingAMD" ) ); //=== VK_KHR_fragment_shading_rate === vkCmdSetFragmentShadingRateKHR = PFN_vkCmdSetFragmentShadingRateKHR( vkGetDeviceProcAddr( device, "vkCmdSetFragmentShadingRateKHR" ) ); //=== VK_EXT_buffer_device_address === vkGetBufferDeviceAddressEXT = PFN_vkGetBufferDeviceAddressEXT( vkGetDeviceProcAddr( device, "vkGetBufferDeviceAddressEXT" ) ); if ( !vkGetBufferDeviceAddress ) vkGetBufferDeviceAddress = vkGetBufferDeviceAddressEXT; //=== VK_KHR_present_wait === vkWaitForPresentKHR = PFN_vkWaitForPresentKHR( vkGetDeviceProcAddr( device, "vkWaitForPresentKHR" ) ); #if defined( VK_USE_PLATFORM_WIN32_KHR ) //=== VK_EXT_full_screen_exclusive === vkAcquireFullScreenExclusiveModeEXT = PFN_vkAcquireFullScreenExclusiveModeEXT( vkGetDeviceProcAddr( device, "vkAcquireFullScreenExclusiveModeEXT" ) ); vkReleaseFullScreenExclusiveModeEXT = PFN_vkReleaseFullScreenExclusiveModeEXT( vkGetDeviceProcAddr( device, "vkReleaseFullScreenExclusiveModeEXT" ) ); vkGetDeviceGroupSurfacePresentModes2EXT = PFN_vkGetDeviceGroupSurfacePresentModes2EXT( vkGetDeviceProcAddr( device, "vkGetDeviceGroupSurfacePresentModes2EXT" ) ); #endif /*VK_USE_PLATFORM_WIN32_KHR*/ //=== VK_KHR_buffer_device_address === vkGetBufferDeviceAddressKHR = PFN_vkGetBufferDeviceAddressKHR( vkGetDeviceProcAddr( device, "vkGetBufferDeviceAddressKHR" ) ); if ( !vkGetBufferDeviceAddress ) vkGetBufferDeviceAddress = vkGetBufferDeviceAddressKHR; vkGetBufferOpaqueCaptureAddressKHR = PFN_vkGetBufferOpaqueCaptureAddressKHR( vkGetDeviceProcAddr( device, "vkGetBufferOpaqueCaptureAddressKHR" ) ); if ( !vkGetBufferOpaqueCaptureAddress ) vkGetBufferOpaqueCaptureAddress = vkGetBufferOpaqueCaptureAddressKHR; vkGetDeviceMemoryOpaqueCaptureAddressKHR = PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR( vkGetDeviceProcAddr( device, "vkGetDeviceMemoryOpaqueCaptureAddressKHR" ) ); if ( !vkGetDeviceMemoryOpaqueCaptureAddress ) vkGetDeviceMemoryOpaqueCaptureAddress = vkGetDeviceMemoryOpaqueCaptureAddressKHR; //=== VK_EXT_line_rasterization === vkCmdSetLineStippleEXT = PFN_vkCmdSetLineStippleEXT( vkGetDeviceProcAddr( device, "vkCmdSetLineStippleEXT" ) ); //=== VK_EXT_host_query_reset === vkResetQueryPoolEXT = PFN_vkResetQueryPoolEXT( vkGetDeviceProcAddr( device, "vkResetQueryPoolEXT" ) ); if ( !vkResetQueryPool ) vkResetQueryPool = vkResetQueryPoolEXT; //=== VK_EXT_extended_dynamic_state === vkCmdSetCullModeEXT = PFN_vkCmdSetCullModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetCullModeEXT" ) ); if ( !vkCmdSetCullMode ) vkCmdSetCullMode = vkCmdSetCullModeEXT; vkCmdSetFrontFaceEXT = PFN_vkCmdSetFrontFaceEXT( vkGetDeviceProcAddr( device, "vkCmdSetFrontFaceEXT" ) ); if ( !vkCmdSetFrontFace ) vkCmdSetFrontFace = vkCmdSetFrontFaceEXT; vkCmdSetPrimitiveTopologyEXT = PFN_vkCmdSetPrimitiveTopologyEXT( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveTopologyEXT" ) ); if ( !vkCmdSetPrimitiveTopology ) vkCmdSetPrimitiveTopology = vkCmdSetPrimitiveTopologyEXT; vkCmdSetViewportWithCountEXT = PFN_vkCmdSetViewportWithCountEXT( vkGetDeviceProcAddr( device, "vkCmdSetViewportWithCountEXT" ) ); if ( !vkCmdSetViewportWithCount ) vkCmdSetViewportWithCount = vkCmdSetViewportWithCountEXT; vkCmdSetScissorWithCountEXT = PFN_vkCmdSetScissorWithCountEXT( vkGetDeviceProcAddr( device, "vkCmdSetScissorWithCountEXT" ) ); if ( !vkCmdSetScissorWithCount ) vkCmdSetScissorWithCount = vkCmdSetScissorWithCountEXT; vkCmdBindVertexBuffers2EXT = PFN_vkCmdBindVertexBuffers2EXT( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers2EXT" ) ); if ( !vkCmdBindVertexBuffers2 ) vkCmdBindVertexBuffers2 = vkCmdBindVertexBuffers2EXT; vkCmdSetDepthTestEnableEXT = PFN_vkCmdSetDepthTestEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthTestEnableEXT" ) ); if ( !vkCmdSetDepthTestEnable ) vkCmdSetDepthTestEnable = vkCmdSetDepthTestEnableEXT; vkCmdSetDepthWriteEnableEXT = PFN_vkCmdSetDepthWriteEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthWriteEnableEXT" ) ); if ( !vkCmdSetDepthWriteEnable ) vkCmdSetDepthWriteEnable = vkCmdSetDepthWriteEnableEXT; vkCmdSetDepthCompareOpEXT = PFN_vkCmdSetDepthCompareOpEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthCompareOpEXT" ) ); if ( !vkCmdSetDepthCompareOp ) vkCmdSetDepthCompareOp = vkCmdSetDepthCompareOpEXT; vkCmdSetDepthBoundsTestEnableEXT = PFN_vkCmdSetDepthBoundsTestEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthBoundsTestEnableEXT" ) ); if ( !vkCmdSetDepthBoundsTestEnable ) vkCmdSetDepthBoundsTestEnable = vkCmdSetDepthBoundsTestEnableEXT; vkCmdSetStencilTestEnableEXT = PFN_vkCmdSetStencilTestEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetStencilTestEnableEXT" ) ); if ( !vkCmdSetStencilTestEnable ) vkCmdSetStencilTestEnable = vkCmdSetStencilTestEnableEXT; vkCmdSetStencilOpEXT = PFN_vkCmdSetStencilOpEXT( vkGetDeviceProcAddr( device, "vkCmdSetStencilOpEXT" ) ); if ( !vkCmdSetStencilOp ) vkCmdSetStencilOp = vkCmdSetStencilOpEXT; //=== VK_KHR_deferred_host_operations === vkCreateDeferredOperationKHR = PFN_vkCreateDeferredOperationKHR( vkGetDeviceProcAddr( device, "vkCreateDeferredOperationKHR" ) ); vkDestroyDeferredOperationKHR = PFN_vkDestroyDeferredOperationKHR( vkGetDeviceProcAddr( device, "vkDestroyDeferredOperationKHR" ) ); vkGetDeferredOperationMaxConcurrencyKHR = PFN_vkGetDeferredOperationMaxConcurrencyKHR( vkGetDeviceProcAddr( device, "vkGetDeferredOperationMaxConcurrencyKHR" ) ); vkGetDeferredOperationResultKHR = PFN_vkGetDeferredOperationResultKHR( vkGetDeviceProcAddr( device, "vkGetDeferredOperationResultKHR" ) ); vkDeferredOperationJoinKHR = PFN_vkDeferredOperationJoinKHR( vkGetDeviceProcAddr( device, "vkDeferredOperationJoinKHR" ) ); //=== VK_KHR_pipeline_executable_properties === vkGetPipelineExecutablePropertiesKHR = PFN_vkGetPipelineExecutablePropertiesKHR( vkGetDeviceProcAddr( device, "vkGetPipelineExecutablePropertiesKHR" ) ); vkGetPipelineExecutableStatisticsKHR = PFN_vkGetPipelineExecutableStatisticsKHR( vkGetDeviceProcAddr( device, "vkGetPipelineExecutableStatisticsKHR" ) ); vkGetPipelineExecutableInternalRepresentationsKHR = PFN_vkGetPipelineExecutableInternalRepresentationsKHR( vkGetDeviceProcAddr( device, "vkGetPipelineExecutableInternalRepresentationsKHR" ) ); //=== VK_NV_device_generated_commands === vkGetGeneratedCommandsMemoryRequirementsNV = PFN_vkGetGeneratedCommandsMemoryRequirementsNV( vkGetDeviceProcAddr( device, "vkGetGeneratedCommandsMemoryRequirementsNV" ) ); vkCmdPreprocessGeneratedCommandsNV = PFN_vkCmdPreprocessGeneratedCommandsNV( vkGetDeviceProcAddr( device, "vkCmdPreprocessGeneratedCommandsNV" ) ); vkCmdExecuteGeneratedCommandsNV = PFN_vkCmdExecuteGeneratedCommandsNV( vkGetDeviceProcAddr( device, "vkCmdExecuteGeneratedCommandsNV" ) ); vkCmdBindPipelineShaderGroupNV = PFN_vkCmdBindPipelineShaderGroupNV( vkGetDeviceProcAddr( device, "vkCmdBindPipelineShaderGroupNV" ) ); vkCreateIndirectCommandsLayoutNV = PFN_vkCreateIndirectCommandsLayoutNV( vkGetDeviceProcAddr( device, "vkCreateIndirectCommandsLayoutNV" ) ); vkDestroyIndirectCommandsLayoutNV = PFN_vkDestroyIndirectCommandsLayoutNV( vkGetDeviceProcAddr( device, "vkDestroyIndirectCommandsLayoutNV" ) ); //=== VK_EXT_private_data === vkCreatePrivateDataSlotEXT = PFN_vkCreatePrivateDataSlotEXT( vkGetDeviceProcAddr( device, "vkCreatePrivateDataSlotEXT" ) ); if ( !vkCreatePrivateDataSlot ) vkCreatePrivateDataSlot = vkCreatePrivateDataSlotEXT; vkDestroyPrivateDataSlotEXT = PFN_vkDestroyPrivateDataSlotEXT( vkGetDeviceProcAddr( device, "vkDestroyPrivateDataSlotEXT" ) ); if ( !vkDestroyPrivateDataSlot ) vkDestroyPrivateDataSlot = vkDestroyPrivateDataSlotEXT; vkSetPrivateDataEXT = PFN_vkSetPrivateDataEXT( vkGetDeviceProcAddr( device, "vkSetPrivateDataEXT" ) ); if ( !vkSetPrivateData ) vkSetPrivateData = vkSetPrivateDataEXT; vkGetPrivateDataEXT = PFN_vkGetPrivateDataEXT( vkGetDeviceProcAddr( device, "vkGetPrivateDataEXT" ) ); if ( !vkGetPrivateData ) vkGetPrivateData = vkGetPrivateDataEXT; #if defined( VK_ENABLE_BETA_EXTENSIONS ) //=== VK_KHR_video_encode_queue === vkCmdEncodeVideoKHR = PFN_vkCmdEncodeVideoKHR( vkGetDeviceProcAddr( device, "vkCmdEncodeVideoKHR" ) ); #endif /*VK_ENABLE_BETA_EXTENSIONS*/ #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === vkExportMetalObjectsEXT = PFN_vkExportMetalObjectsEXT( vkGetDeviceProcAddr( device, "vkExportMetalObjectsEXT" ) ); #endif /*VK_USE_PLATFORM_METAL_EXT*/ //=== VK_KHR_synchronization2 === vkCmdSetEvent2KHR = PFN_vkCmdSetEvent2KHR( vkGetDeviceProcAddr( device, "vkCmdSetEvent2KHR" ) ); if ( !vkCmdSetEvent2 ) vkCmdSetEvent2 = vkCmdSetEvent2KHR; vkCmdResetEvent2KHR = PFN_vkCmdResetEvent2KHR( vkGetDeviceProcAddr( device, "vkCmdResetEvent2KHR" ) ); if ( !vkCmdResetEvent2 ) vkCmdResetEvent2 = vkCmdResetEvent2KHR; vkCmdWaitEvents2KHR = PFN_vkCmdWaitEvents2KHR( vkGetDeviceProcAddr( device, "vkCmdWaitEvents2KHR" ) ); if ( !vkCmdWaitEvents2 ) vkCmdWaitEvents2 = vkCmdWaitEvents2KHR; vkCmdPipelineBarrier2KHR = PFN_vkCmdPipelineBarrier2KHR( vkGetDeviceProcAddr( device, "vkCmdPipelineBarrier2KHR" ) ); if ( !vkCmdPipelineBarrier2 ) vkCmdPipelineBarrier2 = vkCmdPipelineBarrier2KHR; vkCmdWriteTimestamp2KHR = PFN_vkCmdWriteTimestamp2KHR( vkGetDeviceProcAddr( device, "vkCmdWriteTimestamp2KHR" ) ); if ( !vkCmdWriteTimestamp2 ) vkCmdWriteTimestamp2 = vkCmdWriteTimestamp2KHR; vkQueueSubmit2KHR = PFN_vkQueueSubmit2KHR( vkGetDeviceProcAddr( device, "vkQueueSubmit2KHR" ) ); if ( !vkQueueSubmit2 ) vkQueueSubmit2 = vkQueueSubmit2KHR; vkCmdWriteBufferMarker2AMD = PFN_vkCmdWriteBufferMarker2AMD( vkGetDeviceProcAddr( device, "vkCmdWriteBufferMarker2AMD" ) ); vkGetQueueCheckpointData2NV = PFN_vkGetQueueCheckpointData2NV( vkGetDeviceProcAddr( device, "vkGetQueueCheckpointData2NV" ) ); //=== VK_NV_fragment_shading_rate_enums === vkCmdSetFragmentShadingRateEnumNV = PFN_vkCmdSetFragmentShadingRateEnumNV( vkGetDeviceProcAddr( device, "vkCmdSetFragmentShadingRateEnumNV" ) ); //=== VK_KHR_copy_commands2 === vkCmdCopyBuffer2KHR = PFN_vkCmdCopyBuffer2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyBuffer2KHR" ) ); if ( !vkCmdCopyBuffer2 ) vkCmdCopyBuffer2 = vkCmdCopyBuffer2KHR; vkCmdCopyImage2KHR = PFN_vkCmdCopyImage2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyImage2KHR" ) ); if ( !vkCmdCopyImage2 ) vkCmdCopyImage2 = vkCmdCopyImage2KHR; vkCmdCopyBufferToImage2KHR = PFN_vkCmdCopyBufferToImage2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyBufferToImage2KHR" ) ); if ( !vkCmdCopyBufferToImage2 ) vkCmdCopyBufferToImage2 = vkCmdCopyBufferToImage2KHR; vkCmdCopyImageToBuffer2KHR = PFN_vkCmdCopyImageToBuffer2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyImageToBuffer2KHR" ) ); if ( !vkCmdCopyImageToBuffer2 ) vkCmdCopyImageToBuffer2 = vkCmdCopyImageToBuffer2KHR; vkCmdBlitImage2KHR = PFN_vkCmdBlitImage2KHR( vkGetDeviceProcAddr( device, "vkCmdBlitImage2KHR" ) ); if ( !vkCmdBlitImage2 ) vkCmdBlitImage2 = vkCmdBlitImage2KHR; vkCmdResolveImage2KHR = PFN_vkCmdResolveImage2KHR( vkGetDeviceProcAddr( device, "vkCmdResolveImage2KHR" ) ); if ( !vkCmdResolveImage2 ) vkCmdResolveImage2 = vkCmdResolveImage2KHR; //=== VK_EXT_image_compression_control === vkGetImageSubresourceLayout2EXT = PFN_vkGetImageSubresourceLayout2EXT( vkGetDeviceProcAddr( device, "vkGetImageSubresourceLayout2EXT" ) ); //=== VK_KHR_ray_tracing_pipeline === vkCmdTraceRaysKHR = PFN_vkCmdTraceRaysKHR( vkGetDeviceProcAddr( device, "vkCmdTraceRaysKHR" ) ); vkCreateRayTracingPipelinesKHR = PFN_vkCreateRayTracingPipelinesKHR( vkGetDeviceProcAddr( device, "vkCreateRayTracingPipelinesKHR" ) ); vkGetRayTracingShaderGroupHandlesKHR = PFN_vkGetRayTracingShaderGroupHandlesKHR( vkGetDeviceProcAddr( device, "vkGetRayTracingShaderGroupHandlesKHR" ) ); vkGetRayTracingCaptureReplayShaderGroupHandlesKHR = PFN_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( vkGetDeviceProcAddr( device, "vkGetRayTracingCaptureReplayShaderGroupHandlesKHR" ) ); vkCmdTraceRaysIndirectKHR = PFN_vkCmdTraceRaysIndirectKHR( vkGetDeviceProcAddr( device, "vkCmdTraceRaysIndirectKHR" ) ); vkGetRayTracingShaderGroupStackSizeKHR = PFN_vkGetRayTracingShaderGroupStackSizeKHR( vkGetDeviceProcAddr( device, "vkGetRayTracingShaderGroupStackSizeKHR" ) ); vkCmdSetRayTracingPipelineStackSizeKHR = PFN_vkCmdSetRayTracingPipelineStackSizeKHR( vkGetDeviceProcAddr( device, "vkCmdSetRayTracingPipelineStackSizeKHR" ) ); //=== VK_EXT_vertex_input_dynamic_state === vkCmdSetVertexInputEXT = PFN_vkCmdSetVertexInputEXT( vkGetDeviceProcAddr( device, "vkCmdSetVertexInputEXT" ) ); #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_memory === vkGetMemoryZirconHandleFUCHSIA = PFN_vkGetMemoryZirconHandleFUCHSIA( vkGetDeviceProcAddr( device, "vkGetMemoryZirconHandleFUCHSIA" ) ); vkGetMemoryZirconHandlePropertiesFUCHSIA = PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA( vkGetDeviceProcAddr( device, "vkGetMemoryZirconHandlePropertiesFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_semaphore === vkImportSemaphoreZirconHandleFUCHSIA = PFN_vkImportSemaphoreZirconHandleFUCHSIA( vkGetDeviceProcAddr( device, "vkImportSemaphoreZirconHandleFUCHSIA" ) ); vkGetSemaphoreZirconHandleFUCHSIA = PFN_vkGetSemaphoreZirconHandleFUCHSIA( vkGetDeviceProcAddr( device, "vkGetSemaphoreZirconHandleFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ #if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_buffer_collection === vkCreateBufferCollectionFUCHSIA = PFN_vkCreateBufferCollectionFUCHSIA( vkGetDeviceProcAddr( device, "vkCreateBufferCollectionFUCHSIA" ) ); vkSetBufferCollectionImageConstraintsFUCHSIA = PFN_vkSetBufferCollectionImageConstraintsFUCHSIA( vkGetDeviceProcAddr( device, "vkSetBufferCollectionImageConstraintsFUCHSIA" ) ); vkSetBufferCollectionBufferConstraintsFUCHSIA = PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA( vkGetDeviceProcAddr( device, "vkSetBufferCollectionBufferConstraintsFUCHSIA" ) ); vkDestroyBufferCollectionFUCHSIA = PFN_vkDestroyBufferCollectionFUCHSIA( vkGetDeviceProcAddr( device, "vkDestroyBufferCollectionFUCHSIA" ) ); vkGetBufferCollectionPropertiesFUCHSIA = PFN_vkGetBufferCollectionPropertiesFUCHSIA( vkGetDeviceProcAddr( device, "vkGetBufferCollectionPropertiesFUCHSIA" ) ); #endif /*VK_USE_PLATFORM_FUCHSIA*/ //=== VK_HUAWEI_subpass_shading === vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI = PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( vkGetDeviceProcAddr( device, "vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI" ) ); vkCmdSubpassShadingHUAWEI = PFN_vkCmdSubpassShadingHUAWEI( vkGetDeviceProcAddr( device, "vkCmdSubpassShadingHUAWEI" ) ); //=== VK_HUAWEI_invocation_mask === vkCmdBindInvocationMaskHUAWEI = PFN_vkCmdBindInvocationMaskHUAWEI( vkGetDeviceProcAddr( device, "vkCmdBindInvocationMaskHUAWEI" ) ); //=== VK_NV_external_memory_rdma === vkGetMemoryRemoteAddressNV = PFN_vkGetMemoryRemoteAddressNV( vkGetDeviceProcAddr( device, "vkGetMemoryRemoteAddressNV" ) ); //=== VK_EXT_pipeline_properties === vkGetPipelinePropertiesEXT = PFN_vkGetPipelinePropertiesEXT( vkGetDeviceProcAddr( device, "vkGetPipelinePropertiesEXT" ) ); //=== VK_EXT_extended_dynamic_state2 === vkCmdSetPatchControlPointsEXT = PFN_vkCmdSetPatchControlPointsEXT( vkGetDeviceProcAddr( device, "vkCmdSetPatchControlPointsEXT" ) ); vkCmdSetRasterizerDiscardEnableEXT = PFN_vkCmdSetRasterizerDiscardEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetRasterizerDiscardEnableEXT" ) ); if ( !vkCmdSetRasterizerDiscardEnable ) vkCmdSetRasterizerDiscardEnable = vkCmdSetRasterizerDiscardEnableEXT; vkCmdSetDepthBiasEnableEXT = PFN_vkCmdSetDepthBiasEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthBiasEnableEXT" ) ); if ( !vkCmdSetDepthBiasEnable ) vkCmdSetDepthBiasEnable = vkCmdSetDepthBiasEnableEXT; vkCmdSetLogicOpEXT = PFN_vkCmdSetLogicOpEXT( vkGetDeviceProcAddr( device, "vkCmdSetLogicOpEXT" ) ); vkCmdSetPrimitiveRestartEnableEXT = PFN_vkCmdSetPrimitiveRestartEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveRestartEnableEXT" ) ); if ( !vkCmdSetPrimitiveRestartEnable ) vkCmdSetPrimitiveRestartEnable = vkCmdSetPrimitiveRestartEnableEXT; //=== VK_EXT_color_write_enable === vkCmdSetColorWriteEnableEXT = PFN_vkCmdSetColorWriteEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetColorWriteEnableEXT" ) ); //=== VK_KHR_ray_tracing_maintenance1 === vkCmdTraceRaysIndirect2KHR = PFN_vkCmdTraceRaysIndirect2KHR( vkGetDeviceProcAddr( device, "vkCmdTraceRaysIndirect2KHR" ) ); //=== VK_EXT_multi_draw === vkCmdDrawMultiEXT = PFN_vkCmdDrawMultiEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMultiEXT" ) ); vkCmdDrawMultiIndexedEXT = PFN_vkCmdDrawMultiIndexedEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMultiIndexedEXT" ) ); //=== VK_EXT_pageable_device_local_memory === vkSetDeviceMemoryPriorityEXT = PFN_vkSetDeviceMemoryPriorityEXT( vkGetDeviceProcAddr( device, "vkSetDeviceMemoryPriorityEXT" ) ); //=== VK_KHR_maintenance4 === vkGetDeviceBufferMemoryRequirementsKHR = PFN_vkGetDeviceBufferMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetDeviceBufferMemoryRequirementsKHR" ) ); if ( !vkGetDeviceBufferMemoryRequirements ) vkGetDeviceBufferMemoryRequirements = vkGetDeviceBufferMemoryRequirementsKHR; vkGetDeviceImageMemoryRequirementsKHR = PFN_vkGetDeviceImageMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetDeviceImageMemoryRequirementsKHR" ) ); if ( !vkGetDeviceImageMemoryRequirements ) vkGetDeviceImageMemoryRequirements = vkGetDeviceImageMemoryRequirementsKHR; vkGetDeviceImageSparseMemoryRequirementsKHR = PFN_vkGetDeviceImageSparseMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetDeviceImageSparseMemoryRequirementsKHR" ) ); if ( !vkGetDeviceImageSparseMemoryRequirements ) vkGetDeviceImageSparseMemoryRequirements = vkGetDeviceImageSparseMemoryRequirementsKHR; //=== VK_VALVE_descriptor_set_host_mapping === vkGetDescriptorSetLayoutHostMappingInfoVALVE = PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutHostMappingInfoVALVE" ) ); vkGetDescriptorSetHostMappingVALVE = PFN_vkGetDescriptorSetHostMappingVALVE( vkGetDeviceProcAddr( device, "vkGetDescriptorSetHostMappingVALVE" ) ); //=== VK_EXT_shader_module_identifier === vkGetShaderModuleIdentifierEXT = PFN_vkGetShaderModuleIdentifierEXT( vkGetDeviceProcAddr( device, "vkGetShaderModuleIdentifierEXT" ) ); vkGetShaderModuleCreateInfoIdentifierEXT = PFN_vkGetShaderModuleCreateInfoIdentifierEXT( vkGetDeviceProcAddr( device, "vkGetShaderModuleCreateInfoIdentifierEXT" ) ); //=== VK_QCOM_tile_properties === vkGetFramebufferTilePropertiesQCOM = PFN_vkGetFramebufferTilePropertiesQCOM( vkGetDeviceProcAddr( device, "vkGetFramebufferTilePropertiesQCOM" ) ); vkGetDynamicRenderingTilePropertiesQCOM = PFN_vkGetDynamicRenderingTilePropertiesQCOM( vkGetDeviceProcAddr( device, "vkGetDynamicRenderingTilePropertiesQCOM" ) ); } }; } // namespace VULKAN_HPP_NAMESPACE #endif
{ "content_hash": "6fcdc40df46f44a0e5142d3bdf33d69e", "timestamp": "", "source": "github", "line_count": 14404, "max_line_length": 160, "avg_line_length": 43.34636212163288, "alnum_prop": 0.6563814844296809, "repo_name": "Unarmed1000/RAIIGen", "id": "aa381816c0fb7ac6156a4b7fb26a865de2c87472", "size": "624361", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "config/Headers/khronos/Vulkan1.0/history/1.3.224.0/vulkan/vulkan.hpp", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C", "bytes": "26832120" }, { "name": "C++", "bytes": "170011146" }, { "name": "HTML", "bytes": "2328171" }, { "name": "Objective-C", "bytes": "42855" } ], "symlink_target": "" }
x-layout { /* relative positioning is important because x-layout should really be * placed in a parent container for it to fill; * also, setting position:absolute causes older flexbox implementations, * such as Firefox 18 (which is the version in FirefoxOS) to render * flex items in a way such that it won't override a height:0 declaration, * which is important for allowing the flex item to shrink past its * content size */ position: relative; display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ display: -ms-flexbox; /* TWEENER - IE 10 */ display: -webkit-flex; /* NEW - Chrome */ display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */ width: 100%; height: 100%; overflow: hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; -webkit-box-orient: vertical; -moz-box-orient: vertical; -ms-box-orient: vertical; box-orient: vertical; -webkit-flex-direction: column; -moz-flex-direction: column; -ms-flex-direction: column; flex-direction: column; } x-layout > header, x-layout > footer { margin: 0 !important; overflow: hidden; z-index: 1; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; -webkit-transform: translateZ(0); -moz-transform: translateZ(0); -ms-transform: translateZ(0); transform: translateZ(0); } x-layout > header, x-layout > footer { -ms-flex-shrink: 0; flex-shrink: 0; -webkit-transition: -webkit-transform 0.2s ease-in-out; -moz-transition: -moz-transform 0.2s ease-in-out; -ms-transition: -ms-transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out; } x-layout > section { -webkit-box-flex: 1; -moz-box-flex: 1; -webkit-flex: 1; flex: 1; -ms-flex: auto; -webkit-transition: margin 0.2s ease-in-out -moz-transition: margin 0.2s ease-in-out; -ms-transition: margin 0.2s ease-in-out; transition: margin 0.2s ease-in-out; -webkit-transform: translateZ(0); -moz-transform: translateZ(0); -ms-transform: translateZ(0); transform: translateZ(0); overflow: auto; position: relative; } x-layout:not([content-maximizing]):not([maxcontent]) > section{ margin: 0 !important; } x-layout > section > *:only-child{ /* fix for issue where 100% height children of flex items render as zero * height in Webkit * see: http://stackoverflow.com/a/15389545 */ position: absolute; width: 100%; height: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } x-layout[hide-trigger] > header, x-layout[hide-trigger] > footer, x-layout[content-maximizing] > header, x-layout[content-maximized] > header, x-layout[maxcontent] > header, x-layout[content-maximizing] > footer, x-layout[content-maximized] > footer, x-layout[maxcontent] > footer { position: absolute; width: 100%; } x-layout[hide-trigger] > footer, x-layout[content-maximizing] > footer, x-layout[content-maximized] > footer, x-layout[maxcontent] > footer { bottom: 0; } x-layout[content-maximizing] > header, x-layout[content-maximized] > header, x-layout[maxcontent] > header{ -webkit-transform: translateY(-100%); -moz-transform: translateY(-100%); -ms-transform: translateY(-100%); transform: translateY(-100%); } x-layout[content-maximizing] > footer, x-layout[content-maximized] > footer, x-layout[maxcontent] > footer { -webkit-transform: translateY(100%); -moz-transform: translateY(100%); -ms-transform: translateY(100%); transform: translateY(100%); }
{ "content_hash": "f60894473c106b4e65ed4ffbb1dfd3af", "timestamp": "", "source": "github", "line_count": 118, "max_line_length": 109, "avg_line_length": 31.516949152542374, "alnum_prop": 0.6845926324280721, "repo_name": "x-tag/x-tag.github.io", "id": "8e877c3d2259b8c12066bfcb9d5c38fc60693dd7", "size": "3719", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "bower_components/x-tag-layout/src/main.css", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "43927" }, { "name": "HTML", "bytes": "96573" }, { "name": "JavaScript", "bytes": "191450" } ], "symlink_target": "" }