diff --git a/.github/workflows/fetch_dependencies.yml b/.github/workflows/fetch_dependencies.yml index fb32205..e28b15a 100644 --- a/.github/workflows/fetch_dependencies.yml +++ b/.github/workflows/fetch_dependencies.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Run Fetch Dependencies Script run: cd scripts && bash ./fetch_dependencies.sh diff --git a/.github/workflows/linux_clang.yml b/.github/workflows/linux_clang.yml index 9764b0e..e5addb4 100644 --- a/.github/workflows/linux_clang.yml +++ b/.github/workflows/linux_clang.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install system dependencies run: | diff --git a/.github/workflows/linux_gcc.yml b/.github/workflows/linux_gcc.yml index db4f3e2..5693e7a 100644 --- a/.github/workflows/linux_gcc.yml +++ b/.github/workflows/linux_gcc.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install system dependencies run: | diff --git a/.github/workflows/linux_meson.yml b/.github/workflows/linux_meson.yml index a583975..d475f50 100644 --- a/.github/workflows/linux_meson.yml +++ b/.github/workflows/linux_meson.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install system dependencies run: | @@ -30,7 +30,7 @@ jobs: sudo apt-get -y install mesa-common-dev clang libsdl2-2.0-0 libsdl2-dev build-essential libvulkan-dev - name: Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.11' diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e5223d9..82199d0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 # Install system dependencies - name: Install Dependancies diff --git a/.github/workflows/macos_meson.yml b/.github/workflows/macos_meson.yml index 90fdb3c..1c0f8cb 100644 --- a/.github/workflows/macos_meson.yml +++ b/.github/workflows/macos_meson.yml @@ -22,14 +22,14 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install system dependencies run: | brew install SDL2 - name: Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.11' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e11b8a9..f11686b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - uses: NcStudios/VulkanCI@v1.2 @@ -69,7 +69,7 @@ jobs: # Save dependencies - name: Save cached xmake dependencies if: ${{ !steps.restore-depcache.outputs.cache-hit }} - uses: actions/cache/save@v5 + uses: actions/cache/save@v6 with: path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages key: ${{ steps.restore-depcache.outputs.cache-primary-key }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c8e1f0c..214319a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,7 +28,7 @@ jobs: run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 # Force xmake to a specific folder (for cache) - name: Set xmake env diff --git a/.github/workflows/windows_meson.yml b/.github/workflows/windows_meson.yml index 6f5a931..33ccd31 100644 --- a/.github/workflows/windows_meson.yml +++ b/.github/workflows/windows_meson.yml @@ -19,14 +19,14 @@ jobs: matrix: platform: ['x64', 'x86'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: fetch-depth: 0 # Install a 32-bit Python so building related stuff work. - name: Setup x86 Python if: matrix.platform == 'x86' - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: architecture: 'x86' python-version: '3.12' @@ -52,7 +52,7 @@ jobs: CC: clang-cl CXX: clang-cl steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: fetch-depth: 0 @@ -75,7 +75,7 @@ jobs: matrix: platform: ['UCRT64', 'CLANG64'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 with: fetch-depth: 0 diff --git a/example/main.c b/example/main.c index 80e13bd..f8c6b23 100644 --- a/example/main.c +++ b/example/main.c @@ -177,6 +177,8 @@ int main(void) mlx.logo_png = mlx_new_image_from_file(mlx.mlx, "42_logo.png", &dummy, &dummy); mlx.logo_jpg = mlx_new_image_from_file(mlx.mlx, "42_logo.jpg", &dummy, &dummy); + mlx_set_window_icon(mlx.mlx, mlx.win, mlx.logo_png); + mlx_pixel_put(mlx.mlx, mlx.win, 200, 10, (mlx_color){ .rgba = 0xFF00FFFF }); mlx_put_image_to_window(mlx.mlx, mlx.win, mlx.logo_png, 0, 0); @@ -193,7 +195,7 @@ int main(void) mlx_destroy_image(mlx.mlx, mlx.logo_bmp); mlx_destroy_image(mlx.mlx, mlx.img); mlx_destroy_window(mlx.mlx, mlx.win); - + mlx_destroy_context(mlx.mlx); return 0; diff --git a/includes/mlx.h b/includes/mlx.h index 25a1a1e..f95cb7a 100644 --- a/includes/mlx.h +++ b/includes/mlx.h @@ -148,7 +148,7 @@ MLX_API void mlx_set_window_position(mlx_context mlx, mlx_window win, int x, int * @brief Sets window size * * @param mlx Internal MLX application - * @param win Internal window to move + * @param win Internal window to resize * @param width New width * @param height New height */ @@ -158,16 +158,25 @@ MLX_API void mlx_set_window_size(mlx_context mlx, mlx_window win, int width, int * @brief Sets window title * * @param mlx Internal MLX application - * @param win Internal window to move + * @param win Internal window to modify * @param title New title */ MLX_API void mlx_set_window_title(mlx_context mlx, mlx_window win, const char* title); +/** + * @brief Sets window icon + * + * @param mlx Internal MLX application + * @param win Internal window to modify + * @param image New icon image + */ +MLX_API void mlx_set_window_icon(mlx_context mlx, mlx_window win, mlx_image image); + /** * @brief Enables/Disables window fullscreen mode * * @param mlx Internal MLX application - * @param win Internal window to move + * @param win Internal window to modify * @param enable Switch or not to fullscreen */ MLX_API void mlx_set_window_fullscreen(mlx_context mlx, mlx_window win, bool enable); @@ -176,7 +185,7 @@ MLX_API void mlx_set_window_fullscreen(mlx_context mlx, mlx_window win, bool ena * @brief Gets window position * * @param mlx Internal MLX application - * @param win Internal window to move + * @param win Internal window to get from * @param x Pointers to get position of the window * @param y Pointers to get position of the window */ @@ -186,7 +195,7 @@ MLX_API void mlx_get_window_position(mlx_context mlx, mlx_window win, int* x, in * @brief Gets window size * * @param mlx Internal MLX application - * @param win Internal window to move + * @param win Internal window to get from * @param x Pointers to get size of the window * @param y Pointers to get size of the window */ @@ -313,7 +322,10 @@ MLX_API void mlx_on_event(mlx_context mlx, mlx_window win, mlx_event_type event, * @param x X coordinate * @param y Y coordinate * @param color Color of the pixel + * + * WARNING: This function isn't performant, consider drawing to an image beforehand. */ +MLX_DEPRECATED("Use an image rather than directly communicating with the window") MLX_API void mlx_pixel_put(mlx_context mlx, mlx_window win, int x, int y, mlx_color color); diff --git a/includes/mlx_extended.h b/includes/mlx_extended.h index 8899a1a..9d368e2 100644 --- a/includes/mlx_extended.h +++ b/includes/mlx_extended.h @@ -75,7 +75,6 @@ MLX_API void mlx_restore_window(mlx_context mlx, mlx_window win); /* Pixels drawing related functions */ - /** * @brief Put an array of pixels in the window * @@ -85,7 +84,12 @@ MLX_API void mlx_restore_window(mlx_context mlx, mlx_window win); * @param y Y coordinate * @param pixels Array of pixels * @param pixels_number Number of pixels + * + * Note: it is responsability of the user to make sure the size of `pixels` is + * big enough for the given array. + * WARNING: This function isn't performant, consider drawing to an image beforehand. */ +MLX_DEPRECATED("Use an image rather than directly communicating with the window") MLX_API void mlx_pixel_put_array(mlx_context mlx, mlx_window win, int x, int y, mlx_color* pixels, size_t pixels_number); /** @@ -101,13 +105,27 @@ MLX_API void mlx_pixel_put_array(mlx_context mlx, mlx_window win, int x, int y, * * Note: it is responsability of the user to make sure the size of `pixels` is * big enough for the given region. + * WARNING: This function isn't performant, consider drawing to an image beforehand. */ +MLX_DEPRECATED("Use an image rather than directly communicating with the window") MLX_API void mlx_pixel_put_region(mlx_context mlx, mlx_window win, int x, int y, int w, int h, mlx_color* pixels); /* Images related functions */ +/** +* @brief Set image rectangle +* +* @param mlx Internal MLX application +* @param img Internal image +* @param x X coordinate in the image +* @param y Y coordinate in the image +* @param w Width of the rectangle +* @param y Height of the rectangle +* @param color Color of the rectangle +*/ +MLX_API void mlx_set_image_rectangle(mlx_context mlx, mlx_image image, int x, int y, int w, int h, mlx_color color); /** * @brief Get image region diff --git a/includes/mlx_keycodes.h b/includes/mlx_keycodes.h new file mode 100644 index 0000000..efe50bc --- /dev/null +++ b/includes/mlx_keycodes.h @@ -0,0 +1,168 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* mlx_keycodes.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rprieur +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2026/08/09 00:15:49 by rprieur #+# #+# */ +/* Updated: 2026/08/09 00:16:30 by rprieur ### ########.fr */ +/* */ +/* ************************************************************************** */ + +// MacroLibX official repo https://github.com/seekrs/MacroLibX +// MacroLibX official website https://macrolibx.kbz8.me/ + +#ifndef MACROLIB_X_KEYCODES_H +#define MACROLIB_X_KEYCODES_H + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @brief Event codes for physical keyboard keys + */ +typedef enum mlx_key_event_code +{ + MLX_KEY_A = 4, + MLX_KEY_B = 5, + MLX_KEY_C = 6, + MLX_KEY_D = 7, + MLX_KEY_E = 8, + MLX_KEY_F = 9, + MLX_KEY_G = 10, + MLX_KEY_H = 11, + MLX_KEY_I = 12, + MLX_KEY_J = 13, + MLX_KEY_K = 14, + MLX_KEY_L = 15, + MLX_KEY_M = 16, + MLX_KEY_N = 17, + MLX_KEY_O = 18, + MLX_KEY_P = 19, + MLX_KEY_Q = 20, + MLX_KEY_R = 21, + MLX_KEY_S = 22, + MLX_KEY_T = 23, + MLX_KEY_U = 24, + MLX_KEY_V = 25, + MLX_KEY_W = 26, + MLX_KEY_X = 27, + MLX_KEY_Y = 28, + MLX_KEY_Z = 29, + MLX_KEY_1 = 30, + MLX_KEY_2 = 31, + MLX_KEY_3 = 32, + MLX_KEY_4 = 33, + MLX_KEY_5 = 34, + MLX_KEY_6 = 35, + MLX_KEY_7 = 36, + MLX_KEY_8 = 37, + MLX_KEY_9 = 38, + MLX_KEY_0 = 39, + MLX_KEY_RETURN = 40, + MLX_KEY_ENTER = 40, + MLX_KEY_ESCAPE = 41, + MLX_KEY_BACKSPACE = 42, + MLX_KEY_TAB = 43, + MLX_KEY_SPACE = 44, + MLX_KEY_MINUS = 45, + MLX_KEY_EQUALS = 46, + MLX_KEY_LEFTBRACKET = 47, + MLX_KEY_RIGHTBRACKET = 48, + MLX_KEY_BACKSLASH = 49, + MLX_KEY_SEMICOLON = 51, + MLX_KEY_APOSTROPHE = 52, + MLX_KEY_GRAVE = 53, + MLX_KEY_COMMA = 54, + MLX_KEY_PERIOD = 55, + MLX_KEY_SLASH = 56, + MLX_KEY_CAPSLOCK = 57, + MLX_KEY_F1 = 58, + MLX_KEY_F2 = 59, + MLX_KEY_F3 = 60, + MLX_KEY_F4 = 61, + MLX_KEY_F5 = 62, + MLX_KEY_F6 = 63, + MLX_KEY_F7 = 64, + MLX_KEY_F8 = 65, + MLX_KEY_F9 = 66, + MLX_KEY_F10 = 67, + MLX_KEY_F11 = 68, + MLX_KEY_F12 = 69, + MLX_KEY_PRINTSCREEN = 70, + MLX_KEY_SCROLLLOCK = 71, + MLX_KEY_PAUSE = 72, + MLX_KEY_INSERT = 73, + MLX_KEY_HOME = 74, + MLX_KEY_PAGEUP = 75, + MLX_KEY_DELETE = 76, + MLX_KEY_END = 77, + MLX_KEY_PAGEDOWN = 78, + MLX_KEY_RIGHT = 79, + MLX_KEY_LEFT = 80, + MLX_KEY_DOWN = 81, + MLX_KEY_UP = 82, + MLX_KEY_NUMLOCKCLEAR = 83, + MLX_KEY_KP_DIVIDE = 84, + MLX_KEY_KP_MULTIPLY = 85, + MLX_KEY_KP_MINUS = 86, + MLX_KEY_KP_PLUS = 87, + MLX_KEY_KP_ENTER = 88, + MLX_KEY_KP_1 = 89, + MLX_KEY_KP_2 = 90, + MLX_KEY_KP_3 = 91, + MLX_KEY_KP_4 = 92, + MLX_KEY_KP_5 = 93, + MLX_KEY_KP_6 = 94, + MLX_KEY_KP_7 = 95, + MLX_KEY_KP_8 = 96, + MLX_KEY_KP_9 = 97, + MLX_KEY_KP_0 = 98, + MLX_KEY_KP_PERIOD = 99, + MLX_KEY_LCTRL = 224, + MLX_KEY_LSHIFT = 225, + MLX_KEY_LALT = 226, + MLX_KEY_LGUI = 227, + MLX_KEY_RCTRL = 228, + MLX_KEY_RSHIFT = 229, + MLX_KEY_RALT = 230, + MLX_KEY_RGUI = 231 +} mlx_key_codes; + +/** + * @brief Event codes for mouse buttons + */ +typedef enum mlx_mouse_code +{ + MLX_MOUSE_LEFT = 1, + MLX_MOUSE_MIDDLE = 2, + MLX_MOUSE_RIGHT = 3, + MLX_MOUSE_4 = 4, + MLX_MOUSE_5 = 5, +} mlx_mouse_code; + +/** + * @brief Event codes for window events + */ +typedef enum mlx_window_code +{ + MLX_WINDOW_CLOSE = 0, + MLX_WINDOW_MOVED = 1, + MLX_WINDOW_MINIMIZED = 2, + MLX_WINDOW_MAXIMIZED = 3, + MLX_WINDOW_ENTER = 4, + MLX_WINDOW_FOCUS = 5, + MLX_WINDOW_LEAVE = 6, + MLX_WINDOW_UNFOCUS = 7, + MLX_WINDOW_SIZE_CHANGED = 8, + MLX_WINDOW_RESIZED = 9, + MLX_WINDOW_RESTORED = 11 +} mlx_window_code; + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/includes/mlx_profile.h b/includes/mlx_profile.h index a98d5ec..5ac5a5d 100644 --- a/includes/mlx_profile.h +++ b/includes/mlx_profile.h @@ -83,6 +83,25 @@ #define MLX_API #endif +#define MLX_NO_DEPRECATE +#ifdef MLX_NO_DEPRECATE + #define MLX_DEPRECATED(msg) +#elif defined(__has_c_attribute) + #if __has_c_attribute(deprecated) + #define MLX_DEPRECATED(msg) [[deprecated(msg)]] + #endif +#endif + +#ifndef MLX_DEPRECATED + #if defined(__GNUC__) || defined(__clang__) + #define MLX_DEPRECATED(msg) __attribute__((deprecated(msg))) + #elif defined(_MSC_VER) + #define MLX_DEPRECATED(msg) __declspec(deprecated(msg)) + #else + #define MLX_DEPRECATED(msg) + #endif +#endif + #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__) #define MLX_FUNC_SIG __PRETTY_FUNCTION__ #elif defined(__DMC__) && (__DMC__ >= 0x810) diff --git a/runtime/Includes/Core/Application.h b/runtime/Includes/Core/Application.h index a9a1c77..e8bcb72 100644 --- a/runtime/Includes/Core/Application.h +++ b/runtime/Includes/Core/Application.h @@ -23,7 +23,7 @@ namespace mlx inline void OnEvent(mlx_window win, int event, void(*f)(int, void*), void* param) noexcept; - inline mlx_window NewGraphicsSuport(const mlx_window_create_info* info); + inline mlx_window NewGraphicsSupport(const mlx_window_create_info* info); inline NonOwningPtr GetGraphicsSupport(mlx_window win); inline void DestroyGraphicsSupport(mlx_window win); diff --git a/runtime/Includes/Core/Application.inl b/runtime/Includes/Core/Application.inl index c0d00b8..8d6a307 100644 --- a/runtime/Includes/Core/Application.inl +++ b/runtime/Includes/Core/Application.inl @@ -60,7 +60,7 @@ namespace mlx m_fps.SetMaxFPS(fps); } - mlx_window Application::NewGraphicsSuport(const mlx_window_create_info* info) + mlx_window Application::NewGraphicsSupport(const mlx_window_create_info* info) { MLX_PROFILE_FUNCTION(); if(!info) @@ -68,6 +68,11 @@ namespace mlx Error("invalid window create info (NULL)"); return nullptr; } + if (info->title == nullptr) + { + Error("invalid window title (NULL)"); + return nullptr; + } mlx_window window; try { window = new mlx_window_handler; } @@ -134,7 +139,7 @@ namespace mlx { m_hooks.emplace_back(f, param); } - + void Application::LoopEnd() noexcept { m_in.Finish(); diff --git a/runtime/Includes/Core/SDLManager.h b/runtime/Includes/Core/SDLManager.h index 415cc7e..71697f2 100644 --- a/runtime/Includes/Core/SDLManager.h +++ b/runtime/Includes/Core/SDLManager.h @@ -3,6 +3,7 @@ #include #include +#include namespace mlx { @@ -26,6 +27,7 @@ namespace mlx void SetWindowPosition(Handle window, int x, int y) const noexcept; void SetWindowSize(Handle window, int x, int y) const noexcept; void SetWindowTitle(Handle window, std::string_view title) const noexcept; + void SetWindowIcon(Handle window, NonOwningPtr texture) const noexcept; void SetWindowFullscreen(Handle window, bool enable) const noexcept; void SetWindowMaxSize(Handle window, int x, int y) const noexcept; void SetWindowMinSize(Handle window, int x, int y) const noexcept; diff --git a/runtime/Includes/Platform/Window.h b/runtime/Includes/Platform/Window.h index 5bb919a..5b9a752 100644 --- a/runtime/Includes/Platform/Window.h +++ b/runtime/Includes/Platform/Window.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace mlx { @@ -24,6 +25,7 @@ namespace mlx MLX_FORCEINLINE void SetPosition(int x, int y) { SDLManager::Get().SetWindowPosition(p_window, x, y); } MLX_FORCEINLINE void SetSize(int x, int y) { SDLManager::Get().SetWindowSize(p_window, x, y); m_width = x; m_height = y; } MLX_FORCEINLINE void SetTitle(std::string title) { SDLManager::Get().SetWindowTitle(p_window, title); m_name = std::move(title); } + MLX_FORCEINLINE void SetIcon(NonOwningPtr texture) {SDLManager::Get().SetWindowIcon(p_window, texture); } MLX_FORCEINLINE void SetFullscreen(bool enable) { SDLManager::Get().SetWindowFullscreen(p_window, enable); } MLX_FORCEINLINE void SetMaxSize(int x, int y) { SDLManager::Get().SetWindowMaxSize(p_window, x, y); } MLX_FORCEINLINE void SetMinSize(int x, int y) { SDLManager::Get().SetWindowMinSize(p_window, x, y); } diff --git a/runtime/Includes/Renderer/Image.h b/runtime/Includes/Renderer/Image.h index 5121f27..46e0123 100644 --- a/runtime/Includes/Renderer/Image.h +++ b/runtime/Includes/Renderer/Image.h @@ -86,6 +86,7 @@ namespace mlx void SetPixel(int x, int y, mlx_color color) noexcept; void SetRegion(int x, int y, int w, int h, mlx_color* color) noexcept; void SetLinearRegion(int x, int y, std::size_t len, mlx_color* color) noexcept; + void SetRectangle(int x, int y, int w, int h, mlx_color color) noexcept; mlx_color GetPixel(int x, int y) noexcept; void GetRegion(int x, int y, int w, int h, mlx_color* dst) noexcept; void Clear(VkCommandBuffer cmd, Vec4f color) override; @@ -94,6 +95,8 @@ namespace mlx void Swap(Texture& texture) noexcept; + mlx_color* GetBufferCopy() noexcept; + // If a valid cmd buffer is passed, this function takes ownership and makes it invalid after void SyncCPUBuffer(VkCommandBuffer cmd = VK_NULL_HANDLE); void Update(VkCommandBuffer cmd); diff --git a/runtime/Includes/Utils/Buffer.h b/runtime/Includes/Utils/Buffer.h index fe95d25..6c3970e 100644 --- a/runtime/Includes/Utils/Buffer.h +++ b/runtime/Includes/Utils/Buffer.h @@ -1,6 +1,8 @@ #ifndef __MLX_CPU_BUFFER__ #define __MLX_CPU_BUFFER__ +#include + namespace mlx { class CPUBuffer diff --git a/runtime/Sources/Core/Bridge.cpp b/runtime/Sources/Core/Bridge.cpp index eb01abd..bc60c4a 100644 --- a/runtime/Sources/Core/Bridge.cpp +++ b/runtime/Sources/Core/Bridge.cpp @@ -61,7 +61,7 @@ extern "C" mlx_window mlx_new_window(mlx_context mlx, const mlx_window_create_info* info) { MLX_CHECK_APPLICATION_POINTER(mlx); - return mlx->app->NewGraphicsSuport(info); + return mlx->app->NewGraphicsSupport(info); } void mlx_destroy_window(mlx_context mlx, mlx_window win) @@ -91,12 +91,29 @@ extern "C" void mlx_set_window_title(mlx_context mlx, mlx_window win, const char* title) { MLX_CHECK_APPLICATION_POINTER(mlx); + if (title == nullptr) + { + mlx::Error("invalid window title (NULL)"); + return; + } mlx::NonOwningPtr gs = mlx->app->GetGraphicsSupport(win); if(!gs && !gs->HasWindow()) return; gs->GetWindow()->SetTitle(title); } + void mlx_set_window_icon(mlx_context mlx, mlx_window win, mlx_image image) + { + MLX_CHECK_APPLICATION_POINTER(mlx); + mlx::NonOwningPtr gs = mlx->app->GetGraphicsSupport(win); + if(!gs && !gs->HasWindow()) + return; + mlx::NonOwningPtr texture = mlx->app->GetTexture(image); + if(!texture) + return; + gs->GetWindow()->SetIcon(texture); + } + void mlx_set_window_fullscreen(mlx_context mlx, mlx_window win, bool enable) { MLX_CHECK_APPLICATION_POINTER(mlx); @@ -440,6 +457,15 @@ extern "C" gs->PixelPutRegion(x, y, w, h, pixels); } + void mlx_set_image_rectangle(mlx_context mlx, mlx_image image, int x, int y, int w, int h, mlx_color color) + { + MLX_CHECK_APPLICATION_POINTER(mlx); + mlx::NonOwningPtr texture = mlx->app->GetTexture(image); + if(!texture) + return; + texture->SetRectangle(x, y, w, h, color); + } + void mlx_get_image_region(mlx_context mlx, mlx_image image, int x, int y, int w, int h, mlx_color* dst) { MLX_CHECK_APPLICATION_POINTER(mlx); diff --git a/runtime/Sources/Core/SDLManager.cpp b/runtime/Sources/Core/SDLManager.cpp index 9f96f8d..f256b04 100644 --- a/runtime/Sources/Core/SDLManager.cpp +++ b/runtime/Sources/Core/SDLManager.cpp @@ -1,3 +1,5 @@ +#include "Utils/Buffer.h" +#include "mlx.h" #include #include #include @@ -56,7 +58,12 @@ namespace mlx infos->window = SDL_CreateWindow(info->title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, info->width, info->height, flags); if(!infos->window) FatalError("SDL: unable to open a new window; %", SDL_GetError()); - infos->icon = SDL_CreateRGBSurfaceFrom(static_cast(logo_mlx), logo_mlx_width, logo_mlx_height, 32, 4 * logo_mlx_width, Rmask(), Gmask(), Bmask(), Amask()); + + mlx_color* buffer = new mlx_color[logo_mlx_size]; + std::memcpy(buffer, logo_mlx, logo_mlx_size); + infos->icon = SDL_CreateRGBSurfaceFrom(buffer, logo_mlx_width, logo_mlx_height, 32, logo_mlx_width * 4, Rmask(), Gmask(), Bmask(), Amask()); + if(!infos->icon) + FatalError("SDL: unable to create a window icon; %", SDL_GetError()); SDL_SetWindowIcon(infos->window, infos->icon); m_windows_registry.insert(infos); @@ -74,7 +81,10 @@ namespace mlx if(infos->window != nullptr) SDL_DestroyWindow(infos->window); if(infos->icon != nullptr) + { + delete[] reinterpret_cast(infos->icon->pixels); SDL_FreeSurface(infos->icon); + } m_windows_registry.erase(infos); delete infos; @@ -152,6 +162,21 @@ namespace mlx SDL_SetWindowTitle(static_cast(window)->window, title.data()); } + void SDLManager::SetWindowIcon(Handle window, NonOwningPtr texture) const noexcept + { + Internal::WindowInfos* infos = static_cast(window); + if(infos->icon != nullptr) + { + delete[] reinterpret_cast(infos->icon->pixels); + SDL_FreeSurface(infos->icon); + } + + int width = texture->GetWidth(), height = texture->GetHeight(); + + infos->icon = SDL_CreateRGBSurfaceFrom(texture->GetBufferCopy(), width, height, 32, width * 4, Rmask(), Gmask(), Bmask(), Amask()); + SDL_SetWindowIcon(infos->window, infos->icon); + } + void SDLManager::SetWindowFullscreen(Handle window, bool enable) const noexcept { SDL_SetWindowFullscreen(static_cast(window)->window, (enable ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0)); @@ -276,6 +301,7 @@ namespace mlx case SDL_WINDOWEVENT_LEAVE: functor(MLX_WINDOW_EVENT, id, 6); break; case SDL_WINDOWEVENT_FOCUS_LOST: functor(MLX_WINDOW_EVENT, id, 7); break; case SDL_WINDOWEVENT_SIZE_CHANGED: functor(MLX_WINDOW_EVENT, id, 8); break; + case SDL_WINDOWEVENT_RESIZED: functor(MLX_WINDOW_EVENT, id, 9); break; case SDL_WINDOWEVENT_RESTORED: functor(MLX_WINDOW_EVENT, id, 11); break; default : break; diff --git a/runtime/Sources/Renderer/Image.cpp b/runtime/Sources/Renderer/Image.cpp index f4766c8..6366a39 100644 --- a/runtime/Sources/Renderer/Image.cpp +++ b/runtime/Sources/Renderer/Image.cpp @@ -1,3 +1,5 @@ +#include "Utils/Buffer.h" +#include "mlx.h" #include #include #include @@ -284,6 +286,36 @@ namespace mlx m_has_been_modified = true; } + void Texture::SetRectangle(int x, int y, int w, int h, mlx_color color) noexcept + { + MLX_PROFILE_FUNCTION(); + if(w < 0 || h < 0 || x < -w || y < -h + || x >= static_cast(m_width) || y >= static_cast(m_height)) + return; + if(!m_staging_buffer.has_value()) + OpenCPUBuffer(); + const int + start_x = std::max(x, 0), + start_row = std::max(y, 0) * m_width, + end_x = std::min(x + w, m_width), + end_row = std::min(y + h, m_height) * m_width; + for(int dx = start_x, row = start_row;; dx++) + { + if(dx >= end_x) + { + dx = start_x; + row += m_width; + if(row >= end_row) + break; + } + if constexpr(std::endian::native == std::endian::little) + m_staging_buffer->GetMap()[row + dx] = ReverseColor(color); + else + m_staging_buffer->GetMap()[row + dx] = color; + } + m_has_been_modified = true; + } + mlx_color Texture::GetPixel(int x, int y) noexcept { MLX_PROFILE_FUNCTION(); @@ -349,6 +381,17 @@ namespace mlx m_has_been_modified = false; } + mlx_color* Texture::GetBufferCopy() noexcept + { + MLX_PROFILE_FUNCTION(); + if(!m_staging_buffer.has_value()) + OpenCPUBuffer(); + + mlx_color* dst = new mlx_color[m_width * m_height]; + std::memcpy(dst, m_staging_buffer->GetMap(), m_width * m_height * sizeof(mlx_color)); + return dst; + } + void Texture::OpenCPUBuffer() { MLX_PROFILE_FUNCTION(); diff --git a/third_party/vk_video/vulkan_video_codec_av1std.h b/third_party/vk_video/vulkan_video_codec_av1std.h index 75cebd7..5347b36 100644 --- a/third_party/vk_video/vulkan_video_codec_av1std.h +++ b/third_party/vk_video/vulkan_video_codec_av1std.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_av1std_decode.h b/third_party/vk_video/vulkan_video_codec_av1std_decode.h index 60bf2c0..e262e96 100644 --- a/third_party/vk_video/vulkan_video_codec_av1std_decode.h +++ b/third_party/vk_video/vulkan_video_codec_av1std_decode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_av1std_encode.h b/third_party/vk_video/vulkan_video_codec_av1std_encode.h index 3602fe1..8afb253 100644 --- a/third_party/vk_video/vulkan_video_codec_av1std_encode.h +++ b/third_party/vk_video/vulkan_video_codec_av1std_encode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_h264std.h b/third_party/vk_video/vulkan_video_codec_h264std.h index 48621b6..2ae8932 100644 --- a/third_party/vk_video/vulkan_video_codec_h264std.h +++ b/third_party/vk_video/vulkan_video_codec_h264std.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* @@ -44,6 +44,8 @@ typedef enum StdVideoH264ProfileIdc { STD_VIDEO_H264_PROFILE_IDC_BASELINE = 66, STD_VIDEO_H264_PROFILE_IDC_MAIN = 77, STD_VIDEO_H264_PROFILE_IDC_HIGH = 100, + STD_VIDEO_H264_PROFILE_IDC_HIGH_10 = 110, + STD_VIDEO_H264_PROFILE_IDC_HIGH_422 = 122, STD_VIDEO_H264_PROFILE_IDC_HIGH_444_PREDICTIVE = 244, STD_VIDEO_H264_PROFILE_IDC_INVALID = 0x7FFFFFFF, STD_VIDEO_H264_PROFILE_IDC_MAX_ENUM = 0x7FFFFFFF diff --git a/third_party/vk_video/vulkan_video_codec_h264std_decode.h b/third_party/vk_video/vulkan_video_codec_h264std_decode.h index a6bfe9d..fa11405 100644 --- a/third_party/vk_video/vulkan_video_codec_h264std_decode.h +++ b/third_party/vk_video/vulkan_video_codec_h264std_decode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_h264std_encode.h b/third_party/vk_video/vulkan_video_codec_h264std_encode.h index 2d42ac3..aba6fbf 100644 --- a/third_party/vk_video/vulkan_video_codec_h264std_encode.h +++ b/third_party/vk_video/vulkan_video_codec_h264std_encode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_h265std.h b/third_party/vk_video/vulkan_video_codec_h265std.h index 23617b8..cf0cbef 100644 --- a/third_party/vk_video/vulkan_video_codec_h265std.h +++ b/third_party/vk_video/vulkan_video_codec_h265std.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_h265std_decode.h b/third_party/vk_video/vulkan_video_codec_h265std_decode.h index 1758d4a..7cfe54f 100644 --- a/third_party/vk_video/vulkan_video_codec_h265std_decode.h +++ b/third_party/vk_video/vulkan_video_codec_h265std_decode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_h265std_encode.h b/third_party/vk_video/vulkan_video_codec_h265std_encode.h index e584a72..fd8ee03 100644 --- a/third_party/vk_video/vulkan_video_codec_h265std_encode.h +++ b/third_party/vk_video/vulkan_video_codec_h265std_encode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_vp9std.h b/third_party/vk_video/vulkan_video_codec_vp9std.h index 3c62f28..312a785 100644 --- a/third_party/vk_video/vulkan_video_codec_vp9std.h +++ b/third_party/vk_video/vulkan_video_codec_vp9std.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codec_vp9std_decode.h b/third_party/vk_video/vulkan_video_codec_vp9std_decode.h index ac7fa7b..2a7ecdc 100644 --- a/third_party/vk_video/vulkan_video_codec_vp9std_decode.h +++ b/third_party/vk_video/vulkan_video_codec_vp9std_decode.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vk_video/vulkan_video_codecs_common.h b/third_party/vk_video/vulkan_video_codecs_common.h index 3c4d055..faedbef 100644 --- a/third_party/vk_video/vulkan_video_codecs_common.h +++ b/third_party/vk_video/vulkan_video_codecs_common.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vma.h b/third_party/vma.h index 8df0364..f2b58bf 100644 --- a/third_party/vma.h +++ b/third_party/vma.h @@ -1,5 +1,5 @@ // -// Copyright (c) 2017-2025 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2017-2026 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -25,11 +25,11 @@ /** \mainpage Vulkan Memory Allocator -Version 3.3.0 +Version 3.4.0 -Copyright (c) 2017-2025 Advanced Micro Devices, Inc. All rights reserved. \n +Copyright (c) 2017-2026 Advanced Micro Devices, Inc. All rights reserved. \n License: MIT \n -See also: [product page on GPUOpen](https://gpuopen.com/gaming-product/vulkan-memory-allocator/), +See also: [product page on GPUOpen](https://gpuopen.com/vulkan-memory-allocator/), [repository on GitHub](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator) @@ -79,6 +79,8 @@ See also: [product page on GPUOpen](https://gpuopen.com/gaming-product/vulkan-me - [Corruption detection](@ref debugging_memory_usage_corruption_detection) - [Leak detection features](@ref debugging_memory_usage_leak_detection) - \subpage other_api_interop + - [Exporting memory](@ref other_api_interop_exporting_memory) + - [Importing memory](@ref other_api_interop_importing_memory) - \subpage usage_patterns - [GPU-only resource](@ref usage_patterns_gpu_only) - [Staging copy for upload](@ref usage_patterns_staging_copy_upload) @@ -95,7 +97,6 @@ See also: [product page on GPUOpen](https://gpuopen.com/gaming-product/vulkan-me - \subpage enabling_buffer_device_address - \subpage vk_ext_memory_priority - \subpage vk_amd_device_coherent_memory - - \subpage vk_khr_external_memory_win32 - \subpage general_considerations - [Thread safety](@ref general_considerations_thread_safety) - [Versioning and compatibility](@ref general_considerations_versioning_and_compatibility) @@ -128,10 +129,14 @@ See documentation chapter: \ref statistics. extern "C" { #endif -#if !defined(VULKAN_H_) -#include +#ifndef VMA_VULKAN_HEADERS_ALREADY_INCLUDED + #if !defined(VULKAN_H_) + #include + #endif #endif +#define VMA_VERSION (VK_MAKE_VERSION(3, 4, 0)) + #if !defined(VMA_VULKAN_VERSION) #if defined(VK_VERSION_1_4) #define VMA_VULKAN_VERSION 1004000 @@ -191,8 +196,16 @@ extern "C" { #endif #endif +#if !defined(VMA_GET_PHYSICAL_DEVICE_PROPERTIES2) + #if VK_KHR_get_physical_device_properties2 || VMA_VULKAN_VERSION >= 1001000 + #define VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 1 + #else + #define VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 0 + #endif +#endif + #if !defined(VMA_MEMORY_BUDGET) - #if VK_EXT_memory_budget && (VK_KHR_get_physical_device_properties2 || VMA_VULKAN_VERSION >= 1001000) + #if VK_EXT_memory_budget && VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 #define VMA_MEMORY_BUDGET 1 #else #define VMA_MEMORY_BUDGET 0 @@ -478,7 +491,7 @@ typedef enum VmaAllocatorCreateFlagBits You should set this flag if you found available and enabled this device extension, while creating Vulkan device passed as VmaAllocatorCreateInfo::device. - For more information, see \ref vk_khr_external_memory_win32. + For more information, see \ref other_api_interop. */ VMA_ALLOCATOR_CREATE_KHR_EXTERNAL_MEMORY_WIN32_BIT = 0x00000200, @@ -1046,7 +1059,7 @@ typedef struct VmaVulkanFunctions /// Fetch "vkBindImageMemory2" on Vulkan >= 1.1, fetch "vkBindImageMemory2KHR" when using VK_KHR_bind_memory2 extension. PFN_vkBindImageMemory2KHR VMA_NULLABLE vkBindImageMemory2KHR; #endif -#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000 +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 /// Fetch from "vkGetPhysicalDeviceMemoryProperties2" on Vulkan >= 1.1, but you can also fetch it from "vkGetPhysicalDeviceMemoryProperties2KHR" if you enabled extension VK_KHR_get_physical_device_properties2. PFN_vkGetPhysicalDeviceMemoryProperties2KHR VMA_NULLABLE vkGetPhysicalDeviceMemoryProperties2KHR; #endif @@ -1061,6 +1074,10 @@ typedef struct VmaVulkanFunctions #else void* VMA_NULLABLE vkGetMemoryWin32HandleKHR; #endif +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 + /// Fetch from "vkGetPhysicalDeviceProperties2" on Vulkan >= 1.1, but you can also fetch it from "vkGetPhysicalDeviceProperties2KHR" if you enabled extension VK_KHR_get_physical_device_properties2. + PFN_vkGetPhysicalDeviceProperties2KHR VMA_NULLABLE vkGetPhysicalDeviceProperties2KHR; +#endif } VmaVulkanFunctions; /// Description of a Allocator to be created. @@ -1335,6 +1352,19 @@ typedef struct VmaAllocationCreateInfo Otherwise, it has the priority of a memory block where it is placed and this variable is ignored. */ float priority; + /** \brief Additional minimum alignment to be used for this allocation. Can be 0. + + Leave 0 (default) not to impose any additional alignment. If not 0, it must be a power of two. + + When creating a buffer or an image, specifying a custom alignment is not needed in most cases, + because Vulkan implementation inspects the `CreateInfo` structure (including intended usage flags) + and returns required alignment through functions like `vkGetBufferMemoryRequirements2`, which VMA automatically + uses and respects. + Extra alignment may be needed in some cases, like when using a buffer for acceleration structure scratch + (`VkPhysicalDeviceAccelerationStructurePropertiesKHR::minAccelerationStructureScratchOffsetAlignment`, see also issue #523) + or when doing interop with OpenGL. + */ + VkDeviceSize minAlignment; } VmaAllocationCreateInfo; /// Describes parameter of created #VmaPool. @@ -1378,8 +1408,14 @@ typedef struct VmaPoolCreateInfo /** \brief Additional minimum alignment to be used for all allocations created from this pool. Can be 0. Leave 0 (default) not to impose any additional alignment. If not 0, it must be a power of two. - It can be useful in cases where alignment returned by Vulkan by functions like `vkGetBufferMemoryRequirements` is not enough, - e.g. when doing interop with OpenGL. + + When creating a buffer or an image, specifying a custom alignment is not needed in most cases, + because Vulkan implementation inspects the `CreateInfo` structure (including intended usage flags) + and returns required alignment through functions like `vkGetBufferMemoryRequirements2`, which VMA automatically + uses and respects. + Extra alignment may be needed in some cases, like when using a buffer for acceleration structure scratch + (`VkPhysicalDeviceAccelerationStructurePropertiesKHR::minAccelerationStructureScratchOffsetAlignment`, see also issue #523) + or when doing interop with OpenGL. */ VkDeviceSize minAllocationAlignment; /** \brief Additional `pNext` chain to be attached to `VkMemoryAllocateInfo` used for every allocation made by this pool. Optional. @@ -1820,20 +1856,20 @@ VMA_CALL_PRE void VMA_CALL_POST vmaGetHeapBudgets( */ /** -\brief Helps to find memoryTypeIndex, given memoryTypeBits and VmaAllocationCreateInfo. +\brief Helps to find `memoryTypeIndex`, given `memoryTypeBits` and #VmaAllocationCreateInfo. This algorithm tries to find a memory type that: -- Is allowed by memoryTypeBits. -- Contains all the flags from pAllocationCreateInfo->requiredFlags. +- Is allowed by `memoryTypeBits`. +- Contains all the flags from `pAllocationCreateInfo->requiredFlags`. - Matches intended usage. -- Has as many flags from pAllocationCreateInfo->preferredFlags as possible. +- Has as many flags from `pAllocationCreateInfo->preferredFlags` as possible. -\return Returns VK_ERROR_FEATURE_NOT_PRESENT if not found. Receiving such result +\return Returns `VK_ERROR_FEATURE_NOT_PRESENT` if not found. Receiving such result from this function or any other allocating function probably means that your device doesn't support any memory type with requested features for the specific type of resource you want to use it for. Please check parameters of your -resource, like image layout (OPTIMAL versus LINEAR) or mip level count. +resource, like image layout (`OPTIMAL` versus `LINEAR`) or mip level count. */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndex( VmaAllocator VMA_NOT_NULL allocator, @@ -1842,10 +1878,10 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndex( uint32_t* VMA_NOT_NULL pMemoryTypeIndex); /** -\brief Helps to find memoryTypeIndex, given VkBufferCreateInfo and VmaAllocationCreateInfo. +\brief Helps to find `memoryTypeIndex`, given `VkBufferCreateInfo` and #VmaAllocationCreateInfo. It can be useful e.g. to determine value to be used as VmaPoolCreateInfo::memoryTypeIndex. -It internally creates a temporary, dummy buffer that never has memory bound. +It may need to internally create a temporary, dummy buffer that never has memory bound. */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForBufferInfo( VmaAllocator VMA_NOT_NULL allocator, @@ -1854,10 +1890,10 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForBufferInfo( uint32_t* VMA_NOT_NULL pMemoryTypeIndex); /** -\brief Helps to find memoryTypeIndex, given VkImageCreateInfo and VmaAllocationCreateInfo. +\brief Helps to find `memoryTypeIndex`, given `VkImageCreateInfo` and #VmaAllocationCreateInfo. It can be useful e.g. to determine value to be used as VmaPoolCreateInfo::memoryTypeIndex. -It internally creates a temporary, dummy image that never has memory bound. +It may need to internally create a temporary, dummy image that never has memory bound. */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForImageInfo( VmaAllocator VMA_NOT_NULL allocator, @@ -1962,16 +1998,25 @@ VMA_CALL_PRE void VMA_CALL_POST vmaSetPoolName( /** \brief General purpose memory allocation. -\param allocator -\param pVkMemoryRequirements -\param pCreateInfo +\param allocator The main allocator object. +\param pVkMemoryRequirements Requirements for the allocated memory. +\param pCreateInfo Allocation creation parameters. \param[out] pAllocation Handle to allocated memory. -\param[out] pAllocationInfo Optional. Information about allocated memory. It can be later fetched using function vmaGetAllocationInfo(). +\param[out] pAllocationInfo Optional, can be null. Information about allocated memory. It can be also fetched later using vmaGetAllocationInfo(). -You should free the memory using vmaFreeMemory() or vmaFreeMemoryPages(). +The function creates a #VmaAllocation object without creating a buffer or an image together with it. -It is recommended to use vmaAllocateMemoryForBuffer(), vmaAllocateMemoryForImage(), -vmaCreateBuffer(), vmaCreateImage() instead whenever possible. +- It is recommended to use vmaAllocateMemoryForBuffer(), vmaAllocateMemoryForImage(), + vmaCreateBuffer(), vmaCreateImage() instead whenever possible. +- You can also create a buffer or an image later in an existing allocation using + vmaCreateAliasingBuffer2(), vmaCreateAliasingImage2(). +- You can also create a buffer or an image on your own and bind it to an existing allocation + using vmaBindBufferMemory2(), vmaBindImageMemory2(). + +You must free the returned allocation object using vmaFreeMemory() or vmaFreeMemoryPages(). + +There is also extended version of this function: vmaAllocateDedicatedMemory() +that offers additional parameter `pMemoryAllocateNext`. */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemory( VmaAllocator VMA_NOT_NULL allocator, @@ -1980,6 +2025,22 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemory( VmaAllocation VMA_NULLABLE* VMA_NOT_NULL pAllocation, VmaAllocationInfo* VMA_NULLABLE pAllocationInfo); +/** \brief General purpose allocation of a dedicated memory. + +This function is similar vmaAllocateMemory(), but +it always allocates dedicated memory - flag #VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT is implied. +It offers additional parameter `pMemoryAllocateNext`, +which can be used to attach `pNext` chain to the `VkMemoryAllocateInfo` structure. +It can be useful for importing external memory. For more information, see \ref other_api_interop. +*/ +VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateDedicatedMemory( + VmaAllocator VMA_NOT_NULL allocator, + const VkMemoryRequirements* VMA_NOT_NULL pVkMemoryRequirements, + const VmaAllocationCreateInfo* VMA_NOT_NULL pCreateInfo, + void* VMA_NULLABLE VMA_EXTENDS_VK_STRUCT(VkMemoryAllocateInfo) pMemoryAllocateNext, + VmaAllocation VMA_NULLABLE* VMA_NOT_NULL pAllocation, + VmaAllocationInfo* VMA_NULLABLE pAllocationInfo); + /** \brief General purpose memory allocation for multiple allocation objects at once. \param allocator Allocator object. @@ -2142,13 +2203,16 @@ VMA_CALL_PRE void VMA_CALL_POST vmaGetAllocationMemoryProperties( /** \brief Given an allocation, returns Win32 handle that may be imported by other processes or APIs. -\param hTargetProcess Must be a valid handle to target process or null. If it's null, the function returns +\param allocator The main allocator object. +\param allocation Allocation. +\param hTargetProcess A valid handle to target process or null. If it's null, the function returns handle for the current process. \param[out] pHandle Output parameter that returns the handle. The function fills `pHandle` with handle that can be used in target process. The handle is fetched using function `vkGetMemoryWin32HandleKHR`. -When no longer needed, you must close it using: + +Each call to this function creates a new handle that must be closed using: \code CloseHandle(handle); @@ -2161,14 +2225,76 @@ Note the handle is returned for the entire `VkDeviceMemory` block that the alloc If the allocation is sub-allocated from a larger block, you may need to consider the offset of the allocation (VmaAllocationInfo::offset). +This function always uses `VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT`. +An extended version of this function is available as vmaGetMemoryWin32Handle2() +that allows using other handle type. + +This function is available compile-time only when VK_KHR_external_memory_win32 extension is available. +It can be manually disabled by predefining `VMA_EXTERNAL_MEMORY_WIN32=0` macro. + If the function fails with `VK_ERROR_FEATURE_NOT_PRESENT` error code, please double-check -that VmaVulkanFunctions::vkGetMemoryWin32HandleKHR function pointer is set, e.g. either by using `VMA_DYNAMIC_VULKAN_FUNCTIONS` +that VmaVulkanFunctions::vkGetMemoryWin32HandleKHR function pointer is set, e.g. +either by using macro `VMA_DYNAMIC_VULKAN_FUNCTIONS` or by manually passing it through VmaAllocatorCreateInfo::pVulkanFunctions. -For more information, see chapter \ref vk_khr_external_memory_win32. +For more information, see chapter \ref other_api_interop. */ -VMA_CALL_PRE VkResult VMA_CALL_POST vmaGetMemoryWin32Handle(VmaAllocator VMA_NOT_NULL allocator, - VmaAllocation VMA_NOT_NULL allocation, HANDLE hTargetProcess, HANDLE* VMA_NOT_NULL pHandle); +VMA_CALL_PRE VkResult VMA_CALL_POST vmaGetMemoryWin32Handle( + VmaAllocator VMA_NOT_NULL allocator, + VmaAllocation VMA_NOT_NULL allocation, + HANDLE hTargetProcess, + HANDLE* VMA_NOT_NULL pHandle); + +/** +\brief Given an allocation, returns Win32 handle that may be imported by other processes or APIs. + +\param allocator The main allocator object. +\param allocation Allocation. +\param handleType Type of handle to be exported. It should be one of: + - `VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR` + - `VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR` + - `VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT_KHR` + - `VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT_KHR` + - `VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT_KHR` + - `VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT_KHR` +\param hTargetProcess A valid handle to target process or null. If it's null, the function returns + handle for the current process. +\param[out] pHandle Output parameter that returns the handle. + +The function fills `pHandle` with handle that can be used in target process. +The handle is fetched using function `vkGetMemoryWin32HandleKHR`. + +If `handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR`, +or other NT handle types, +each call to this function creates a new handle that must be closed using: + +\code +CloseHandle(handle); +\endcode + +You can close it any time, before or after destroying the allocation object. +It is reference-counted internally by Windows. + +Note the handle is returned for the entire `VkDeviceMemory` block that the allocation belongs to. +If the allocation is sub-allocated from a larger block, you may need to consider the offset of the allocation +(VmaAllocationInfo::offset). + +This function is available compile-time only when VK_KHR_external_memory_win32 extension is available. +It can be manually disabled by predefining `VMA_EXTERNAL_MEMORY_WIN32=0` macro. + +If the function fails with `VK_ERROR_FEATURE_NOT_PRESENT` error code, please double-check +that VmaVulkanFunctions::vkGetMemoryWin32HandleKHR function pointer is set, e.g. +either by using macro `VMA_DYNAMIC_VULKAN_FUNCTIONS` +or by manually passing it through VmaAllocatorCreateInfo::pVulkanFunctions. + +For more information, see chapter \ref other_api_interop. +*/ +VMA_CALL_PRE VkResult VMA_CALL_POST vmaGetMemoryWin32Handle2( + VmaAllocator VMA_NOT_NULL allocator, + VmaAllocation VMA_NOT_NULL allocation, + VkExternalMemoryHandleTypeFlagBits handleType, + HANDLE hTargetProcess, + HANDLE* VMA_NOT_NULL pHandle); #endif // VMA_EXTERNAL_MEMORY_WIN32 /** \brief Maps memory represented by given allocation and returns pointer to it. @@ -2541,12 +2667,13 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaBindImageMemory2( /** \brief Creates a new `VkBuffer`, allocates and binds memory for it. -\param allocator -\param pBufferCreateInfo -\param pAllocationCreateInfo +\param allocator The main allocator object. +\param pBufferCreateInfo Buffer creation parameters. +\param pAllocationCreateInfo Allocation creation parameters. \param[out] pBuffer Buffer that was created. \param[out] pAllocation Allocation that was created. -\param[out] pAllocationInfo Optional. Information about allocated memory. It can be later fetched using function vmaGetAllocationInfo(). +\param[out] pAllocationInfo Optional, can be null. Information about allocated memory. + It can be also fetched later using vmaGetAllocationInfo(). This function automatically: @@ -2555,14 +2682,14 @@ This function automatically: -# Binds the buffer with the memory. If any of these operations fail, buffer and allocation are not created, -returned value is negative error code, `*pBuffer` and `*pAllocation` are null. +returned value is negative error code, `*pBuffer` and `*pAllocation` are returned as null. If the function succeeded, you must destroy both buffer and allocation when you no longer need them using either convenience function vmaDestroyBuffer() or separately, using `vkDestroyBuffer()` and vmaFreeMemory(). -If #VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT flag was used, -VK_KHR_dedicated_allocation extension is used internally to query driver whether +If VK_KHR_dedicated_allocation extenion or Vulkan version >= 1.1 is used, +the function queries the driver whether it requires or prefers the new buffer to have dedicated allocation. If yes, and if dedicated allocation is possible (#VMA_ALLOCATION_CREATE_NEVER_ALLOCATE_BIT is not used), it creates dedicated @@ -2572,6 +2699,9 @@ allocation for this buffer, just like when using \note This function creates a new `VkBuffer`. Sub-allocation of parts of one large buffer, although recommended as a good practice, is out of scope of this library and could be implemented by the user as a higher-level logic on top of VMA. + +There is also an extended versions of this function available with additional parameter `pMemoryAllocateNext` - +see vmaCreateDedicatedBuffer(). */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBuffer( VmaAllocator VMA_NOT_NULL allocator, @@ -2586,6 +2716,10 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBuffer( Similar to vmaCreateBuffer() but provides additional parameter `minAlignment` which allows to specify custom, minimum alignment to be used when placing the buffer inside a larger memory block, which may be needed e.g. for interop with OpenGL. + +\deprecated +This function in obsolete since new VmaAllocationCreateInfo::minAlignment member allows specifying custom +alignment while using any allocation function, like the standard vmaCreateBuffer(). */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBufferWithAlignment( VmaAllocator VMA_NOT_NULL allocator, @@ -2596,6 +2730,23 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBufferWithAlignment( VmaAllocation VMA_NULLABLE* VMA_NOT_NULL pAllocation, VmaAllocationInfo* VMA_NULLABLE pAllocationInfo); +/** \brief Creates a dedicated buffer while offering extra parameter `pMemoryAllocateNext`. + +This function is similar vmaCreateBuffer(), but +it always allocates dedicated memory for the buffer - flag #VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT is implied. +It offers additional parameter `pMemoryAllocateNext`, +which can be used to attach `pNext` chain to the `VkMemoryAllocateInfo` structure. +It can be useful for importing external memory. For more information, see \ref other_api_interop. +*/ +VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateDedicatedBuffer( + VmaAllocator VMA_NOT_NULL allocator, + const VkBufferCreateInfo* VMA_NOT_NULL pBufferCreateInfo, + const VmaAllocationCreateInfo* VMA_NOT_NULL pAllocationCreateInfo, + void* VMA_NULLABLE VMA_EXTENDS_VK_STRUCT(VkMemoryAllocateInfo) pMemoryAllocateNext, + VkBuffer VMA_NULLABLE_NON_DISPATCHABLE* VMA_NOT_NULL pBuffer, + VmaAllocation VMA_NULLABLE* VMA_NOT_NULL pAllocation, + VmaAllocationInfo* VMA_NULLABLE pAllocationInfo); + /** \brief Creates a new `VkBuffer`, binds already created memory for it. \param allocator @@ -2668,7 +2819,11 @@ VMA_CALL_PRE void VMA_CALL_POST vmaDestroyBuffer( VkBuffer VMA_NULLABLE_NON_DISPATCHABLE buffer, VmaAllocation VMA_NULLABLE allocation); -/// Function similar to vmaCreateBuffer(). +/** \brief Function similar to vmaCreateBuffer() but for images. + +There is also an extended version of this function available: vmaCreateDedicatedImage() +which offers additional parameter `pMemoryAllocateNext`. +*/ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateImage( VmaAllocator VMA_NOT_NULL allocator, const VkImageCreateInfo* VMA_NOT_NULL pImageCreateInfo, @@ -2677,6 +2832,23 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateImage( VmaAllocation VMA_NULLABLE* VMA_NOT_NULL pAllocation, VmaAllocationInfo* VMA_NULLABLE pAllocationInfo); +/** \brief Function similar to vmaCreateDedicatedBuffer() but for images. + +This function is similar vmaCreateImage(), but +it always allocates dedicated memory for the image - flag #VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT is implied. +It offers additional parameter `pMemoryAllocateNext`, +which can be used to attach `pNext` chain to the `VkMemoryAllocateInfo` structure. +It can be useful for importing external memory. For more information, see \ref other_api_interop. +*/ +VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateDedicatedImage( + VmaAllocator VMA_NOT_NULL allocator, + const VkImageCreateInfo* VMA_NOT_NULL pImageCreateInfo, + const VmaAllocationCreateInfo* VMA_NOT_NULL pAllocationCreateInfo, + void* VMA_NULLABLE VMA_EXTENDS_VK_STRUCT(VkMemoryAllocateInfo) pMemoryAllocateNext, + VkImage VMA_NULLABLE_NON_DISPATCHABLE* VMA_NOT_NULL pImage, + VmaAllocation VMA_NULLABLE* VMA_NOT_NULL pAllocation, + VmaAllocationInfo* VMA_NULLABLE pAllocationInfo); + /// Function similar to vmaCreateAliasingBuffer() but for images. VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateAliasingImage( VmaAllocator VMA_NOT_NULL allocator, @@ -2967,7 +3139,7 @@ remove them if not needed. */ #if !defined(VMA_CONFIGURATION_USER_INCLUDES_H) #include // for assert - #include // for min, max, swap + #include // for min, max, swap, sort #include #else #include VMA_CONFIGURATION_USER_INCLUDES_H @@ -3017,7 +3189,9 @@ remove them if not needed. #if defined(__ANDROID_API__) && (__ANDROID_API__ < 16) #include -static void* vma_aligned_alloc(size_t alignment, size_t size) +namespace +{ +void* vma_aligned_alloc(size_t alignment, size_t size) { // alignment must be >= sizeof(void*) if(alignment < sizeof(void*)) @@ -3027,6 +3201,7 @@ static void* vma_aligned_alloc(size_t alignment, size_t size) return memalign(alignment, size); } +} // namespace #elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)) #include @@ -3034,7 +3209,9 @@ static void* vma_aligned_alloc(size_t alignment, size_t size) #include #endif -static void* vma_aligned_alloc(size_t alignment, size_t size) +namespace +{ +void* vma_aligned_alloc(size_t alignment, size_t size) { // Unfortunately, aligned_alloc causes VMA to crash due to it returning null pointers. (At least under 11.4) // Therefore, for now disable this specific exception until a proper solution is found. @@ -3062,35 +3239,46 @@ static void* vma_aligned_alloc(size_t alignment, size_t size) return pointer; return VMA_NULL; } +} // namespace #elif defined(_WIN32) -static void* vma_aligned_alloc(size_t alignment, size_t size) +namespace { +void* vma_aligned_alloc(size_t alignment, size_t size) { return _aligned_malloc(size, alignment); } +} // namespace #elif __cplusplus >= 201703L || _MSVC_LANG >= 201703L // C++17 -static void* vma_aligned_alloc(size_t alignment, size_t size) +namespace { +void* vma_aligned_alloc(size_t alignment, size_t size) { return aligned_alloc(alignment, size); } +} // namespace #else -static void* vma_aligned_alloc(size_t alignment, size_t size) +namespace +{ +void* vma_aligned_alloc(size_t alignment, size_t size) { VMA_ASSERT(0 && "Could not implement aligned_alloc automatically. Please enable C++17 or later in your compiler or provide custom implementation of macro VMA_SYSTEM_ALIGNED_MALLOC (and VMA_SYSTEM_ALIGNED_FREE if needed) using the API of your system."); return VMA_NULL; } +} // namespace #endif +namespace +{ #if defined(_WIN32) -static void vma_aligned_free(void* ptr) +void vma_aligned_free(void* ptr) { _aligned_free(ptr); } #else -static void vma_aligned_free(void* VMA_NULLABLE ptr) +void vma_aligned_free(void* VMA_NULLABLE ptr) { free(ptr); } #endif +} // namespace #ifndef VMA_ALIGN_OF #define VMA_ALIGN_OF(type) (alignof(type)) @@ -3171,18 +3359,20 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr) // Define this macro to 1 to enable functions: vmaBuildStatsString, vmaFreeStatsString. #if VMA_STATS_STRING_ENABLED - static inline void VmaUint32ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint32_t num) +namespace { + inline void VmaUint32ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint32_t num) { snprintf(outStr, strLen, "%" PRIu32, num); } - static inline void VmaUint64ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint64_t num) + inline void VmaUint64ToStr(char* VMA_NOT_NULL outStr, size_t strLen, uint64_t num) { snprintf(outStr, strLen, "%" PRIu64, num); } - static inline void VmaPtrToStr(char* VMA_NOT_NULL outStr, size_t strLen, const void* ptr) + inline void VmaPtrToStr(char* VMA_NOT_NULL outStr, size_t strLen, const void* ptr) { snprintf(outStr, strLen, "%p", ptr); } +} // namespace #endif #ifndef VMA_MUTEX @@ -3266,6 +3456,11 @@ If providing your own implementation, you need to implement a subset of std::ato #define VMA_ATOMIC_UINT64 std::atomic #endif +#ifndef VMA_ATOMIC_BOOL + #include + #define VMA_ATOMIC_BOOL std::atomic +#endif + #ifndef VMA_DEBUG_ALWAYS_DEDICATED_MEMORY /** Every allocation will have its own memory block. @@ -3377,31 +3572,33 @@ END OF CONFIGURATION */ #endif // _VMA_CONFIGURATION - -static const uint8_t VMA_ALLOCATION_FILL_PATTERN_CREATED = 0xDC; -static const uint8_t VMA_ALLOCATION_FILL_PATTERN_DESTROYED = 0xEF; +namespace +{ +constexpr uint8_t VMA_ALLOCATION_FILL_PATTERN_CREATED = 0xDC; +constexpr uint8_t VMA_ALLOCATION_FILL_PATTERN_DESTROYED = 0xEF; // Decimal 2139416166, float NaN, little-endian binary 66 E6 84 7F. -static const uint32_t VMA_CORRUPTION_DETECTION_MAGIC_VALUE = 0x7F84E666; +constexpr uint32_t VMA_CORRUPTION_DETECTION_MAGIC_VALUE = 0x7F84E666; // Copy of some Vulkan definitions so we don't need to check their existence just to handle few constants. -static const uint32_t VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD_COPY = 0x00000040; -static const uint32_t VK_MEMORY_PROPERTY_DEVICE_UNCACHED_BIT_AMD_COPY = 0x00000080; -static const uint32_t VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_COPY = 0x00020000; -static const uint32_t VK_IMAGE_CREATE_DISJOINT_BIT_COPY = 0x00000200; -static const int32_t VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT_COPY = 1000158000; -static const uint32_t VMA_ALLOCATION_INTERNAL_STRATEGY_MIN_OFFSET = 0x10000000U; -static const uint32_t VMA_ALLOCATION_TRY_COUNT = 32; -static const uint32_t VMA_VENDOR_ID_AMD = 4098; +constexpr uint32_t VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD_COPY = 0x00000040; +constexpr uint32_t VK_MEMORY_PROPERTY_DEVICE_UNCACHED_BIT_AMD_COPY = 0x00000080; +constexpr uint32_t VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_COPY = 0x00020000; +constexpr uint32_t VK_IMAGE_CREATE_DISJOINT_BIT_COPY = 0x00000200; +constexpr int32_t VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT_COPY = 1000158000; +constexpr uint32_t VMA_ALLOCATION_INTERNAL_STRATEGY_MIN_OFFSET = 0x10000000U; +constexpr uint32_t VMA_ALLOCATION_TRY_COUNT = 32; +constexpr uint32_t VMA_VENDOR_ID_AMD = 4098; // This one is tricky. Vulkan specification defines this code as available since // Vulkan 1.0, but doesn't actually define it in Vulkan SDK earlier than 1.2.131. // See pull request #207. #define VK_ERROR_UNKNOWN_COPY ((VkResult)-13) +} // namespace #if VMA_STATS_STRING_ENABLED // Correspond to values of enum VmaSuballocationType. -static const char* const VMA_SUBALLOCATION_TYPE_NAMES[] = +const char* const VMA_SUBALLOCATION_TYPE_NAMES[] = { "FREE", "UNKNOWN", @@ -3412,7 +3609,7 @@ static const char* const VMA_SUBALLOCATION_TYPE_NAMES[] = }; #endif -static const VkAllocationCallbacks VmaEmptyAllocationCallbacks = +const VkAllocationCallbacks VmaEmptyAllocationCallbacks = { VMA_NULL, VMA_NULL, VMA_NULL, VMA_NULL, VMA_NULL, VMA_NULL }; @@ -3451,6 +3648,8 @@ enum class VmaAllocationRequestType // Opaque handle used by allocation algorithms to identify single allocation in any conforming way. VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaAllocHandle); +struct VmaBufferImageUsage; + struct VmaMutexLock; struct VmaMutexLockRead; struct VmaMutexLockWrite; @@ -3515,419 +3714,12 @@ class VmaAllocationObjectAllocator; #endif // _VMA_FORWARD_DECLARATIONS +#ifndef _VMA_BUFFER_IMAGE_USAGE -#ifndef _VMA_FUNCTIONS - -/* -Returns number of bits set to 1 in (v). - -On specific platforms and compilers you can use intrinsics like: - -Visual Studio: - return __popcnt(v); -GCC, Clang: - return static_cast(__builtin_popcount(v)); - -Define macro VMA_COUNT_BITS_SET to provide your optimized implementation. -But you need to check in runtime whether user's CPU supports these, as some old processors don't. -*/ -static inline uint32_t VmaCountBitsSet(uint32_t v) -{ -#if VMA_CPP20 - return std::popcount(v); -#else - uint32_t c = v - ((v >> 1) & 0x55555555); - c = ((c >> 2) & 0x33333333) + (c & 0x33333333); - c = ((c >> 4) + c) & 0x0F0F0F0F; - c = ((c >> 8) + c) & 0x00FF00FF; - c = ((c >> 16) + c) & 0x0000FFFF; - return c; -#endif -} - -static inline uint8_t VmaBitScanLSB(uint64_t mask) -{ -#if defined(_MSC_VER) && defined(_WIN64) - unsigned long pos; - if (_BitScanForward64(&pos, mask)) - return static_cast(pos); - return UINT8_MAX; -#elif VMA_CPP20 - if(mask != 0) - return static_cast(std::countr_zero(mask)); - return UINT8_MAX; -#elif defined __GNUC__ || defined __clang__ - return static_cast(__builtin_ffsll(mask)) - 1U; -#else - uint8_t pos = 0; - uint64_t bit = 1; - do - { - if (mask & bit) - return pos; - bit <<= 1; - } while (pos++ < 63); - return UINT8_MAX; -#endif -} - -static inline uint8_t VmaBitScanLSB(uint32_t mask) -{ -#ifdef _MSC_VER - unsigned long pos; - if (_BitScanForward(&pos, mask)) - return static_cast(pos); - return UINT8_MAX; -#elif VMA_CPP20 - if(mask != 0) - return static_cast(std::countr_zero(mask)); - return UINT8_MAX; -#elif defined __GNUC__ || defined __clang__ - return static_cast(__builtin_ffs(mask)) - 1U; -#else - uint8_t pos = 0; - uint32_t bit = 1; - do - { - if (mask & bit) - return pos; - bit <<= 1; - } while (pos++ < 31); - return UINT8_MAX; -#endif -} - -static inline uint8_t VmaBitScanMSB(uint64_t mask) -{ -#if defined(_MSC_VER) && defined(_WIN64) - unsigned long pos; - if (_BitScanReverse64(&pos, mask)) - return static_cast(pos); -#elif VMA_CPP20 - if(mask != 0) - return 63 - static_cast(std::countl_zero(mask)); -#elif defined __GNUC__ || defined __clang__ - if (mask != 0) - return 63 - static_cast(__builtin_clzll(mask)); -#else - uint8_t pos = 63; - uint64_t bit = 1ULL << 63; - do - { - if (mask & bit) - return pos; - bit >>= 1; - } while (pos-- > 0); -#endif - return UINT8_MAX; -} - -static inline uint8_t VmaBitScanMSB(uint32_t mask) -{ -#ifdef _MSC_VER - unsigned long pos; - if (_BitScanReverse(&pos, mask)) - return static_cast(pos); -#elif VMA_CPP20 - if(mask != 0) - return 31 - static_cast(std::countl_zero(mask)); -#elif defined __GNUC__ || defined __clang__ - if (mask != 0) - return 31 - static_cast(__builtin_clz(mask)); -#else - uint8_t pos = 31; - uint32_t bit = 1UL << 31; - do - { - if (mask & bit) - return pos; - bit >>= 1; - } while (pos-- > 0); -#endif - return UINT8_MAX; -} - -/* -Returns true if given number is a power of two. -T must be unsigned integer number or signed integer but always nonnegative. -For 0 returns true. -*/ -template -inline bool VmaIsPow2(T x) -{ - return (x & (x - 1)) == 0; -} - -// Aligns given value up to nearest multiply of align value. For example: VmaAlignUp(11, 8) = 16. -// Use types like uint32_t, uint64_t as T. -template -static inline T VmaAlignUp(T val, T alignment) -{ - VMA_HEAVY_ASSERT(VmaIsPow2(alignment)); - return (val + alignment - 1) & ~(alignment - 1); -} - -// Aligns given value down to nearest multiply of align value. For example: VmaAlignDown(11, 8) = 8. -// Use types like uint32_t, uint64_t as T. -template -static inline T VmaAlignDown(T val, T alignment) -{ - VMA_HEAVY_ASSERT(VmaIsPow2(alignment)); - return val & ~(alignment - 1); -} - -// Division with mathematical rounding to nearest number. -template -static inline T VmaRoundDiv(T x, T y) -{ - return (x + (y / (T)2)) / y; -} - -// Divide by 'y' and round up to nearest integer. -template -static inline T VmaDivideRoundingUp(T x, T y) -{ - return (x + y - (T)1) / y; -} - -// Returns smallest power of 2 greater or equal to v. -static inline uint32_t VmaNextPow2(uint32_t v) -{ - v--; - v |= v >> 1; - v |= v >> 2; - v |= v >> 4; - v |= v >> 8; - v |= v >> 16; - v++; - return v; -} - -static inline uint64_t VmaNextPow2(uint64_t v) -{ - v--; - v |= v >> 1; - v |= v >> 2; - v |= v >> 4; - v |= v >> 8; - v |= v >> 16; - v |= v >> 32; - v++; - return v; -} - -// Returns largest power of 2 less or equal to v. -static inline uint32_t VmaPrevPow2(uint32_t v) -{ - v |= v >> 1; - v |= v >> 2; - v |= v >> 4; - v |= v >> 8; - v |= v >> 16; - v = v ^ (v >> 1); - return v; -} - -static inline uint64_t VmaPrevPow2(uint64_t v) -{ - v |= v >> 1; - v |= v >> 2; - v |= v >> 4; - v |= v >> 8; - v |= v >> 16; - v |= v >> 32; - v = v ^ (v >> 1); - return v; -} - -static inline bool VmaStrIsEmpty(const char* pStr) -{ - return pStr == VMA_NULL || *pStr == '\0'; -} - -/* -Returns true if two memory blocks occupy overlapping pages. -ResourceA must be in less memory offset than ResourceB. - -Algorithm is based on "Vulkan 1.0.39 - A Specification (with all registered Vulkan extensions)" -chapter 11.6 "Resource Memory Association", paragraph "Buffer-Image Granularity". -*/ -static inline bool VmaBlocksOnSamePage( - VkDeviceSize resourceAOffset, - VkDeviceSize resourceASize, - VkDeviceSize resourceBOffset, - VkDeviceSize pageSize) -{ - VMA_ASSERT(resourceAOffset + resourceASize <= resourceBOffset && resourceASize > 0 && pageSize > 0); - VkDeviceSize resourceAEnd = resourceAOffset + resourceASize - 1; - VkDeviceSize resourceAEndPage = resourceAEnd & ~(pageSize - 1); - VkDeviceSize resourceBStart = resourceBOffset; - VkDeviceSize resourceBStartPage = resourceBStart & ~(pageSize - 1); - return resourceAEndPage == resourceBStartPage; -} - -/* -Returns true if given suballocation types could conflict and must respect -VkPhysicalDeviceLimits::bufferImageGranularity. They conflict if one is buffer -or linear image and another one is optimal image. If type is unknown, behave -conservatively. -*/ -static inline bool VmaIsBufferImageGranularityConflict( - VmaSuballocationType suballocType1, - VmaSuballocationType suballocType2) -{ - if (suballocType1 > suballocType2) - { - std::swap(suballocType1, suballocType2); - } - - switch (suballocType1) - { - case VMA_SUBALLOCATION_TYPE_FREE: - return false; - case VMA_SUBALLOCATION_TYPE_UNKNOWN: - return true; - case VMA_SUBALLOCATION_TYPE_BUFFER: - return - suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN || - suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL; - case VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN: - return - suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN || - suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_LINEAR || - suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL; - case VMA_SUBALLOCATION_TYPE_IMAGE_LINEAR: - return - suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL; - case VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL: - return false; - default: - VMA_ASSERT(0); - return true; - } -} - -static void VmaWriteMagicValue(void* pData, VkDeviceSize offset) -{ -#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION - uint32_t* pDst = (uint32_t*)((char*)pData + offset); - const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t); - for (size_t i = 0; i < numberCount; ++i, ++pDst) - { - *pDst = VMA_CORRUPTION_DETECTION_MAGIC_VALUE; - } -#else - // no-op -#endif -} - -static bool VmaValidateMagicValue(const void* pData, VkDeviceSize offset) -{ -#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION - const uint32_t* pSrc = (const uint32_t*)((const char*)pData + offset); - const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t); - for (size_t i = 0; i < numberCount; ++i, ++pSrc) - { - if (*pSrc != VMA_CORRUPTION_DETECTION_MAGIC_VALUE) - { - return false; - } - } -#endif - return true; -} - -/* -Fills structure with parameters of an example buffer to be used for transfers -during GPU memory defragmentation. -*/ -static void VmaFillGpuDefragmentationBufferCreateInfo(VkBufferCreateInfo& outBufCreateInfo) -{ - memset(&outBufCreateInfo, 0, sizeof(outBufCreateInfo)); - outBufCreateInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; - outBufCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; - outBufCreateInfo.size = (VkDeviceSize)VMA_DEFAULT_LARGE_HEAP_BLOCK_SIZE; // Example size. -} - - -/* -Performs binary search and returns iterator to first element that is greater or -equal to (key), according to comparison (cmp). - -Cmp should return true if first argument is less than second argument. - -Returned value is the found element, if present in the collection or place where -new element with value (key) should be inserted. -*/ -template -static IterT VmaBinaryFindFirstNotLess(IterT beg, IterT end, const KeyT& key, const CmpLess& cmp) -{ - size_t down = 0; - size_t up = size_t(end - beg); - while (down < up) - { - const size_t mid = down + (up - down) / 2; // Overflow-safe midpoint calculation - if (cmp(*(beg + mid), key)) - { - down = mid + 1; - } - else - { - up = mid; - } - } - return beg + down; -} - -template -IterT VmaBinaryFindSorted(const IterT& beg, const IterT& end, const KeyT& value, const CmpLess& cmp) -{ - IterT it = VmaBinaryFindFirstNotLess( - beg, end, value, cmp); - if (it == end || - (!cmp(*it, value) && !cmp(value, *it))) - { - return it; - } - return end; -} - -/* -Returns true if all pointers in the array are not-null and unique. -Warning! O(n^2) complexity. Use only inside VMA_HEAVY_ASSERT. -T must be pointer type, e.g. VmaAllocation, VmaPool. -*/ -template -static bool VmaValidatePointerArray(uint32_t count, const T* arr) -{ - for (uint32_t i = 0; i < count; ++i) - { - const T iPtr = arr[i]; - if (iPtr == VMA_NULL) - { - return false; - } - for (uint32_t j = i + 1; j < count; ++j) - { - if (iPtr == arr[j]) - { - return false; - } - } - } - return true; -} - -template -static inline void VmaPnextChainPushFront(MainT* mainStruct, NewT* newStruct) -{ - newStruct->pNext = mainStruct->pNext; - mainStruct->pNext = newStruct; -} // Finds structure with s->sType == sType in mainStruct->pNext chain. // Returns pointer to it. If not found, returns null. template -static inline const FindT* VmaPnextChainFind(const MainT* mainStruct, VkStructureType sType) +inline const FindT* VmaPnextChainFind(const MainT* mainStruct, VkStructureType sType) { for(const VkBaseInStructure* s = (const VkBaseInStructure*)mainStruct->pNext; s != VMA_NULL; s = s->pNext) @@ -4000,9 +3792,423 @@ VmaBufferImageUsage::VmaBufferImageUsage(const VkImageCreateInfo &createInfo) // VkImageUsageFlags2CreateInfoKHR, like the one for buffers... } +#endif // _VMA_BUFFER_IMAGE_USAGE + +#ifndef _VMA_FUNCTIONS + +namespace +{ + +/* +Returns number of bits set to 1 in (v). + +On specific platforms and compilers you can use intrinsics like: + +Visual Studio: + return __popcnt(v); +GCC, Clang: + return static_cast(__builtin_popcount(v)); + +Define macro VMA_COUNT_BITS_SET to provide your optimized implementation. +But you need to check in runtime whether user's CPU supports these, as some old processors don't. +*/ +inline uint32_t VmaCountBitsSet(uint32_t v) +{ +#if VMA_CPP20 + return std::popcount(v); +#else + uint32_t c = v - ((v >> 1) & 0x55555555); + c = ((c >> 2) & 0x33333333) + (c & 0x33333333); + c = ((c >> 4) + c) & 0x0F0F0F0F; + c = ((c >> 8) + c) & 0x00FF00FF; + c = ((c >> 16) + c) & 0x0000FFFF; + return c; +#endif +} + +inline uint8_t VmaBitScanLSB(uint64_t mask) +{ +#if defined(_MSC_VER) && defined(_WIN64) + unsigned long pos; + if (_BitScanForward64(&pos, mask)) + return static_cast(pos); + return UINT8_MAX; +#elif VMA_CPP20 + if(mask != 0) + return static_cast(std::countr_zero(mask)); + return UINT8_MAX; +#elif defined __GNUC__ || defined __clang__ + return static_cast(__builtin_ffsll(mask)) - 1U; +#else + uint8_t pos = 0; + uint64_t bit = 1; + do + { + if (mask & bit) + return pos; + bit <<= 1; + } while (pos++ < 63); + return UINT8_MAX; +#endif +} + +inline uint8_t VmaBitScanLSB(uint32_t mask) +{ +#ifdef _MSC_VER + unsigned long pos; + if (_BitScanForward(&pos, mask)) + return static_cast(pos); + return UINT8_MAX; +#elif VMA_CPP20 + if(mask != 0) + return static_cast(std::countr_zero(mask)); + return UINT8_MAX; +#elif defined __GNUC__ || defined __clang__ + return static_cast(__builtin_ffs(mask)) - 1U; +#else + uint8_t pos = 0; + uint32_t bit = 1; + do + { + if (mask & bit) + return pos; + bit <<= 1; + } while (pos++ < 31); + return UINT8_MAX; +#endif +} + +inline uint8_t VmaBitScanMSB(uint64_t mask) +{ +#if defined(_MSC_VER) && defined(_WIN64) + unsigned long pos; + if (_BitScanReverse64(&pos, mask)) + return static_cast(pos); +#elif VMA_CPP20 + if(mask != 0) + return 63 - static_cast(std::countl_zero(mask)); +#elif defined __GNUC__ || defined __clang__ + if (mask != 0) + return 63 - static_cast(__builtin_clzll(mask)); +#else + uint8_t pos = 63; + uint64_t bit = 1ULL << 63; + do + { + if (mask & bit) + return pos; + bit >>= 1; + } while (pos-- > 0); +#endif + return UINT8_MAX; +} + +inline uint8_t VmaBitScanMSB(uint32_t mask) +{ +#ifdef _MSC_VER + unsigned long pos; + if (_BitScanReverse(&pos, mask)) + return static_cast(pos); +#elif VMA_CPP20 + if(mask != 0) + return 31 - static_cast(std::countl_zero(mask)); +#elif defined __GNUC__ || defined __clang__ + if (mask != 0) + return 31 - static_cast(__builtin_clz(mask)); +#else + uint8_t pos = 31; + uint32_t bit = 1UL << 31; + do + { + if (mask & bit) + return pos; + bit >>= 1; + } while (pos-- > 0); +#endif + return UINT8_MAX; +} + +/* +Returns true if given number is a power of two. +T must be unsigned integer number or signed integer but always nonnegative. +For 0 returns true. +*/ +template +inline bool VmaIsPow2(T x) +{ + return (x & (x - 1)) == 0; +} + +// Aligns given value up to nearest multiply of align value. For example: VmaAlignUp(11, 8) = 16. +// Use types like uint32_t, uint64_t as T. +template +inline T VmaAlignUp(T val, T alignment) +{ + VMA_HEAVY_ASSERT(VmaIsPow2(alignment)); + return (val + alignment - 1) & ~(alignment - 1); +} + +// Aligns given value down to nearest multiply of align value. For example: VmaAlignDown(11, 8) = 8. +// Use types like uint32_t, uint64_t as T. +template +inline T VmaAlignDown(T val, T alignment) +{ + VMA_HEAVY_ASSERT(VmaIsPow2(alignment)); + return val & ~(alignment - 1); +} + +// Division with mathematical rounding to nearest number. +template +inline T VmaRoundDiv(T x, T y) +{ + return (x + (y / (T)2)) / y; +} + +// Divide by 'y' and round up to nearest integer. +template +inline T VmaDivideRoundingUp(T x, T y) +{ + return (x + y - (T)1) / y; +} + +// Returns smallest power of 2 greater or equal to v. +inline uint32_t VmaNextPow2(uint32_t v) +{ + v--; + v |= v >> 1; + v |= v >> 2; + v |= v >> 4; + v |= v >> 8; + v |= v >> 16; + v++; + return v; +} + +inline uint64_t VmaNextPow2(uint64_t v) +{ + v--; + v |= v >> 1; + v |= v >> 2; + v |= v >> 4; + v |= v >> 8; + v |= v >> 16; + v |= v >> 32; + v++; + return v; +} + +// Returns largest power of 2 less or equal to v. +inline uint32_t VmaPrevPow2(uint32_t v) +{ + v |= v >> 1; + v |= v >> 2; + v |= v >> 4; + v |= v >> 8; + v |= v >> 16; + v = v ^ (v >> 1); + return v; +} + +inline uint64_t VmaPrevPow2(uint64_t v) +{ + v |= v >> 1; + v |= v >> 2; + v |= v >> 4; + v |= v >> 8; + v |= v >> 16; + v |= v >> 32; + v = v ^ (v >> 1); + return v; +} + +inline bool VmaStrIsEmpty(const char* pStr) +{ + return pStr == VMA_NULL || *pStr == '\0'; +} + +/* +Returns true if two memory blocks occupy overlapping pages. +ResourceA must be in less memory offset than ResourceB. + +Algorithm is based on "Vulkan 1.0.39 - A Specification (with all registered Vulkan extensions)" +chapter 11.6 "Resource Memory Association", paragraph "Buffer-Image Granularity". +*/ +inline bool VmaBlocksOnSamePage( + VkDeviceSize resourceAOffset, + VkDeviceSize resourceASize, + VkDeviceSize resourceBOffset, + VkDeviceSize pageSize) +{ + VMA_ASSERT(resourceAOffset + resourceASize <= resourceBOffset && resourceASize > 0 && pageSize > 0); + VkDeviceSize resourceAEnd = resourceAOffset + resourceASize - 1; + VkDeviceSize resourceAEndPage = resourceAEnd & ~(pageSize - 1); + VkDeviceSize resourceBStart = resourceBOffset; + VkDeviceSize resourceBStartPage = resourceBStart & ~(pageSize - 1); + return resourceAEndPage == resourceBStartPage; +} + +/* +Returns true if given suballocation types could conflict and must respect +VkPhysicalDeviceLimits::bufferImageGranularity. They conflict if one is buffer +or linear image and another one is optimal image. If type is unknown, behave +conservatively. +*/ +inline bool VmaIsBufferImageGranularityConflict( + VmaSuballocationType suballocType1, + VmaSuballocationType suballocType2) +{ + if (suballocType1 > suballocType2) + { + std::swap(suballocType1, suballocType2); + } + + switch (suballocType1) + { + case VMA_SUBALLOCATION_TYPE_FREE: + return false; + case VMA_SUBALLOCATION_TYPE_UNKNOWN: + return true; + case VMA_SUBALLOCATION_TYPE_BUFFER: + return + suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN || + suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL; + case VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN: + return + suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN || + suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_LINEAR || + suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL; + case VMA_SUBALLOCATION_TYPE_IMAGE_LINEAR: + return + suballocType2 == VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL; + case VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL: + return false; + default: + VMA_ASSERT(0); + return true; + } +} + +void VmaWriteMagicValue(void* pData, VkDeviceSize offset) +{ +#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION + uint32_t* pDst = (uint32_t*)((char*)pData + offset); + const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t); + for (size_t i = 0; i < numberCount; ++i, ++pDst) + { + *pDst = VMA_CORRUPTION_DETECTION_MAGIC_VALUE; + } +#else + // no-op +#endif +} + +bool VmaValidateMagicValue(const void* pData, VkDeviceSize offset) +{ +#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION + const uint32_t* pSrc = (const uint32_t*)((const char*)pData + offset); + const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t); + for (size_t i = 0; i < numberCount; ++i, ++pSrc) + { + if (*pSrc != VMA_CORRUPTION_DETECTION_MAGIC_VALUE) + { + return false; + } + } +#endif + return true; +} + +/* +Fills structure with parameters of an example buffer to be used for transfers +during GPU memory defragmentation. +*/ +void VmaFillGpuDefragmentationBufferCreateInfo(VkBufferCreateInfo& outBufCreateInfo) +{ + memset(&outBufCreateInfo, 0, sizeof(outBufCreateInfo)); + outBufCreateInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; + outBufCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; + outBufCreateInfo.size = (VkDeviceSize)VMA_DEFAULT_LARGE_HEAP_BLOCK_SIZE; // Example size. +} + + +/* +Performs binary search and returns iterator to first element that is greater or +equal to (key), according to comparison (cmp). + +Cmp should return true if first argument is less than second argument. + +Returned value is the found element, if present in the collection or place where +new element with value (key) should be inserted. +*/ +template +IterT VmaBinaryFindFirstNotLess(IterT beg, IterT end, const KeyT& key, const CmpLess& cmp) +{ + size_t down = 0; + size_t up = size_t(end - beg); + while (down < up) + { + const size_t mid = down + (up - down) / 2; // Overflow-safe midpoint calculation + if (cmp(*(beg + mid), key)) + { + down = mid + 1; + } + else + { + up = mid; + } + } + return beg + down; +} + +template +IterT VmaBinaryFindSorted(const IterT& beg, const IterT& end, const KeyT& value, const CmpLess& cmp) +{ + IterT it = VmaBinaryFindFirstNotLess( + beg, end, value, cmp); + if (it == end || + (!cmp(*it, value) && !cmp(value, *it))) + { + return it; + } + return end; +} + +/* +Returns true if all pointers in the array are not-null and unique. +Warning! O(n^2) complexity. Use only inside VMA_HEAVY_ASSERT. +T must be pointer type, e.g. VmaAllocation, VmaPool. +*/ +template +bool VmaValidatePointerArray(uint32_t count, const T* arr) +{ + for (uint32_t i = 0; i < count; ++i) + { + const T iPtr = arr[i]; + if (iPtr == VMA_NULL) + { + return false; + } + for (uint32_t j = i + 1; j < count; ++j) + { + if (iPtr == arr[j]) + { + return false; + } + } + } + return true; +} + +template +inline void VmaPnextChainPushFront(MainT* mainStruct, NewT* newStruct) +{ + newStruct->pNext = mainStruct->pNext; + mainStruct->pNext = newStruct; +} + // This is the main algorithm that guides the selection of a memory type best for an allocation - // converts usage to required/preferred/not preferred flags. -static bool FindMemoryPreferences( +bool FindMemoryPreferences( bool isIntegratedGPU, const VmaAllocationCreateInfo& allocCreateInfo, VmaBufferImageUsage bufImgUsage, @@ -4078,8 +4284,11 @@ static bool FindMemoryPreferences( } else { - // Always CPU memory. - outRequiredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; + if(hostAccessAllowTransferInstead) + outPreferredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; + else + // Always CPU memory. + outRequiredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; } } // CPU sequential write - may be CPU or host-visible GPU memory, uncached and write-combined. @@ -4094,7 +4303,12 @@ static bool FindMemoryPreferences( } else { - outRequiredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; + if(hostAccessAllowTransferInstead) + outPreferredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; + else + // Always CPU memory. + outRequiredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; + // Direct GPU access, CPU sequential write (e.g. a dynamic uniform buffer updated every frame) if(deviceAccess) { @@ -4154,7 +4368,7 @@ static bool FindMemoryPreferences( //////////////////////////////////////////////////////////////////////////////// // Memory allocation -static void* VmaMalloc(const VkAllocationCallbacks* pAllocationCallbacks, size_t size, size_t alignment) +inline void* VmaMalloc(const VkAllocationCallbacks* pAllocationCallbacks, size_t size, size_t alignment) { void* result = VMA_NULL; if ((pAllocationCallbacks != VMA_NULL) && @@ -4174,7 +4388,7 @@ static void* VmaMalloc(const VkAllocationCallbacks* pAllocationCallbacks, size_t return result; } -static void VmaFree(const VkAllocationCallbacks* pAllocationCallbacks, void* ptr) +inline void VmaFree(const VkAllocationCallbacks* pAllocationCallbacks, void* ptr) { if ((pAllocationCallbacks != VMA_NULL) && (pAllocationCallbacks->pfnFree != VMA_NULL)) @@ -4188,13 +4402,13 @@ static void VmaFree(const VkAllocationCallbacks* pAllocationCallbacks, void* ptr } template -static T* VmaAllocate(const VkAllocationCallbacks* pAllocationCallbacks) +T* VmaAllocate(const VkAllocationCallbacks* pAllocationCallbacks) { return (T*)VmaMalloc(pAllocationCallbacks, sizeof(T), VMA_ALIGN_OF(T)); } template -static T* VmaAllocateArray(const VkAllocationCallbacks* pAllocationCallbacks, size_t count) +T* VmaAllocateArray(const VkAllocationCallbacks* pAllocationCallbacks, size_t count) { return (T*)VmaMalloc(pAllocationCallbacks, sizeof(T) * count, VMA_ALIGN_OF(T)); } @@ -4204,14 +4418,14 @@ static T* VmaAllocateArray(const VkAllocationCallbacks* pAllocationCallbacks, si #define vma_new_array(allocator, type, count) new(VmaAllocateArray((allocator), (count)))(type) template -static void vma_delete(const VkAllocationCallbacks* pAllocationCallbacks, T* ptr) +void vma_delete(const VkAllocationCallbacks* pAllocationCallbacks, T* ptr) { ptr->~T(); VmaFree(pAllocationCallbacks, ptr); } template -static void vma_delete_array(const VkAllocationCallbacks* pAllocationCallbacks, T* ptr, size_t count) +void vma_delete_array(const VkAllocationCallbacks* pAllocationCallbacks, T* ptr, size_t count) { if (ptr != VMA_NULL) { @@ -4223,7 +4437,7 @@ static void vma_delete_array(const VkAllocationCallbacks* pAllocationCallbacks, } } -static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr) +char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr) { if (srcStr != VMA_NULL) { @@ -4236,7 +4450,7 @@ static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char } #if VMA_STATS_STRING_ENABLED -static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen) +char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen) { if (srcStr != VMA_NULL) { @@ -4249,7 +4463,7 @@ static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char } #endif // VMA_STATS_STRING_ENABLED -static void VmaFreeString(const VkAllocationCallbacks* allocs, char* str) +void VmaFreeString(const VkAllocationCallbacks* allocs, char* str) { if (str != VMA_NULL) { @@ -4287,11 +4501,17 @@ bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& } return false; } + +} // namespace + #endif // _VMA_FUNCTIONS #ifndef _VMA_STATISTICS_FUNCTIONS -static void VmaClearStatistics(VmaStatistics& outStats) +namespace +{ + +void VmaClearStatistics(VmaStatistics& outStats) { outStats.blockCount = 0; outStats.allocationCount = 0; @@ -4299,7 +4519,7 @@ static void VmaClearStatistics(VmaStatistics& outStats) outStats.allocationBytes = 0; } -static void VmaAddStatistics(VmaStatistics& inoutStats, const VmaStatistics& src) +void VmaAddStatistics(VmaStatistics& inoutStats, const VmaStatistics& src) { inoutStats.blockCount += src.blockCount; inoutStats.allocationCount += src.allocationCount; @@ -4307,7 +4527,7 @@ static void VmaAddStatistics(VmaStatistics& inoutStats, const VmaStatistics& src inoutStats.allocationBytes += src.allocationBytes; } -static void VmaClearDetailedStatistics(VmaDetailedStatistics& outStats) +void VmaClearDetailedStatistics(VmaDetailedStatistics& outStats) { VmaClearStatistics(outStats.statistics); outStats.unusedRangeCount = 0; @@ -4317,7 +4537,7 @@ static void VmaClearDetailedStatistics(VmaDetailedStatistics& outStats) outStats.unusedRangeSizeMax = 0; } -static void VmaAddDetailedStatisticsAllocation(VmaDetailedStatistics& inoutStats, VkDeviceSize size) +void VmaAddDetailedStatisticsAllocation(VmaDetailedStatistics& inoutStats, VkDeviceSize size) { inoutStats.statistics.allocationCount++; inoutStats.statistics.allocationBytes += size; @@ -4325,14 +4545,14 @@ static void VmaAddDetailedStatisticsAllocation(VmaDetailedStatistics& inoutStats inoutStats.allocationSizeMax = VMA_MAX(inoutStats.allocationSizeMax, size); } -static void VmaAddDetailedStatisticsUnusedRange(VmaDetailedStatistics& inoutStats, VkDeviceSize size) +void VmaAddDetailedStatisticsUnusedRange(VmaDetailedStatistics& inoutStats, VkDeviceSize size) { inoutStats.unusedRangeCount++; inoutStats.unusedRangeSizeMin = VMA_MIN(inoutStats.unusedRangeSizeMin, size); inoutStats.unusedRangeSizeMax = VMA_MAX(inoutStats.unusedRangeSizeMax, size); } -static void VmaAddDetailedStatistics(VmaDetailedStatistics& inoutStats, const VmaDetailedStatistics& src) +void VmaAddDetailedStatistics(VmaDetailedStatistics& inoutStats, const VmaDetailedStatistics& src) { VmaAddStatistics(inoutStats.statistics, src.statistics); inoutStats.unusedRangeCount += src.unusedRangeCount; @@ -4342,6 +4562,8 @@ static void VmaAddDetailedStatistics(VmaDetailedStatistics& inoutStats, const Vm inoutStats.unusedRangeSizeMax = VMA_MAX(inoutStats.unusedRangeSizeMax, src.unusedRangeSizeMax); } +} // namespace + #endif // _VMA_STATISTICS_FUNCTIONS #ifndef _VMA_MUTEX_LOCK @@ -4441,8 +4663,8 @@ struct VmaStlAllocator VmaStlAllocator(const VmaStlAllocator&) = default; VmaStlAllocator& operator=(const VmaStlAllocator&) = delete; - T* allocate(size_t n) { return VmaAllocateArray(m_pCallbacks, n); } - void deallocate(T* p, size_t n) { VmaFree(m_pCallbacks, p); } + T* allocate(size_t n); + void deallocate(T* p, size_t n); template bool operator==(const VmaStlAllocator& rhs) const @@ -4455,6 +4677,12 @@ struct VmaStlAllocator return m_pCallbacks != rhs.m_pCallbacks; } }; + +template +T* VmaStlAllocator::allocate(size_t n) { return VmaAllocateArray(m_pCallbacks, n); } + +template +void VmaStlAllocator::deallocate(T* p, size_t n) { VmaFree(m_pCallbacks, p); } #endif // _VMA_STL_ALLOCATOR #ifndef _VMA_VECTOR @@ -4476,7 +4704,7 @@ public: VmaVector(size_t count, const T& value, const AllocatorT& allocator) : VmaVector(count, allocator) {} VmaVector(const VmaVector& src); VmaVector& operator=(const VmaVector& rhs); - ~VmaVector() { VmaFree(m_Allocator.m_pCallbacks, m_pArray); } + ~VmaVector(); bool empty() const { return m_Count == 0; } size_t size() const { return m_Count; } @@ -4517,6 +4745,9 @@ private: }; #ifndef _VMA_VECTOR_FUNCTIONS +template +VmaVector::~VmaVector() { VmaFree(m_Allocator.m_pCallbacks, m_pArray); } + template VmaVector::VmaVector(const AllocatorT& allocator) : m_Allocator(allocator), @@ -4600,7 +4831,8 @@ void VmaVector::resize(size_t newCount) if (newCapacity != m_Capacity) { - T* const newArray = newCapacity ? VmaAllocateArray(m_Allocator.m_pCallbacks, newCapacity) : VMA_NULL; + VMA_HEAVY_ASSERT(newCapacity > 0); + T* const newArray = VmaAllocateArray(m_Allocator.m_pCallbacks, newCapacity); const size_t elementsToCopy = VMA_MIN(m_Count, newCount); if (elementsToCopy != 0) { @@ -4657,17 +4889,23 @@ void VmaVector::remove(size_t index) } #endif // _VMA_VECTOR_FUNCTIONS +namespace +{ + template -static void VmaVectorInsert(VmaVector& vec, size_t index, const T& item) +void VmaVectorInsert(VmaVector& vec, size_t index, const T& item) { vec.insert(index, item); } template -static void VmaVectorRemove(VmaVector& vec, size_t index) +void VmaVectorRemove(VmaVector& vec, size_t index) { vec.remove(index); } + +} // namespace + #endif // _VMA_VECTOR #ifndef _VMA_SMALL_VECTOR @@ -6065,7 +6303,10 @@ void VmaJsonWriter::WriteIndent(bool oneLess) } #endif // _VMA_JSON_WRITER_FUNCTIONS -static void VmaPrintDetailedStatistics(VmaJsonWriter& json, const VmaDetailedStatistics& stat) +namespace +{ + +void VmaPrintDetailedStatistics(VmaJsonWriter& json, const VmaDetailedStatistics& stat) { json.BeginObject(); @@ -6096,6 +6337,9 @@ static void VmaPrintDetailedStatistics(VmaJsonWriter& json, const VmaDetailedSta } json.EndObject(); } + +} // namespace + #endif // _VMA_JSON_WRITER #ifndef _VMA_MAPPING_HYSTERESIS @@ -6176,7 +6420,7 @@ public: } private: - static const int32_t COUNTER_MIN_EXTRA_MAPPING = 7; + static constexpr int32_t COUNTER_MIN_EXTRA_MAPPING = 7; uint32_t m_MinorCounter = 0; uint32_t m_MajorCounter = 0; @@ -6203,40 +6447,45 @@ class VmaWin32Handle { public: VmaWin32Handle() noexcept : m_hHandle(VMA_NULL) { } - explicit VmaWin32Handle(HANDLE hHandle) noexcept : m_hHandle(hHandle) { } - ~VmaWin32Handle() noexcept { if (m_hHandle != VMA_NULL) { ::CloseHandle(m_hHandle); } } + explicit VmaWin32Handle(HANDLE hHandle) noexcept + : m_hHandle(hHandle) + , m_IsNTHandle(IsNTHandle(hHandle)) + { + } + ~VmaWin32Handle() noexcept { if (m_hHandle != VMA_NULL && m_IsNTHandle) { ::CloseHandle(m_hHandle); } } VMA_CLASS_NO_COPY_NO_MOVE(VmaWin32Handle) public: // Strengthened - VkResult GetHandle(VkDevice device, VkDeviceMemory memory, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, HANDLE hTargetProcess, bool useMutex, HANDLE* pHandle) noexcept + VkResult GetHandle(VkDevice device, VkDeviceMemory memory, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, bool useMutex, HANDLE* pHandle) noexcept { *pHandle = VMA_NULL; // Try to get handle first. - if (m_hHandle != VMA_NULL) - { - *pHandle = Duplicate(hTargetProcess); - return VK_SUCCESS; - } - VkResult res = VK_SUCCESS; - // If failed, try to create it. + if (m_hHandle == VMA_NULL) { VmaMutexLockWrite lock(m_Mutex, useMutex); if (m_hHandle == VMA_NULL) { - res = Create(device, memory, pvkGetMemoryWin32HandleKHR, &m_hHandle); + res = Create(device, memory, pvkGetMemoryWin32HandleKHR, handleType, &m_hHandle); + if (res != VK_SUCCESS) { + m_hHandle = VMA_NULL; + return res; + } + m_IsNTHandle = IsNTHandle(m_hHandle); } } - - *pHandle = Duplicate(hTargetProcess); + if (res == VK_SUCCESS) { + // KMT handle is returned as is. + *pHandle = m_IsNTHandle ? Duplicate(hTargetProcess) : m_hHandle; + } return res; } operator bool() const noexcept { return m_hHandle != VMA_NULL; } private: // Not atomic - static VkResult Create(VkDevice device, VkDeviceMemory memory, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, HANDLE* pHandle) noexcept + static VkResult Create(VkDevice device, VkDeviceMemory memory, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE* pHandle) noexcept { VkResult res = VK_ERROR_FEATURE_NOT_PRESENT; if (pvkGetMemoryWin32HandleKHR != VMA_NULL) @@ -6244,7 +6493,7 @@ private: VkMemoryGetWin32HandleInfoKHR handleInfo{ }; handleInfo.sType = VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR; handleInfo.memory = memory; - handleInfo.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR; + handleInfo.handleType = handleType; res = pvkGetMemoryWin32HandleKHR(device, &handleInfo, pHandle); } return res; @@ -6262,9 +6511,15 @@ private: } return hDupHandle; } + static bool IsNTHandle(HANDLE hHandle) noexcept + { + DWORD flags = 0; + return (hHandle != VMA_NULL) ? (::GetHandleInformation(hHandle, &flags) != 0) : false; + } private: HANDLE m_hHandle; VMA_RW_MUTEX m_Mutex; // Protects access m_Handle + bool m_IsNTHandle = false; // True if m_Handle is NT handle, false if it's a KMT handle. }; #else class VmaWin32Handle @@ -6272,6 +6527,7 @@ class VmaWin32Handle // ABI compatibility void* placeholder = VMA_NULL; VMA_RW_MUTEX placeholder2; + bool placeholder3 = false; }; #endif // VMA_EXTERNAL_MEMORY_WIN32 @@ -6312,6 +6568,7 @@ public: uint32_t GetMemoryTypeIndex() const { return m_MemoryTypeIndex; } uint32_t GetId() const { return m_Id; } void* GetMappedData() const { return m_pMappedData; } + bool IsMapped() const { return m_IsMapped.load(); } uint32_t GetMapRefCount() const { return m_MapCount; } // Call when allocation/free was made from m_pMetadata. @@ -6346,6 +6603,7 @@ public: VkResult CreateWin32Handle( const VmaAllocator hAllocator, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, + VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* pHandle)noexcept; #endif // VMA_EXTERNAL_MEMORY_WIN32 @@ -6358,12 +6616,18 @@ private: /* Protects access to m_hMemory so it is not used by multiple threads simultaneously, e.g. vkMapMemory, vkBindBufferMemory. Also protects m_MapCount, m_pMappedData. + m_IsMapped mirrors whether m_pMappedData is non-null and can be read without this mutex in allocation heuristics. Allocations, deallocations, any change in m_pMetadata is protected by parent's VmaBlockVector::m_Mutex. */ VMA_MUTEX m_MapAndBindMutex; VmaMappingHysteresis m_MappingHysteresis; uint32_t m_MapCount; void* m_pMappedData; + /* + Mirrors `m_pMappedData != VMA_NULL` for allocation heuristics that only need mapped/unmapped state. + This is atomic so allocation scans don't race with Map/Unmap while the actual mapped pointer remains protected by m_MapAndBindMutex. + */ + VMA_ATOMIC_BOOL m_IsMapped; VmaWin32Handle m_Handle; }; @@ -6460,7 +6724,7 @@ public: #endif #if VMA_EXTERNAL_MEMORY_WIN32 - VkResult GetWin32Handle(VmaAllocator hAllocator, HANDLE hTargetProcess, HANDLE* hHandle) noexcept; + VkResult GetWin32Handle(VmaAllocator hAllocator, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* hHandle) noexcept; #endif // VMA_EXTERNAL_MEMORY_WIN32 private: @@ -6928,6 +7192,14 @@ void VmaBlockMetadata::PrintDetailedMap_End(class VmaJsonWriter& json) #ifndef _VMA_BLOCK_BUFFER_IMAGE_GRANULARITY // Before deleting object of this class remember to call 'Destroy()' +/* +Tracks block occupancy at VkPhysicalDeviceLimits::bufferImageGranularity page boundaries. +For each granularity-sized page in a memory block, m_RegionInfo stores: +- allocCount: how many allocations touch this page as their first or last page. +- allocType: the remembered VmaSuballocationType for that page while allocCount > 0. +Only boundary pages are tracked because buffer-image granularity conflicts matter when +adjacent allocations share the same granularity page at the start or end of an allocation. +*/ class VmaBlockBufferImageGranularity final { public: @@ -6950,6 +7222,21 @@ public: VkDeviceSize& inOutAllocSize, VkDeviceSize& inOutAllocAlignment) const; + /* + Checks whether an allocation placed in a free block would conflict with existing + allocations due to buffer-image granularity requirements and, if needed, aligns the + allocation start to the next granularity page. + + Parameters: + - inOutAllocOffset: candidate allocation offset inside the block; may be increased. + - allocSize: size of the allocation being placed. + - blockOffset: start offset of the free block being considered. + - blockSize: size of the free block being considered. + - allocType: VmaSuballocationType of the allocation being placed. + + Returns true when the placement conflicts or no longer fits in the free block after alignment. + Returns false when the placement is valid, possibly after updating inOutAllocOffset. + */ bool CheckConflictAndAlignUp(VkDeviceSize& inOutAllocOffset, VkDeviceSize allocSize, VkDeviceSize blockOffset, @@ -6966,7 +7253,7 @@ public: bool FinishValidation(ValidationContext& ctx) const; private: - static const uint16_t MAX_LOW_BUFFER_IMAGE_GRANULARITY = 256; + static constexpr uint16_t MAX_LOW_BUFFER_IMAGE_GRANULARITY = 256; struct RegionInfo { @@ -7038,56 +7325,62 @@ bool VmaBlockBufferImageGranularity::CheckConflictAndAlignUp(VkDeviceSize& inOut VkDeviceSize blockSize, VmaSuballocationType allocType) const { - if (IsEnabled()) + if (!IsEnabled()) + return false; + + uint32_t startPage = GetStartPage(inOutAllocOffset); + if (m_RegionInfo[startPage].allocCount > 0 && + VmaIsBufferImageGranularityConflict(static_cast(m_RegionInfo[startPage].allocType), allocType)) { - uint32_t startPage = GetStartPage(inOutAllocOffset); + inOutAllocOffset = VmaAlignUp(inOutAllocOffset, m_BufferImageGranularity); + if (blockSize < allocSize + inOutAllocOffset - blockOffset) + return true; + startPage = GetStartPage(inOutAllocOffset); if (m_RegionInfo[startPage].allocCount > 0 && VmaIsBufferImageGranularityConflict(static_cast(m_RegionInfo[startPage].allocType), allocType)) - { - inOutAllocOffset = VmaAlignUp(inOutAllocOffset, m_BufferImageGranularity); - if (blockSize < allocSize + inOutAllocOffset - blockOffset) - return true; - ++startPage; - } - uint32_t endPage = GetEndPage(inOutAllocOffset, allocSize); - if (endPage != startPage && - m_RegionInfo[endPage].allocCount > 0 && - VmaIsBufferImageGranularityConflict(static_cast(m_RegionInfo[endPage].allocType), allocType)) { return true; } } + uint32_t endPage = GetEndPage(inOutAllocOffset, allocSize); + if (endPage != startPage && + m_RegionInfo[endPage].allocCount > 0 && + VmaIsBufferImageGranularityConflict(static_cast(m_RegionInfo[endPage].allocType), allocType)) + { + return true; + } + return false; } void VmaBlockBufferImageGranularity::AllocPages(uint8_t allocType, VkDeviceSize offset, VkDeviceSize size) { - if (IsEnabled()) - { - uint32_t startPage = GetStartPage(offset); - AllocPage(m_RegionInfo[startPage], allocType); + if (!IsEnabled()) + return; - uint32_t endPage = GetEndPage(offset, size); - if (startPage != endPage) - AllocPage(m_RegionInfo[endPage], allocType); - } + uint32_t startPage = GetStartPage(offset); + AllocPage(m_RegionInfo[startPage], allocType); + + uint32_t endPage = GetEndPage(offset, size); + if (startPage != endPage) + AllocPage(m_RegionInfo[endPage], allocType); } void VmaBlockBufferImageGranularity::FreePages(VkDeviceSize offset, VkDeviceSize size) { - if (IsEnabled()) + if (!IsEnabled()) + return; + + uint32_t startPage = GetStartPage(offset); + --m_RegionInfo[startPage].allocCount; + if (m_RegionInfo[startPage].allocCount == 0) + m_RegionInfo[startPage].allocType = VMA_SUBALLOCATION_TYPE_FREE; + uint32_t endPage = GetEndPage(offset, size); + if (startPage != endPage) { - uint32_t startPage = GetStartPage(offset); - --m_RegionInfo[startPage].allocCount; - if (m_RegionInfo[startPage].allocCount == 0) - m_RegionInfo[startPage].allocType = VMA_SUBALLOCATION_TYPE_FREE; - uint32_t endPage = GetEndPage(offset, size); - if (startPage != endPage) - { - --m_RegionInfo[endPage].allocCount; - if (m_RegionInfo[endPage].allocCount == 0) - m_RegionInfo[endPage].allocType = VMA_SUBALLOCATION_TYPE_FREE; - } + --m_RegionInfo[endPage].allocCount; + if (m_RegionInfo[endPage].allocCount == 0) + m_RegionInfo[endPage].allocType = VMA_SUBALLOCATION_TYPE_FREE; } } @@ -7112,36 +7405,38 @@ VmaBlockBufferImageGranularity::ValidationContext VmaBlockBufferImageGranularity bool VmaBlockBufferImageGranularity::Validate(ValidationContext& ctx, VkDeviceSize offset, VkDeviceSize size) const { - if (IsEnabled()) - { - uint32_t start = GetStartPage(offset); - ++ctx.pageAllocs[start]; - VMA_VALIDATE(m_RegionInfo[start].allocCount > 0); + if (!IsEnabled()) + return true; - uint32_t end = GetEndPage(offset, size); - if (start != end) - { - ++ctx.pageAllocs[end]; - VMA_VALIDATE(m_RegionInfo[end].allocCount > 0); - } + uint32_t start = GetStartPage(offset); + ++ctx.pageAllocs[start]; + VMA_VALIDATE(m_RegionInfo[start].allocCount > 0); + + uint32_t end = GetEndPage(offset, size); + if (start != end) + { + ++ctx.pageAllocs[end]; + VMA_VALIDATE(m_RegionInfo[end].allocCount > 0); } + return true; } bool VmaBlockBufferImageGranularity::FinishValidation(ValidationContext& ctx) const { - // Check proper page structure - if (IsEnabled()) - { - VMA_ASSERT(ctx.pageAllocs != VMA_NULL && "Validation context not initialized!"); + if (!IsEnabled()) + return true; - for (uint32_t page = 0; page < m_RegionCount; ++page) - { - VMA_VALIDATE(ctx.pageAllocs[page] == m_RegionInfo[page].allocCount); - } - vma_delete_array(ctx.allocCallbacks, ctx.pageAllocs, m_RegionCount); - ctx.pageAllocs = VMA_NULL; + // Check proper page structure + VMA_ASSERT(ctx.pageAllocs != VMA_NULL && "Validation context not initialized!"); + + for (uint32_t page = 0; page < m_RegionCount; ++page) + { + VMA_VALIDATE(ctx.pageAllocs[page] == m_RegionInfo[page].allocCount); } + vma_delete_array(ctx.allocCallbacks, ctx.pageAllocs, m_RegionCount); + ctx.pageAllocs = VMA_NULL; + return true; } @@ -8907,11 +9202,11 @@ private: // According to original paper it should be preferable 4 or 5: // M. Masmano, I. Ripoll, A. Crespo, and J. Real "TLSF: a New Dynamic Memory Allocator for Real-Time Systems" // http://www.gii.upv.es/tlsf/files/ecrts04_tlsf.pdf - static const uint8_t SECOND_LEVEL_INDEX = 5; - static const uint16_t SMALL_BUFFER_SIZE = 256; - static const uint32_t INITIAL_BLOCK_ALLOC_COUNT = 16; - static const uint8_t MEMORY_CLASS_SHIFT = 7; - static const uint8_t MAX_MEMORY_CLASSES = 65 - MEMORY_CLASS_SHIFT; + static constexpr uint8_t SECOND_LEVEL_INDEX = 5; + static constexpr uint16_t SMALL_BUFFER_SIZE = 256; + static constexpr uint32_t INITIAL_BLOCK_ALLOC_COUNT = 16; + static constexpr uint8_t MEMORY_CLASS_SHIFT = 7; + static constexpr uint8_t MAX_MEMORY_CLASSES = 65 - MEMORY_CLASS_SHIFT; class Block { @@ -9927,7 +10222,7 @@ public: private: // Max number of allocations to ignore due to size constraints before ending single pass - static const uint8_t MAX_ALLOCS_TO_IGNORE = 16; + static constexpr uint8_t MAX_ALLOCS_TO_IGNORE = 16; enum class CounterStatus { Pass, Ignore, End }; struct FragmentedBlock @@ -10385,14 +10680,32 @@ public: VmaBufferImageUsage bufImgUsage, uint32_t* pMemoryTypeIndex) const; + // Common code for public functions vmaCreateBuffer, vmaCreateBufferWithAlignment, etc. + VkResult CreateBuffer( + const VkBufferCreateInfo* pBufferCreateInfo, + const VmaAllocationCreateInfo* pAllocationCreateInfo, + void* pMemoryAllocateNext, // pNext chain for VkMemoryAllocateInfo. + VkBuffer* pBuffer, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo); + // Common code for public functions vmaCreateImage, vmaCreateDedicatedImage. + VkResult CreateImage( + const VkImageCreateInfo* pImageCreateInfo, + const VmaAllocationCreateInfo* pAllocationCreateInfo, + void* pMemoryAllocateNext, // pNext chain for VkMemoryAllocateInfo. + VkImage* pImage, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo); + // Main allocation function. VkResult AllocateMemory( - const VkMemoryRequirements& vkMemReq, + VkMemoryRequirements vkMemReq, bool requiresDedicatedAllocation, bool prefersDedicatedAllocation, VkBuffer dedicatedBuffer, VkImage dedicatedImage, VmaBufferImageUsage dedicatedBufferImageUsage, + void* pMemoryAllocateNext, // Optional pNext chain for VkMemoryAllocateInfo. const VmaAllocationCreateInfo& createInfo, VmaSuballocationType suballocType, size_t allocationCount, @@ -10538,6 +10851,7 @@ private: VkBuffer dedicatedBuffer, VkImage dedicatedImage, VmaBufferImageUsage dedicatedBufferImageUsage, + void* pMemoryAllocateNext, // Optional pNext chain for VkMemoryAllocateInfo. const VmaAllocationCreateInfo& createInfo, uint32_t memTypeIndex, VmaSuballocationType suballocType, @@ -10577,7 +10891,7 @@ private: VmaBufferImageUsage dedicatedBufferImageUsage, size_t allocationCount, VmaAllocation* pAllocations, - const void* pNextChain = VMA_NULL); + const void* pNextChain); void FreeDedicatedMemory(VmaAllocation allocation); @@ -10609,30 +10923,32 @@ private: #ifndef _VMA_MEMORY_FUNCTIONS -static void* VmaMalloc(VmaAllocator hAllocator, size_t size, size_t alignment) +namespace +{ +inline void* VmaMalloc(VmaAllocator hAllocator, size_t size, size_t alignment) { return VmaMalloc(&hAllocator->m_AllocationCallbacks, size, alignment); } -static void VmaFree(VmaAllocator hAllocator, void* ptr) +inline void VmaFree(VmaAllocator hAllocator, void* ptr) { VmaFree(&hAllocator->m_AllocationCallbacks, ptr); } template -static T* VmaAllocate(VmaAllocator hAllocator) +T* VmaAllocate(VmaAllocator hAllocator) { return (T*)VmaMalloc(hAllocator, sizeof(T), VMA_ALIGN_OF(T)); } template -static T* VmaAllocateArray(VmaAllocator hAllocator, size_t count) +T* VmaAllocateArray(VmaAllocator hAllocator, size_t count) { return (T*)VmaMalloc(hAllocator, sizeof(T) * count, VMA_ALIGN_OF(T)); } template -static void vma_delete(VmaAllocator hAllocator, T* ptr) +void vma_delete(VmaAllocator hAllocator, T* ptr) { if(ptr != VMA_NULL) { @@ -10642,7 +10958,7 @@ static void vma_delete(VmaAllocator hAllocator, T* ptr) } template -static void vma_delete_array(VmaAllocator hAllocator, T* ptr, size_t count) +void vma_delete_array(VmaAllocator hAllocator, T* ptr, size_t count) { if(ptr != VMA_NULL) { @@ -10651,6 +10967,7 @@ static void vma_delete_array(VmaAllocator hAllocator, T* ptr, size_t count) VmaFree(hAllocator, ptr); } } +} // namespace #endif // _VMA_MEMORY_FUNCTIONS #ifndef _VMA_DEVICE_MEMORY_BLOCK_FUNCTIONS @@ -10661,7 +10978,8 @@ VmaDeviceMemoryBlock::VmaDeviceMemoryBlock(VmaAllocator hAllocator) m_Id(0), m_hMemory(VK_NULL_HANDLE), m_MapCount(0), - m_pMappedData(VMA_NULL){} + m_pMappedData(VMA_NULL), + m_IsMapped(false){} VmaDeviceMemoryBlock::~VmaDeviceMemoryBlock() { @@ -10717,6 +11035,8 @@ void VmaDeviceMemoryBlock::Destroy(VmaAllocator allocator) VMA_ASSERT_LEAK(m_hMemory != VK_NULL_HANDLE); allocator->FreeVulkanMemory(m_MemoryTypeIndex, m_pMetadata->GetSize(), m_hMemory); m_hMemory = VK_NULL_HANDLE; + m_pMappedData = VMA_NULL; + m_IsMapped.store(false); vma_delete(allocator, m_pMetadata); m_pMetadata = VMA_NULL; @@ -10737,6 +11057,7 @@ void VmaDeviceMemoryBlock::PostFree(VmaAllocator hAllocator) if (m_MapCount == 0) { m_pMappedData = VMA_NULL; + m_IsMapped.store(false); (*hAllocator->GetVulkanFunctions().vkUnmapMemory)(hAllocator->m_hDevice, m_hMemory); } } @@ -10797,6 +11118,7 @@ VkResult VmaDeviceMemoryBlock::Map(VmaAllocator hAllocator, uint32_t count, void if (result == VK_SUCCESS) { VMA_ASSERT(m_pMappedData != VMA_NULL); + m_IsMapped.store(true); m_MappingHysteresis.PostMap(); m_MapCount = count; if (ppData != VMA_NULL) @@ -10822,6 +11144,7 @@ void VmaDeviceMemoryBlock::Unmap(VmaAllocator hAllocator, uint32_t count) if (totalMapCount == 0) { m_pMappedData = VMA_NULL; + m_IsMapped.store(false); (*hAllocator->GetVulkanFunctions().vkUnmapMemory)(hAllocator->m_hDevice, m_hMemory); } m_MappingHysteresis.PostUnmap(); @@ -10904,10 +11227,10 @@ VkResult VmaDeviceMemoryBlock::BindImageMemory( } #if VMA_EXTERNAL_MEMORY_WIN32 -VkResult VmaDeviceMemoryBlock::CreateWin32Handle(const VmaAllocator hAllocator, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, HANDLE hTargetProcess, HANDLE* pHandle) noexcept +VkResult VmaDeviceMemoryBlock::CreateWin32Handle(const VmaAllocator hAllocator, PFN_vkGetMemoryWin32HandleKHR pvkGetMemoryWin32HandleKHR, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* pHandle) noexcept { VMA_ASSERT(pHandle); - return m_Handle.GetHandle(hAllocator->m_hDevice, m_hMemory, pvkGetMemoryWin32HandleKHR, hTargetProcess, hAllocator->m_UseMutex, pHandle); + return m_Handle.GetHandle(hAllocator->m_hDevice, m_hMemory, pvkGetMemoryWin32HandleKHR, handleType, hTargetProcess, hAllocator->m_UseMutex, pHandle); } #endif // VMA_EXTERNAL_MEMORY_WIN32 #endif // _VMA_DEVICE_MEMORY_BLOCK_FUNCTIONS @@ -11225,16 +11548,16 @@ void VmaAllocation_T::PrintParameters(class VmaJsonWriter& json) const } } #if VMA_EXTERNAL_MEMORY_WIN32 -VkResult VmaAllocation_T::GetWin32Handle(VmaAllocator hAllocator, HANDLE hTargetProcess, HANDLE* pHandle) noexcept +VkResult VmaAllocation_T::GetWin32Handle(VmaAllocator hAllocator, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* pHandle) noexcept { auto pvkGetMemoryWin32HandleKHR = hAllocator->GetVulkanFunctions().vkGetMemoryWin32HandleKHR; switch (m_Type) { case ALLOCATION_TYPE_BLOCK: - return m_BlockAllocation.m_Block->CreateWin32Handle(hAllocator, pvkGetMemoryWin32HandleKHR, hTargetProcess, pHandle); + return m_BlockAllocation.m_Block->CreateWin32Handle(hAllocator, pvkGetMemoryWin32HandleKHR, handleType, hTargetProcess, pHandle); case ALLOCATION_TYPE_DEDICATED: EnsureExtraData(hAllocator); - return m_DedicatedAllocation.m_ExtraData->m_Handle.GetHandle(hAllocator->m_hDevice, m_DedicatedAllocation.m_hMemory, pvkGetMemoryWin32HandleKHR, hTargetProcess, hAllocator->m_UseMutex, pHandle); + return m_DedicatedAllocation.m_ExtraData->m_Handle.GetHandle(hAllocator->m_hDevice, m_DedicatedAllocation.m_hMemory, pvkGetMemoryWin32HandleKHR, handleType, hTargetProcess, hAllocator->m_UseMutex, pHandle); default: VMA_ASSERT(0); return VK_ERROR_FEATURE_NOT_PRESENT; @@ -11348,11 +11671,13 @@ bool VmaBlockVector::IsEmpty() bool VmaBlockVector::IsCorruptionDetectionEnabled() const { - const uint32_t requiredMemFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; - return (VMA_DEBUG_DETECT_CORRUPTION != 0) && - (VMA_DEBUG_MARGIN > 0) && - (m_Algorithm == 0 || m_Algorithm == VMA_POOL_CREATE_LINEAR_ALGORITHM_BIT) && +#if (VMA_DEBUG_DETECT_CORRUPTION == 0) || (VMA_DEBUG_MARGIN == 0) + return false; +#else + constexpr uint32_t requiredMemFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; + return (m_Algorithm == 0 || m_Algorithm == VMA_POOL_CREATE_LINEAR_ALGORITHM_BIT) && (m_hAllocator->m_MemProps.memoryTypes[m_MemoryTypeIndex].propertyFlags & requiredMemFlags) == requiredMemFlags; +#endif } VkResult VmaBlockVector::Allocate( @@ -11481,7 +11806,7 @@ VkResult VmaBlockVector::AllocatePage( { VmaDeviceMemoryBlock* const pCurrBlock = m_Blocks[blockIndex]; VMA_ASSERT(pCurrBlock); - const bool isBlockMapped = pCurrBlock->GetMappedData() != VMA_NULL; + const bool isBlockMapped = pCurrBlock->IsMapped(); if((mappingI == 0) == (isMappingAllowed == isBlockMapped)) { VkResult res = AllocateFromBlock( @@ -11802,10 +12127,11 @@ VkResult VmaBlockVector::CommitAllocationRequest( else (*pAllocation)->SetUserData(m_hAllocator, pUserData); m_hAllocator->m_Budget.AddAllocation(m_hAllocator->MemoryTypeIndexToHeapIndex(m_MemoryTypeIndex), allocRequest.size); - if (VMA_DEBUG_INITIALIZE_ALLOCATIONS) - { - m_hAllocator->FillAllocation(*pAllocation, VMA_ALLOCATION_FILL_PATTERN_CREATED); - } + +#if VMA_DEBUG_INITIALIZE_ALLOCATIONS + m_hAllocator->FillAllocation(*pAllocation, VMA_ALLOCATION_FILL_PATTERN_CREATED); +#endif + if (IsCorruptionDetectionEnabled()) { VkResult res = pBlock->WriteMagicValueAfterAllocation(m_hAllocator, (*pAllocation)->GetOffset(), allocRequest.size); @@ -11958,6 +12284,8 @@ VmaDefragmentationContext_T::VmaDefragmentationContext_T( m_BlockVectorCount = 1; m_PoolBlockVector = &info.pool->m_BlockVector; m_pBlockVectors = &m_PoolBlockVector; + + VmaMutexLockWrite lock(m_PoolBlockVector->m_Mutex, hAllocator->m_UseMutex); m_PoolBlockVector->SetIncrementalSort(false); m_PoolBlockVector->SortByFreeSize(); } @@ -11971,6 +12299,7 @@ VmaDefragmentationContext_T::VmaDefragmentationContext_T( VmaBlockVector* vector = m_pBlockVectors[i]; if (vector != VMA_NULL) { + VmaMutexLockWrite lock(vector->m_Mutex, hAllocator->m_UseMutex); vector->SetIncrementalSort(false); vector->SortByFreeSize(); } @@ -12001,6 +12330,7 @@ VmaDefragmentationContext_T::~VmaDefragmentationContext_T() { if (m_PoolBlockVector != VMA_NULL) { + VmaMutexLockWrite lock(m_PoolBlockVector->m_Mutex, m_PoolBlockVector->m_hAllocator->m_UseMutex); m_PoolBlockVector->SetIncrementalSort(true); } else @@ -12009,7 +12339,10 @@ VmaDefragmentationContext_T::~VmaDefragmentationContext_T() { VmaBlockVector* vector = m_pBlockVectors[i]; if (vector != VMA_NULL) + { + VmaMutexLockWrite lock(vector->m_Mutex, vector->m_hAllocator->m_UseMutex); vector->SetIncrementalSort(true); + } } } @@ -12107,7 +12440,11 @@ VkResult VmaDefragmentationContext_T::DefragmentPassEnd(VmaDefragmentationPassMo { case VMA_DEFRAGMENTATION_MOVE_OPERATION_COPY: { - uint8_t mapCount = move.srcAllocation->SwapBlockAllocation(vector->m_hAllocator, move.dstTmpAllocation); + uint8_t mapCount = 0; + { + VmaMutexLockWrite swapLock(vector->GetMutex(), vector->GetAllocator()->m_UseMutex); + mapCount = move.srcAllocation->SwapBlockAllocation(vector->m_hAllocator, move.dstTmpAllocation); + } if (mapCount > 0) { allocator = vector->m_hAllocator; @@ -13024,7 +13361,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) : } #endif } -#if !(VMA_MEMORY_BUDGET) +#if !(VMA_MEMORY_BUDGET) || !(VMA_GET_PHYSICAL_DEVICE_PROPERTIES2) if((pCreateInfo->flags & VMA_ALLOCATOR_CREATE_EXT_MEMORY_BUDGET_BIT) != 0) { VMA_ASSERT(0 && "VMA_ALLOCATOR_CREATE_EXT_MEMORY_BUDGET_BIT set but required extension is disabled by preprocessor macros."); @@ -13100,8 +13437,35 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) : ImportVulkanFunctions(pCreateInfo->pVulkanFunctions); - (*m_VulkanFunctions.vkGetPhysicalDeviceProperties)(m_PhysicalDevice, &m_PhysicalDeviceProperties); - (*m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties)(m_PhysicalDevice, &m_MemProps); + // Call vkGetPhysicalDeviceProperties[2][KHR]. +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 + if(m_VulkanFunctions.vkGetPhysicalDeviceProperties2KHR) + { + VkPhysicalDeviceProperties2KHR props2 = { + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR }; + (*m_VulkanFunctions.vkGetPhysicalDeviceProperties2KHR)(m_PhysicalDevice, &props2); + memcpy(&m_PhysicalDeviceProperties, &props2.properties, sizeof(m_PhysicalDeviceProperties)); + } + else +#endif + { + (*m_VulkanFunctions.vkGetPhysicalDeviceProperties)(m_PhysicalDevice, &m_PhysicalDeviceProperties); + } + + // Call vkGetPhysicalDeviceMemoryProperties[2][KHR]. +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 + if(m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR) + { + VkPhysicalDeviceMemoryProperties2KHR memProps2 = { + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR }; + (*m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR)(m_PhysicalDevice, &memProps2); + memcpy(&m_MemProps, &memProps2.memoryProperties, sizeof(m_MemProps)); + } + else +#endif + { + (*m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties)(m_PhysicalDevice, &m_MemProps); + } VMA_ASSERT(VmaIsPow2(VMA_MIN_ALIGNMENT)); VMA_ASSERT(VmaIsPow2(VMA_DEBUG_MIN_BUFFER_IMAGE_GRANULARITY)); @@ -13244,6 +13608,7 @@ void VmaAllocator_T::ImportVulkanFunctions_Static() if(m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0)) { m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR = (PFN_vkGetPhysicalDeviceMemoryProperties2)vkGetPhysicalDeviceMemoryProperties2; + m_VulkanFunctions.vkGetPhysicalDeviceProperties2KHR = (PFN_vkGetPhysicalDeviceProperties2)vkGetPhysicalDeviceProperties2; } #endif @@ -13295,8 +13660,9 @@ void VmaAllocator_T::ImportVulkanFunctions_Custom(const VmaVulkanFunctions* pVul VMA_COPY_IF_NOT_NULL(vkBindImageMemory2KHR); #endif -#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000 +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 VMA_COPY_IF_NOT_NULL(vkGetPhysicalDeviceMemoryProperties2KHR); + VMA_COPY_IF_NOT_NULL(vkGetPhysicalDeviceProperties2KHR); #endif #if VMA_KHR_MAINTENANCE4 || VMA_VULKAN_VERSION >= 1003000 @@ -13355,18 +13721,22 @@ void VmaAllocator_T::ImportVulkanFunctions_Dynamic() } #endif -#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000 +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 if(m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0)) { VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2"); + VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR, "vkGetPhysicalDeviceProperties2"); // Try to fetch the pointer from the other name, based on suspected driver bug - see issue #410. VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2KHR"); + VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR, "vkGetPhysicalDeviceProperties2KHR"); } else if(m_UseExtMemoryBudget) { VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2KHR"); + VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR, "vkGetPhysicalDeviceProperties2KHR"); // Try to fetch the pointer from the other name, based on suspected driver bug - see issue #410. VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2"); + VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR, "vkGetPhysicalDeviceProperties2"); } #endif @@ -13386,17 +13756,6 @@ void VmaAllocator_T::ImportVulkanFunctions_Dynamic() } #endif // #if VMA_BIND_MEMORY2 -#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000 - if(m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0)) - { - VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2"); - } - else if(m_UseExtMemoryBudget) - { - VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2KHR"); - } -#endif // #if VMA_MEMORY_BUDGET - #if VMA_VULKAN_VERSION >= 1003000 if(m_VulkanApiVersion >= VK_MAKE_VERSION(1, 3, 0)) { @@ -13459,12 +13818,14 @@ void VmaAllocator_T::ValidateVulkanFunctions() const } #endif -#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000 +#if VMA_GET_PHYSICAL_DEVICE_PROPERTIES2 if(m_UseExtMemoryBudget || m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0)) { VMA_ASSERT(m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR != VMA_NULL); + VMA_ASSERT(m_VulkanFunctions.vkGetPhysicalDeviceProperties2KHR != VMA_NULL); } #endif + #if VMA_EXTERNAL_MEMORY_WIN32 if (m_UseKhrExternalMemoryWin32) { @@ -13496,6 +13857,7 @@ VkResult VmaAllocator_T::AllocateMemoryOfType( VkBuffer dedicatedBuffer, VkImage dedicatedImage, VmaBufferImageUsage dedicatedBufferImageUsage, + void* pMemoryAllocateNext, const VmaAllocationCreateInfo& createInfo, uint32_t memTypeIndex, VmaSuballocationType suballocType, @@ -13516,6 +13878,14 @@ VkResult VmaAllocator_T::AllocateMemoryOfType( if(res != VK_SUCCESS) return res; + const void* allocateNextPtr = blockVector.GetAllocationNextPtr(); + if(pMemoryAllocateNext != VMA_NULL) + { + VMA_ASSERT(allocateNextPtr == VMA_NULL && + "You shouldn't create a dedicated allocation with a custom pMemoryAllocateNext if the pNext chain is already provided for this pool."); + allocateNextPtr = pMemoryAllocateNext; + } + if((finalCreateInfo.flags & VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT) != 0) { return AllocateDedicatedMemory( @@ -13536,7 +13906,7 @@ VkResult VmaAllocator_T::AllocateMemoryOfType( dedicatedBufferImageUsage, allocationCount, pAllocations, - blockVector.GetAllocationNextPtr()); + allocateNextPtr); } const bool canAllocateDedicated = @@ -13579,7 +13949,7 @@ VkResult VmaAllocator_T::AllocateMemoryOfType( dedicatedBufferImageUsage, allocationCount, pAllocations, - blockVector.GetAllocationNextPtr()); + allocateNextPtr); if(res == VK_SUCCESS) { // Succeeded: AllocateDedicatedMemory function already filled pMemory, nothing more to do here. @@ -13620,7 +13990,7 @@ VkResult VmaAllocator_T::AllocateMemoryOfType( dedicatedBufferImageUsage, allocationCount, pAllocations, - blockVector.GetAllocationNextPtr()); + allocateNextPtr); if(res == VK_SUCCESS) { // Succeeded: AllocateDedicatedMemory function already filled pMemory, nothing more to do here. @@ -13628,6 +13998,7 @@ VkResult VmaAllocator_T::AllocateMemoryOfType( return VK_SUCCESS; } } + // Everything failed: Return error code. VMA_DEBUG_LOG(" vkAllocateMemory FAILED"); return res; @@ -13825,10 +14196,10 @@ VkResult VmaAllocator_T::AllocateDedicatedMemoryPage( else (*pAllocation)->SetUserData(this, pUserData); m_Budget.AddAllocation(MemoryTypeIndexToHeapIndex(memTypeIndex), size); - if(VMA_DEBUG_INITIALIZE_ALLOCATIONS) - { - FillAllocation(*pAllocation, VMA_ALLOCATION_FILL_PATTERN_CREATED); - } + +#if VMA_DEBUG_INITIALIZE_ALLOCATIONS + FillAllocation(*pAllocation, VMA_ALLOCATION_FILL_PATTERN_CREATED); +#endif return VK_SUCCESS; } @@ -14027,11 +14398,12 @@ VkResult VmaAllocator_T::CalcAllocationParams( return VK_ERROR_FEATURE_NOT_PRESENT; } - if(VMA_DEBUG_ALWAYS_DEDICATED_MEMORY && - (inoutCreateInfo.flags & VMA_ALLOCATION_CREATE_NEVER_ALLOCATE_BIT) != 0) +#if VMA_DEBUG_ALWAYS_DEDICATED_MEMORY + if((inoutCreateInfo.flags & VMA_ALLOCATION_CREATE_NEVER_ALLOCATE_BIT) != 0) { inoutCreateInfo.flags |= VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT; } +#endif // Non-auto USAGE values imply HOST_ACCESS flags. // And so does VMA_MEMORY_USAGE_UNKNOWN because it is used with custom pools. @@ -14050,13 +14422,176 @@ VkResult VmaAllocator_T::CalcAllocationParams( return VK_SUCCESS; } +VkResult VmaAllocator_T::CreateBuffer( + const VkBufferCreateInfo* pBufferCreateInfo, + const VmaAllocationCreateInfo* pAllocationCreateInfo, + void* pMemoryAllocateNext, + VkBuffer* pBuffer, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo) +{ + *pBuffer = VK_NULL_HANDLE; + *pAllocation = VK_NULL_HANDLE; + + if (pBufferCreateInfo->size == 0) + { + return VK_ERROR_INITIALIZATION_FAILED; + } + if ((pBufferCreateInfo->usage & VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_COPY) != 0 && + !m_UseKhrBufferDeviceAddress) + { + VMA_ASSERT(0 && "Creating a buffer with VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT is not valid if VMA_ALLOCATOR_CREATE_BUFFER_DEVICE_ADDRESS_BIT was not used."); + return VK_ERROR_INITIALIZATION_FAILED; + } + + // 1. Create VkBuffer. + VkResult res = (*m_VulkanFunctions.vkCreateBuffer)(m_hDevice, pBufferCreateInfo, + GetAllocationCallbacks(), pBuffer); + if (res >= 0) + { + // 2. vkGetBufferMemoryRequirements. + VkMemoryRequirements vkMemReq = {}; + bool requiresDedicatedAllocation = false; + bool prefersDedicatedAllocation = false; + GetBufferMemoryRequirements(*pBuffer, vkMemReq, + requiresDedicatedAllocation, prefersDedicatedAllocation); + + // 3. Allocate memory using allocator. + res = AllocateMemory( + vkMemReq, + requiresDedicatedAllocation, + prefersDedicatedAllocation, + *pBuffer, // dedicatedBuffer + VK_NULL_HANDLE, // dedicatedImage + VmaBufferImageUsage(*pBufferCreateInfo, m_UseKhrMaintenance5), // dedicatedBufferImageUsage + pMemoryAllocateNext, + *pAllocationCreateInfo, + VMA_SUBALLOCATION_TYPE_BUFFER, + 1, // allocationCount + pAllocation); + if (res >= 0) + { + // 3. Bind buffer with memory. + if ((pAllocationCreateInfo->flags & VMA_ALLOCATION_CREATE_DONT_BIND_BIT) == 0) + { + res = BindBufferMemory(*pAllocation, 0, *pBuffer, VMA_NULL); + } + if (res >= 0) + { + // All steps succeeded. +#if VMA_STATS_STRING_ENABLED + (*pAllocation)->InitBufferUsage(*pBufferCreateInfo, m_UseKhrMaintenance5); +#endif + if (pAllocationInfo != VMA_NULL) + { + GetAllocationInfo(*pAllocation, pAllocationInfo); + } + + return VK_SUCCESS; + } + FreeMemory(1, pAllocation); + *pAllocation = VK_NULL_HANDLE; + (*m_VulkanFunctions.vkDestroyBuffer)(m_hDevice, *pBuffer, GetAllocationCallbacks()); + *pBuffer = VK_NULL_HANDLE; + return res; + } + (*m_VulkanFunctions.vkDestroyBuffer)(m_hDevice, *pBuffer, GetAllocationCallbacks()); + *pBuffer = VK_NULL_HANDLE; + return res; + } + return res; +} + +VkResult VmaAllocator_T::CreateImage( + const VkImageCreateInfo* pImageCreateInfo, + const VmaAllocationCreateInfo* pAllocationCreateInfo, + void* pMemoryAllocateNext, + VkImage* pImage, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo) +{ + *pImage = VK_NULL_HANDLE; + *pAllocation = VK_NULL_HANDLE; + + if (pImageCreateInfo->extent.width == 0 || + pImageCreateInfo->extent.height == 0 || + pImageCreateInfo->extent.depth == 0 || + pImageCreateInfo->mipLevels == 0 || + pImageCreateInfo->arrayLayers == 0) + { + return VK_ERROR_INITIALIZATION_FAILED; + } + + // 1. Create VkImage. + VkResult res = (*m_VulkanFunctions.vkCreateImage)(m_hDevice, pImageCreateInfo, + GetAllocationCallbacks(), pImage); + if (res == VK_SUCCESS) + { + VmaSuballocationType suballocType = pImageCreateInfo->tiling == VK_IMAGE_TILING_OPTIMAL ? + VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL : + VMA_SUBALLOCATION_TYPE_IMAGE_LINEAR; + + // 2. Allocate memory using allocator. + VkMemoryRequirements vkMemReq = {}; + bool requiresDedicatedAllocation = false; + bool prefersDedicatedAllocation = false; + GetImageMemoryRequirements(*pImage, vkMemReq, + requiresDedicatedAllocation, prefersDedicatedAllocation); + + res = AllocateMemory( + vkMemReq, + requiresDedicatedAllocation, + prefersDedicatedAllocation, + VK_NULL_HANDLE, // dedicatedBuffer + *pImage, // dedicatedImage + VmaBufferImageUsage(*pImageCreateInfo), // dedicatedBufferImageUsage + pMemoryAllocateNext, + *pAllocationCreateInfo, + suballocType, + 1, // allocationCount + pAllocation); + if (res == VK_SUCCESS) + { + // 3. Bind image with memory. + if ((pAllocationCreateInfo->flags & VMA_ALLOCATION_CREATE_DONT_BIND_BIT) == 0) + { + res = BindImageMemory(*pAllocation, 0, *pImage, VMA_NULL); + } + if (res == VK_SUCCESS) + { + // All steps succeeded. +#if VMA_STATS_STRING_ENABLED + (*pAllocation)->InitImageUsage(*pImageCreateInfo); +#endif + if (pAllocationInfo != VMA_NULL) + { + GetAllocationInfo(*pAllocation, pAllocationInfo); + } + + return VK_SUCCESS; + } + FreeMemory(1, pAllocation); + *pAllocation = VK_NULL_HANDLE; + (*m_VulkanFunctions.vkDestroyImage)(m_hDevice, *pImage, GetAllocationCallbacks()); + *pImage = VK_NULL_HANDLE; + return res; + } + (*m_VulkanFunctions.vkDestroyImage)(m_hDevice, *pImage, GetAllocationCallbacks()); + *pImage = VK_NULL_HANDLE; + return res; + } + return res; +} + VkResult VmaAllocator_T::AllocateMemory( - const VkMemoryRequirements& vkMemReq, + VkMemoryRequirements vkMemReq, bool requiresDedicatedAllocation, bool prefersDedicatedAllocation, VkBuffer dedicatedBuffer, VkImage dedicatedImage, VmaBufferImageUsage dedicatedBufferImageUsage, + // pNext chain for VkMemoryAllocateInfo. When used, must specify requiresDedicatedAllocation = true. + void* pMemoryAllocateNext, const VmaAllocationCreateInfo& createInfo, VmaSuballocationType suballocType, size_t allocationCount, @@ -14064,8 +14599,15 @@ VkResult VmaAllocator_T::AllocateMemory( { memset(pAllocations, 0, sizeof(VmaAllocation) * allocationCount); + vkMemReq.alignment = VMA_MAX(vkMemReq.alignment, createInfo.minAlignment); VMA_ASSERT(VmaIsPow2(vkMemReq.alignment)); + // If using custom pNext chain for VkMemoryAllocateInfo, must require dedicated allocations. + if(pMemoryAllocateNext != VMA_NULL) + { + requiresDedicatedAllocation = true; + } + if(vkMemReq.size == 0) { return VK_ERROR_INITIALIZATION_FAILED; @@ -14087,6 +14629,7 @@ VkResult VmaAllocator_T::AllocateMemory( dedicatedBuffer, dedicatedImage, dedicatedBufferImageUsage, + pMemoryAllocateNext, createInfoFinal, blockVector.GetMemoryTypeIndex(), suballocType, @@ -14116,6 +14659,7 @@ VkResult VmaAllocator_T::AllocateMemory( dedicatedBuffer, dedicatedImage, dedicatedBufferImageUsage, + pMemoryAllocateNext, createInfoFinal, memTypeIndex, suballocType, @@ -14150,10 +14694,9 @@ void VmaAllocator_T::FreeMemory( if(allocation != VK_NULL_HANDLE) { - if(VMA_DEBUG_INITIALIZE_ALLOCATIONS) - { - FillAllocation(allocation, VMA_ALLOCATION_FILL_PATTERN_DESTROYED); - } +#if VMA_DEBUG_INITIALIZE_ALLOCATIONS + FillAllocation(allocation, VMA_ALLOCATION_FILL_PATTERN_DESTROYED); +#endif switch(allocation->GetType()) { @@ -14997,8 +15540,8 @@ void VmaAllocator_T::UpdateVulkanBudget() void VmaAllocator_T::FillAllocation(VmaAllocation hAllocation, uint8_t pattern) { - if(VMA_DEBUG_INITIALIZE_ALLOCATIONS && - hAllocation->IsMappingAllowed() && +#if VMA_DEBUG_INITIALIZE_ALLOCATIONS + if(hAllocation->IsMappingAllowed() && (m_MemProps.memoryTypes[hAllocation->GetMemoryTypeIndex()].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) != 0) { void* pData = VMA_NULL; @@ -15014,6 +15557,7 @@ void VmaAllocator_T::FillAllocation(VmaAllocation hAllocation, uint8_t pattern) VMA_ASSERT(0 && "VMA_DEBUG_INITIALIZE_ALLOCATIONS is enabled, but couldn't map memory to fill allocation."); } } +#endif // #if VMA_DEBUG_INITIALIZE_ALLOCATIONS } uint32_t VmaAllocator_T::GetGpuDefragmentationMemoryTypeBits() @@ -15162,6 +15706,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaImportVulkanFunctionsFromVolk( if (pAllocatorCreateInfo->vulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0)) { COPY_GLOBAL_TO_VMA_FUNC(vkGetPhysicalDeviceMemoryProperties2, vkGetPhysicalDeviceMemoryProperties2KHR) + COPY_GLOBAL_TO_VMA_FUNC(vkGetPhysicalDeviceProperties2, vkGetPhysicalDeviceProperties2KHR) COPY_DEVICE_TO_VMA_FUNC(vkGetBufferMemoryRequirements2, vkGetBufferMemoryRequirements2KHR) COPY_DEVICE_TO_VMA_FUNC(vkGetImageMemoryRequirements2, vkGetImageMemoryRequirements2KHR) COPY_DEVICE_TO_VMA_FUNC(vkBindBufferMemory2, vkBindBufferMemory2KHR) @@ -15200,6 +15745,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaImportVulkanFunctionsFromVolk( if ((pAllocatorCreateInfo->flags & VMA_ALLOCATOR_CREATE_EXT_MEMORY_BUDGET_BIT) != 0) { COPY_GLOBAL_TO_VMA_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, vkGetPhysicalDeviceMemoryProperties2KHR) + COPY_GLOBAL_TO_VMA_FUNC(vkGetPhysicalDeviceProperties2KHR, vkGetPhysicalDeviceProperties2KHR) } #endif #if VMA_EXTERNAL_MEMORY_WIN32 @@ -15543,7 +16089,8 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForBufferInfo( VkResult res = VK_SUCCESS; #if VMA_KHR_MAINTENANCE4 || VMA_VULKAN_VERSION >= 1003000 - if(funcs->vkGetDeviceBufferMemoryRequirements) + if (funcs->vkGetDeviceBufferMemoryRequirements && + (allocator->m_UseKhrMaintenance4 || allocator->m_VulkanApiVersion >= VK_MAKE_VERSION(1, 3, 0))) { // Can query straight from VkBufferCreateInfo :) VkDeviceBufferMemoryRequirementsKHR devBufMemReq = {VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR}; @@ -15552,29 +16099,27 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForBufferInfo( VkMemoryRequirements2 memReq = {VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2}; (*funcs->vkGetDeviceBufferMemoryRequirements)(hDev, &devBufMemReq, &memReq); - res = allocator->FindMemoryTypeIndex( + return allocator->FindMemoryTypeIndex( memReq.memoryRequirements.memoryTypeBits, pAllocationCreateInfo, VmaBufferImageUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5), pMemoryTypeIndex); } - else #endif // VMA_KHR_MAINTENANCE4 || VMA_VULKAN_VERSION >= 1003000 + + // Must create a dummy buffer to query :( + VkBuffer hBuffer = VK_NULL_HANDLE; + res = funcs->vkCreateBuffer( + hDev, pBufferCreateInfo, allocator->GetAllocationCallbacks(), &hBuffer); + if(res == VK_SUCCESS) { - // Must create a dummy buffer to query :( - VkBuffer hBuffer = VK_NULL_HANDLE; - res = funcs->vkCreateBuffer( - hDev, pBufferCreateInfo, allocator->GetAllocationCallbacks(), &hBuffer); - if(res == VK_SUCCESS) - { - VkMemoryRequirements memReq = {}; - funcs->vkGetBufferMemoryRequirements(hDev, hBuffer, &memReq); + VkMemoryRequirements memReq = {}; + funcs->vkGetBufferMemoryRequirements(hDev, hBuffer, &memReq); - res = allocator->FindMemoryTypeIndex( - memReq.memoryTypeBits, pAllocationCreateInfo, - VmaBufferImageUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5), pMemoryTypeIndex); + res = allocator->FindMemoryTypeIndex( + memReq.memoryTypeBits, pAllocationCreateInfo, + VmaBufferImageUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5), pMemoryTypeIndex); - funcs->vkDestroyBuffer( - hDev, hBuffer, allocator->GetAllocationCallbacks()); - } + funcs->vkDestroyBuffer( + hDev, hBuffer, allocator->GetAllocationCallbacks()); } return res; } @@ -15595,7 +16140,8 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForImageInfo( VkResult res = VK_SUCCESS; #if VMA_KHR_MAINTENANCE4 || VMA_VULKAN_VERSION >= 1003000 - if(funcs->vkGetDeviceImageMemoryRequirements) + if(funcs->vkGetDeviceImageMemoryRequirements && + (allocator->m_UseKhrMaintenance4 || allocator->m_VulkanApiVersion >= VK_MAKE_VERSION(1, 3, 0))) { // Can query straight from VkImageCreateInfo :) VkDeviceImageMemoryRequirementsKHR devImgMemReq = {VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR}; @@ -15606,29 +16152,27 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForImageInfo( VkMemoryRequirements2 memReq = {VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2}; (*funcs->vkGetDeviceImageMemoryRequirements)(hDev, &devImgMemReq, &memReq); - res = allocator->FindMemoryTypeIndex( + return allocator->FindMemoryTypeIndex( memReq.memoryRequirements.memoryTypeBits, pAllocationCreateInfo, VmaBufferImageUsage(*pImageCreateInfo), pMemoryTypeIndex); } - else #endif // VMA_KHR_MAINTENANCE4 || VMA_VULKAN_VERSION >= 1003000 + + // Must create a dummy image to query :( + VkImage hImage = VK_NULL_HANDLE; + res = funcs->vkCreateImage( + hDev, pImageCreateInfo, allocator->GetAllocationCallbacks(), &hImage); + if(res == VK_SUCCESS) { - // Must create a dummy image to query :( - VkImage hImage = VK_NULL_HANDLE; - res = funcs->vkCreateImage( - hDev, pImageCreateInfo, allocator->GetAllocationCallbacks(), &hImage); - if(res == VK_SUCCESS) - { - VkMemoryRequirements memReq = {}; - funcs->vkGetImageMemoryRequirements(hDev, hImage, &memReq); + VkMemoryRequirements memReq = {}; + funcs->vkGetImageMemoryRequirements(hDev, hImage, &memReq); - res = allocator->FindMemoryTypeIndex( - memReq.memoryTypeBits, pAllocationCreateInfo, - VmaBufferImageUsage(*pImageCreateInfo), pMemoryTypeIndex); + res = allocator->FindMemoryTypeIndex( + memReq.memoryTypeBits, pAllocationCreateInfo, + VmaBufferImageUsage(*pImageCreateInfo), pMemoryTypeIndex); - funcs->vkDestroyImage( - hDev, hImage, allocator->GetAllocationCallbacks()); - } + funcs->vkDestroyImage( + hDev, hImage, allocator->GetAllocationCallbacks()); } return res; } @@ -15748,6 +16292,42 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemory( VK_NULL_HANDLE, // dedicatedBuffer VK_NULL_HANDLE, // dedicatedImage VmaBufferImageUsage::UNKNOWN, // dedicatedBufferImageUsage + VMA_NULL, // pMemoryAllocateNext + *pCreateInfo, + VMA_SUBALLOCATION_TYPE_UNKNOWN, + 1, // allocationCount + pAllocation); + + if(pAllocationInfo != VMA_NULL && result == VK_SUCCESS) + { + allocator->GetAllocationInfo(*pAllocation, pAllocationInfo); + } + + return result; +} + +VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateDedicatedMemory( + VmaAllocator allocator, + const VkMemoryRequirements* pVkMemoryRequirements, + const VmaAllocationCreateInfo* pCreateInfo, + void* pMemoryAllocateNext, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo) +{ + VMA_ASSERT(allocator && pVkMemoryRequirements && pCreateInfo && pAllocation); + + VMA_DEBUG_LOG("vmaAllocateDedicatedMemory"); + + VMA_DEBUG_GLOBAL_MUTEX_LOCK + + VkResult result = allocator->AllocateMemory( + *pVkMemoryRequirements, + true, // requiresDedicatedAllocation + false, // prefersDedicatedAllocation + VK_NULL_HANDLE, // dedicatedBuffer + VK_NULL_HANDLE, // dedicatedImage + VmaBufferImageUsage::UNKNOWN, // dedicatedBufferImageUsage + pMemoryAllocateNext, *pCreateInfo, VMA_SUBALLOCATION_TYPE_UNKNOWN, 1, // allocationCount @@ -15787,6 +16367,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemoryPages( VK_NULL_HANDLE, // dedicatedBuffer VK_NULL_HANDLE, // dedicatedImage VmaBufferImageUsage::UNKNOWN, // dedicatedBufferImageUsage + VMA_NULL, // pMemoryAllocateNext *pCreateInfo, VMA_SUBALLOCATION_TYPE_UNKNOWN, allocationCount, @@ -15830,6 +16411,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemoryForBuffer( buffer, // dedicatedBuffer VK_NULL_HANDLE, // dedicatedImage VmaBufferImageUsage::UNKNOWN, // dedicatedBufferImageUsage + VMA_NULL, // pMemoryAllocateNext *pCreateInfo, VMA_SUBALLOCATION_TYPE_BUFFER, 1, // allocationCount @@ -15869,6 +16451,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemoryForImage( VK_NULL_HANDLE, // dedicatedBuffer image, // dedicatedImage VmaBufferImageUsage::UNKNOWN, // dedicatedBufferImageUsage + VMA_NULL, // pMemoryAllocateNext *pCreateInfo, VMA_SUBALLOCATION_TYPE_IMAGE_UNKNOWN, 1, // allocationCount @@ -16264,86 +16847,13 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBuffer( VmaAllocationInfo* pAllocationInfo) { VMA_ASSERT(allocator && pBufferCreateInfo && pAllocationCreateInfo && pBuffer && pAllocation); - - if(pBufferCreateInfo->size == 0) - { - return VK_ERROR_INITIALIZATION_FAILED; - } - if((pBufferCreateInfo->usage & VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_COPY) != 0 && - !allocator->m_UseKhrBufferDeviceAddress) - { - VMA_ASSERT(0 && "Creating a buffer with VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT is not valid if VMA_ALLOCATOR_CREATE_BUFFER_DEVICE_ADDRESS_BIT was not used."); - return VK_ERROR_INITIALIZATION_FAILED; - } - VMA_DEBUG_LOG("vmaCreateBuffer"); + VMA_DEBUG_GLOBAL_MUTEX_LOCK; - VMA_DEBUG_GLOBAL_MUTEX_LOCK + return allocator->CreateBuffer(pBufferCreateInfo, pAllocationCreateInfo, + VMA_NULL, // pMemoryAllocateNext + pBuffer, pAllocation, pAllocationInfo); - *pBuffer = VK_NULL_HANDLE; - *pAllocation = VK_NULL_HANDLE; - - // 1. Create VkBuffer. - VkResult res = (*allocator->GetVulkanFunctions().vkCreateBuffer)( - allocator->m_hDevice, - pBufferCreateInfo, - allocator->GetAllocationCallbacks(), - pBuffer); - if(res >= 0) - { - // 2. vkGetBufferMemoryRequirements. - VkMemoryRequirements vkMemReq = {}; - bool requiresDedicatedAllocation = false; - bool prefersDedicatedAllocation = false; - allocator->GetBufferMemoryRequirements(*pBuffer, vkMemReq, - requiresDedicatedAllocation, prefersDedicatedAllocation); - - // 3. Allocate memory using allocator. - res = allocator->AllocateMemory( - vkMemReq, - requiresDedicatedAllocation, - prefersDedicatedAllocation, - *pBuffer, // dedicatedBuffer - VK_NULL_HANDLE, // dedicatedImage - VmaBufferImageUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5), // dedicatedBufferImageUsage - *pAllocationCreateInfo, - VMA_SUBALLOCATION_TYPE_BUFFER, - 1, // allocationCount - pAllocation); - - if(res >= 0) - { - // 3. Bind buffer with memory. - if((pAllocationCreateInfo->flags & VMA_ALLOCATION_CREATE_DONT_BIND_BIT) == 0) - { - res = allocator->BindBufferMemory(*pAllocation, 0, *pBuffer, VMA_NULL); - } - if(res >= 0) - { - // All steps succeeded. - #if VMA_STATS_STRING_ENABLED - (*pAllocation)->InitBufferUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5); - #endif - if(pAllocationInfo != VMA_NULL) - { - allocator->GetAllocationInfo(*pAllocation, pAllocationInfo); - } - - return VK_SUCCESS; - } - allocator->FreeMemory( - 1, // allocationCount - pAllocation); - *pAllocation = VK_NULL_HANDLE; - (*allocator->GetVulkanFunctions().vkDestroyBuffer)(allocator->m_hDevice, *pBuffer, allocator->GetAllocationCallbacks()); - *pBuffer = VK_NULL_HANDLE; - return res; - } - (*allocator->GetVulkanFunctions().vkDestroyBuffer)(allocator->m_hDevice, *pBuffer, allocator->GetAllocationCallbacks()); - *pBuffer = VK_NULL_HANDLE; - return res; - } - return res; } VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBufferWithAlignment( @@ -16356,89 +16866,36 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBufferWithAlignment( VmaAllocationInfo* pAllocationInfo) { VMA_ASSERT(allocator && pBufferCreateInfo && pAllocationCreateInfo && VmaIsPow2(minAlignment) && pBuffer && pAllocation); - - if(pBufferCreateInfo->size == 0) - { - return VK_ERROR_INITIALIZATION_FAILED; - } - if((pBufferCreateInfo->usage & VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_COPY) != 0 && - !allocator->m_UseKhrBufferDeviceAddress) - { - VMA_ASSERT(0 && "Creating a buffer with VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT is not valid if VMA_ALLOCATOR_CREATE_BUFFER_DEVICE_ADDRESS_BIT was not used."); - return VK_ERROR_INITIALIZATION_FAILED; - } - VMA_DEBUG_LOG("vmaCreateBufferWithAlignment"); + VMA_DEBUG_GLOBAL_MUTEX_LOCK; - VMA_DEBUG_GLOBAL_MUTEX_LOCK + VmaAllocationCreateInfo allocCreateInfoCopy = *pAllocationCreateInfo; + allocCreateInfoCopy.minAlignment = VMA_MAX(allocCreateInfoCopy.minAlignment, minAlignment); - *pBuffer = VK_NULL_HANDLE; - *pAllocation = VK_NULL_HANDLE; + return allocator->CreateBuffer(pBufferCreateInfo, &allocCreateInfoCopy, + VMA_NULL, // pMemoryAllocateNext + pBuffer, pAllocation, pAllocationInfo); +} - // 1. Create VkBuffer. - VkResult res = (*allocator->GetVulkanFunctions().vkCreateBuffer)( - allocator->m_hDevice, - pBufferCreateInfo, - allocator->GetAllocationCallbacks(), - pBuffer); - if(res >= 0) - { - // 2. vkGetBufferMemoryRequirements. - VkMemoryRequirements vkMemReq = {}; - bool requiresDedicatedAllocation = false; - bool prefersDedicatedAllocation = false; - allocator->GetBufferMemoryRequirements(*pBuffer, vkMemReq, - requiresDedicatedAllocation, prefersDedicatedAllocation); +VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateDedicatedBuffer( + VmaAllocator allocator, + const VkBufferCreateInfo* pBufferCreateInfo, + const VmaAllocationCreateInfo* pAllocationCreateInfo, + void* pMemoryAllocateNext, + VkBuffer* pBuffer, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo) +{ + VMA_ASSERT(allocator && pBufferCreateInfo && pAllocationCreateInfo && pBuffer && pAllocation); + VMA_DEBUG_LOG("vmaCreateDedicatedBuffer"); + VMA_DEBUG_GLOBAL_MUTEX_LOCK; - // 2a. Include minAlignment - vkMemReq.alignment = VMA_MAX(vkMemReq.alignment, minAlignment); + VmaAllocationCreateInfo allocCreateInfoCopy = *pAllocationCreateInfo; + allocCreateInfoCopy.flags |= VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT; - // 3. Allocate memory using allocator. - res = allocator->AllocateMemory( - vkMemReq, - requiresDedicatedAllocation, - prefersDedicatedAllocation, - *pBuffer, // dedicatedBuffer - VK_NULL_HANDLE, // dedicatedImage - VmaBufferImageUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5), // dedicatedBufferImageUsage - *pAllocationCreateInfo, - VMA_SUBALLOCATION_TYPE_BUFFER, - 1, // allocationCount - pAllocation); - - if(res >= 0) - { - // 3. Bind buffer with memory. - if((pAllocationCreateInfo->flags & VMA_ALLOCATION_CREATE_DONT_BIND_BIT) == 0) - { - res = allocator->BindBufferMemory(*pAllocation, 0, *pBuffer, VMA_NULL); - } - if(res >= 0) - { - // All steps succeeded. - #if VMA_STATS_STRING_ENABLED - (*pAllocation)->InitBufferUsage(*pBufferCreateInfo, allocator->m_UseKhrMaintenance5); - #endif - if(pAllocationInfo != VMA_NULL) - { - allocator->GetAllocationInfo(*pAllocation, pAllocationInfo); - } - - return VK_SUCCESS; - } - allocator->FreeMemory( - 1, // allocationCount - pAllocation); - *pAllocation = VK_NULL_HANDLE; - (*allocator->GetVulkanFunctions().vkDestroyBuffer)(allocator->m_hDevice, *pBuffer, allocator->GetAllocationCallbacks()); - *pBuffer = VK_NULL_HANDLE; - return res; - } - (*allocator->GetVulkanFunctions().vkDestroyBuffer)(allocator->m_hDevice, *pBuffer, allocator->GetAllocationCallbacks()); - *pBuffer = VK_NULL_HANDLE; - return res; - } - return res; + return allocator->CreateBuffer(pBufferCreateInfo, &allocCreateInfoCopy, + pMemoryAllocateNext, // pMemoryAllocateNext + pBuffer, pAllocation, pAllocationInfo); } VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateAliasingBuffer( @@ -16534,90 +16991,37 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateImage( VmaAllocationInfo* pAllocationInfo) { VMA_ASSERT(allocator && pImageCreateInfo && pAllocationCreateInfo && pImage && pAllocation); - VMA_ASSERT((pImageCreateInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT_COPY) == 0 && "vmaCreateImage() doesn't support disjoint multi-planar images. Please allocate memory for the planes using vmaAllocateMemory() and bind them using vmaBindImageMemory2()."); - - if(pImageCreateInfo->extent.width == 0 || - pImageCreateInfo->extent.height == 0 || - pImageCreateInfo->extent.depth == 0 || - pImageCreateInfo->mipLevels == 0 || - pImageCreateInfo->arrayLayers == 0) - { - return VK_ERROR_INITIALIZATION_FAILED; - } - VMA_DEBUG_LOG("vmaCreateImage"); + VMA_DEBUG_GLOBAL_MUTEX_LOCK; - VMA_DEBUG_GLOBAL_MUTEX_LOCK + return allocator->CreateImage(pImageCreateInfo, pAllocationCreateInfo, + VMA_NULL, // pMemoryAllocateNext + pImage, pAllocation, pAllocationInfo); +} - *pImage = VK_NULL_HANDLE; - *pAllocation = VK_NULL_HANDLE; +VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateDedicatedImage( + VmaAllocator allocator, + const VkImageCreateInfo* pImageCreateInfo, + const VmaAllocationCreateInfo* pAllocationCreateInfo, + void* pMemoryAllocateNext, + VkImage* pImage, + VmaAllocation* pAllocation, + VmaAllocationInfo* pAllocationInfo) +{ + VMA_ASSERT(allocator && pImageCreateInfo && pAllocationCreateInfo && pImage && pAllocation); + VMA_ASSERT((pImageCreateInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT_COPY) == 0 && + "vmaCreateDedicatedImage() doesn't support disjoint multi-planar images. Please allocate memory for the planes using vmaAllocateMemory() and bind them using vmaBindImageMemory2()."); + VMA_DEBUG_LOG("vmaCreateDedicatedImage"); + VMA_DEBUG_GLOBAL_MUTEX_LOCK; - // 1. Create VkImage. - VkResult res = (*allocator->GetVulkanFunctions().vkCreateImage)( - allocator->m_hDevice, - pImageCreateInfo, - allocator->GetAllocationCallbacks(), - pImage); - if(res == VK_SUCCESS) - { - VmaSuballocationType suballocType = pImageCreateInfo->tiling == VK_IMAGE_TILING_OPTIMAL ? - VMA_SUBALLOCATION_TYPE_IMAGE_OPTIMAL : - VMA_SUBALLOCATION_TYPE_IMAGE_LINEAR; + VmaAllocationCreateInfo allocCreateInfoCopy = *pAllocationCreateInfo; + allocCreateInfoCopy.flags |= VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT; - // 2. Allocate memory using allocator. - VkMemoryRequirements vkMemReq = {}; - bool requiresDedicatedAllocation = false; - bool prefersDedicatedAllocation = false; - allocator->GetImageMemoryRequirements(*pImage, vkMemReq, - requiresDedicatedAllocation, prefersDedicatedAllocation); - - res = allocator->AllocateMemory( - vkMemReq, - requiresDedicatedAllocation, - prefersDedicatedAllocation, - VK_NULL_HANDLE, // dedicatedBuffer - *pImage, // dedicatedImage - VmaBufferImageUsage(*pImageCreateInfo), // dedicatedBufferImageUsage - *pAllocationCreateInfo, - suballocType, - 1, // allocationCount - pAllocation); - - if(res == VK_SUCCESS) - { - // 3. Bind image with memory. - if((pAllocationCreateInfo->flags & VMA_ALLOCATION_CREATE_DONT_BIND_BIT) == 0) - { - res = allocator->BindImageMemory(*pAllocation, 0, *pImage, VMA_NULL); - } - if(res == VK_SUCCESS) - { - // All steps succeeded. - #if VMA_STATS_STRING_ENABLED - (*pAllocation)->InitImageUsage(*pImageCreateInfo); - #endif - if(pAllocationInfo != VMA_NULL) - { - allocator->GetAllocationInfo(*pAllocation, pAllocationInfo); - } - - return VK_SUCCESS; - } - allocator->FreeMemory( - 1, // allocationCount - pAllocation); - *pAllocation = VK_NULL_HANDLE; - (*allocator->GetVulkanFunctions().vkDestroyImage)(allocator->m_hDevice, *pImage, allocator->GetAllocationCallbacks()); - *pImage = VK_NULL_HANDLE; - return res; - } - (*allocator->GetVulkanFunctions().vkDestroyImage)(allocator->m_hDevice, *pImage, allocator->GetAllocationCallbacks()); - *pImage = VK_NULL_HANDLE; - return res; - } - return res; + return allocator->CreateImage(pImageCreateInfo, &allocCreateInfoCopy, + pMemoryAllocateNext, // pMemoryAllocateNext + pImage, pAllocation, pAllocationInfo); } VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateAliasingImage( @@ -16837,7 +17241,20 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaGetMemoryWin32Handle(VmaAllocator VMA_NOT { VMA_ASSERT(allocator && allocation && pHandle); VMA_DEBUG_GLOBAL_MUTEX_LOCK; - return allocation->GetWin32Handle(allocator, hTargetProcess, pHandle); + return allocation->GetWin32Handle(allocator, VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT, hTargetProcess, pHandle); +} +VMA_CALL_PRE VkResult VMA_CALL_POST vmaGetMemoryWin32Handle2(VmaAllocator VMA_NOT_NULL allocator, + VmaAllocation VMA_NOT_NULL allocation, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* VMA_NOT_NULL pHandle) +{ + VMA_ASSERT(allocator && allocation && pHandle); + VMA_ASSERT(handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR || + handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR || + handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT_KHR || + handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT_KHR || + handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT_KHR || + handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT_KHR); + VMA_DEBUG_GLOBAL_MUTEX_LOCK; + return allocation->GetWin32Handle(allocator, handleType, hTargetProcess, pHandle); } #endif // VMA_EXTERNAL_MEMORY_WIN32 #endif // VMA_STATS_STRING_ENABLED @@ -16845,7 +17262,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaGetMemoryWin32Handle(VmaAllocator VMA_NOT #endif // VMA_IMPLEMENTATION /** -\page faq Frequenty asked questions +\page faq Frequently asked questions What is VMA? @@ -17006,7 +17423,6 @@ Among many extensions available for Vulkan, only a few interact with memory mana VMA can automatically take advantage of them. Some of them are: VK_EXT_memory_budget, VK_EXT_memory_priority, VK_KHR_external_memory_win32, and VK_KHR_maintenance* extensions that are later promoted to the new versions of the core Vulkan API. - To use them, it is your responsibility to validate if they are available on the current system and if so, enable them while creating the Vulkan device object. You also need to pass appropriate #VmaAllocatorCreateFlagBits to inform VMA that they are enabled. @@ -17057,8 +17473,8 @@ You can access it in multiple ways: Is it a mature project? -Yes! The library is in development since June 2017, has over 1000 commits, over 400 issue tickets -and pull requests (most of them resolved), and over 70 contributors. +Yes! The library is in development since June 2017, has over 1000 commits, over 500 issue tickets +and pull requests (most of them resolved), and over 80 contributors. It is distributed together with Vulkan SDK. It is used by many software projects, including some large and popular ones like Qt or Blender, as well as some AAA games. @@ -18008,7 +18424,7 @@ Many of the common concerns can be addressed in a different way than using custo - If you want to select specific memory type for your allocation, you can set VmaAllocationCreateInfo::memoryTypeBits to `(1U << myMemoryTypeIndex)` instead. - If you need to create a buffer with certain minimum alignment, you can still do it - using default pools with dedicated function vmaCreateBufferWithAlignment(). + using default pools by specifying VmaAllocationCreateInfo::minAlignment. \section linear_algorithm Linear allocation algorithm @@ -18636,31 +19052,163 @@ individual names to allocations using vmaSetAllocationName(), can greatly aid in \page other_api_interop Interop with other graphics APIs -VMA provides some features that help with interoperability with other graphics APIs, e.g. OpenGL. +VMA provides some features that help with interoperability with other graphics APIs, e.g. OpenGL, Direct3D 11, Direct3D 12. -\section opengl_interop_exporting_memory Exporting memory +\section other_api_interop_exporting_memory Exporting memory -If you want to attach `VkExportMemoryAllocateInfoKHR` or other structure to `pNext` chain of memory allocations made by the library: +On Windows, the VK_KHR_external_memory_win32 device extension allows exporting a Win32 `HANDLE` +of a `VkDeviceMemory` block, to be able to reference the memory on other Vulkan logical devices or instances, +in multiple processes, and/or in multiple APIs. +VMA offers support for it. -You can create \ref custom_memory_pools for such allocations. -Define and fill in your `VkExportMemoryAllocateInfoKHR` structure and attach it to VmaPoolCreateInfo::pMemoryAllocateNext -while creating the custom pool. -Please note that the structure must remain alive and unchanged for the whole lifetime of the #VmaPool, -not only while creating it, as no copy of the structure is made, -but its original pointer is used for each allocation instead. +\subsection other_api_interop_exporting_initialization Initialization + +1) Make sure the extension is defined in the code by including following header before including VMA: + +\code +#include +\endcode + +2) Check if "VK_KHR_external_memory_win32" is available among device extensions. +Enable it when creating the `VkDevice` object. + +3) Enable the usage of this extension in VMA by setting flag #VMA_ALLOCATOR_CREATE_KHR_EXTERNAL_MEMORY_WIN32_BIT +when calling vmaCreateAllocator(). + +4) Make sure that VMA has access to the `vkGetMemoryWin32HandleKHR` function by either enabling `VMA_DYNAMIC_VULKAN_FUNCTIONS` macro +or setting VmaVulkanFunctions::vkGetMemoryWin32HandleKHR explicitly. +For more information, see \ref quick_start_initialization_importing_vulkan_functions. + +\subsection other_api_interop_exporting_preparations Preparations + +You can find example usage among tests, in file "Tests.cpp", function `TestWin32Handles()`. + +To use the extenion, buffers need to be created with `VkExternalMemoryBufferCreateInfoKHR` attached to their `pNext` chain, +and memory allocations need to be made with `VkExportMemoryAllocateInfoKHR` attached to their `pNext` chain. +To make use of them, you need to use \ref custom_memory_pools. Example: + +\code +constexpr VkExternalMemoryHandleTypeFlagsKHR handleType = + VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR; + +// Define an example buffer and allocation parameters. +VkExternalMemoryBufferCreateInfoKHR externalMemBufCreateInfo = { + VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR, + nullptr, + handleType +}; +VkBufferCreateInfo exampleBufCreateInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; +exampleBufCreateInfo.size = 0x10000; // Doesn't matter here. +exampleBufCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; +exampleBufCreateInfo.pNext = &externalMemBufCreateInfo; + +VmaAllocationCreateInfo exampleAllocCreateInfo = {}; +exampleAllocCreateInfo.usage = VMA_MEMORY_USAGE_AUTO; + +// Find memory type index to use for the custom pool. +uint32_t memTypeIndex; +VkResult res = vmaFindMemoryTypeIndexForBufferInfo(g_Allocator, + &exampleBufCreateInfo, &exampleAllocCreateInfo, &memTypeIndex); +// Check res... + +// Create a custom pool. +constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo = { + VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR, + nullptr, + handleType +}; +VmaPoolCreateInfo poolCreateInfo = {}; +poolCreateInfo.memoryTypeIndex = memTypeIndex; +poolCreateInfo.pMemoryAllocateNext = (void*)&exportMemAllocInfo; + +VmaPool pool; +res = vmaCreatePool(g_Allocator, &poolCreateInfo, &pool); +// Check res... + +// YOUR OTHER CODE COMES HERE.... + +// At the end, don't forget to destroy it! +vmaDestroyPool(g_Allocator, pool); +\endcode + +Note that the structure passed as VmaPoolCreateInfo::pMemoryAllocateNext must remain alive and unchanged +for the whole lifetime of the custom pool, because it will be used when the pool allocates a new device memory block. +No copy is made internally. This is why variable `exportMemAllocInfo` is defined as static. If you want to export all memory allocated by VMA from certain memory types, -also dedicated allocations or other allocations made from default pools, +including dedicated allocations and allocations made from default pools, an alternative solution is to fill in VmaAllocatorCreateInfo::pTypeExternalMemoryHandleTypes. It should point to an array with `VkExternalMemoryHandleTypeFlagsKHR` to be automatically passed by the library through `VkExportMemoryAllocateInfoKHR` on each allocation made from a specific memory type. -Please note that new versions of the library also support dedicated allocations created in custom pools. - You should not mix these two methods in a way that allows to apply both to the same memory type. Otherwise, `VkExportMemoryAllocateInfoKHR` structure would be attached twice to the `pNext` chain of `VkMemoryAllocateInfo`. +\subsection other_api_interop_exporting_memory_allocation Memory allocation -\section opengl_interop_custom_alignment Custom alignment +Finally, you can create a buffer with an allocation out of the custom pool. +The buffer should use same flags as the sample buffer used to find the memory type. +It should also specify `VkExternalMemoryBufferCreateInfoKHR` in its `pNext` chain. + +\code +VkExternalMemoryBufferCreateInfoKHR externalMemBufCreateInfo = { + VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR, + nullptr, + handleType +}; +VkBufferCreateInfo bufCreateInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; +bufCreateInfo.size = // Your desired buffer size. +bufCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; +bufCreateInfo.pNext = &externalMemBufCreateInfo; + +VmaAllocationCreateInfo allocCreateInfo = {}; +allocCreateInfo.pool = pool; // It is enough to set this one member. + +VkBuffer buf; +VmaAllocation alloc; +res = vmaCreateBuffer(g_Allocator, &bufCreateInfo, &allocCreateInfo, &buf, &alloc, nullptr); +// Check res... + +// YOUR OTHER CODE COMES HERE.... + +// At the end, don't forget to destroy it! +vmaDestroyBuffer(g_Allocator, buf, alloc); +\endcode + +If you need each allocation to have its own device memory block and start at offset 0, you can still do +by using #VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT flag. It works also with custom pools. + +Alternatively, you can use convenient functions vmaCreateDedicatedBuffer(), vmaCreateDedicatedImage() that +always allocate dedicated memory for the buffer/image created, and also allow specifying custom `pNext` chain +for the `VkMemoryAllocateInfo` structure. + +\subsection other_api_interop_exporting_exporting_win32_handle Exporting Win32 handle + +After the allocation is created, you can acquire a Win32 `HANDLE` to the `VkDeviceMemory` block it belongs to. +VMA function vmaGetMemoryWin32Handle2() is a replacement of the Vulkan function `vkGetMemoryWin32HandleKHR`. + +\code +HANDLE handle; +res = vmaGetMemoryWin32Handle2(g_Allocator, alloc, handleType, nullptr, &handle); +// Check res... + +// YOUR OTHER CODE COMES HERE.... + +// At the end, you must close the handle. +CloseHandle(handle); +\endcode + +Documentation of the VK_KHR_external_memory_win32 extension states that: + +> If handleType is defined as an NT handle, vkGetMemoryWin32HandleKHR must be called no more than once for each valid unique combination of memory and handleType. + +This is ensured automatically inside VMA. +If `VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT` is used as the handle type, +or other NT handle types, +the library fetches the handle on first use, remembers it internally, and closes it when the memory block or dedicated allocation is destroyed. +Every time you call vmaGetMemoryWin32Handle2(), VMA calls `DuplicateHandle` and returns a new handle that you need to close. +For further information, please check the documentation of this function. + +\subsection other_api_interop_exporting_custom_alignment Custom alignment Buffers or images exported to a different API like OpenGL may require a different alignment, higher than the one used by the library automatically, queried from functions like `vkGetBufferMemoryRequirements`. @@ -18672,20 +19220,59 @@ to be made out of this pool. The alignment actually used will be the maximum of this member and the alignment returned for the specific buffer or image from a function like `vkGetBufferMemoryRequirements`, which is called by VMA automatically. -If you want to create a buffer with a specific minimum alignment out of default pools, -use special function vmaCreateBufferWithAlignment(), which takes additional parameter `minAlignment`. +If you want to create a buffer/image/allocate memory with a specific minimum alignment out of default pools, +you can use VmaAllocationCreateInfo::minAlignment. Note the problem of alignment affects only resources placed inside bigger `VkDeviceMemory` blocks and not dedicated allocations, as these, by definition, always have alignment = 0 because the resource is bound to the beginning of its dedicated block. You can ensure that an allocation is created as dedicated by using #VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT. Contrary to Direct3D 12, Vulkan doesn't have a concept of alignment of the entire memory block passed on its allocation. -\section opengl_interop_extended_allocation_information Extended allocation information +\subsection other_api_interop_exporting_extended_allocation_information Extended allocation information If you want to rely on VMA to allocate your buffers and images inside larger memory blocks, but you need to know the size of the entire block and whether the allocation was made with its own dedicated memory, use function vmaGetAllocationInfo2() to retrieve -extended allocation information in structure #VmaAllocationInfo2. +extended allocation information in structure #VmaAllocationInfo2, which provides extra members: +`blockSize` and `dedicatedMemory`. + +\section other_api_interop_importing_memory Importing memory + +Importing external memory requires attaching an extra structure like `VkImportMemoryWin32HandleInfoKHR` +to the `pNext` chain of `VkMemoryAllocateInfo` structure. +VMA offers support for it by providing functions that allocate memory, create a buffer or an image +always with a dedicated `VkDeviceMemory` block and accept custom `pNext` pointer: +vmaAllocateDedicatedMemory(), vmaCreateDedicatedBuffer(), vmaCreateDedicatedImage(). +Example: + +\code +constexpr VkExternalMemoryHandleTypeFlagBits handleType = + VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT; + +VkExternalMemoryBufferCreateInfoKHR externalMemBufCreateInfo = { + VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR }; +externalMemBufCreateInfo.handleTypes = handleType; + +VkBufferCreateInfo bufCreateInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; +bufCreateInfo.pNext = &externalMemBufCreateInfo; // !!! +bufCreateInfo.size = ... +bufCreateInfo.usage = ... + +VkImportMemoryWin32HandleInfoKHR importInfo = { + VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR }; +importInfo.handleType = handleType; +importInfo.handle = myExternalHandleToImport; + +VmaAllocationCreateInfo allocCreateInfo = {}; +allocCreateInfo.usage = VMA_MEMORY_USAGE_AUTO; + +VkBuffer buf = VK_NULL_HANDLE; +VmaAllocation alloc = VK_NULL_HANDLE; +VkResult res = vmaCreateDedicatedBuffer(allocator, &bufCreateInfo, &allocCreateInfo, + &importInfo, // pMemoryAllocateNext !!! + &buf, &alloc, nullptr); +// Check res... +\endcode @@ -18865,11 +19452,9 @@ vmaGetAllocationMemoryProperties(allocator, alloc, &memPropFlags); if(memPropFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) { - // Allocation ended up in a mappable memory and is already mapped - write to it directly. - - // [Executed in runtime]: - memcpy(allocInfo.pMappedData, myData, myDataSize); - result = vmaFlushAllocation(allocator, alloc, 0, VK_WHOLE_SIZE); + // The Allocation ended up in a mappable memory. + // Calling vmaCopyMemoryToAllocation() does vmaMapMemory(), memcpy(), vmaUnmapMemory(), and vmaFlushAllocation(). + result = vmaCopyMemoryToAllocation(allocator, myData, alloc, 0, myDataSize); // Check result... VkBufferMemoryBarrier bufMemBarrier = { VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER }; @@ -18881,6 +19466,7 @@ if(memPropFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) bufMemBarrier.offset = 0; bufMemBarrier.size = VK_WHOLE_SIZE; + // It's important to insert a buffer memory barrier here to ensure writing to the buffer has finished. vkCmdPipelineBarrier(cmdBuf, VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_VERTEX_SHADER_BIT, 0, 0, nullptr, 1, &bufMemBarrier, 0, nullptr); } @@ -18903,9 +19489,8 @@ else &stagingBuf, &stagingAlloc, &stagingAllocInfo); // Check result... - // [Executed in runtime]: - memcpy(stagingAllocInfo.pMappedData, myData, myDataSize); - result = vmaFlushAllocation(allocator, stagingAlloc, 0, VK_WHOLE_SIZE); + // Calling vmaCopyMemoryToAllocation() does vmaMapMemory(), memcpy(), vmaUnmapMemory(), and vmaFlushAllocation(). + result = vmaCopyMemoryToAllocation(allocator, myData, stagingAlloc, 0, myDataSize); // Check result... VkBufferMemoryBarrier bufMemBarrier = { VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER }; @@ -18917,6 +19502,7 @@ else bufMemBarrier.offset = 0; bufMemBarrier.size = VK_WHOLE_SIZE; + // Insert a buffer memory barrier to make sure writing to the staging buffer has finished. vkCmdPipelineBarrier(cmdBuf, VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 1, &bufMemBarrier, 0, nullptr); @@ -18937,6 +19523,7 @@ else bufMemBarrier2.offset = 0; bufMemBarrier2.size = VK_WHOLE_SIZE; + // Make sure copying from staging buffer to the actual buffer has finished by inserting a buffer memory barrier. vkCmdPipelineBarrier(cmdBuf, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_VERTEX_SHADER_BIT, 0, 0, nullptr, 1, &bufMemBarrier2, 0, nullptr); } @@ -19241,145 +19828,6 @@ Example use of this extension can be found in the code of the sample and test su accompanying this library. -\page vk_khr_external_memory_win32 VK_KHR_external_memory_win32 - -On Windows, the VK_KHR_external_memory_win32 device extension allows exporting a Win32 `HANDLE` -of a `VkDeviceMemory` block, to be able to reference the memory on other Vulkan logical devices or instances, -in multiple processes, and/or in multiple APIs. -VMA offers support for it. - -\section vk_khr_external_memory_win32_initialization Initialization - -1) Make sure the extension is defined in the code by including following header before including VMA: - -\code -#include -\endcode - -2) Check if "VK_KHR_external_memory_win32" is available among device extensions. -Enable it when creating the `VkDevice` object. - -3) Enable the usage of this extension in VMA by setting flag #VMA_ALLOCATOR_CREATE_KHR_EXTERNAL_MEMORY_WIN32_BIT -when calling vmaCreateAllocator(). - -4) Make sure that VMA has access to the `vkGetMemoryWin32HandleKHR` function by either enabling `VMA_DYNAMIC_VULKAN_FUNCTIONS` macro -or setting VmaVulkanFunctions::vkGetMemoryWin32HandleKHR explicitly. -For more information, see \ref quick_start_initialization_importing_vulkan_functions. - -\section vk_khr_external_memory_win32_preparations Preparations - -You can find example usage among tests, in file "Tests.cpp", function `TestWin32Handles()`. - -To use the extenion, buffers need to be created with `VkExternalMemoryBufferCreateInfoKHR` attached to their `pNext` chain, -and memory allocations need to be made with `VkExportMemoryAllocateInfoKHR` attached to their `pNext` chain. -To make use of them, you need to use \ref custom_memory_pools. Example: - -\code -// Define an example buffer and allocation parameters. -VkExternalMemoryBufferCreateInfoKHR externalMemBufCreateInfo = { - VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR, - nullptr, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT -}; -VkBufferCreateInfo exampleBufCreateInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; -exampleBufCreateInfo.size = 0x10000; // Doesn't matter here. -exampleBufCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; -exampleBufCreateInfo.pNext = &externalMemBufCreateInfo; - -VmaAllocationCreateInfo exampleAllocCreateInfo = {}; -exampleAllocCreateInfo.usage = VMA_MEMORY_USAGE_AUTO; - -// Find memory type index to use for the custom pool. -uint32_t memTypeIndex; -VkResult res = vmaFindMemoryTypeIndexForBufferInfo(g_Allocator, - &exampleBufCreateInfo, &exampleAllocCreateInfo, &memTypeIndex); -// Check res... - -// Create a custom pool. -constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo = { - VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR, - nullptr, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT -}; -VmaPoolCreateInfo poolCreateInfo = {}; -poolCreateInfo.memoryTypeIndex = memTypeIndex; -poolCreateInfo.pMemoryAllocateNext = (void*)&exportMemAllocInfo; - -VmaPool pool; -res = vmaCreatePool(g_Allocator, &poolCreateInfo, &pool); -// Check res... - -// YOUR OTHER CODE COMES HERE.... - -// At the end, don't forget to destroy it! -vmaDestroyPool(g_Allocator, pool); -\endcode - -Note that the structure passed as VmaPoolCreateInfo::pMemoryAllocateNext must remain alive and unchanged -for the whole lifetime of the custom pool, because it will be used when the pool allocates a new device memory block. -No copy is made internally. This is why variable `exportMemAllocInfo` is defined as `static`. - -\section vk_khr_external_memory_win32_memory_allocation Memory allocation - -Finally, you can create a buffer with an allocation out of the custom pool. -The buffer should use same flags as the sample buffer used to find the memory type. -It should also specify `VkExternalMemoryBufferCreateInfoKHR` in its `pNext` chain. - -\code -VkExternalMemoryBufferCreateInfoKHR externalMemBufCreateInfo = { - VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR, - nullptr, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT -}; -VkBufferCreateInfo bufCreateInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; -bufCreateInfo.size = // Your desired buffer size. -bufCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; -bufCreateInfo.pNext = &externalMemBufCreateInfo; - -VmaAllocationCreateInfo allocCreateInfo = {}; -allocCreateInfo.pool = pool; // It is enough to set this one member. - -VkBuffer buf; -VmaAllocation alloc; -res = vmaCreateBuffer(g_Allocator, &bufCreateInfo, &allocCreateInfo, &buf, &alloc, nullptr); -// Check res... - -// YOUR OTHER CODE COMES HERE.... - -// At the end, don't forget to destroy it! -vmaDestroyBuffer(g_Allocator, buf, alloc); -\endcode - -If you need each allocation to have its own device memory block and start at offset 0, you can still do -by using #VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT flag. It works also with custom pools. - -\section vk_khr_external_memory_win32_exporting_win32_handle Exporting Win32 handle - -After the allocation is created, you can acquire a Win32 `HANDLE` to the `VkDeviceMemory` block it belongs to. -VMA function vmaGetMemoryWin32Handle() is a replacement of the Vulkan function `vkGetMemoryWin32HandleKHR`. - -\code -HANDLE handle; -res = vmaGetMemoryWin32Handle(g_Allocator, alloc, nullptr, &handle); -// Check res... - -// YOUR OTHER CODE COMES HERE.... - -// At the end, you must close the handle. -CloseHandle(handle); -\endcode - -Documentation of the VK_KHR_external_memory_win32 extension states that: - -> If handleType is defined as an NT handle, vkGetMemoryWin32HandleKHR must be called no more than once for each valid unique combination of memory and handleType. - -This is ensured automatically inside VMA. -The library fetches the handle on first use, remembers it internally, and closes it when the memory block or dedicated allocation is destroyed. -Every time you call vmaGetMemoryWin32Handle(), VMA calls `DuplicateHandle` and returns a new handle that you need to close. - -For further information, please check documentation of the vmaGetMemoryWin32Handle() function. - - \page enabling_buffer_device_address Enabling buffer device address Device extension VK_KHR_buffer_device_address @@ -19475,9 +19923,6 @@ When using this library, you can meet following types of warnings issued by Vulkan validation layer. They don't necessarily indicate a bug, so you may need to just ignore them. -- *vkBindBufferMemory(): Binding memory to buffer 0xeb8e4 but vkGetBufferMemoryRequirements() has not been called on that buffer.* - - It happens when VK_KHR_dedicated_allocation extension is enabled. - `vkGetBufferMemoryRequirements2KHR` function is used instead, while validation layer seems to be unaware of it. - *Mapping an image with layout VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL can result in undefined behavior if this memory is used by the device. Only GENERAL or PREINITIALIZED should be used.* - It happens when you map a buffer or image, because the library maps entire `VkDeviceMemory` block, where different types of images and buffers may end diff --git a/third_party/vulkan/vk_icd.h b/third_party/vulkan/vk_icd.h index d71f568..38b137c 100644 --- a/third_party/vulkan/vk_icd.h +++ b/third_party/vulkan/vk_icd.h @@ -2,8 +2,7 @@ * Copyright 2015-2023 The Khronos Group Inc. * Copyright 2015-2023 Valve Corporation * Copyright 2015-2023 LunarG, Inc. - * - * SPDX-License-Identifier: Apache-2.0 + * SPDX-License-Identifier: Apache-2.0 OR MIT */ #pragma once diff --git a/third_party/vulkan/vk_layer.h b/third_party/vulkan/vk_layer.h index 19cf588..0e9a27b 100644 --- a/third_party/vulkan/vk_layer.h +++ b/third_party/vulkan/vk_layer.h @@ -2,8 +2,7 @@ * Copyright 2015-2023 The Khronos Group Inc. * Copyright 2015-2023 Valve Corporation * Copyright 2015-2023 LunarG, Inc. - * - * SPDX-License-Identifier: Apache-2.0 + * SPDX-License-Identifier: Apache-2.0 OR MIT */ #pragma once diff --git a/third_party/vulkan/vk_platform.h b/third_party/vulkan/vk_platform.h index e431c76..bbe6024 100644 --- a/third_party/vulkan/vk_platform.h +++ b/third_party/vulkan/vk_platform.h @@ -3,8 +3,7 @@ // /* ** Copyright 2014-2026 The Khronos Group Inc. -** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ diff --git a/third_party/vulkan/vulkan.cppm b/third_party/vulkan/vulkan.cppm index bb780fc..feb2a3b 100644 --- a/third_party/vulkan/vulkan.cppm +++ b/third_party/vulkan/vulkan.cppm @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -27,14 +26,14 @@ export module vulkan; export import std; -VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 351, "Wrong VK_HEADER_VERSION!" ); +VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 359, "Wrong VK_HEADER_VERSION!" ); -#if defined( _MSC_VER ) -# pragma warning( push ) -# pragma warning( disable : 5244 ) -#elif defined( __clang__ ) +#if defined( __clang__ ) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Winclude-angled-in-module-purview" +#elif defined( _MSC_VER ) +# pragma warning( push ) +# pragma warning( disable : 5244 ) #elif defined( __GNUC__ ) #endif @@ -45,10 +44,10 @@ VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 351, "Wrong VK_HEADER_VERSION!" ) #include #include -#if defined( _MSC_VER ) -# pragma warning( pop ) -#elif defined( __clang__ ) +#if defined( __clang__ ) # pragma clang diagnostic pop +#elif defined( _MSC_VER ) +# pragma warning( pop ) #elif defined( __GNUC__ ) #endif @@ -908,6 +907,15 @@ export using ::PFN_vkCmdDispatchTileQCOM; using ::PFN_vkCmdEndPerTileExecutionQCOM; + //=== VK_NV_low_latency === + using ::PFN_vkGetLatencyTimingsLegacyNV; + using ::PFN_vkGetSleepStatusLegacyNV; + using ::PFN_vkLatencySleepLegacyNV; + using ::PFN_vkQueueNotifyOutOfBandLegacyNV; + using ::PFN_vkSetLatencyMarkerLegacyNV; + using ::PFN_vkSetLatencySleepModeLegacyNV; + using ::PFN_vkShutdownLatencyDeviceLegacyNV; + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === using ::PFN_vkExportMetalObjectsEXT; @@ -1327,6 +1335,9 @@ export //=== VK_NV_compute_occupancy_priority === using ::PFN_vkCmdSetComputeOccupancyPriorityNV; + //=== VK_EXT_cooperative_matrix_maintenance1 === + using ::PFN_vkGetPhysicalDeviceCooperativeMatrixProperties2EXT; + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === using ::PFN_vkCreateUbmSurfaceSEC; diff --git a/third_party/vulkan/vulkan.h b/third_party/vulkan/vulkan.h index 2ed8d9c..934d9b1 100644 --- a/third_party/vulkan/vulkan.h +++ b/third_party/vulkan/vulkan.h @@ -3,8 +3,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. -** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ #include "vk_platform.h" diff --git a/third_party/vulkan/vulkan.hpp b/third_party/vulkan/vulkan.hpp index 09ed33c..ba33e81 100644 --- a/third_party/vulkan/vulkan.hpp +++ b/third_party/vulkan/vulkan.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -37,7 +36,7 @@ # endif #endif -VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 351, "Wrong VK_HEADER_VERSION!" ); +VULKAN_HPP_STATIC_ASSERT( VK_HEADER_VERSION == 359, "Wrong VK_HEADER_VERSION!" ); VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { @@ -1695,6 +1694,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkGetImageViewHandleNVX ) DECLARE_IS_DISPATCHED( vkGetImageViewOpaqueCaptureDescriptorDataEXT ) DECLARE_IS_DISPATCHED( vkGetInstanceProcAddr ) + DECLARE_IS_DISPATCHED( vkGetLatencyTimingsLegacyNV ) DECLARE_IS_DISPATCHED( vkGetLatencyTimingsNV ) DECLARE_IS_DISPATCHED( vkGetMemoryAndroidHardwareBufferANDROID ) DECLARE_IS_DISPATCHED( vkGetMemoryFdKHR ) @@ -1719,6 +1719,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ) + DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixProperties2EXT ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ) DECLARE_IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ) @@ -1826,6 +1827,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkGetShaderInstrumentationValuesARM ) DECLARE_IS_DISPATCHED( vkGetShaderModuleCreateInfoIdentifierEXT ) DECLARE_IS_DISPATCHED( vkGetShaderModuleIdentifierEXT ) + DECLARE_IS_DISPATCHED( vkGetSleepStatusLegacyNV ) DECLARE_IS_DISPATCHED( vkGetSwapchainCounterEXT ) DECLARE_IS_DISPATCHED( vkGetSwapchainGrallocUsage2ANDROID ) DECLARE_IS_DISPATCHED( vkGetSwapchainGrallocUsageANDROID ) @@ -1851,6 +1853,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkImportSemaphoreZirconHandleFUCHSIA ) DECLARE_IS_DISPATCHED( vkInitializePerformanceApiINTEL ) DECLARE_IS_DISPATCHED( vkInvalidateMappedMemoryRanges ) + DECLARE_IS_DISPATCHED( vkLatencySleepLegacyNV ) DECLARE_IS_DISPATCHED( vkLatencySleepNV ) DECLARE_IS_DISPATCHED( vkMapMemory ) DECLARE_IS_DISPATCHED( vkMapMemory2 ) @@ -1861,6 +1864,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkQueueBindSparse ) DECLARE_IS_DISPATCHED( vkQueueEndDebugUtilsLabelEXT ) DECLARE_IS_DISPATCHED( vkQueueInsertDebugUtilsLabelEXT ) + DECLARE_IS_DISPATCHED( vkQueueNotifyOutOfBandLegacyNV ) DECLARE_IS_DISPATCHED( vkQueueNotifyOutOfBandNV ) DECLARE_IS_DISPATCHED( vkQueuePresentKHR ) DECLARE_IS_DISPATCHED( vkQueueSetPerfHintQCOM ) @@ -1897,12 +1901,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DECLARE_IS_DISPATCHED( vkSetEvent ) DECLARE_IS_DISPATCHED( vkSetGpaDeviceClockModeAMD ) DECLARE_IS_DISPATCHED( vkSetHdrMetadataEXT ) + DECLARE_IS_DISPATCHED( vkSetLatencyMarkerLegacyNV ) DECLARE_IS_DISPATCHED( vkSetLatencyMarkerNV ) + DECLARE_IS_DISPATCHED( vkSetLatencySleepModeLegacyNV ) DECLARE_IS_DISPATCHED( vkSetLatencySleepModeNV ) DECLARE_IS_DISPATCHED( vkSetLocalDimmingAMD ) DECLARE_IS_DISPATCHED( vkSetPrivateData ) DECLARE_IS_DISPATCHED( vkSetPrivateDataEXT ) DECLARE_IS_DISPATCHED( vkSetSwapchainPresentTimingQueueSizeEXT ) + DECLARE_IS_DISPATCHED( vkShutdownLatencyDeviceLegacyNV ) DECLARE_IS_DISPATCHED( vkSignalSemaphore ) DECLARE_IS_DISPATCHED( vkSignalSemaphoreKHR ) DECLARE_IS_DISPATCHED( vkSubmitDebugUtilsMessageEXT ) @@ -6262,6 +6269,46 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE return ::vkCmdEndPerTileExecutionQCOM( commandBuffer, pPerTileEndInfo ); } + //=== VK_NV_low_latency === + + VULKAN_HPP_INLINE void vkSetLatencySleepModeLegacyNV( VkDevice device, + VkBool32 lowLatencyMode, + VkBool32 lowLatencyBoost, + uint32_t minimumIntervalUs ) const VULKAN_HPP_NOEXCEPT + { + return ::vkSetLatencySleepModeLegacyNV( device, lowLatencyMode, lowLatencyBoost, minimumIntervalUs ); + } + + VULKAN_HPP_INLINE void vkLatencySleepLegacyNV( VkDevice device, VkSemaphore signalSemaphore, uint64_t value ) const VULKAN_HPP_NOEXCEPT + { + return ::vkLatencySleepLegacyNV( device, signalSemaphore, value ); + } + + VULKAN_HPP_INLINE void vkSetLatencyMarkerLegacyNV( VkDevice device, uint64_t frameID, uint32_t marker ) const VULKAN_HPP_NOEXCEPT + { + return ::vkSetLatencyMarkerLegacyNV( device, frameID, marker ); + } + + VULKAN_HPP_INLINE void vkGetLatencyTimingsLegacyNV( VkDevice device, void * pTimings ) const VULKAN_HPP_NOEXCEPT + { + return ::vkGetLatencyTimingsLegacyNV( device, pTimings ); + } + + VULKAN_HPP_INLINE void vkQueueNotifyOutOfBandLegacyNV( VkQueue queue, uint32_t queueType ) const VULKAN_HPP_NOEXCEPT + { + return ::vkQueueNotifyOutOfBandLegacyNV( queue, queueType ); + } + + VULKAN_HPP_INLINE void vkGetSleepStatusLegacyNV( VkDevice device, VkBool32 * pLowLatencyMode ) const VULKAN_HPP_NOEXCEPT + { + return ::vkGetSleepStatusLegacyNV( device, pLowLatencyMode ); + } + + VULKAN_HPP_INLINE void vkShutdownLatencyDeviceLegacyNV( VkDevice device ) const VULKAN_HPP_NOEXCEPT + { + return ::vkShutdownLatencyDeviceLegacyNV( device ); + } + # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === @@ -8160,6 +8207,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE return ::vkCmdSetComputeOccupancyPriorityNV( commandBuffer, pParameters ); } + //=== VK_EXT_cooperative_matrix_maintenance1 === + + VULKAN_HPP_INLINE VkResult vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( VkPhysicalDevice physicalDevice, + VkPhysicalDeviceCooperativeMatrixInfo2EXT const * pCooperativeMatrixInfo, + uint32_t * pPropertyCount, + VkCooperativeMatrixProperties2EXT * pProperties ) const VULKAN_HPP_NOEXCEPT + { + return ::vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( physicalDevice, pCooperativeMatrixInfo, pPropertyCount, pProperties ); + } + # if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === @@ -8465,11 +8522,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== BASE TYPEs === //================== - using Bool32 = uint32_t; - using DeviceAddress = uint64_t; - using DeviceSize = uint64_t; - using RemoteAddressNV = void *; using SampleMask = uint32_t; + using Bool32 = uint32_t; + using DeviceSize = uint64_t; + using DeviceAddress = uint64_t; + using RemoteAddressNV = void *; template struct CppType @@ -9258,6 +9315,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_KHR_video_decode_vp9 === VULKAN_HPP_CONSTEXPR_INLINE uint32_t MaxVideoVp9ReferencesPerFrameKHR = VK_MAX_VIDEO_VP9_REFERENCES_PER_FRAME_KHR; + //=== VK_ARM_tensor_controls === + VULKAN_HPP_CONSTEXPR_INLINE uint32_t MaxTensorCreateInfoRollingBackingWrapCountARM = VK_MAX_TENSOR_CREATE_INFO_ROLLING_BACKING_WRAP_COUNT_ARM; + //=== VK_NV_partitioned_acceleration_structure === VULKAN_HPP_CONSTEXPR_INLINE uint32_t PartitionedAccelerationStructurePartitionIndexGlobalNV = VK_PARTITIONED_ACCELERATION_STRUCTURE_PARTITION_INDEX_GLOBAL_NV; @@ -10456,7 +10516,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto QCOMTileShadingExtensionName = VK_QCOM_TILE_SHADING_EXTENSION_NAME; //=== VK_NV_low_latency === - VULKAN_HPP_CONSTEXPR_INLINE auto NVLowLatencySpecVersion = VK_NV_LOW_LATENCY_SPEC_VERSION; + VULKAN_HPP_DEPRECATED( "The VK_NV_low_latency extension has been deprecated by VK_NV_low_latency2." ) + VULKAN_HPP_CONSTEXPR_INLINE auto NVLowLatencySpecVersion = VK_NV_LOW_LATENCY_SPEC_VERSION; + VULKAN_HPP_DEPRECATED( "The VK_NV_low_latency extension has been deprecated by VK_NV_low_latency2." ) VULKAN_HPP_CONSTEXPR_INLINE auto NVLowLatencyExtensionName = VK_NV_LOW_LATENCY_EXTENSION_NAME; #if defined( VK_USE_PLATFORM_METAL_EXT ) @@ -11121,6 +11183,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderReplicatedCompositesSpecVersion = VK_EXT_SHADER_REPLICATED_COMPOSITES_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderReplicatedCompositesExtensionName = VK_EXT_SHADER_REPLICATED_COMPOSITES_EXTENSION_NAME; + //=== VK_ARM_tensor_controls === + VULKAN_HPP_CONSTEXPR_INLINE auto ARMTensorControlsSpecVersion = VK_ARM_TENSOR_CONTROLS_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto ARMTensorControlsExtensionName = VK_ARM_TENSOR_CONTROLS_EXTENSION_NAME; + //=== VK_EXT_shader_float8 === VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderFloat8SpecVersion = VK_EXT_SHADER_FLOAT8_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderFloat8ExtensionName = VK_EXT_SHADER_FLOAT8_EXTENSION_NAME; @@ -11195,6 +11261,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto ARMPipelineOpacityMicromapSpecVersion = VK_ARM_PIPELINE_OPACITY_MICROMAP_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto ARMPipelineOpacityMicromapExtensionName = VK_ARM_PIPELINE_OPACITY_MICROMAP_EXTENSION_NAME; + //=== VK_KHR_video_encode_feedback2 === + VULKAN_HPP_CONSTEXPR_INLINE auto KHRVideoEncodeFeedback2SpecVersion = VK_KHR_VIDEO_ENCODE_FEEDBACK_2_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto KHRVideoEncodeFeedback2ExtensionName = VK_KHR_VIDEO_ENCODE_FEEDBACK_2_EXTENSION_NAME; + + //=== VK_IMG_filter_linear_2d === + VULKAN_HPP_CONSTEXPR_INLINE auto IMGFilterLinear2DSpecVersion = VK_IMG_FILTER_LINEAR_2D_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto IMGFilterLinear2DExtensionName = VK_IMG_FILTER_LINEAR_2D_EXTENSION_NAME; + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_external_memory_metal === VULKAN_HPP_CONSTEXPR_INLINE auto EXTExternalMemoryMetalSpecVersion = VK_EXT_EXTERNAL_MEMORY_METAL_SPEC_VERSION; @@ -11233,6 +11307,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto NVPresentMeteringSpecVersion = VK_NV_PRESENT_METERING_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto NVPresentMeteringExtensionName = VK_NV_PRESENT_METERING_EXTENSION_NAME; + //=== VK_EXT_multisampled_render_to_swapchain === + VULKAN_HPP_CONSTEXPR_INLINE auto EXTMultisampledRenderToSwapchainSpecVersion = VK_EXT_MULTISAMPLED_RENDER_TO_SWAPCHAIN_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto EXTMultisampledRenderToSwapchainExtensionName = VK_EXT_MULTISAMPLED_RENDER_TO_SWAPCHAIN_EXTENSION_NAME; + //=== VK_EXT_fragment_density_map_offset === VULKAN_HPP_CONSTEXPR_INLINE auto EXTFragmentDensityMapOffsetSpecVersion = VK_EXT_FRAGMENT_DENSITY_MAP_OFFSET_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto EXTFragmentDensityMapOffsetExtensionName = VK_EXT_FRAGMENT_DENSITY_MAP_OFFSET_EXTENSION_NAME; @@ -11289,6 +11367,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto KHRMaintenance11SpecVersion = VK_KHR_MAINTENANCE_11_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto KHRMaintenance11ExtensionName = VK_KHR_MAINTENANCE_11_EXTENSION_NAME; + //=== VK_EXT_cooperative_matrix_maintenance1 === + VULKAN_HPP_CONSTEXPR_INLINE auto EXTCooperativeMatrixMaintenance1SpecVersion = VK_EXT_COOPERATIVE_MATRIX_MAINTENANCE_1_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto EXTCooperativeMatrixMaintenance1ExtensionName = VK_EXT_COOPERATIVE_MATRIX_MAINTENANCE_1_EXTENSION_NAME; + //=== VK_EXT_shader_subgroup_partitioned === VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderSubgroupPartitionedSpecVersion = VK_EXT_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderSubgroupPartitionedExtensionName = VK_EXT_SHADER_SUBGROUP_PARTITIONED_EXTENSION_NAME; @@ -11299,6 +11381,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto SECUbmSurfaceExtensionName = VK_SEC_UBM_SURFACE_EXTENSION_NAME; #endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=== VK_KHR_extended_flags === + VULKAN_HPP_CONSTEXPR_INLINE auto KHRExtendedFlagsSpecVersion = VK_KHR_EXTENDED_FLAGS_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto KHRExtendedFlagsExtensionName = VK_KHR_EXTENDED_FLAGS_EXTENSION_NAME; + + //=== VK_EXT_shader_ocp_microscaling_types === + VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderOcpMicroscalingTypesSpecVersion = VK_EXT_SHADER_OCP_MICROSCALING_TYPES_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto EXTShaderOcpMicroscalingTypesExtensionName = VK_EXT_SHADER_OCP_MICROSCALING_TYPES_EXTENSION_NAME; + //=== VK_VALVE_shader_mixed_float_dot_product === VULKAN_HPP_CONSTEXPR_INLINE auto VALVEShaderMixedFloatDotProductSpecVersion = VK_VALVE_SHADER_MIXED_FLOAT_DOT_PRODUCT_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto VALVEShaderMixedFloatDotProductExtensionName = VK_VALVE_SHADER_MIXED_FLOAT_DOT_PRODUCT_EXTENSION_NAME; @@ -11315,6 +11405,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR_INLINE auto EXTPrimitiveRestartIndexSpecVersion = VK_EXT_PRIMITIVE_RESTART_INDEX_SPEC_VERSION; VULKAN_HPP_CONSTEXPR_INLINE auto EXTPrimitiveRestartIndexExtensionName = VK_EXT_PRIMITIVE_RESTART_INDEX_EXTENSION_NAME; + //=== VK_EXT_image_tiling_control === + VULKAN_HPP_CONSTEXPR_INLINE auto EXTImageTilingControlSpecVersion = VK_EXT_IMAGE_TILING_CONTROL_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto EXTImageTilingControlExtensionName = VK_EXT_IMAGE_TILING_CONTROL_EXTENSION_NAME; + + //=== VK_NV_cooperative_matrix_decode_vector === + VULKAN_HPP_CONSTEXPR_INLINE auto NVCooperativeMatrixDecodeVectorSpecVersion = VK_NV_COOPERATIVE_MATRIX_DECODE_VECTOR_SPEC_VERSION; + VULKAN_HPP_CONSTEXPR_INLINE auto NVCooperativeMatrixDecodeVectorExtensionName = VK_NV_COOPERATIVE_MATRIX_DECODE_VECTOR_EXTENSION_NAME; + } // namespace VULKAN_HPP_NAMESPACE // clang-format off @@ -15922,6 +16020,42 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + //=== VK_KHR_present_wait === template <> struct StructExtends @@ -21150,6 +21284,25 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + //=== VK_ARM_tensor_controls === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + //=== VK_EXT_shader_float8 === template <> struct StructExtends @@ -21752,6 +21905,43 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + //=== VK_KHR_video_encode_feedback2 === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_external_memory_metal === template <> @@ -21988,6 +22178,34 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + //=== VK_EXT_multisampled_render_to_swapchain === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + //=== VK_EXT_fragment_density_map_offset === template <> struct StructExtends @@ -22453,6 +22671,25 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + //=== VK_EXT_cooperative_matrix_maintenance1 === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + //=== VK_EXT_shader_subgroup_partitioned === template <> struct StructExtends @@ -22472,6 +22709,197 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + //=== VK_KHR_extended_flags === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + //=== VK_EXT_shader_ocp_microscaling_types === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + //=== VK_VALVE_shader_mixed_float_dot_product === template <> struct StructExtends @@ -22575,6 +23003,53 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; }; + //=== VK_EXT_image_tiling_control === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + //=== VK_NV_cooperative_matrix_decode_vector === + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + + template <> + struct StructExtends + { + enum + { + value = true + }; + }; + #endif // VULKAN_HPP_DISABLE_ENHANCED_MODE namespace detail @@ -23625,6 +24100,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PFN_vkCmdBeginPerTileExecutionQCOM vkCmdBeginPerTileExecutionQCOM = 0; PFN_vkCmdEndPerTileExecutionQCOM vkCmdEndPerTileExecutionQCOM = 0; + //=== VK_NV_low_latency === + PFN_vkSetLatencySleepModeLegacyNV vkSetLatencySleepModeLegacyNV = 0; + PFN_vkLatencySleepLegacyNV vkLatencySleepLegacyNV = 0; + PFN_vkSetLatencyMarkerLegacyNV vkSetLatencyMarkerLegacyNV = 0; + PFN_vkGetLatencyTimingsLegacyNV vkGetLatencyTimingsLegacyNV = 0; + PFN_vkQueueNotifyOutOfBandLegacyNV vkQueueNotifyOutOfBandLegacyNV = 0; + PFN_vkGetSleepStatusLegacyNV vkGetSleepStatusLegacyNV = 0; + PFN_vkShutdownLatencyDeviceLegacyNV vkShutdownLatencyDeviceLegacyNV = 0; + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === PFN_vkExportMetalObjectsEXT vkExportMetalObjectsEXT = 0; @@ -24077,6 +24561,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_NV_compute_occupancy_priority === PFN_vkCmdSetComputeOccupancyPriorityNV vkCmdSetComputeOccupancyPriorityNV = 0; + //=== VK_EXT_cooperative_matrix_maintenance1 === + PFN_vkGetPhysicalDeviceCooperativeMatrixProperties2EXT vkGetPhysicalDeviceCooperativeMatrixProperties2EXT = 0; + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === PFN_vkCreateUbmSurfaceSEC vkCreateUbmSurfaceSEC = 0; @@ -24099,10 +24586,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } // This interface does not require a linked vulkan library. - DispatchLoaderDynamic( VkInstance instance, - PFN_vkGetInstanceProcAddr getInstanceProcAddr, - VkDevice device = {}, - PFN_vkGetDeviceProcAddr getDeviceProcAddr = nullptr ) VULKAN_HPP_NOEXCEPT + DispatchLoaderDynamic( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr ) VULKAN_HPP_NOEXCEPT + { + init( instance, getInstanceProcAddr ); + } + + // This interface does not require a linked vulkan library. + DispatchLoaderDynamic( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr, VkDevice device, PFN_vkGetDeviceProcAddr getDeviceProcAddr ) + VULKAN_HPP_NOEXCEPT { init( instance, getInstanceProcAddr, device, getDeviceProcAddr ); } @@ -24142,18 +24633,21 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } // 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 + void init( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr ) VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( instance && getInstanceProcAddr ); vkGetInstanceProcAddr = getInstanceProcAddr; init( Instance( instance ) ); - if ( device ) - { - init( Device( device ) ); - } + } + + // This interface does not require a linked vulkan library. + void init( VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr, VkDevice device, PFN_vkGetDeviceProcAddr getDeviceProcAddr ) + VULKAN_HPP_NOEXCEPT + { + init( instance, getInstanceProcAddr ); + VULKAN_HPP_ASSERT( device && getDeviceProcAddr ); + vkGetDeviceProcAddr = getDeviceProcAddr; + init( Device( device ) ); } void init( Instance instanceCpp ) VULKAN_HPP_NOEXCEPT @@ -25274,6 +25768,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE vkCmdBeginPerTileExecutionQCOM = PFN_vkCmdBeginPerTileExecutionQCOM( vkGetInstanceProcAddr( instance, "vkCmdBeginPerTileExecutionQCOM" ) ); vkCmdEndPerTileExecutionQCOM = PFN_vkCmdEndPerTileExecutionQCOM( vkGetInstanceProcAddr( instance, "vkCmdEndPerTileExecutionQCOM" ) ); + //=== VK_NV_low_latency === + vkSetLatencySleepModeLegacyNV = PFN_vkSetLatencySleepModeLegacyNV( vkGetInstanceProcAddr( instance, "vkSetLatencySleepModeLegacyNV" ) ); + vkLatencySleepLegacyNV = PFN_vkLatencySleepLegacyNV( vkGetInstanceProcAddr( instance, "vkLatencySleepLegacyNV" ) ); + vkSetLatencyMarkerLegacyNV = PFN_vkSetLatencyMarkerLegacyNV( vkGetInstanceProcAddr( instance, "vkSetLatencyMarkerLegacyNV" ) ); + vkGetLatencyTimingsLegacyNV = PFN_vkGetLatencyTimingsLegacyNV( vkGetInstanceProcAddr( instance, "vkGetLatencyTimingsLegacyNV" ) ); + vkQueueNotifyOutOfBandLegacyNV = PFN_vkQueueNotifyOutOfBandLegacyNV( vkGetInstanceProcAddr( instance, "vkQueueNotifyOutOfBandLegacyNV" ) ); + vkGetSleepStatusLegacyNV = PFN_vkGetSleepStatusLegacyNV( vkGetInstanceProcAddr( instance, "vkGetSleepStatusLegacyNV" ) ); + vkShutdownLatencyDeviceLegacyNV = PFN_vkShutdownLatencyDeviceLegacyNV( vkGetInstanceProcAddr( instance, "vkShutdownLatencyDeviceLegacyNV" ) ); + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === vkExportMetalObjectsEXT = PFN_vkExportMetalObjectsEXT( vkGetInstanceProcAddr( instance, "vkExportMetalObjectsEXT" ) ); @@ -25824,6 +26327,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_NV_compute_occupancy_priority === vkCmdSetComputeOccupancyPriorityNV = PFN_vkCmdSetComputeOccupancyPriorityNV( vkGetInstanceProcAddr( instance, "vkCmdSetComputeOccupancyPriorityNV" ) ); + //=== VK_EXT_cooperative_matrix_maintenance1 === + vkGetPhysicalDeviceCooperativeMatrixProperties2EXT = + PFN_vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeMatrixProperties2EXT" ) ); + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === vkCreateUbmSurfaceSEC = PFN_vkCreateUbmSurfaceSEC( vkGetInstanceProcAddr( instance, "vkCreateUbmSurfaceSEC" ) ); @@ -25840,7 +26347,6 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VkDevice device = static_cast( 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" ) ); @@ -26681,6 +27187,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE vkCmdBeginPerTileExecutionQCOM = PFN_vkCmdBeginPerTileExecutionQCOM( vkGetDeviceProcAddr( device, "vkCmdBeginPerTileExecutionQCOM" ) ); vkCmdEndPerTileExecutionQCOM = PFN_vkCmdEndPerTileExecutionQCOM( vkGetDeviceProcAddr( device, "vkCmdEndPerTileExecutionQCOM" ) ); + //=== VK_NV_low_latency === + vkSetLatencySleepModeLegacyNV = PFN_vkSetLatencySleepModeLegacyNV( vkGetDeviceProcAddr( device, "vkSetLatencySleepModeLegacyNV" ) ); + vkLatencySleepLegacyNV = PFN_vkLatencySleepLegacyNV( vkGetDeviceProcAddr( device, "vkLatencySleepLegacyNV" ) ); + vkSetLatencyMarkerLegacyNV = PFN_vkSetLatencyMarkerLegacyNV( vkGetDeviceProcAddr( device, "vkSetLatencyMarkerLegacyNV" ) ); + vkGetLatencyTimingsLegacyNV = PFN_vkGetLatencyTimingsLegacyNV( vkGetDeviceProcAddr( device, "vkGetLatencyTimingsLegacyNV" ) ); + vkQueueNotifyOutOfBandLegacyNV = PFN_vkQueueNotifyOutOfBandLegacyNV( vkGetDeviceProcAddr( device, "vkQueueNotifyOutOfBandLegacyNV" ) ); + vkGetSleepStatusLegacyNV = PFN_vkGetSleepStatusLegacyNV( vkGetDeviceProcAddr( device, "vkGetSleepStatusLegacyNV" ) ); + vkShutdownLatencyDeviceLegacyNV = PFN_vkShutdownLatencyDeviceLegacyNV( vkGetDeviceProcAddr( device, "vkShutdownLatencyDeviceLegacyNV" ) ); + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === vkExportMetalObjectsEXT = PFN_vkExportMetalObjectsEXT( vkGetDeviceProcAddr( device, "vkExportMetalObjectsEXT" ) ); @@ -27185,7 +27700,6 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE init( instance, device, dl ); } }; - #if defined( VULKAN_HPP_CXX_MODULE ) && !defined( VULKAN_HPP_DEFAULT_DISPATCHER_HANDLED ) && VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 VULKAN_HPP_STORAGE_API DispatchLoaderDynamic defaultDispatchLoaderDynamic; #endif diff --git a/third_party/vulkan/vulkan_android.h b/third_party/vulkan/vulkan_android.h index 1d8265e..1e318dc 100644 --- a/third_party/vulkan/vulkan_android.h +++ b/third_party/vulkan/vulkan_android.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_beta.h b/third_party/vulkan/vulkan_beta.h index 147a3f3..c84b1d4 100644 --- a/third_party/vulkan/vulkan_beta.h +++ b/third_party/vulkan/vulkan_beta.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_core.h b/third_party/vulkan/vulkan_core.h index 042cf48..dca67dd 100644 --- a/third_party/vulkan/vulkan_core.h +++ b/third_party/vulkan/vulkan_core.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* @@ -66,7 +66,7 @@ extern "C" { //#define VK_API_VERSION VK_MAKE_API_VERSION(0, 1, 0, 0) // Patch version should always be set to 0 // Version of this file -#define VK_HEADER_VERSION 351 +#define VK_HEADER_VERSION 359 // Complete version of this file #define VK_HEADER_VERSION_COMPLETE VK_MAKE_API_VERSION(0, 1, 4, VK_HEADER_VERSION) @@ -1343,6 +1343,8 @@ typedef enum VkStructureType { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_API_VULKAN_PROPERTIES_KHR = 1000562004, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV = 1000563000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT = 1000564000, + VK_STRUCTURE_TYPE_TENSOR_EXPLICIT_TILING_FORMAT_PROPERTIES_ARM = 1000565000, + VK_STRUCTURE_TYPE_TENSOR_ROLLING_BACKING_CREATE_INFO_ARM = 1000565001, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT8_FEATURES_EXT = 1000567000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV = 1000568000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_ACCELERATION_STRUCTURE_FEATURES_NV = 1000569000, @@ -1404,6 +1406,9 @@ typedef enum VkStructureType { VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_FLEXIBLE_DIMENSIONS_PROPERTIES_NV = 1000593001, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_PROPERTIES_NV = 1000593002, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_OPACITY_MICROMAP_FEATURES_ARM = 1000596000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_FEEDBACK_2_FEATURES_KHR = 1000598000, + VK_STRUCTURE_TYPE_VIDEO_ENCODE_FEEDBACK_2_CAPABILITIES_KHR = 1000598001, + VK_STRUCTURE_TYPE_QUERY_POOL_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_CREATE_INFO_KHR = 1000598002, VK_STRUCTURE_TYPE_IMPORT_MEMORY_METAL_HANDLE_INFO_EXT = 1000602000, VK_STRUCTURE_TYPE_MEMORY_METAL_HANDLE_PROPERTIES_EXT = 1000602001, VK_STRUCTURE_TYPE_MEMORY_GET_METAL_HANDLE_INFO_EXT = 1000602002, @@ -1426,6 +1431,8 @@ typedef enum VkStructureType { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_KHR = 1000286001, VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV = 1000613000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV = 1000613001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SWAPCHAIN_FEATURES_EXT = 1000616000, + VK_STRUCTURE_TYPE_SWAPCHAIN_FLAGS_SURFACE_CAPABILITIES_EXT = 1000616001, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_FEATURES_EXT = 1000425000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_PROPERTIES_EXT = 1000425001, VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_EXT = 1000425002, @@ -1463,8 +1470,19 @@ typedef enum VkStructureType { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_OCCUPANCY_PRIORITY_FEATURES_NV = 1000645001, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_11_FEATURES_KHR = 1000657000, VK_STRUCTURE_TYPE_QUEUE_FAMILY_OPTIMAL_IMAGE_TRANSFER_GRANULARITY_PROPERTIES_KHR = 1000657001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_MAINTENANCE_1_FEATURES_EXT = 1000659000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_INFO_2_EXT = 1000659001, + VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_PROPERTIES_2_EXT = 1000659002, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_PARTITIONED_FEATURES_EXT = 1000662000, VK_STRUCTURE_TYPE_UBM_SURFACE_CREATE_INFO_SEC = 1000664000, + VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_4_KHR = 1000668000, + VK_STRUCTURE_TYPE_IMAGE_CREATE_FLAGS_2_CREATE_INFO_KHR = 1000668001, + VK_STRUCTURE_TYPE_IMAGE_USAGE_FLAGS_2_CREATE_INFO_KHR = 1000668002, + VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_2_CREATE_INFO_KHR = 1000668003, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_FLAGS_FEATURES_KHR = 1000668004, + VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_2_CREATE_INFO_KHR = 1000668005, + VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR = 1000668006, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_OCP_MICROSCALING_TYPES_FEATURES_EXT = 1000672000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_MIXED_FLOAT_DOT_PRODUCT_FEATURES_VALVE = 1000673000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_THROTTLE_HINT_FEATURES_SEC = 1000674000, VK_STRUCTURE_TYPE_THROTTLE_HINT_SUBMIT_INFO_SEC = 1000674001, @@ -1472,6 +1490,9 @@ typedef enum VkStructureType { VK_STRUCTURE_TYPE_DATA_GRAPH_PIPELINE_SESSION_NEURAL_STATISTICS_CREATE_INFO_ARM = 1000676001, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DATA_GRAPH_NEURAL_ACCELERATOR_STATISTICS_FEATURES_ARM = 1000676002, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_RESTART_INDEX_FEATURES_EXT = 1000678000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_TILING_CONTROL_FEATURES_EXT = 1000687000, + VK_STRUCTURE_TYPE_IMAGE_TILING_CONTROL_CREATE_INFO_EXT = 1000687001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_DECODE_VECTOR_FEATURES_NV = 1000689000, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES, // VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT is a legacy alias @@ -1810,6 +1831,7 @@ typedef enum VkVendorId { VK_VENDOR_ID_MESA = 0x10005, VK_VENDOR_ID_POCL = 0x10006, VK_VENDOR_ID_MOBILEYE = 0x10007, + VK_VENDOR_ID_APE = 0x10008, VK_VENDOR_ID_MAX_ENUM = 0x7FFFFFFF } VkVendorId; @@ -6352,6 +6374,9 @@ typedef enum VkDriverId { VK_DRIVER_ID_MESA_HONEYKRISP = 26, VK_DRIVER_ID_VULKAN_SC_EMULATION_ON_VULKAN = 27, VK_DRIVER_ID_MESA_KOSMICKRISP = 28, + VK_DRIVER_ID_MESA_GFXSTREAM = 29, + VK_DRIVER_ID_APE_SOFT = 30, + VK_DRIVER_ID_RESERVED_31 = 31, VK_DRIVER_ID_AMD_PROPRIETARY_KHR = VK_DRIVER_ID_AMD_PROPRIETARY, VK_DRIVER_ID_AMD_OPEN_SOURCE_KHR = VK_DRIVER_ID_AMD_OPEN_SOURCE, VK_DRIVER_ID_MESA_RADV_KHR = VK_DRIVER_ID_MESA_RADV, @@ -7361,6 +7386,7 @@ static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TENSOR_DATA_GRAPH_BIT_ static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COPY_IMAGE_INDIRECT_DST_BIT_KHR = 0x800000000000000ULL; static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x2000000000000ULL; static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR = 0x4000000000000ULL; +static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_2D_BIT_IMG = 0x200000000000ULL; static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DEPTH_COPY_ON_COMPUTE_QUEUE_BIT_KHR = 0x10000000000000ULL; static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DEPTH_COPY_ON_TRANSFER_QUEUE_BIT_KHR = 0x20000000000000ULL; static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STENCIL_COPY_ON_COMPUTE_QUEUE_BIT_KHR = 0x40000000000000ULL; @@ -9041,6 +9067,7 @@ typedef enum VkSwapchainCreateFlagBitsKHR { VK_SWAPCHAIN_CREATE_PRESENT_ID_2_BIT_KHR = 0x00000040, VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHR = 0x00000080, VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR = 0x00000008, + VK_SWAPCHAIN_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT = 0x00000100, VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT = VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR, VK_SWAPCHAIN_CREATE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF } VkSwapchainCreateFlagBitsKHR; @@ -12212,6 +12239,13 @@ typedef enum VkVideoEncodeFeedbackFlagBitsKHR { VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHR = 0x00000001, VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHR = 0x00000002, VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_HAS_OVERRIDES_BIT_KHR = 0x00000004, + VK_VIDEO_ENCODE_FEEDBACK_AVERAGE_QUANTIZATION_BIT_KHR = 0x00000008, + VK_VIDEO_ENCODE_FEEDBACK_MIN_QUANTIZATION_BIT_KHR = 0x00000010, + VK_VIDEO_ENCODE_FEEDBACK_MAX_QUANTIZATION_BIT_KHR = 0x00000020, + VK_VIDEO_ENCODE_FEEDBACK_INTRA_PIXELS_BIT_KHR = 0x00000040, + VK_VIDEO_ENCODE_FEEDBACK_INTER_PIXELS_BIT_KHR = 0x00000080, + VK_VIDEO_ENCODE_FEEDBACK_SKIPPED_PIXELS_BIT_KHR = 0x00000100, + VK_VIDEO_ENCODE_FEEDBACK_PICTURE_PARTITION_COUNT_BIT_KHR = 0x00000200, VK_VIDEO_ENCODE_FEEDBACK_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF } VkVideoEncodeFeedbackFlagBitsKHR; typedef VkFlags VkVideoEncodeFeedbackFlagsKHR; @@ -13481,6 +13515,11 @@ typedef enum VkComponentTypeKHR { VK_COMPONENT_TYPE_UINT8_PACKED_NV = 1000491001, VK_COMPONENT_TYPE_FLOAT8_E4M3_EXT = 1000491002, VK_COMPONENT_TYPE_FLOAT8_E5M2_EXT = 1000491003, + VK_COMPONENT_TYPE_FLOAT6_E2M3_EXT = 1000672000, + VK_COMPONENT_TYPE_FLOAT6_E3M2_EXT = 1000672001, + VK_COMPONENT_TYPE_FLOAT4_E2M1_EXT = 1000672002, + VK_COMPONENT_TYPE_FLOAT8_UNSIGNED_E8M0_EXT = 1000672003, + VK_COMPONENT_TYPE_MXINT8_EXT = 1000672004, VK_COMPONENT_TYPE_FLOAT16_NV = VK_COMPONENT_TYPE_FLOAT16_KHR, VK_COMPONENT_TYPE_FLOAT32_NV = VK_COMPONENT_TYPE_FLOAT32_KHR, VK_COMPONENT_TYPE_FLOAT64_NV = VK_COMPONENT_TYPE_FLOAT64_KHR, @@ -14567,6 +14606,40 @@ typedef struct VkVideoDecodeAV1InlineSessionParametersInfoKHR { +// VK_KHR_video_encode_feedback2 is a preprocessor guard. Do not pass it to API calls. +#define VK_KHR_video_encode_feedback2 1 +#define VK_KHR_VIDEO_ENCODE_FEEDBACK_2_SPEC_VERSION 1 +#define VK_KHR_VIDEO_ENCODE_FEEDBACK_2_EXTENSION_NAME "VK_KHR_video_encode_feedback2" + +typedef enum VkVideoEncodePerPartitionFeedbackFlagBitsKHR { + VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_STATUS_BIT_KHR = 0x00000001, + VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHR = 0x00000002, + VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHR = 0x00000004, + VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF +} VkVideoEncodePerPartitionFeedbackFlagBitsKHR; +typedef VkFlags VkVideoEncodePerPartitionFeedbackFlagsKHR; +typedef struct VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR { + VkStructureType sType; + void* pNext; + VkBool32 videoEncodeFeedback2; +} VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + +typedef struct VkVideoEncodeFeedback2CapabilitiesKHR { + VkStructureType sType; + void* pNext; + uint32_t maxPerPartitionFeedbackEntries; + VkVideoEncodePerPartitionFeedbackFlagsKHR supportedPerPartitionEncodeFeedbackFlags; +} VkVideoEncodeFeedback2CapabilitiesKHR; + +typedef struct VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR { + VkStructureType sType; + const void* pNext; + uint32_t maxPerPartitionFeedbackEntries; + VkVideoEncodePerPartitionFeedbackFlagsKHR perPartitionEncodeFeedbackFlags; +} VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + + + // VK_KHR_depth_clamp_zero_one is a preprocessor guard. Do not pass it to API calls. #define VK_KHR_depth_clamp_zero_one 1 #define VK_KHR_DEPTH_CLAMP_ZERO_ONE_SPEC_VERSION 1 @@ -14773,6 +14846,117 @@ typedef struct VkQueueFamilyOptimalImageTransferGranularityPropertiesKHR { +// VK_KHR_extended_flags is a preprocessor guard. Do not pass it to API calls. +#define VK_KHR_extended_flags 1 +#define VK_KHR_EXTENDED_FLAGS_SPEC_VERSION 1 +#define VK_KHR_EXTENDED_FLAGS_EXTENSION_NAME "VK_KHR_extended_flags" +typedef VkFlags64 VkFormatFeatureFlags4KHR; + +// Flag bits for VkFormatFeatureFlagBits4KHR +typedef VkFlags64 VkFormatFeatureFlagBits4KHR; + +typedef VkFlags64 VkImageUsageFlags2KHR; + +// Flag bits for VkImageUsageFlagBits2KHR +typedef VkFlags64 VkImageUsageFlagBits2KHR; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_TRANSFER_SRC_BIT_KHR = 0x00000001ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_TRANSFER_DST_BIT_KHR = 0x00000002ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_SAMPLED_BIT_KHR = 0x00000004ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_STORAGE_BIT_KHR = 0x00000008ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_COLOR_ATTACHMENT_BIT_KHR = 0x00000010ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR = 0x00000020ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_TRANSIENT_ATTACHMENT_BIT_KHR = 0x00000040ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_INPUT_ATTACHMENT_BIT_KHR = 0x00000080ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00000100ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_FRAGMENT_DENSITY_MAP_BIT_EXT = 0x00000200ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_DECODE_DST_BIT_KHR = 0x00000400ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_DECODE_SRC_BIT_KHR = 0x00000800ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_DECODE_DPB_BIT_KHR = 0x00001000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_ENCODE_DST_BIT_KHR = 0x00002000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_ENCODE_SRC_BIT_KHR = 0x00004000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_ENCODE_DPB_BIT_KHR = 0x00008000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_INVOCATION_MASK_BIT_HUAWEI = 0x00040000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x00080000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_SAMPLE_WEIGHT_BIT_QCOM = 0x00100000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_SAMPLE_BLOCK_MATCH_BIT_QCOM = 0x00200000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_HOST_TRANSFER_BIT_KHR = 0x00400000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_TENSOR_ALIASING_BIT_ARM = 0x00800000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x02000000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR = 0x04000000ULL; +static const VkImageUsageFlagBits2KHR VK_IMAGE_USAGE_2_TILE_MEMORY_BIT_QCOM = 0x08000000ULL; + +typedef VkFlags64 VkImageCreateFlags2KHR; + +// Flag bits for VkImageCreateFlagBits2KHR +typedef VkFlags64 VkImageCreateFlagBits2KHR; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_SPARSE_BINDING_BIT_KHR = 0x00000001ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_SPARSE_RESIDENCY_BIT_KHR = 0x00000002ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_SPARSE_ALIASED_BIT_KHR = 0x00000004ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_MUTABLE_FORMAT_BIT_KHR = 0x00000008ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_CUBE_COMPATIBLE_BIT_KHR = 0x00000010ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR = 0x00400000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_2D_ARRAY_COMPATIBLE_BIT_KHR = 0x00000020ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR = 0x00000040ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR = 0x00000080ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_EXTENDED_USAGE_BIT_KHR = 0x00000100ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_DISJOINT_BIT_KHR = 0x00000200ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_ALIAS_BIT_KHR = 0x00000400ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_PROTECTED_BIT_KHR = 0x00000800ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT = 0x00001000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_CORNER_SAMPLED_BIT_NV = 0x00002000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_SUBSAMPLED_BIT_EXT = 0x00004000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT = 0x00008000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT = 0x00010000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_2D_VIEW_COMPATIBLE_BIT_EXT = 0x00020000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT = 0x00040000ULL; +static const VkImageCreateFlagBits2KHR VK_IMAGE_CREATE_2_VIDEO_PROFILE_INDEPENDENT_BIT_KHR = 0x00100000ULL; + +typedef struct VkFormatProperties4KHR { + VkStructureType sType; + void* pNext; + VkFormatFeatureFlags4KHR linearTilingFeatures; + VkFormatFeatureFlags4KHR optimalTilingFeatures; + VkFormatFeatureFlags4KHR bufferFeatures; +} VkFormatProperties4KHR; + +typedef struct VkImageUsageFlags2CreateInfoKHR { + VkStructureType sType; + void* pNext; + VkImageUsageFlags2KHR usage; +} VkImageUsageFlags2CreateInfoKHR; + +typedef struct VkImageCreateFlags2CreateInfoKHR { + VkStructureType sType; + void* pNext; + VkImageCreateFlags2KHR flags; +} VkImageCreateFlags2CreateInfoKHR; + +typedef struct VkImageViewUsage2CreateInfoKHR { + VkStructureType sType; + void* pNext; + VkImageUsageFlags2KHR usage; +} VkImageViewUsage2CreateInfoKHR; + +typedef struct VkPhysicalDeviceExtendedFlagsFeaturesKHR { + VkStructureType sType; + void* pNext; + VkBool32 extendedFlags; +} VkPhysicalDeviceExtendedFlagsFeaturesKHR; + +typedef struct VkImageStencilUsage2CreateInfoKHR { + VkStructureType sType; + void* pNext; + VkImageUsageFlags2KHR stencilUsage; +} VkImageStencilUsage2CreateInfoKHR; + +typedef struct VkSharedPresentSurfaceCapabilities2KHR { + VkStructureType sType; + void* pNext; + VkImageUsageFlags2KHR sharedPresentSupportedUsageFlags; +} VkSharedPresentSurfaceCapabilities2KHR; + + + // VK_EXT_debug_report is a preprocessor guard. Do not pass it to API calls. #define VK_EXT_debug_report 1 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT) @@ -16429,7 +16613,7 @@ typedef VkResult (VKAPI_PTR *PFN_vkCmdEndGpaSessionAMD)(VkCommandBuffer commandB typedef VkResult (VKAPI_PTR *PFN_vkCmdBeginGpaSampleAMD)(VkCommandBuffer commandBuffer, VkGpaSessionAMD gpaSession, const VkGpaSampleBeginInfoAMD* pGpaSampleBeginInfo, uint32_t* pSampleID); typedef void (VKAPI_PTR *PFN_vkCmdEndGpaSampleAMD)(VkCommandBuffer commandBuffer, VkGpaSessionAMD gpaSession, uint32_t sampleID); typedef VkResult (VKAPI_PTR *PFN_vkGetGpaSessionStatusAMD)(VkDevice device, VkGpaSessionAMD gpaSession); -typedef VkResult (VKAPI_PTR *PFN_vkGetGpaSessionResultsAMD)(VkDevice device, VkGpaSessionAMD gpaSession, uint32_t sampleID, size_t* pSizeInBytes, void* pData); +typedef VkResult (VKAPI_PTR *PFN_vkGetGpaSessionResultsAMD)(VkDevice device, VkGpaSessionAMD gpaSession, uint32_t sampleID, size_t* pSizeInBytes, void* pData); typedef VkResult (VKAPI_PTR *PFN_vkResetGpaSessionAMD)(VkDevice device, VkGpaSessionAMD gpaSession); typedef void (VKAPI_PTR *PFN_vkCmdCopyGpaSessionResultsAMD)(VkCommandBuffer commandBuffer, VkGpaSessionAMD gpaSession); @@ -20154,7 +20338,7 @@ VKAPI_ATTR void VKAPI_CALL vkCmdEndPerTileExecutionQCOM( // VK_NV_low_latency is a preprocessor guard. Do not pass it to API calls. #define VK_NV_low_latency 1 -#define VK_NV_LOW_LATENCY_SPEC_VERSION 1 +#define VK_NV_LOW_LATENCY_SPEC_VERSION 2 #define VK_NV_LOW_LATENCY_EXTENSION_NAME "VK_NV_low_latency" typedef struct VkQueryLowLatencySupportNV { VkStructureType sType; @@ -20162,6 +20346,60 @@ typedef struct VkQueryLowLatencySupportNV { void* pQueriedLowLatencyData; } VkQueryLowLatencySupportNV; +typedef void (VKAPI_PTR *PFN_vkSetLatencySleepModeLegacyNV)(VkDevice device, VkBool32 lowLatencyMode, VkBool32 lowLatencyBoost, uint32_t minimumIntervalUs); +typedef void (VKAPI_PTR *PFN_vkLatencySleepLegacyNV)(VkDevice device, VkSemaphore signalSemaphore, uint64_t value); +typedef void (VKAPI_PTR *PFN_vkSetLatencyMarkerLegacyNV)(VkDevice device, uint64_t frameID, uint32_t marker); +typedef void (VKAPI_PTR *PFN_vkGetLatencyTimingsLegacyNV)(VkDevice device, void* pTimings); +typedef void (VKAPI_PTR *PFN_vkQueueNotifyOutOfBandLegacyNV)(VkQueue queue, uint32_t queueType); +typedef void (VKAPI_PTR *PFN_vkGetSleepStatusLegacyNV)(VkDevice device, VkBool32* pLowLatencyMode); +typedef void (VKAPI_PTR *PFN_vkShutdownLatencyDeviceLegacyNV)(VkDevice device); + +#ifndef VK_NO_PROTOTYPES +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkSetLatencySleepModeLegacyNV( + VkDevice device, + VkBool32 lowLatencyMode, + VkBool32 lowLatencyBoost, + uint32_t minimumIntervalUs); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkLatencySleepLegacyNV( + VkDevice device, + VkSemaphore signalSemaphore, + uint64_t value); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkSetLatencyMarkerLegacyNV( + VkDevice device, + uint64_t frameID, + uint32_t marker); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkGetLatencyTimingsLegacyNV( + VkDevice device, + void* pTimings); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkQueueNotifyOutOfBandLegacyNV( + VkQueue queue, + uint32_t queueType); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkGetSleepStatusLegacyNV( + VkDevice device, + VkBool32* pLowLatencyMode); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR void VKAPI_CALL vkShutdownLatencyDeviceLegacyNV( + VkDevice device); +#endif +#endif // VK_EXT_descriptor_buffer is a preprocessor guard. Do not pass it to API calls. @@ -21530,6 +21768,7 @@ typedef struct VkPhysicalDeviceOpacityMicromapFeaturesEXT { void* pNext; VkBool32 micromap; VkBool32 micromapCaptureReplay; + // micromapHostCommands is legacy, but no reason was given in the API XML VkBool32 micromapHostCommands; } VkPhysicalDeviceOpacityMicromapFeaturesEXT; @@ -22738,6 +22977,11 @@ VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkTensorViewARM) typedef enum VkTensorTilingARM { VK_TENSOR_TILING_OPTIMAL_ARM = 0, VK_TENSOR_TILING_LINEAR_ARM = 1, + VK_TENSOR_TILING_BRICK_16_WIDE_ARM = 1000565000, + VK_TENSOR_TILING_BRICK_8_WIDE_ARM = 1000565001, + VK_TENSOR_TILING_BRICK_4_WIDE_ARM = 1000565002, + VK_TENSOR_TILING_BLOCK_U_INTERLEAVED_ARM = 1000565003, + VK_TENSOR_TILING_BLOCK_U_INTERLEAVED_64K_ARM = 1000565004, VK_TENSOR_TILING_MAX_ENUM_ARM = 0x7FFFFFFF } VkTensorTilingARM; typedef VkFlags64 VkTensorCreateFlagsARM; @@ -24667,6 +24911,29 @@ typedef struct VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT { +// VK_ARM_tensor_controls is a preprocessor guard. Do not pass it to API calls. +#define VK_ARM_tensor_controls 1 +#define VK_MAX_TENSOR_CREATE_INFO_ROLLING_BACKING_WRAP_COUNT_ARM 4U +#define VK_ARM_TENSOR_CONTROLS_SPEC_VERSION 1 +#define VK_ARM_TENSOR_CONTROLS_EXTENSION_NAME "VK_ARM_tensor_controls" +typedef struct VkTensorRollingBackingCreateInfoARM { + VkStructureType sType; + const void* pNext; + uint32_t wraps[VK_MAX_TENSOR_CREATE_INFO_ROLLING_BACKING_WRAP_COUNT_ARM]; +} VkTensorRollingBackingCreateInfoARM; + +typedef struct VkTensorExplicitTilingFormatPropertiesARM { + VkStructureType sType; + void* pNext; + VkFormatFeatureFlags2 brick16TilingTensorFeatures; + VkFormatFeatureFlags2 brick8TilingTensorFeatures; + VkFormatFeatureFlags2 brick4TilingTensorFeatures; + VkFormatFeatureFlags2 blockUTilingTensorFeatures; + VkFormatFeatureFlags2 blockU64kTilingTensorFeatures; +} VkTensorExplicitTilingFormatPropertiesARM; + + + // VK_EXT_shader_float8 is a preprocessor guard. Do not pass it to API calls. #define VK_EXT_shader_float8 1 #define VK_EXT_SHADER_FLOAT8_SPEC_VERSION 1 @@ -25530,6 +25797,12 @@ typedef struct VkPhysicalDevicePipelineOpacityMicromapFeaturesARM { +// VK_IMG_filter_linear_2d is a preprocessor guard. Do not pass it to API calls. +#define VK_IMG_filter_linear_2d 1 +#define VK_IMG_FILTER_LINEAR_2D_SPEC_VERSION 1 +#define VK_IMG_FILTER_LINEAR_2D_EXTENSION_NAME "VK_IMG_filter_linear_2d" + + // VK_ARM_performance_counters_by_region is a preprocessor guard. Do not pass it to API calls. #define VK_ARM_performance_counters_by_region 1 #define VK_ARM_PERFORMANCE_COUNTERS_BY_REGION_SPEC_VERSION 1 @@ -25752,6 +26025,24 @@ typedef struct VkPhysicalDevicePresentMeteringFeaturesNV { +// VK_EXT_multisampled_render_to_swapchain is a preprocessor guard. Do not pass it to API calls. +#define VK_EXT_multisampled_render_to_swapchain 1 +#define VK_EXT_MULTISAMPLED_RENDER_TO_SWAPCHAIN_SPEC_VERSION 1 +#define VK_EXT_MULTISAMPLED_RENDER_TO_SWAPCHAIN_EXTENSION_NAME "VK_EXT_multisampled_render_to_swapchain" +typedef struct VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT { + VkStructureType sType; + void* pNext; + VkBool32 multisampledRenderToSwapchain; +} VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + +typedef struct VkSwapchainFlagsSurfaceCapabilitiesEXT { + VkStructureType sType; + void* pNext; + VkSwapchainCreateFlagsKHR swapchainSupportedFlags; +} VkSwapchainFlagsSurfaceCapabilitiesEXT; + + + // VK_EXT_fragment_density_map_offset is a preprocessor guard. Do not pass it to API calls. #define VK_EXT_fragment_density_map_offset 1 #define VK_EXT_FRAGMENT_DENSITY_MAP_OFFSET_SPEC_VERSION 1 @@ -26087,6 +26378,60 @@ VKAPI_ATTR void VKAPI_CALL vkCmdSetComputeOccupancyPriorityNV( #endif +// VK_EXT_cooperative_matrix_maintenance1 is a preprocessor guard. Do not pass it to API calls. +#define VK_EXT_cooperative_matrix_maintenance1 1 +#define VK_EXT_COOPERATIVE_MATRIX_MAINTENANCE_1_SPEC_VERSION 1 +#define VK_EXT_COOPERATIVE_MATRIX_MAINTENANCE_1_EXTENSION_NAME "VK_EXT_cooperative_matrix_maintenance1" + +typedef enum VkCooperativeMatrixFlagBitsEXT { + VK_COOPERATIVE_MATRIX_SATURATING_ACCUMULATION_BIT_EXT = 0x00000001, + VK_COOPERATIVE_MATRIX_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF +} VkCooperativeMatrixFlagBitsEXT; +typedef VkFlags VkCooperativeMatrixFlagsEXT; +typedef struct VkCooperativeMatrixProperties2EXT { + VkStructureType sType; + void* pNext; + uint32_t MGranularity; + uint32_t NGranularity; + uint32_t KGranularity; + VkComponentTypeKHR AType; + VkComponentTypeKHR BType; + VkComponentTypeKHR CType; + VkComponentTypeKHR ResultType; +} VkCooperativeMatrixProperties2EXT; + +typedef struct VkPhysicalDeviceCooperativeMatrixInfo2EXT { + VkStructureType sType; + const void* pNext; + VkScopeKHR scope; + uint32_t invocations; + uint32_t subgroupSize; + VkCooperativeMatrixFlagsEXT flags; +} VkPhysicalDeviceCooperativeMatrixInfo2EXT; + +typedef struct VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT { + VkStructureType sType; + void* pNext; + VkBool32 cooperativeMatrixProperties2; + VkBool32 cooperativeMatrixReductions; + VkBool32 cooperativeMatrixConversions; + VkBool32 cooperativeMatrixPerElementOperations; + VkBool32 cooperativeMatrixGetCoordinate; +} VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + +typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCooperativeMatrixProperties2EXT)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceCooperativeMatrixInfo2EXT* pCooperativeMatrixInfo, uint32_t* pPropertyCount, VkCooperativeMatrixProperties2EXT* pProperties); + +#ifndef VK_NO_PROTOTYPES +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( + VkPhysicalDevice physicalDevice, + const VkPhysicalDeviceCooperativeMatrixInfo2EXT* pCooperativeMatrixInfo, + uint32_t* pPropertyCount, + VkCooperativeMatrixProperties2EXT* pProperties); +#endif +#endif + + // VK_EXT_shader_subgroup_partitioned is a preprocessor guard. Do not pass it to API calls. #define VK_EXT_shader_subgroup_partitioned 1 #define VK_EXT_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION 1 @@ -26099,6 +26444,21 @@ typedef struct VkPhysicalDeviceShaderSubgroupPartitionedFeaturesEXT { +// VK_EXT_shader_ocp_microscaling_types is a preprocessor guard. Do not pass it to API calls. +#define VK_EXT_shader_ocp_microscaling_types 1 +#define VK_EXT_SHADER_OCP_MICROSCALING_TYPES_SPEC_VERSION 1 +#define VK_EXT_SHADER_OCP_MICROSCALING_TYPES_EXTENSION_NAME "VK_EXT_shader_ocp_microscaling_types" +typedef struct VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT { + VkStructureType sType; + void* pNext; + VkBool32 shaderFloat4; + VkBool32 shaderFloat6; + VkBool32 shaderFloat8UnsignedE8M0; + VkBool32 shaderMXInt8; +} VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT; + + + // VK_VALVE_shader_mixed_float_dot_product is a preprocessor guard. Do not pass it to API calls. #define VK_VALVE_shader_mixed_float_dot_product 1 #define VK_VALVE_SHADER_MIXED_FLOAT_DOT_PRODUCT_SPEC_VERSION 1 @@ -26191,6 +26551,43 @@ VKAPI_ATTR void VKAPI_CALL vkCmdSetPrimitiveRestartIndexEXT( #endif +// VK_EXT_image_tiling_control is a preprocessor guard. Do not pass it to API calls. +#define VK_EXT_image_tiling_control 1 +#define VK_EXT_IMAGE_TILING_CONTROL_SPEC_VERSION 1 +#define VK_EXT_IMAGE_TILING_CONTROL_EXTENSION_NAME "VK_EXT_image_tiling_control" + +typedef enum VkImageTilingControlEXT { + VK_IMAGE_TILING_CONTROL_DEFAULT_EXT = 0, + VK_IMAGE_TILING_CONTROL_MIN_SIZE_EXT = 1, + VK_IMAGE_TILING_CONTROL_MAX_PERFORMANCE_EXT = 2, + VK_IMAGE_TILING_CONTROL_MAX_ENUM_EXT = 0x7FFFFFFF +} VkImageTilingControlEXT; +typedef struct VkPhysicalDeviceImageTilingControlFeaturesEXT { + VkStructureType sType; + void* pNext; + VkBool32 imageTilingControl; +} VkPhysicalDeviceImageTilingControlFeaturesEXT; + +typedef struct VkImageTilingControlCreateInfoEXT { + VkStructureType sType; + const void* pNext; + VkImageTilingControlEXT tilingControl; +} VkImageTilingControlCreateInfoEXT; + + + +// VK_NV_cooperative_matrix_decode_vector is a preprocessor guard. Do not pass it to API calls. +#define VK_NV_cooperative_matrix_decode_vector 1 +#define VK_NV_COOPERATIVE_MATRIX_DECODE_VECTOR_SPEC_VERSION 1 +#define VK_NV_COOPERATIVE_MATRIX_DECODE_VECTOR_EXTENSION_NAME "VK_NV_cooperative_matrix_decode_vector" +typedef struct VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV { + VkStructureType sType; + void* pNext; + VkBool32 cooperativeMatrixDecodeVector; +} VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + + + // VK_KHR_acceleration_structure is a preprocessor guard. Do not pass it to API calls. #define VK_KHR_acceleration_structure 1 #define VK_KHR_ACCELERATION_STRUCTURE_SPEC_VERSION 13 @@ -26286,6 +26683,7 @@ typedef struct VkPhysicalDeviceAccelerationStructureFeaturesKHR { VkBool32 accelerationStructure; VkBool32 accelerationStructureCaptureReplay; VkBool32 accelerationStructureIndirectBuild; + // accelerationStructureHostCommands is legacy, but no reason was given in the API XML VkBool32 accelerationStructureHostCommands; VkBool32 descriptorBindingAccelerationStructureUpdateAfterBind; } VkPhysicalDeviceAccelerationStructureFeaturesKHR; diff --git a/third_party/vulkan/vulkan_directfb.h b/third_party/vulkan/vulkan_directfb.h index b96e957..527331a 100644 --- a/third_party/vulkan/vulkan_directfb.h +++ b/third_party/vulkan/vulkan_directfb.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_enums.hpp b/third_party/vulkan/vulkan_enums.hpp index 99f6da0..f960853 100644 --- a/third_party/vulkan/vulkan_enums.hpp +++ b/third_party/vulkan/vulkan_enums.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -1709,6 +1708,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ePhysicalDeviceLayeredApiVulkanPropertiesKHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_API_VULKAN_PROPERTIES_KHR, ePhysicalDeviceShaderAtomicFloat16VectorFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV, ePhysicalDeviceShaderReplicatedCompositesFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT, + eTensorExplicitTilingFormatPropertiesARM = VK_STRUCTURE_TYPE_TENSOR_EXPLICIT_TILING_FORMAT_PROPERTIES_ARM, + eTensorRollingBackingCreateInfoARM = VK_STRUCTURE_TYPE_TENSOR_ROLLING_BACKING_CREATE_INFO_ARM, ePhysicalDeviceShaderFloat8FeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT8_FEATURES_EXT, ePhysicalDeviceRayTracingValidationFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV, ePhysicalDeviceClusterAccelerationStructureFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_ACCELERATION_STRUCTURE_FEATURES_NV, @@ -1766,12 +1767,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE #if defined( VK_USE_PLATFORM_OHOS ) eSurfaceCreateInfoOHOS = VK_STRUCTURE_TYPE_SURFACE_CREATE_INFO_OHOS, #endif /*VK_USE_PLATFORM_OHOS*/ - ePhysicalDeviceHdrVividFeaturesHUAWEI = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI, - eHdrVividDynamicMetadataHUAWEI = VK_STRUCTURE_TYPE_HDR_VIVID_DYNAMIC_METADATA_HUAWEI, - ePhysicalDeviceCooperativeMatrix2FeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV, - eCooperativeMatrixFlexibleDimensionsPropertiesNV = VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_FLEXIBLE_DIMENSIONS_PROPERTIES_NV, - ePhysicalDeviceCooperativeMatrix2PropertiesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_PROPERTIES_NV, - ePhysicalDevicePipelineOpacityMicromapFeaturesARM = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_OPACITY_MICROMAP_FEATURES_ARM, + ePhysicalDeviceHdrVividFeaturesHUAWEI = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI, + eHdrVividDynamicMetadataHUAWEI = VK_STRUCTURE_TYPE_HDR_VIVID_DYNAMIC_METADATA_HUAWEI, + ePhysicalDeviceCooperativeMatrix2FeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV, + eCooperativeMatrixFlexibleDimensionsPropertiesNV = VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_FLEXIBLE_DIMENSIONS_PROPERTIES_NV, + ePhysicalDeviceCooperativeMatrix2PropertiesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_PROPERTIES_NV, + ePhysicalDevicePipelineOpacityMicromapFeaturesARM = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_OPACITY_MICROMAP_FEATURES_ARM, + ePhysicalDeviceVideoEncodeFeedback2FeaturesKHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_FEEDBACK_2_FEATURES_KHR, + eVideoEncodeFeedback2CapabilitiesKHR = VK_STRUCTURE_TYPE_VIDEO_ENCODE_FEEDBACK_2_CAPABILITIES_KHR, + eQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR = VK_STRUCTURE_TYPE_QUERY_POOL_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_CREATE_INFO_KHR, #if defined( VK_USE_PLATFORM_METAL_EXT ) eImportMemoryMetalHandleInfoEXT = VK_STRUCTURE_TYPE_IMPORT_MEMORY_METAL_HANDLE_INFO_EXT, eMemoryMetalHandlePropertiesEXT = VK_STRUCTURE_TYPE_MEMORY_METAL_HANDLE_PROPERTIES_EXT, @@ -1799,6 +1803,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ePhysicalDeviceRobustness2PropertiesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT, eSetPresentConfigNV = VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV, ePhysicalDevicePresentMeteringFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV, + ePhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SWAPCHAIN_FEATURES_EXT, + eSwapchainFlagsSurfaceCapabilitiesEXT = VK_STRUCTURE_TYPE_SWAPCHAIN_FLAGS_SURFACE_CAPABILITIES_EXT, ePhysicalDeviceFragmentDensityMapOffsetFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_FEATURES_EXT, ePhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_FEATURES_QCOM, ePhysicalDeviceFragmentDensityMapOffsetPropertiesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_PROPERTIES_EXT, @@ -1841,17 +1847,31 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ePhysicalDeviceComputeOccupancyPriorityFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_OCCUPANCY_PRIORITY_FEATURES_NV, ePhysicalDeviceMaintenance11FeaturesKHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_11_FEATURES_KHR, eQueueFamilyOptimalImageTransferGranularityPropertiesKHR = VK_STRUCTURE_TYPE_QUEUE_FAMILY_OPTIMAL_IMAGE_TRANSFER_GRANULARITY_PROPERTIES_KHR, + ePhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_MAINTENANCE_1_FEATURES_EXT, + ePhysicalDeviceCooperativeMatrixInfo2EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_INFO_2_EXT, + eCooperativeMatrixProperties2EXT = VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_PROPERTIES_2_EXT, ePhysicalDeviceShaderSubgroupPartitionedFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_PARTITIONED_FEATURES_EXT, #if defined( VK_USE_PLATFORM_UBM_SEC ) eUbmSurfaceCreateInfoSEC = VK_STRUCTURE_TYPE_UBM_SURFACE_CREATE_INFO_SEC, #endif /*VK_USE_PLATFORM_UBM_SEC*/ + eFormatProperties4KHR = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_4_KHR, + eImageCreateFlags2CreateInfoKHR = VK_STRUCTURE_TYPE_IMAGE_CREATE_FLAGS_2_CREATE_INFO_KHR, + eImageUsageFlags2CreateInfoKHR = VK_STRUCTURE_TYPE_IMAGE_USAGE_FLAGS_2_CREATE_INFO_KHR, + eImageViewUsage2CreateInfoKHR = VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_2_CREATE_INFO_KHR, + ePhysicalDeviceExtendedFlagsFeaturesKHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_FLAGS_FEATURES_KHR, + eImageStencilUsage2CreateInfoKHR = VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_2_CREATE_INFO_KHR, + eSharedPresentSurfaceCapabilities2KHR = VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR, + ePhysicalDeviceShaderOcpMicroscalingTypesFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_OCP_MICROSCALING_TYPES_FEATURES_EXT, ePhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_MIXED_FLOAT_DOT_PRODUCT_FEATURES_VALVE, ePhysicalDeviceThrottleHintFeaturesSEC = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_THROTTLE_HINT_FEATURES_SEC, eThrottleHintSubmitInfoSEC = VK_STRUCTURE_TYPE_THROTTLE_HINT_SUBMIT_INFO_SEC, eDataGraphPipelineNeuralStatisticsCreateInfoARM = VK_STRUCTURE_TYPE_DATA_GRAPH_PIPELINE_NEURAL_STATISTICS_CREATE_INFO_ARM, eDataGraphPipelineSessionNeuralStatisticsCreateInfoARM = VK_STRUCTURE_TYPE_DATA_GRAPH_PIPELINE_SESSION_NEURAL_STATISTICS_CREATE_INFO_ARM, ePhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DATA_GRAPH_NEURAL_ACCELERATOR_STATISTICS_FEATURES_ARM, - ePhysicalDevicePrimitiveRestartIndexFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_RESTART_INDEX_FEATURES_EXT + ePhysicalDevicePrimitiveRestartIndexFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_RESTART_INDEX_FEATURES_EXT, + ePhysicalDeviceImageTilingControlFeaturesEXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_TILING_CONTROL_FEATURES_EXT, + eImageTilingControlCreateInfoEXT = VK_STRUCTURE_TYPE_IMAGE_TILING_CONTROL_CREATE_INFO_EXT, + ePhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_DECODE_VECTOR_FEATURES_NV }; // wrapper class for enum VkObjectType, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkObjectType.html @@ -1936,7 +1956,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE eCodeplay = VK_VENDOR_ID_CODEPLAY, eMESA = VK_VENDOR_ID_MESA, ePocl = VK_VENDOR_ID_POCL, - eMobileye = VK_VENDOR_ID_MOBILEYE + eMobileye = VK_VENDOR_ID_MOBILEYE, + eApe = VK_VENDOR_ID_APE }; // wrapper class for enum VkFormat, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkFormat.html @@ -4887,7 +4908,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE eImaginationOpenSourceMESA = VK_DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA, eMesaHoneykrisp = VK_DRIVER_ID_MESA_HONEYKRISP, eVulkanScEmulationOnVulkan = VK_DRIVER_ID_VULKAN_SC_EMULATION_ON_VULKAN, - eMesaKosmickrisp = VK_DRIVER_ID_MESA_KOSMICKRISP + eMesaKosmickrisp = VK_DRIVER_ID_MESA_KOSMICKRISP, + eMesaGfxstream = VK_DRIVER_ID_MESA_GFXSTREAM, + eApeSoft = VK_DRIVER_ID_APE_SOFT, + eReserved31 = VK_DRIVER_ID_RESERVED_31 }; using DriverIdKHR = DriverId; @@ -5402,6 +5426,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE eCopyImageIndirectDstKHR = VK_FORMAT_FEATURE_2_COPY_IMAGE_INDIRECT_DST_BIT_KHR, eVideoEncodeQuantizationDeltaMapKHR = VK_FORMAT_FEATURE_2_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR, eVideoEncodeEmphasisMapKHR = VK_FORMAT_FEATURE_2_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR, + eSampledImageFilterLinear2DIMG = VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_2D_BIT_IMG, eDepthCopyOnComputeQueueKHR = VK_FORMAT_FEATURE_2_DEPTH_COPY_ON_COMPUTE_QUEUE_BIT_KHR, eDepthCopyOnTransferQueueKHR = VK_FORMAT_FEATURE_2_DEPTH_COPY_ON_TRANSFER_QUEUE_BIT_KHR, eStencilCopyOnComputeQueueKHR = VK_FORMAT_FEATURE_2_STENCIL_COPY_ON_COMPUTE_QUEUE_BIT_KHR, @@ -5443,10 +5468,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE FormatFeatureFlagBits2::eTensorImageAliasingARM | FormatFeatureFlagBits2::eOpticalFlowImageNV | FormatFeatureFlagBits2::eOpticalFlowVectorNV | FormatFeatureFlagBits2::eOpticalFlowCostNV | FormatFeatureFlagBits2::eTensorDataGraphARM | FormatFeatureFlagBits2::eCopyImageIndirectDstKHR | FormatFeatureFlagBits2::eVideoEncodeQuantizationDeltaMapKHR | FormatFeatureFlagBits2::eVideoEncodeEmphasisMapKHR | - FormatFeatureFlagBits2::eDepthCopyOnComputeQueueKHR | FormatFeatureFlagBits2::eDepthCopyOnTransferQueueKHR | - FormatFeatureFlagBits2::eStencilCopyOnComputeQueueKHR | FormatFeatureFlagBits2::eStencilCopyOnTransferQueueKHR | - FormatFeatureFlagBits2::eDataGraphOpticalFlowImageARM | FormatFeatureFlagBits2::eDataGraphOpticalFlowVectorARM | - FormatFeatureFlagBits2::eDataGraphOpticalFlowCostARM; + FormatFeatureFlagBits2::eSampledImageFilterLinear2DIMG | FormatFeatureFlagBits2::eDepthCopyOnComputeQueueKHR | + FormatFeatureFlagBits2::eDepthCopyOnTransferQueueKHR | FormatFeatureFlagBits2::eStencilCopyOnComputeQueueKHR | + FormatFeatureFlagBits2::eStencilCopyOnTransferQueueKHR | FormatFeatureFlagBits2::eDataGraphOpticalFlowImageARM | + FormatFeatureFlagBits2::eDataGraphOpticalFlowVectorARM | FormatFeatureFlagBits2::eDataGraphOpticalFlowCostARM; }; // wrapper class for enum VkPipelineCreationFeedbackFlagBits, see @@ -5904,14 +5929,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE // wrapper class for enum VkSwapchainCreateFlagBitsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSwapchainCreateFlagBitsKHR.html enum class SwapchainCreateFlagBitsKHR : VkSwapchainCreateFlagsKHR { - eSplitInstanceBindRegions = VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR, - eProtected = VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR, - eMutableFormat = VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR, - ePresentTimingEXT = VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT, - ePresentId2 = VK_SWAPCHAIN_CREATE_PRESENT_ID_2_BIT_KHR, - ePresentWait2 = VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHR, - eDeferredMemoryAllocation = VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR, - eDeferredMemoryAllocationEXT = VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT + eSplitInstanceBindRegions = VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR, + eProtected = VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR, + eMutableFormat = VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR, + ePresentTimingEXT = VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT, + ePresentId2 = VK_SWAPCHAIN_CREATE_PRESENT_ID_2_BIT_KHR, + ePresentWait2 = VK_SWAPCHAIN_CREATE_PRESENT_WAIT_2_BIT_KHR, + eDeferredMemoryAllocation = VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR, + eDeferredMemoryAllocationEXT = VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT, + eMultisampledRenderToSingleSampledEXT = VK_SWAPCHAIN_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT }; // wrapper using for bitmask VkSwapchainCreateFlagsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSwapchainCreateFlagsKHR.html @@ -5925,7 +5951,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE static VULKAN_HPP_CONST_OR_CONSTEXPR SwapchainCreateFlagsKHR allFlags = SwapchainCreateFlagBitsKHR::eSplitInstanceBindRegions | SwapchainCreateFlagBitsKHR::eProtected | SwapchainCreateFlagBitsKHR::eMutableFormat | SwapchainCreateFlagBitsKHR::ePresentTimingEXT | SwapchainCreateFlagBitsKHR::ePresentId2 | SwapchainCreateFlagBitsKHR::ePresentWait2 | - SwapchainCreateFlagBitsKHR::eDeferredMemoryAllocation; + SwapchainCreateFlagBitsKHR::eDeferredMemoryAllocation | SwapchainCreateFlagBitsKHR::eMultisampledRenderToSingleSampledEXT; }; // wrapper class for enum VkDeviceGroupPresentModeFlagBitsKHR, see @@ -8177,7 +8203,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { eBitstreamBufferOffset = VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHR, eBitstreamBytesWritten = VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHR, - eBitstreamHasOverrides = VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_HAS_OVERRIDES_BIT_KHR + eBitstreamHasOverrides = VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_HAS_OVERRIDES_BIT_KHR, + eAverageQuantization = VK_VIDEO_ENCODE_FEEDBACK_AVERAGE_QUANTIZATION_BIT_KHR, + eMinQuantization = VK_VIDEO_ENCODE_FEEDBACK_MIN_QUANTIZATION_BIT_KHR, + eMaxQuantization = VK_VIDEO_ENCODE_FEEDBACK_MAX_QUANTIZATION_BIT_KHR, + eIntraPixels = VK_VIDEO_ENCODE_FEEDBACK_INTRA_PIXELS_BIT_KHR, + eInterPixels = VK_VIDEO_ENCODE_FEEDBACK_INTER_PIXELS_BIT_KHR, + eSkippedPixels = VK_VIDEO_ENCODE_FEEDBACK_SKIPPED_PIXELS_BIT_KHR, + ePicturePartitionCount = VK_VIDEO_ENCODE_FEEDBACK_PICTURE_PARTITION_COUNT_BIT_KHR }; // wrapper using for bitmask VkVideoEncodeFeedbackFlagsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoEncodeFeedbackFlagsKHR.html @@ -8188,9 +8221,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { using WrappedType = VkVideoEncodeFeedbackFlagBitsKHR; static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; - static VULKAN_HPP_CONST_OR_CONSTEXPR VideoEncodeFeedbackFlagsKHR allFlags = VideoEncodeFeedbackFlagBitsKHR::eBitstreamBufferOffset | - VideoEncodeFeedbackFlagBitsKHR::eBitstreamBytesWritten | - VideoEncodeFeedbackFlagBitsKHR::eBitstreamHasOverrides; + static VULKAN_HPP_CONST_OR_CONSTEXPR VideoEncodeFeedbackFlagsKHR allFlags = + VideoEncodeFeedbackFlagBitsKHR::eBitstreamBufferOffset | VideoEncodeFeedbackFlagBitsKHR::eBitstreamBytesWritten | + VideoEncodeFeedbackFlagBitsKHR::eBitstreamHasOverrides | VideoEncodeFeedbackFlagBitsKHR::eAverageQuantization | + VideoEncodeFeedbackFlagBitsKHR::eMinQuantization | VideoEncodeFeedbackFlagBitsKHR::eMaxQuantization | VideoEncodeFeedbackFlagBitsKHR::eIntraPixels | + VideoEncodeFeedbackFlagBitsKHR::eInterPixels | VideoEncodeFeedbackFlagBitsKHR::eSkippedPixels | VideoEncodeFeedbackFlagBitsKHR::ePicturePartitionCount; }; // wrapper class for enum VkVideoEncodeUsageFlagBitsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoEncodeUsageFlagBitsKHR.html @@ -9002,8 +9037,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE // wrapper class for enum VkTensorTilingARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorTilingARM.html enum class TensorTilingARM { - eOptimal = VK_TENSOR_TILING_OPTIMAL_ARM, - eLinear = VK_TENSOR_TILING_LINEAR_ARM + eOptimal = VK_TENSOR_TILING_OPTIMAL_ARM, + eLinear = VK_TENSOR_TILING_LINEAR_ARM, + eBrick16Wide = VK_TENSOR_TILING_BRICK_16_WIDE_ARM, + eBrick8Wide = VK_TENSOR_TILING_BRICK_8_WIDE_ARM, + eBrick4Wide = VK_TENSOR_TILING_BRICK_4_WIDE_ARM, + eBlockUInterleaved = VK_TENSOR_TILING_BLOCK_U_INTERLEAVED_ARM, + eBlockUInterleaved64K = VK_TENSOR_TILING_BLOCK_U_INTERLEAVED_64K_ARM }; //=== VK_NV_optical_flow === @@ -9263,37 +9303,42 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE // wrapper class for enum VkComponentTypeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkComponentTypeKHR.html enum class ComponentTypeKHR { - eFloat16 = VK_COMPONENT_TYPE_FLOAT16_KHR, - eFloat16NV = VK_COMPONENT_TYPE_FLOAT16_NV, - eFloat32 = VK_COMPONENT_TYPE_FLOAT32_KHR, - eFloat32NV = VK_COMPONENT_TYPE_FLOAT32_NV, - eFloat64 = VK_COMPONENT_TYPE_FLOAT64_KHR, - eFloat64NV = VK_COMPONENT_TYPE_FLOAT64_NV, - eSint8 = VK_COMPONENT_TYPE_SINT8_KHR, - eSint8NV = VK_COMPONENT_TYPE_SINT8_NV, - eSint16 = VK_COMPONENT_TYPE_SINT16_KHR, - eSint16NV = VK_COMPONENT_TYPE_SINT16_NV, - eSint32 = VK_COMPONENT_TYPE_SINT32_KHR, - eSint32NV = VK_COMPONENT_TYPE_SINT32_NV, - eSint64 = VK_COMPONENT_TYPE_SINT64_KHR, - eSint64NV = VK_COMPONENT_TYPE_SINT64_NV, - eUint8 = VK_COMPONENT_TYPE_UINT8_KHR, - eUint8NV = VK_COMPONENT_TYPE_UINT8_NV, - eUint16 = VK_COMPONENT_TYPE_UINT16_KHR, - eUint16NV = VK_COMPONENT_TYPE_UINT16_NV, - eUint32 = VK_COMPONENT_TYPE_UINT32_KHR, - eUint32NV = VK_COMPONENT_TYPE_UINT32_NV, - eUint64 = VK_COMPONENT_TYPE_UINT64_KHR, - eUint64NV = VK_COMPONENT_TYPE_UINT64_NV, - eBfloat16 = VK_COMPONENT_TYPE_BFLOAT16_KHR, - eSint8PackedNV = VK_COMPONENT_TYPE_SINT8_PACKED_NV, - eUint8PackedNV = VK_COMPONENT_TYPE_UINT8_PACKED_NV, - eFloat8E4M3EXT = VK_COMPONENT_TYPE_FLOAT8_E4M3_EXT, - eFloatE4M3 = VK_COMPONENT_TYPE_FLOAT_E4M3_NV, - eFloatE4M3NV = VK_COMPONENT_TYPE_FLOAT_E4M3_NV, - eFloat8E5M2EXT = VK_COMPONENT_TYPE_FLOAT8_E5M2_EXT, - eFloatE5M2 = VK_COMPONENT_TYPE_FLOAT_E5M2_NV, - eFloatE5M2NV = VK_COMPONENT_TYPE_FLOAT_E5M2_NV + eFloat16 = VK_COMPONENT_TYPE_FLOAT16_KHR, + eFloat16NV = VK_COMPONENT_TYPE_FLOAT16_NV, + eFloat32 = VK_COMPONENT_TYPE_FLOAT32_KHR, + eFloat32NV = VK_COMPONENT_TYPE_FLOAT32_NV, + eFloat64 = VK_COMPONENT_TYPE_FLOAT64_KHR, + eFloat64NV = VK_COMPONENT_TYPE_FLOAT64_NV, + eSint8 = VK_COMPONENT_TYPE_SINT8_KHR, + eSint8NV = VK_COMPONENT_TYPE_SINT8_NV, + eSint16 = VK_COMPONENT_TYPE_SINT16_KHR, + eSint16NV = VK_COMPONENT_TYPE_SINT16_NV, + eSint32 = VK_COMPONENT_TYPE_SINT32_KHR, + eSint32NV = VK_COMPONENT_TYPE_SINT32_NV, + eSint64 = VK_COMPONENT_TYPE_SINT64_KHR, + eSint64NV = VK_COMPONENT_TYPE_SINT64_NV, + eUint8 = VK_COMPONENT_TYPE_UINT8_KHR, + eUint8NV = VK_COMPONENT_TYPE_UINT8_NV, + eUint16 = VK_COMPONENT_TYPE_UINT16_KHR, + eUint16NV = VK_COMPONENT_TYPE_UINT16_NV, + eUint32 = VK_COMPONENT_TYPE_UINT32_KHR, + eUint32NV = VK_COMPONENT_TYPE_UINT32_NV, + eUint64 = VK_COMPONENT_TYPE_UINT64_KHR, + eUint64NV = VK_COMPONENT_TYPE_UINT64_NV, + eBfloat16 = VK_COMPONENT_TYPE_BFLOAT16_KHR, + eSint8PackedNV = VK_COMPONENT_TYPE_SINT8_PACKED_NV, + eUint8PackedNV = VK_COMPONENT_TYPE_UINT8_PACKED_NV, + eFloat8E4M3EXT = VK_COMPONENT_TYPE_FLOAT8_E4M3_EXT, + eFloatE4M3 = VK_COMPONENT_TYPE_FLOAT_E4M3_NV, + eFloatE4M3NV = VK_COMPONENT_TYPE_FLOAT_E4M3_NV, + eFloat8E5M2EXT = VK_COMPONENT_TYPE_FLOAT8_E5M2_EXT, + eFloatE5M2 = VK_COMPONENT_TYPE_FLOAT_E5M2_NV, + eFloatE5M2NV = VK_COMPONENT_TYPE_FLOAT_E5M2_NV, + eFloat6E2M3EXT = VK_COMPONENT_TYPE_FLOAT6_E2M3_EXT, + eFloat6E3M2EXT = VK_COMPONENT_TYPE_FLOAT6_E3M2_EXT, + eFloat4E2M1EXT = VK_COMPONENT_TYPE_FLOAT4_E2M1_EXT, + eFloat8UnsignedE8M0EXT = VK_COMPONENT_TYPE_FLOAT8_UNSIGNED_E8M0_EXT, + eMxint8EXT = VK_COMPONENT_TYPE_MXINT8_EXT }; using ComponentTypeNV = ComponentTypeKHR; @@ -10170,6 +10215,31 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; #endif /*VK_USE_PLATFORM_OHOS*/ + //=== VK_KHR_video_encode_feedback2 === + + // wrapper class for enum VkVideoEncodePerPartitionFeedbackFlagBitsKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoEncodePerPartitionFeedbackFlagBitsKHR.html + enum class VideoEncodePerPartitionFeedbackFlagBitsKHR : VkVideoEncodePerPartitionFeedbackFlagsKHR + { + eStatus = VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_STATUS_BIT_KHR, + eBitstreamBufferOffset = VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHR, + eBitstreamBytesWritten = VK_VIDEO_ENCODE_PER_PARTITION_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHR + }; + + // wrapper using for bitmask VkVideoEncodePerPartitionFeedbackFlagsKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoEncodePerPartitionFeedbackFlagsKHR.html + using VideoEncodePerPartitionFeedbackFlagsKHR = Flags; + + template <> + struct FlagTraits + { + using WrappedType = VkVideoEncodePerPartitionFeedbackFlagBitsKHR; + static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; + static VULKAN_HPP_CONST_OR_CONSTEXPR VideoEncodePerPartitionFeedbackFlagsKHR allFlags = VideoEncodePerPartitionFeedbackFlagBitsKHR::eStatus | + VideoEncodePerPartitionFeedbackFlagBitsKHR::eBitstreamBufferOffset | + VideoEncodePerPartitionFeedbackFlagBitsKHR::eBitstreamBytesWritten; + }; + //=== VK_ARM_performance_counters_by_region === enum class PerformanceCounterDescriptionFlagBitsARM : VkPerformanceCounterDescriptionFlagsARM @@ -10420,6 +10490,25 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE eOpticalFlowCost = VK_DATA_GRAPH_PIPELINE_NODE_CONNECTION_TYPE_OPTICAL_FLOW_COST_ARM }; + //=== VK_EXT_cooperative_matrix_maintenance1 === + + // wrapper class for enum VkCooperativeMatrixFlagBitsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCooperativeMatrixFlagBitsEXT.html + enum class CooperativeMatrixFlagBitsEXT : VkCooperativeMatrixFlagsEXT + { + eSaturatingAccumulation = VK_COOPERATIVE_MATRIX_SATURATING_ACCUMULATION_BIT_EXT + }; + + // wrapper using for bitmask VkCooperativeMatrixFlagsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCooperativeMatrixFlagsEXT.html + using CooperativeMatrixFlagsEXT = Flags; + + template <> + struct FlagTraits + { + using WrappedType = VkCooperativeMatrixFlagBitsEXT; + static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; + static VULKAN_HPP_CONST_OR_CONSTEXPR CooperativeMatrixFlagsEXT allFlags = CooperativeMatrixFlagBitsEXT::eSaturatingAccumulation; + }; + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === @@ -10438,6 +10527,116 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; #endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=== VK_KHR_extended_flags === + + enum class FormatFeatureFlagBits4KHR : VkFormatFeatureFlags4KHR + { + }; + + // wrapper using for bitmask VkFormatFeatureFlags4KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkFormatFeatureFlags4KHR.html + using FormatFeatureFlags4KHR = Flags; + + template <> + struct FlagTraits + { + static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; + static VULKAN_HPP_CONST_OR_CONSTEXPR FormatFeatureFlags4KHR allFlags = {}; + }; + + // wrapper class for enum VkImageUsageFlagBits2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageUsageFlagBits2KHR.html + enum class ImageUsageFlagBits2KHR : VkImageUsageFlags2KHR + { + eTransferSrc = VK_IMAGE_USAGE_2_TRANSFER_SRC_BIT_KHR, + eTransferDst = VK_IMAGE_USAGE_2_TRANSFER_DST_BIT_KHR, + eSampled = VK_IMAGE_USAGE_2_SAMPLED_BIT_KHR, + eStorage = VK_IMAGE_USAGE_2_STORAGE_BIT_KHR, + eColorAttachment = VK_IMAGE_USAGE_2_COLOR_ATTACHMENT_BIT_KHR, + eDepthStencilAttachment = VK_IMAGE_USAGE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR, + eTransientAttachment = VK_IMAGE_USAGE_2_TRANSIENT_ATTACHMENT_BIT_KHR, + eInputAttachment = VK_IMAGE_USAGE_2_INPUT_ATTACHMENT_BIT_KHR, + eFragmentShadingRateAttachment = VK_IMAGE_USAGE_2_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR, + eFragmentDensityMapEXT = VK_IMAGE_USAGE_2_FRAGMENT_DENSITY_MAP_BIT_EXT, + eVideoDecodeDst = VK_IMAGE_USAGE_2_VIDEO_DECODE_DST_BIT_KHR, + eVideoDecodeSrc = VK_IMAGE_USAGE_2_VIDEO_DECODE_SRC_BIT_KHR, + eVideoDecodeDpb = VK_IMAGE_USAGE_2_VIDEO_DECODE_DPB_BIT_KHR, + eVideoEncodeDst = VK_IMAGE_USAGE_2_VIDEO_ENCODE_DST_BIT_KHR, + eVideoEncodeSrc = VK_IMAGE_USAGE_2_VIDEO_ENCODE_SRC_BIT_KHR, + eVideoEncodeDpb = VK_IMAGE_USAGE_2_VIDEO_ENCODE_DPB_BIT_KHR, + eInvocationMaskHUAWEI = VK_IMAGE_USAGE_2_INVOCATION_MASK_BIT_HUAWEI, + eAttachmentFeedbackLoopEXT = VK_IMAGE_USAGE_2_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT, + eSampleWeightQCOM = VK_IMAGE_USAGE_2_SAMPLE_WEIGHT_BIT_QCOM, + eSampleBlockMatchQCOM = VK_IMAGE_USAGE_2_SAMPLE_BLOCK_MATCH_BIT_QCOM, + eHostTransfer = VK_IMAGE_USAGE_2_HOST_TRANSFER_BIT_KHR, + eTensorAliasingARM = VK_IMAGE_USAGE_2_TENSOR_ALIASING_BIT_ARM, + eVideoEncodeQuantizationDeltaMap = VK_IMAGE_USAGE_2_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR, + eVideoEncodeEmphasisMap = VK_IMAGE_USAGE_2_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR, + eTileMemoryQCOM = VK_IMAGE_USAGE_2_TILE_MEMORY_BIT_QCOM + }; + + // wrapper using for bitmask VkImageUsageFlags2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageUsageFlags2KHR.html + using ImageUsageFlags2KHR = Flags; + + template <> + struct FlagTraits + { + using WrappedType = VkImageUsageFlagBits2KHR; + static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; + static VULKAN_HPP_CONST_OR_CONSTEXPR ImageUsageFlags2KHR allFlags = + ImageUsageFlagBits2KHR::eTransferSrc | ImageUsageFlagBits2KHR::eTransferDst | ImageUsageFlagBits2KHR::eSampled | ImageUsageFlagBits2KHR::eStorage | + ImageUsageFlagBits2KHR::eColorAttachment | ImageUsageFlagBits2KHR::eDepthStencilAttachment | ImageUsageFlagBits2KHR::eTransientAttachment | + ImageUsageFlagBits2KHR::eInputAttachment | ImageUsageFlagBits2KHR::eFragmentShadingRateAttachment | ImageUsageFlagBits2KHR::eFragmentDensityMapEXT | + ImageUsageFlagBits2KHR::eVideoDecodeDst | ImageUsageFlagBits2KHR::eVideoDecodeSrc | ImageUsageFlagBits2KHR::eVideoDecodeDpb | + ImageUsageFlagBits2KHR::eVideoEncodeDst | ImageUsageFlagBits2KHR::eVideoEncodeSrc | ImageUsageFlagBits2KHR::eVideoEncodeDpb | + ImageUsageFlagBits2KHR::eInvocationMaskHUAWEI | ImageUsageFlagBits2KHR::eAttachmentFeedbackLoopEXT | ImageUsageFlagBits2KHR::eSampleWeightQCOM | + ImageUsageFlagBits2KHR::eSampleBlockMatchQCOM | ImageUsageFlagBits2KHR::eHostTransfer | ImageUsageFlagBits2KHR::eTensorAliasingARM | + ImageUsageFlagBits2KHR::eVideoEncodeQuantizationDeltaMap | ImageUsageFlagBits2KHR::eVideoEncodeEmphasisMap | ImageUsageFlagBits2KHR::eTileMemoryQCOM; + }; + + // wrapper class for enum VkImageCreateFlagBits2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageCreateFlagBits2KHR.html + enum class ImageCreateFlagBits2KHR : VkImageCreateFlags2KHR + { + eSparseBinding = VK_IMAGE_CREATE_2_SPARSE_BINDING_BIT_KHR, + eSparseResidency = VK_IMAGE_CREATE_2_SPARSE_RESIDENCY_BIT_KHR, + eSparseAliased = VK_IMAGE_CREATE_2_SPARSE_ALIASED_BIT_KHR, + eMutableFormat = VK_IMAGE_CREATE_2_MUTABLE_FORMAT_BIT_KHR, + eCubeCompatible = VK_IMAGE_CREATE_2_CUBE_COMPATIBLE_BIT_KHR, + eAliasSingleLayerDescriptor = VK_IMAGE_CREATE_2_ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR, + e2DArrayCompatible = VK_IMAGE_CREATE_2_2D_ARRAY_COMPATIBLE_BIT_KHR, + eSplitInstanceBindRegions = VK_IMAGE_CREATE_2_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR, + eBlockTexelViewCompatible = VK_IMAGE_CREATE_2_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT_KHR, + eExtendedUsage = VK_IMAGE_CREATE_2_EXTENDED_USAGE_BIT_KHR, + eDisjoint = VK_IMAGE_CREATE_2_DISJOINT_BIT_KHR, + eAlias = VK_IMAGE_CREATE_2_ALIAS_BIT_KHR, + eProtected = VK_IMAGE_CREATE_2_PROTECTED_BIT_KHR, + eSampleLocationsCompatibleDepthEXT = VK_IMAGE_CREATE_2_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT, + eCornerSampledNV = VK_IMAGE_CREATE_2_CORNER_SAMPLED_BIT_NV, + eSubsampledEXT = VK_IMAGE_CREATE_2_SUBSAMPLED_BIT_EXT, + eFragmentDensityMapOffsetEXT = VK_IMAGE_CREATE_2_FRAGMENT_DENSITY_MAP_OFFSET_BIT_EXT, + eDescriptorBufferCaptureReplayEXT = VK_IMAGE_CREATE_2_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT, + e2DViewCompatibleEXT = VK_IMAGE_CREATE_2_2D_VIEW_COMPATIBLE_BIT_EXT, + eMultisampledRenderToSingleSampledEXT = VK_IMAGE_CREATE_2_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT, + eVideoProfileIndependent = VK_IMAGE_CREATE_2_VIDEO_PROFILE_INDEPENDENT_BIT_KHR + }; + + // wrapper using for bitmask VkImageCreateFlags2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageCreateFlags2KHR.html + using ImageCreateFlags2KHR = Flags; + + template <> + struct FlagTraits + { + using WrappedType = VkImageCreateFlagBits2KHR; + static VULKAN_HPP_CONST_OR_CONSTEXPR bool isBitmask = true; + static VULKAN_HPP_CONST_OR_CONSTEXPR ImageCreateFlags2KHR allFlags = + ImageCreateFlagBits2KHR::eSparseBinding | ImageCreateFlagBits2KHR::eSparseResidency | ImageCreateFlagBits2KHR::eSparseAliased | + ImageCreateFlagBits2KHR::eMutableFormat | ImageCreateFlagBits2KHR::eCubeCompatible | ImageCreateFlagBits2KHR::eAliasSingleLayerDescriptor | + ImageCreateFlagBits2KHR::e2DArrayCompatible | ImageCreateFlagBits2KHR::eSplitInstanceBindRegions | ImageCreateFlagBits2KHR::eBlockTexelViewCompatible | + ImageCreateFlagBits2KHR::eExtendedUsage | ImageCreateFlagBits2KHR::eDisjoint | ImageCreateFlagBits2KHR::eAlias | ImageCreateFlagBits2KHR::eProtected | + ImageCreateFlagBits2KHR::eSampleLocationsCompatibleDepthEXT | ImageCreateFlagBits2KHR::eCornerSampledNV | ImageCreateFlagBits2KHR::eSubsampledEXT | + ImageCreateFlagBits2KHR::eFragmentDensityMapOffsetEXT | ImageCreateFlagBits2KHR::eDescriptorBufferCaptureReplayEXT | + ImageCreateFlagBits2KHR::e2DViewCompatibleEXT | ImageCreateFlagBits2KHR::eMultisampledRenderToSingleSampledEXT | + ImageCreateFlagBits2KHR::eVideoProfileIndependent; + }; + //=== VK_SEC_throttle_hint === // wrapper class for enum VkThrottleHintTypeSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkThrottleHintTypeSEC.html @@ -10459,6 +10658,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE eStatistics1 = VK_NEURAL_ACCELERATOR_STATISTICS_MODE_STATISTICS1_ARM }; + //=== VK_EXT_image_tiling_control === + + // wrapper class for enum VkImageTilingControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageTilingControlEXT.html + enum class ImageTilingControlEXT + { + eDefault = VK_IMAGE_TILING_CONTROL_DEFAULT_EXT, + eMinSize = VK_IMAGE_TILING_CONTROL_MIN_SIZE_EXT, + eMaxPerformance = VK_IMAGE_TILING_CONTROL_MAX_PERFORMANCE_EXT + }; + //=========================================================== //=== Mapping from ObjectType to DebugReportObjectTypeEXT === //=========================================================== diff --git a/third_party/vulkan/vulkan_extension_inspection.hpp b/third_party/vulkan/vulkan_extension_inspection.hpp index 791d1af..697bd2f 100644 --- a/third_party/vulkan/vulkan_extension_inspection.hpp +++ b/third_party/vulkan/vulkan_extension_inspection.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -73,6 +72,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_NV_ray_tracing", "VK_KHR_ray_tracing_pipeline" }, { "VK_EXT_buffer_device_address", "VK_KHR_buffer_device_address" }, { "VK_EXT_validation_features", "VK_EXT_layer_settings" }, + { "VK_NV_low_latency", "VK_NV_low_latency2" }, { "VK_EXT_descriptor_buffer", "VK_EXT_descriptor_heap" }, #if defined( VK_ENABLE_BETA_EXTENSIONS ) { "VK_NV_displacement_micromap", "VK_NV_cluster_acceleration_structure" }, @@ -497,6 +497,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_KHR_maintenance7", "VK_NV_shader_atomic_float16_vector", "VK_EXT_shader_replicated_composites", + "VK_ARM_tensor_controls", "VK_EXT_shader_float8", "VK_NV_ray_tracing_validation", "VK_NV_cluster_acceleration_structure", @@ -514,6 +515,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_HUAWEI_hdr_vivid", "VK_NV_cooperative_matrix2", "VK_ARM_pipeline_opacity_micromap", + "VK_KHR_video_encode_feedback2", + "VK_IMG_filter_linear_2d", #if defined( VK_USE_PLATFORM_METAL_EXT ) "VK_EXT_external_memory_metal", #endif /*VK_USE_PLATFORM_METAL_EXT*/ @@ -525,6 +528,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_VALVE_fragment_density_map_layered", "VK_KHR_robustness2", "VK_NV_present_metering", + "VK_EXT_multisampled_render_to_swapchain", "VK_EXT_fragment_density_map_offset", "VK_EXT_zero_initialize_device_memory", "VK_KHR_present_mode_fifo_latest_ready", @@ -539,11 +543,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_EXT_shader_uniform_buffer_unsized_array", "VK_NV_compute_occupancy_priority", "VK_KHR_maintenance11", + "VK_EXT_cooperative_matrix_maintenance1", "VK_EXT_shader_subgroup_partitioned", + "VK_KHR_extended_flags", + "VK_EXT_shader_ocp_microscaling_types", "VK_VALVE_shader_mixed_float_dot_product", "VK_SEC_throttle_hint", "VK_ARM_data_graph_neural_accelerator_statistics", - "VK_EXT_primitive_restart_index" }; + "VK_EXT_primitive_restart_index", + "VK_EXT_image_tiling_control", + "VK_NV_cooperative_matrix_decode_vector" }; return deviceExtensions; } @@ -1146,13 +1155,21 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_EXT_descriptor_heap", { { "VK_VERSION_1_0", { { - "VK_KHR_buffer_device_address", - "VK_KHR_maintenance5", - } } }, + "VK_KHR_buffer_device_address", + "VK_KHR_extended_flags", + }, + { + "VK_KHR_buffer_device_address", + "VK_KHR_maintenance5", + } } }, { "VK_VERSION_1_2", { { - "VK_KHR_maintenance5", - } } } } }, + "VK_KHR_extended_flags", + }, + { + "VK_KHR_maintenance5", + } } }, + { "VK_VERSION_1_4", { {} } } } }, { "VK_EXT_inline_uniform_block", { { "VK_VERSION_1_0", { { @@ -2549,9 +2566,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_AMDX_dense_geometry_format", { { "VK_VERSION_1_0", { { - "VK_KHR_acceleration_structure", - "VK_KHR_maintenance5", - } } }, + "VK_KHR_acceleration_structure", + "VK_KHR_extended_flags", + }, + { + "VK_KHR_acceleration_structure", + "VK_KHR_maintenance5", + } } }, { "VK_VERSION_1_4", { { "VK_KHR_acceleration_structure", @@ -2592,8 +2613,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_KHR_pipeline_binary", { { "VK_VERSION_1_0", { { - "VK_KHR_maintenance5", - } } }, + "VK_KHR_extended_flags", + }, + { + "VK_KHR_maintenance5", + } } }, { "VK_VERSION_1_4", { {} } } } }, { "VK_QCOM_tile_properties", { { "VK_VERSION_1_0", @@ -2709,9 +2733,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_ARM_data_graph", { { "VK_VERSION_1_3", { { - "VK_KHR_deferred_host_operations", - "VK_KHR_maintenance5", - } } } } }, + "VK_KHR_deferred_host_operations", + "VK_KHR_extended_flags", + }, + { + "VK_KHR_deferred_host_operations", + "VK_KHR_maintenance5", + } } } } }, { "VK_ARM_data_graph_instruction_set_tosa", { { "VK_VERSION_1_0", { { @@ -2928,6 +2956,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_KHR_get_physical_device_properties2", } } }, { "VK_VERSION_1_1", { {} } } } }, + { "VK_ARM_tensor_controls", + { { "VK_VERSION_1_0", + { { + "VK_ARM_tensors", + } } } } }, { "VK_EXT_shader_float8", { { "VK_VERSION_1_0", { { @@ -2953,13 +2986,20 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_EXT_device_generated_commands", { { "VK_VERSION_1_0", { { - "VK_KHR_buffer_device_address", - "VK_KHR_maintenance5", - } } }, + "VK_KHR_buffer_device_address", + "VK_KHR_extended_flags", + }, + { + "VK_KHR_buffer_device_address", + "VK_KHR_maintenance5", + } } }, { "VK_VERSION_1_2", { { - "VK_KHR_maintenance5", - } } }, + "VK_KHR_extended_flags", + }, + { + "VK_KHR_maintenance5", + } } }, { "VK_VERSION_1_3", { {} } } } }, { "VK_KHR_device_fault", { { "VK_VERSION_1_0", @@ -3032,7 +3072,18 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { { "VK_VERSION_1_0", { { "VK_EXT_opacity_micromap", - } } } } } + } } } } }, + { "VK_KHR_video_encode_feedback2", + { { "VK_VERSION_1_0", + { { + "VK_KHR_video_encode_queue", + } } } } }, + { "VK_IMG_filter_linear_2d", + { { "VK_VERSION_1_0", + { { + "VK_KHR_format_feature_flags2", + } } }, + { "VK_VERSION_1_3", { {} } } } } #if defined( VK_USE_PLATFORM_METAL_EXT ) , { "VK_EXT_external_memory_metal", @@ -3076,9 +3127,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { "VK_VALVE_fragment_density_map_layered", { { "VK_VERSION_1_0", { { - "VK_EXT_fragment_density_map", - "VK_KHR_maintenance5", - } } }, + "VK_EXT_fragment_density_map", + "VK_KHR_extended_flags", + }, + { + "VK_EXT_fragment_density_map", + "VK_KHR_maintenance5", + } } }, { "VK_VERSION_1_4", { { "VK_EXT_fragment_density_map", @@ -3095,6 +3150,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_KHR_get_physical_device_properties2", } } }, { "VK_VERSION_1_1", { {} } } } }, + { "VK_EXT_multisampled_render_to_swapchain", + { { "VK_VERSION_1_0", + { { + "VK_EXT_multisampled_render_to_single_sampled", + "VK_KHR_swapchain", + } } } } }, { "VK_EXT_fragment_density_map_offset", { { "VK_VERSION_1_0", { { @@ -3188,6 +3249,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "VK_KHR_get_physical_device_properties2", } } }, { "VK_VERSION_1_1", { {} } } } }, + { "VK_EXT_cooperative_matrix_maintenance1", + { { "VK_VERSION_1_0", + { { + "VK_KHR_cooperative_matrix", + } } } } }, { "VK_EXT_shader_subgroup_partitioned", { { "VK_VERSION_1_0", { { @@ -3203,6 +3269,18 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } } } } } #endif /*VK_USE_PLATFORM_UBM_SEC*/ , + { "VK_KHR_extended_flags", + { { "VK_VERSION_1_0", + { { + "VK_KHR_get_physical_device_properties2", + } } }, + { "VK_VERSION_1_1", { {} } } } }, + { "VK_EXT_shader_ocp_microscaling_types", + { { "VK_VERSION_1_0", + { { + "VK_KHR_get_physical_device_properties2", + } } }, + { "VK_VERSION_1_1", { {} } } } }, { "VK_VALVE_shader_mixed_float_dot_product", { { "VK_VERSION_1_0", { { @@ -3211,19 +3289,20 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } } }, { "VK_VERSION_1_1", { { - "VK_KHR_shader_float16_int8", - }, - {} } }, - { "VK_VERSION_1_2", - { { - "VK_KHR_get_physical_device_properties2", - } } } } }, + "VK_KHR_shader_float16_int8", + } } }, + { "VK_VERSION_1_2", { {} } } } }, { "VK_EXT_primitive_restart_index", { { "VK_VERSION_1_0", { { "VK_KHR_get_physical_device_properties2", } } }, - { "VK_VERSION_1_1", { {} } } } } + { "VK_VERSION_1_1", { {} } } } }, + { "VK_NV_cooperative_matrix_decode_vector", + { { "VK_VERSION_1_0", + { { + "VK_NV_cooperative_matrix2", + } } } } } }; auto depIt = dependencies.find( extension ); return ( depIt != dependencies.end() ) ? depIt->second : noDependencies; @@ -3462,6 +3541,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { return "VK_EXT_layer_settings"; } + if ( extension == "VK_NV_low_latency" ) + { + return "VK_NV_low_latency2"; + } if ( extension == "VK_EXT_descriptor_buffer" ) { return "VK_EXT_descriptor_heap"; @@ -3967,7 +4050,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE || ( extension == "VK_MVK_macos_surface" ) #endif /*VK_USE_PLATFORM_MACOS_MVK*/ || ( extension == "VK_AMD_gpu_shader_int16" ) || ( extension == "VK_NV_ray_tracing" ) || ( extension == "VK_EXT_buffer_device_address" ) || - ( extension == "VK_EXT_validation_features" ) || ( extension == "VK_EXT_descriptor_buffer" ) + ( extension == "VK_EXT_validation_features" ) || ( extension == "VK_NV_low_latency" ) || ( extension == "VK_EXT_descriptor_buffer" ) #if defined( VK_ENABLE_BETA_EXTENSIONS ) || ( extension == "VK_NV_displacement_micromap" ) #endif /*VK_ENABLE_BETA_EXTENSIONS*/ @@ -4184,28 +4267,32 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ( extension == "VK_NV_raw_access_chains" ) || ( extension == "VK_NV_external_compute_queue" ) || ( extension == "VK_KHR_shader_relaxed_extended_instruction" ) || ( extension == "VK_NV_command_buffer_inheritance" ) || ( extension == "VK_KHR_maintenance7" ) || ( extension == "VK_NV_shader_atomic_float16_vector" ) || - ( extension == "VK_EXT_shader_replicated_composites" ) || ( extension == "VK_EXT_shader_float8" ) || + ( extension == "VK_EXT_shader_replicated_composites" ) || ( extension == "VK_ARM_tensor_controls" ) || ( extension == "VK_EXT_shader_float8" ) || ( extension == "VK_NV_ray_tracing_validation" ) || ( extension == "VK_NV_cluster_acceleration_structure" ) || ( extension == "VK_NV_partitioned_acceleration_structure" ) || ( extension == "VK_EXT_device_generated_commands" ) || ( extension == "VK_KHR_device_fault" ) || ( extension == "VK_KHR_maintenance8" ) || ( extension == "VK_MESA_image_alignment_control" ) || ( extension == "VK_KHR_shader_fma" ) || ( extension == "VK_NV_push_constant_bank" ) || ( extension == "VK_EXT_ray_tracing_invocation_reorder" ) || ( extension == "VK_EXT_depth_clamp_control" ) || ( extension == "VK_KHR_maintenance9" ) || ( extension == "VK_KHR_video_maintenance2" ) || - ( extension == "VK_HUAWEI_hdr_vivid" ) || ( extension == "VK_NV_cooperative_matrix2" ) || ( extension == "VK_ARM_pipeline_opacity_micromap" ) + ( extension == "VK_HUAWEI_hdr_vivid" ) || ( extension == "VK_NV_cooperative_matrix2" ) || ( extension == "VK_ARM_pipeline_opacity_micromap" ) || + ( extension == "VK_KHR_video_encode_feedback2" ) || ( extension == "VK_IMG_filter_linear_2d" ) #if defined( VK_USE_PLATFORM_METAL_EXT ) || ( extension == "VK_EXT_external_memory_metal" ) #endif /*VK_USE_PLATFORM_METAL_EXT*/ || ( extension == "VK_KHR_depth_clamp_zero_one" ) || ( extension == "VK_ARM_performance_counters_by_region" ) || ( extension == "VK_ARM_shader_instrumentation" ) || ( extension == "VK_EXT_vertex_attribute_robustness" ) || ( extension == "VK_ARM_format_pack" ) || ( extension == "VK_VALVE_fragment_density_map_layered" ) || ( extension == "VK_KHR_robustness2" ) || ( extension == "VK_NV_present_metering" ) || - ( extension == "VK_EXT_fragment_density_map_offset" ) || ( extension == "VK_EXT_zero_initialize_device_memory" ) || - ( extension == "VK_KHR_present_mode_fifo_latest_ready" ) || ( extension == "VK_KHR_opacity_micromap" ) || - ( extension == "VK_EXT_shader_64bit_indexing" ) || ( extension == "VK_EXT_custom_resolve" ) || ( extension == "VK_QCOM_data_graph_model" ) || - ( extension == "VK_KHR_maintenance10" ) || ( extension == "VK_ARM_data_graph_optical_flow" ) || ( extension == "VK_EXT_shader_long_vector" ) || - ( extension == "VK_SEC_pipeline_cache_incremental_mode" ) || ( extension == "VK_EXT_shader_uniform_buffer_unsized_array" ) || - ( extension == "VK_NV_compute_occupancy_priority" ) || ( extension == "VK_KHR_maintenance11" ) || - ( extension == "VK_EXT_shader_subgroup_partitioned" ) || ( extension == "VK_VALVE_shader_mixed_float_dot_product" ) || + ( extension == "VK_EXT_multisampled_render_to_swapchain" ) || ( extension == "VK_EXT_fragment_density_map_offset" ) || + ( extension == "VK_EXT_zero_initialize_device_memory" ) || ( extension == "VK_KHR_present_mode_fifo_latest_ready" ) || + ( extension == "VK_KHR_opacity_micromap" ) || ( extension == "VK_EXT_shader_64bit_indexing" ) || ( extension == "VK_EXT_custom_resolve" ) || + ( extension == "VK_QCOM_data_graph_model" ) || ( extension == "VK_KHR_maintenance10" ) || ( extension == "VK_ARM_data_graph_optical_flow" ) || + ( extension == "VK_EXT_shader_long_vector" ) || ( extension == "VK_SEC_pipeline_cache_incremental_mode" ) || + ( extension == "VK_EXT_shader_uniform_buffer_unsized_array" ) || ( extension == "VK_NV_compute_occupancy_priority" ) || + ( extension == "VK_KHR_maintenance11" ) || ( extension == "VK_EXT_cooperative_matrix_maintenance1" ) || + ( extension == "VK_EXT_shader_subgroup_partitioned" ) || ( extension == "VK_KHR_extended_flags" ) || + ( extension == "VK_EXT_shader_ocp_microscaling_types" ) || ( extension == "VK_VALVE_shader_mixed_float_dot_product" ) || ( extension == "VK_SEC_throttle_hint" ) || ( extension == "VK_ARM_data_graph_neural_accelerator_statistics" ) || - ( extension == "VK_EXT_primitive_restart_index" ); + ( extension == "VK_EXT_primitive_restart_index" ) || ( extension == "VK_EXT_image_tiling_control" ) || + ( extension == "VK_NV_cooperative_matrix_decode_vector" ); } VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 bool isInstanceExtension( std::string const & extension ) diff --git a/third_party/vulkan/vulkan_format_traits.hpp b/third_party/vulkan/vulkan_format_traits.hpp index b6a704e..9aac6c8 100644 --- a/third_party/vulkan/vulkan_format_traits.hpp +++ b/third_party/vulkan/vulkan_format_traits.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // diff --git a/third_party/vulkan/vulkan_fuchsia.h b/third_party/vulkan/vulkan_fuchsia.h index ccca627..bfeee39 100644 --- a/third_party/vulkan/vulkan_fuchsia.h +++ b/third_party/vulkan/vulkan_fuchsia.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_funcs.hpp b/third_party/vulkan/vulkan_funcs.hpp index bb6a499..9c65f2a 100644 --- a/third_party/vulkan/vulkan_funcs.hpp +++ b/third_party/vulkan/vulkan_funcs.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -91,7 +90,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyInstance && "Function requires " ); # endif - d.vkDestroyInstance( m_instance, reinterpret_cast( allocator.get() ) ); + d.vkDestroyInstance( static_cast( m_instance ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -124,12 +123,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDevices( static_cast( m_instance ), &physicalDeviceCount, nullptr ) ); if ( ( result == Result::eSuccess ) && physicalDeviceCount ) { physicalDevices.resize( physicalDeviceCount ); - result = static_cast( - d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, reinterpret_cast( physicalDevices.data() ) ) ); + result = static_cast( d.vkEnumeratePhysicalDevices( + static_cast( m_instance ), &physicalDeviceCount, reinterpret_cast( physicalDevices.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" ); @@ -159,12 +158,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDevices( static_cast( m_instance ), &physicalDeviceCount, nullptr ) ); if ( ( result == Result::eSuccess ) && physicalDeviceCount ) { physicalDevices.resize( physicalDeviceCount ); - result = static_cast( - d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, reinterpret_cast( physicalDevices.data() ) ) ); + result = static_cast( d.vkEnumeratePhysicalDevices( + static_cast( m_instance ), &physicalDeviceCount, reinterpret_cast( physicalDevices.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" ); @@ -196,7 +195,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceFeatures features; - d.vkGetPhysicalDeviceFeatures( m_physicalDevice, reinterpret_cast( &features ) ); + d.vkGetPhysicalDeviceFeatures( static_cast( m_physicalDevice ), reinterpret_cast( &features ) ); return features; } @@ -225,7 +224,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif FormatProperties formatProperties; - d.vkGetPhysicalDeviceFormatProperties( m_physicalDevice, static_cast( format ), reinterpret_cast( &formatProperties ) ); + d.vkGetPhysicalDeviceFormatProperties( + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( &formatProperties ) ); return formatProperties; } @@ -265,7 +265,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ImageFormatProperties imageFormatProperties; - Result result = static_cast( d.vkGetPhysicalDeviceImageFormatProperties( m_physicalDevice, + Result result = static_cast( d.vkGetPhysicalDeviceImageFormatProperties( static_cast( m_physicalDevice ), static_cast( format ), static_cast( type ), static_cast( tiling ), @@ -299,7 +299,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceProperties properties; - d.vkGetPhysicalDeviceProperties( m_physicalDevice, reinterpret_cast( &properties ) ); + d.vkGetPhysicalDeviceProperties( static_cast( m_physicalDevice ), reinterpret_cast( &properties ) ); return properties; } @@ -333,10 +333,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); queueFamilyProperties.resize( queueFamilyPropertyCount ); - d.vkGetPhysicalDeviceQueueFamilyProperties( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -362,10 +363,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector queueFamilyProperties( queueFamilyPropertiesAllocator ); uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); queueFamilyProperties.resize( queueFamilyPropertyCount ); - d.vkGetPhysicalDeviceQueueFamilyProperties( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -398,7 +400,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceMemoryProperties memoryProperties; - d.vkGetPhysicalDeviceMemoryProperties( m_physicalDevice, reinterpret_cast( &memoryProperties ) ); + d.vkGetPhysicalDeviceMemoryProperties( static_cast( m_physicalDevice ), + reinterpret_cast( &memoryProperties ) ); return memoryProperties; } @@ -422,7 +425,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetInstanceProcAddr && "Function requires " ); # endif - PFN_vkVoidFunction result = d.vkGetInstanceProcAddr( m_instance, name.c_str() ); + PFN_vkVoidFunction result = d.vkGetInstanceProcAddr( static_cast( m_instance ), name.c_str() ); return result; } @@ -446,7 +449,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetDeviceProcAddr && "Function requires " ); # endif - PFN_vkVoidFunction result = d.vkGetDeviceProcAddr( m_device, name.c_str() ); + PFN_vkVoidFunction result = d.vkGetDeviceProcAddr( static_cast( m_device ), name.c_str() ); return result; } @@ -476,7 +479,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Device device; - Result result = static_cast( d.vkCreateDevice( m_physicalDevice, + Result result = static_cast( d.vkCreateDevice( static_cast( m_physicalDevice ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &device ) ) ); @@ -497,7 +500,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Device device; - Result result = static_cast( d.vkCreateDevice( m_physicalDevice, + Result result = static_cast( d.vkCreateDevice( static_cast( m_physicalDevice ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &device ) ) ); @@ -526,7 +529,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDevice && "Function requires " ); # endif - d.vkDestroyDevice( m_device, reinterpret_cast( allocator.get() ) ); + d.vkDestroyDevice( static_cast( m_device ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -647,13 +650,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = - static_cast( d.vkEnumerateDeviceExtensionProperties( m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) ); + result = static_cast( d.vkEnumerateDeviceExtensionProperties( + static_cast( m_physicalDevice ), layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( d.vkEnumerateDeviceExtensionProperties( - m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkEnumerateDeviceExtensionProperties( static_cast( m_physicalDevice ), + layerName ? layerName->c_str() : nullptr, + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" ); @@ -685,13 +690,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = - static_cast( d.vkEnumerateDeviceExtensionProperties( m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) ); + result = static_cast( d.vkEnumerateDeviceExtensionProperties( + static_cast( m_physicalDevice ), layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( d.vkEnumerateDeviceExtensionProperties( - m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkEnumerateDeviceExtensionProperties( static_cast( m_physicalDevice ), + layerName ? layerName->c_str() : nullptr, + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" ); @@ -817,12 +824,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( d.vkEnumerateDeviceLayerProperties( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( - d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkEnumerateDeviceLayerProperties( + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" ); @@ -853,12 +860,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( d.vkEnumerateDeviceLayerProperties( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( - d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkEnumerateDeviceLayerProperties( + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" ); @@ -890,7 +897,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Queue queue; - d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast( &queue ) ); + d.vkGetDeviceQueue( static_cast( m_device ), queueFamilyIndex, queueIndex, reinterpret_cast( &queue ) ); return queue; } @@ -917,8 +924,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueSubmit && "Function requires " ); # endif - Result result = static_cast( - d.vkQueueSubmit( m_queue, submits.size(), reinterpret_cast( submits.data() ), static_cast( fence ) ) ); + Result result = static_cast( d.vkQueueSubmit( + static_cast( m_queue ), submits.size(), reinterpret_cast( submits.data() ), static_cast( fence ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit" ); return detail::createResultValueType( result ); @@ -943,7 +950,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueWaitIdle && "Function requires " ); # endif - Result result = static_cast( d.vkQueueWaitIdle( m_queue ) ); + Result result = static_cast( d.vkQueueWaitIdle( static_cast( m_queue ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::waitIdle" ); return detail::createResultValueType( result ); @@ -968,7 +975,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDeviceWaitIdle && "Function requires " ); # endif - Result result = static_cast( d.vkDeviceWaitIdle( m_device ) ); + Result result = static_cast( d.vkDeviceWaitIdle( static_cast( m_device ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitIdle" ); return detail::createResultValueType( result ); @@ -999,7 +1006,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceMemory memory; - Result result = static_cast( d.vkAllocateMemory( m_device, + Result result = static_cast( d.vkAllocateMemory( static_cast( m_device ), reinterpret_cast( &allocateInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &memory ) ) ); @@ -1020,7 +1027,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceMemory memory; - Result result = static_cast( d.vkAllocateMemory( m_device, + Result result = static_cast( d.vkAllocateMemory( static_cast( m_device ), reinterpret_cast( &allocateInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &memory ) ) ); @@ -1049,7 +1056,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFreeMemory && "Function requires " ); # endif - d.vkFreeMemory( m_device, static_cast( memory ), reinterpret_cast( allocator.get() ) ); + d.vkFreeMemory( + static_cast( m_device ), static_cast( memory ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1071,7 +1079,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFreeMemory && "Function requires " ); # endif - d.vkFreeMemory( m_device, static_cast( memory ), reinterpret_cast( allocator.get() ) ); + d.vkFreeMemory( + static_cast( m_device ), static_cast( memory ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1101,7 +1110,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif void * pData; - Result result = static_cast( d.vkMapMemory( m_device, + Result result = static_cast( d.vkMapMemory( static_cast( m_device ), static_cast( memory ), static_cast( offset ), static_cast( size ), @@ -1142,8 +1151,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFlushMappedMemoryRanges && "Function requires " ); # endif - Result result = - static_cast( d.vkFlushMappedMemoryRanges( m_device, memoryRanges.size(), reinterpret_cast( memoryRanges.data() ) ) ); + Result result = static_cast( d.vkFlushMappedMemoryRanges( + static_cast( m_device ), memoryRanges.size(), reinterpret_cast( memoryRanges.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::flushMappedMemoryRanges" ); return detail::createResultValueType( result ); @@ -1173,8 +1182,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkInvalidateMappedMemoryRanges && "Function requires " ); # endif - Result result = static_cast( - d.vkInvalidateMappedMemoryRanges( m_device, memoryRanges.size(), reinterpret_cast( memoryRanges.data() ) ) ); + Result result = static_cast( d.vkInvalidateMappedMemoryRanges( + static_cast( m_device ), memoryRanges.size(), reinterpret_cast( memoryRanges.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::invalidateMappedMemoryRanges" ); return detail::createResultValueType( result ); @@ -1201,7 +1210,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceSize committedMemoryInBytes; - d.vkGetDeviceMemoryCommitment( m_device, static_cast( memory ), reinterpret_cast( &committedMemoryInBytes ) ); + d.vkGetDeviceMemoryCommitment( + static_cast( m_device ), static_cast( memory ), reinterpret_cast( &committedMemoryInBytes ) ); return committedMemoryInBytes; } @@ -1228,8 +1238,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindBufferMemory && "Function requires " ); # endif - Result result = static_cast( - d.vkBindBufferMemory( m_device, static_cast( buffer ), static_cast( memory ), static_cast( memoryOffset ) ) ); + Result result = static_cast( d.vkBindBufferMemory( + static_cast( m_device ), static_cast( buffer ), static_cast( memory ), static_cast( memoryOffset ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory" ); return detail::createResultValueType( result ); @@ -1257,8 +1267,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindImageMemory && "Function requires " ); # endif - Result result = static_cast( - d.vkBindImageMemory( m_device, static_cast( image ), static_cast( memory ), static_cast( memoryOffset ) ) ); + Result result = static_cast( d.vkBindImageMemory( + static_cast( m_device ), static_cast( image ), static_cast( memory ), static_cast( memoryOffset ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory" ); return detail::createResultValueType( result ); @@ -1288,7 +1298,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements memoryRequirements; - d.vkGetBufferMemoryRequirements( m_device, static_cast( buffer ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetBufferMemoryRequirements( + static_cast( m_device ), static_cast( buffer ), reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -1315,7 +1326,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements memoryRequirements; - d.vkGetImageMemoryRequirements( m_device, static_cast( image ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetImageMemoryRequirements( + static_cast( m_device ), static_cast( image ), reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -1352,9 +1364,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements; uint32_t sparseMemoryRequirementCount; - d.vkGetImageSparseMemoryRequirements( m_device, static_cast( image ), &sparseMemoryRequirementCount, nullptr ); + d.vkGetImageSparseMemoryRequirements( static_cast( m_device ), static_cast( image ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetImageSparseMemoryRequirements( m_device, + d.vkGetImageSparseMemoryRequirements( static_cast( m_device ), static_cast( image ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -1384,9 +1396,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements( sparseImageMemoryRequirementsAllocator ); uint32_t sparseMemoryRequirementCount; - d.vkGetImageSparseMemoryRequirements( m_device, static_cast( image ), &sparseMemoryRequirementCount, nullptr ); + d.vkGetImageSparseMemoryRequirements( static_cast( m_device ), static_cast( image ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetImageSparseMemoryRequirements( m_device, + d.vkGetImageSparseMemoryRequirements( static_cast( m_device ), static_cast( image ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -1442,7 +1454,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector properties; uint32_t propertyCount; - d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties( static_cast( m_physicalDevice ), static_cast( format ), static_cast( type ), static_cast( samples ), @@ -1451,7 +1463,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE &propertyCount, nullptr ); properties.resize( propertyCount ); - d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties( static_cast( m_physicalDevice ), static_cast( format ), static_cast( type ), static_cast( samples ), @@ -1491,7 +1503,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector properties( sparseImageFormatPropertiesAllocator ); uint32_t propertyCount; - d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties( static_cast( m_physicalDevice ), static_cast( format ), static_cast( type ), static_cast( samples ), @@ -1500,7 +1512,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE &propertyCount, nullptr ); properties.resize( propertyCount ); - d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties( static_cast( m_physicalDevice ), static_cast( format ), static_cast( type ), static_cast( samples ), @@ -1539,8 +1551,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueBindSparse && "Function requires " ); # endif - Result result = static_cast( - d.vkQueueBindSparse( m_queue, bindInfo.size(), reinterpret_cast( bindInfo.data() ), static_cast( fence ) ) ); + Result result = static_cast( d.vkQueueBindSparse( + static_cast( m_queue ), bindInfo.size(), reinterpret_cast( bindInfo.data() ), static_cast( fence ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::bindSparse" ); return detail::createResultValueType( result ); @@ -1571,7 +1583,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Fence fence; - Result result = static_cast( d.vkCreateFence( m_device, + Result result = static_cast( d.vkCreateFence( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &fence ) ) ); @@ -1592,7 +1604,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Fence fence; - Result result = static_cast( d.vkCreateFence( m_device, + Result result = static_cast( d.vkCreateFence( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &fence ) ) ); @@ -1621,7 +1633,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyFence && "Function requires " ); # endif - d.vkDestroyFence( m_device, static_cast( fence ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyFence( static_cast( m_device ), static_cast( fence ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1643,7 +1655,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyFence && "Function requires " ); # endif - d.vkDestroyFence( m_device, static_cast( fence ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyFence( static_cast( m_device ), static_cast( fence ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1666,7 +1678,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkResetFences && "Function requires " ); # endif - Result result = static_cast( d.vkResetFences( m_device, fences.size(), reinterpret_cast( fences.data() ) ) ); + Result result = + static_cast( d.vkResetFences( static_cast( m_device ), fences.size(), reinterpret_cast( fences.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetFences" ); return detail::createResultValueType( result ); @@ -1691,7 +1704,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetFenceStatus && "Function requires " ); # endif - Result result = static_cast( d.vkGetFenceStatus( m_device, static_cast( fence ) ) ); + Result result = static_cast( d.vkGetFenceStatus( static_cast( m_device ), static_cast( fence ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceStatus", { Result::eSuccess, Result::eNotReady } ); return static_cast( result ); @@ -1719,8 +1732,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkWaitForFences && "Function requires " ); # endif - Result result = static_cast( - d.vkWaitForFences( m_device, fences.size(), reinterpret_cast( fences.data() ), static_cast( waitAll ), timeout ) ); + Result result = static_cast( d.vkWaitForFences( + static_cast( m_device ), fences.size(), reinterpret_cast( fences.data() ), static_cast( waitAll ), timeout ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForFences", { Result::eSuccess, Result::eTimeout } ); return static_cast( result ); @@ -1751,7 +1764,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Semaphore semaphore; - Result result = static_cast( d.vkCreateSemaphore( m_device, + Result result = static_cast( d.vkCreateSemaphore( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &semaphore ) ) ); @@ -1772,7 +1785,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Semaphore semaphore; - Result result = static_cast( d.vkCreateSemaphore( m_device, + Result result = static_cast( d.vkCreateSemaphore( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &semaphore ) ) ); @@ -1804,7 +1817,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySemaphore && "Function requires " ); # endif - d.vkDestroySemaphore( m_device, static_cast( semaphore ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySemaphore( + static_cast( m_device ), static_cast( semaphore ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1827,7 +1841,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySemaphore && "Function requires " ); # endif - d.vkDestroySemaphore( m_device, static_cast( semaphore ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySemaphore( + static_cast( m_device ), static_cast( semaphore ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1855,7 +1870,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif QueryPool queryPool; - Result result = static_cast( d.vkCreateQueryPool( m_device, + Result result = static_cast( d.vkCreateQueryPool( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &queryPool ) ) ); @@ -1876,7 +1891,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif QueryPool queryPool; - Result result = static_cast( d.vkCreateQueryPool( m_device, + Result result = static_cast( d.vkCreateQueryPool( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &queryPool ) ) ); @@ -1908,7 +1923,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyQueryPool && "Function requires " ); # endif - d.vkDestroyQueryPool( m_device, static_cast( queryPool ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyQueryPool( + static_cast( m_device ), static_cast( queryPool ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1931,7 +1947,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyQueryPool && "Function requires " ); # endif - d.vkDestroyQueryPool( m_device, static_cast( queryPool ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyQueryPool( + static_cast( m_device ), static_cast( queryPool ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1974,7 +1991,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); - Result result = static_cast( d.vkGetQueryPoolResults( m_device, + Result result = static_cast( d.vkGetQueryPoolResults( static_cast( m_device ), static_cast( queryPool ), firstQuery, queryCount, @@ -1998,7 +2015,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( d.vkGetQueryPoolResults( m_device, + Result result = static_cast( d.vkGetQueryPoolResults( static_cast( m_device ), static_cast( queryPool ), firstQuery, queryCount, @@ -2036,7 +2053,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Buffer buffer; - Result result = static_cast( d.vkCreateBuffer( m_device, + Result result = static_cast( d.vkCreateBuffer( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &buffer ) ) ); @@ -2057,7 +2074,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Buffer buffer; - Result result = static_cast( d.vkCreateBuffer( m_device, + Result result = static_cast( d.vkCreateBuffer( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &buffer ) ) ); @@ -2086,7 +2103,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyBuffer && "Function requires " ); # endif - d.vkDestroyBuffer( m_device, static_cast( buffer ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyBuffer( static_cast( m_device ), static_cast( buffer ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2108,7 +2125,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyBuffer && "Function requires " ); # endif - d.vkDestroyBuffer( m_device, static_cast( buffer ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyBuffer( static_cast( m_device ), static_cast( buffer ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2136,7 +2153,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Image image; - Result result = static_cast( d.vkCreateImage( m_device, + Result result = static_cast( d.vkCreateImage( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &image ) ) ); @@ -2157,7 +2174,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Image image; - Result result = static_cast( d.vkCreateImage( m_device, + Result result = static_cast( d.vkCreateImage( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &image ) ) ); @@ -2186,7 +2203,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyImage && "Function requires " ); # endif - d.vkDestroyImage( m_device, static_cast( image ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyImage( static_cast( m_device ), static_cast( image ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2208,7 +2225,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyImage && "Function requires " ); # endif - d.vkDestroyImage( m_device, static_cast( image ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyImage( static_cast( m_device ), static_cast( image ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2236,7 +2253,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SubresourceLayout layout; - d.vkGetImageSubresourceLayout( m_device, + d.vkGetImageSubresourceLayout( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -2269,7 +2286,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ImageView view; - Result result = static_cast( d.vkCreateImageView( m_device, + Result result = static_cast( d.vkCreateImageView( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &view ) ) ); @@ -2290,7 +2307,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ImageView view; - Result result = static_cast( d.vkCreateImageView( m_device, + Result result = static_cast( d.vkCreateImageView( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &view ) ) ); @@ -2321,7 +2338,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyImageView && "Function requires " ); # endif - d.vkDestroyImageView( m_device, static_cast( imageView ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyImageView( + static_cast( m_device ), static_cast( imageView ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2344,7 +2362,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyImageView && "Function requires " ); # endif - d.vkDestroyImageView( m_device, static_cast( imageView ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyImageView( + static_cast( m_device ), static_cast( imageView ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2373,7 +2392,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CommandPool commandPool; - Result result = static_cast( d.vkCreateCommandPool( m_device, + Result result = static_cast( d.vkCreateCommandPool( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &commandPool ) ) ); @@ -2394,7 +2413,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CommandPool commandPool; - Result result = static_cast( d.vkCreateCommandPool( m_device, + Result result = static_cast( d.vkCreateCommandPool( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &commandPool ) ) ); @@ -2427,7 +2446,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCommandPool && "Function requires " ); # endif - d.vkDestroyCommandPool( m_device, static_cast( commandPool ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCommandPool( + static_cast( m_device ), static_cast( commandPool ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2450,7 +2470,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCommandPool && "Function requires " ); # endif - d.vkDestroyCommandPool( m_device, static_cast( commandPool ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCommandPool( + static_cast( m_device ), static_cast( commandPool ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2475,8 +2496,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkResetCommandPool && "Function requires " ); # endif - Result result = - static_cast( d.vkResetCommandPool( m_device, static_cast( commandPool ), static_cast( flags ) ) ); + Result result = static_cast( + d.vkResetCommandPool( static_cast( m_device ), static_cast( commandPool ), static_cast( flags ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetCommandPool" ); return detail::createResultValueType( result ); @@ -2509,8 +2530,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector commandBuffers( allocateInfo.commandBufferCount ); - Result result = static_cast( d.vkAllocateCommandBuffers( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); + Result result = static_cast( d.vkAllocateCommandBuffers( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( commandBuffers.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); return detail::createResultValueType( result, std::move( commandBuffers ) ); @@ -2530,8 +2552,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector commandBuffers( allocateInfo.commandBufferCount, {}, commandBufferAllocator ); - Result result = static_cast( d.vkAllocateCommandBuffers( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); + Result result = static_cast( d.vkAllocateCommandBuffers( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( commandBuffers.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); return detail::createResultValueType( result, std::move( commandBuffers ) ); @@ -2552,8 +2575,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector commandBuffers( allocateInfo.commandBufferCount ); - Result result = static_cast( d.vkAllocateCommandBuffers( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); + Result result = static_cast( d.vkAllocateCommandBuffers( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( commandBuffers.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" ); std::vector, CommandBufferAllocator> uniqueCommandBuffers; uniqueCommandBuffers.reserve( allocateInfo.commandBufferCount ); @@ -2580,8 +2604,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector commandBuffers( allocateInfo.commandBufferCount ); - Result result = static_cast( d.vkAllocateCommandBuffers( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); + Result result = static_cast( d.vkAllocateCommandBuffers( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( commandBuffers.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" ); std::vector, CommandBufferAllocator> uniqueCommandBuffers( commandBufferAllocator ); uniqueCommandBuffers.reserve( allocateInfo.commandBufferCount ); @@ -2618,8 +2643,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFreeCommandBuffers && "Function requires " ); # endif - d.vkFreeCommandBuffers( - m_device, static_cast( commandPool ), commandBuffers.size(), reinterpret_cast( commandBuffers.data() ) ); + d.vkFreeCommandBuffers( static_cast( m_device ), + static_cast( commandPool ), + commandBuffers.size(), + reinterpret_cast( commandBuffers.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2646,8 +2673,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFreeCommandBuffers && "Function requires " ); # endif - d.vkFreeCommandBuffers( - m_device, static_cast( commandPool ), commandBuffers.size(), reinterpret_cast( commandBuffers.data() ) ); + d.vkFreeCommandBuffers( static_cast( m_device ), + static_cast( commandPool ), + commandBuffers.size(), + reinterpret_cast( commandBuffers.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2671,7 +2700,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBeginCommandBuffer && "Function requires " ); # endif - Result result = static_cast( d.vkBeginCommandBuffer( m_commandBuffer, reinterpret_cast( &beginInfo ) ) ); + Result result = static_cast( + d.vkBeginCommandBuffer( static_cast( m_commandBuffer ), reinterpret_cast( &beginInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::begin" ); return detail::createResultValueType( result ); @@ -2696,7 +2726,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkEndCommandBuffer && "Function requires " ); # endif - Result result = static_cast( d.vkEndCommandBuffer( m_commandBuffer ) ); + Result result = static_cast( d.vkEndCommandBuffer( static_cast( m_commandBuffer ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::end" ); return detail::createResultValueType( result ); @@ -2722,7 +2752,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkResetCommandBuffer && "Function requires " ); # endif - Result result = static_cast( d.vkResetCommandBuffer( m_commandBuffer, static_cast( flags ) ) ); + Result result = + static_cast( d.vkResetCommandBuffer( static_cast( m_commandBuffer ), static_cast( flags ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::reset" ); return detail::createResultValueType( result ); @@ -2753,7 +2784,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer && "Function requires " ); # endif - d.vkCmdCopyBuffer( m_commandBuffer, + d.vkCmdCopyBuffer( static_cast( m_commandBuffer ), static_cast( srcBuffer ), static_cast( dstBuffer ), regions.size(), @@ -2793,7 +2824,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImage && "Function requires " ); # endif - d.vkCmdCopyImage( m_commandBuffer, + d.vkCmdCopyImage( static_cast( m_commandBuffer ), static_cast( srcImage ), static_cast( srcImageLayout ), static_cast( dstImage ), @@ -2830,7 +2861,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage && "Function requires " ); # endif - d.vkCmdCopyBufferToImage( m_commandBuffer, + d.vkCmdCopyBufferToImage( static_cast( m_commandBuffer ), static_cast( srcBuffer ), static_cast( dstImage ), static_cast( dstImageLayout ), @@ -2866,7 +2897,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer && "Function requires " ); # endif - d.vkCmdCopyImageToBuffer( m_commandBuffer, + d.vkCmdCopyImageToBuffer( static_cast( m_commandBuffer ), static_cast( srcImage ), static_cast( srcImageLayout ), static_cast( dstBuffer ), @@ -2899,7 +2930,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdUpdateBuffer && "Function requires " ); # endif - d.vkCmdUpdateBuffer( m_commandBuffer, + d.vkCmdUpdateBuffer( static_cast( m_commandBuffer ), static_cast( dstBuffer ), static_cast( dstOffset ), data.size() * sizeof( DataType ), @@ -2962,7 +2993,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier && "Function requires " ); # endif - d.vkCmdPipelineBarrier( m_commandBuffer, + d.vkCmdPipelineBarrier( static_cast( m_commandBuffer ), static_cast( srcStageMask ), static_cast( dstStageMask ), static_cast( dependencyFlags ), @@ -3052,7 +3083,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdExecuteCommands && "Function requires " ); # endif - d.vkCmdExecuteCommands( m_commandBuffer, commandBuffers.size(), reinterpret_cast( commandBuffers.data() ) ); + d.vkCmdExecuteCommands( + static_cast( m_commandBuffer ), commandBuffers.size(), reinterpret_cast( commandBuffers.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3080,7 +3112,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Event event; - Result result = static_cast( d.vkCreateEvent( m_device, + Result result = static_cast( d.vkCreateEvent( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &event ) ) ); @@ -3101,7 +3133,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Event event; - Result result = static_cast( d.vkCreateEvent( m_device, + Result result = static_cast( d.vkCreateEvent( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &event ) ) ); @@ -3130,7 +3162,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyEvent && "Function requires " ); # endif - d.vkDestroyEvent( m_device, static_cast( event ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyEvent( static_cast( m_device ), static_cast( event ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3152,7 +3184,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyEvent && "Function requires " ); # endif - d.vkDestroyEvent( m_device, static_cast( event ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyEvent( static_cast( m_device ), static_cast( event ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3174,7 +3206,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetEventStatus && "Function requires " ); # endif - Result result = static_cast( d.vkGetEventStatus( m_device, static_cast( event ) ) ); + Result result = static_cast( d.vkGetEventStatus( static_cast( m_device ), static_cast( event ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEventStatus", { Result::eEventSet, Result::eEventReset } ); return static_cast( result ); @@ -3199,7 +3231,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetEvent && "Function requires " ); # endif - Result result = static_cast( d.vkSetEvent( m_device, static_cast( event ) ) ); + Result result = static_cast( d.vkSetEvent( static_cast( m_device ), static_cast( event ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setEvent" ); return detail::createResultValueType( result ); @@ -3224,7 +3256,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkResetEvent && "Function requires " ); # endif - Result result = static_cast( d.vkResetEvent( m_device, static_cast( event ) ) ); + Result result = static_cast( d.vkResetEvent( static_cast( m_device ), static_cast( event ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetEvent" ); return detail::createResultValueType( result ); @@ -3255,7 +3287,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif BufferView view; - Result result = static_cast( d.vkCreateBufferView( m_device, + Result result = static_cast( d.vkCreateBufferView( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &view ) ) ); @@ -3276,7 +3308,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif BufferView view; - Result result = static_cast( d.vkCreateBufferView( m_device, + Result result = static_cast( d.vkCreateBufferView( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &view ) ) ); @@ -3308,7 +3340,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyBufferView && "Function requires " ); # endif - d.vkDestroyBufferView( m_device, static_cast( bufferView ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyBufferView( + static_cast( m_device ), static_cast( bufferView ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3331,7 +3364,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyBufferView && "Function requires " ); # endif - d.vkDestroyBufferView( m_device, static_cast( bufferView ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyBufferView( + static_cast( m_device ), static_cast( bufferView ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3360,7 +3394,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderModule shaderModule; - Result result = static_cast( d.vkCreateShaderModule( m_device, + Result result = static_cast( d.vkCreateShaderModule( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &shaderModule ) ) ); @@ -3381,7 +3415,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderModule shaderModule; - Result result = static_cast( d.vkCreateShaderModule( m_device, + Result result = static_cast( d.vkCreateShaderModule( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &shaderModule ) ) ); @@ -3414,7 +3448,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyShaderModule && "Function requires " ); # endif - d.vkDestroyShaderModule( m_device, static_cast( shaderModule ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyShaderModule( + static_cast( m_device ), static_cast( shaderModule ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3438,7 +3473,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyShaderModule && "Function requires " ); # endif - d.vkDestroyShaderModule( m_device, static_cast( shaderModule ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyShaderModule( + static_cast( m_device ), static_cast( shaderModule ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3467,7 +3503,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PipelineCache pipelineCache; - Result result = static_cast( d.vkCreatePipelineCache( m_device, + Result result = static_cast( d.vkCreatePipelineCache( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &pipelineCache ) ) ); @@ -3488,7 +3524,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PipelineCache pipelineCache; - Result result = static_cast( d.vkCreatePipelineCache( m_device, + Result result = static_cast( d.vkCreatePipelineCache( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &pipelineCache ) ) ); @@ -3521,7 +3557,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipelineCache && "Function requires " ); # endif - d.vkDestroyPipelineCache( m_device, static_cast( pipelineCache ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipelineCache( + static_cast( m_device ), static_cast( pipelineCache ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3545,7 +3582,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipelineCache && "Function requires " ); # endif - d.vkDestroyPipelineCache( m_device, static_cast( pipelineCache ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipelineCache( + static_cast( m_device ), static_cast( pipelineCache ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3578,12 +3616,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPipelineCacheData( m_device, static_cast( pipelineCache ), &dataSize, nullptr ) ); + result = + static_cast( d.vkGetPipelineCacheData( static_cast( m_device ), static_cast( pipelineCache ), &dataSize, nullptr ) ); if ( ( result == Result::eSuccess ) && dataSize ) { data.resize( dataSize ); - result = static_cast( - d.vkGetPipelineCacheData( m_device, static_cast( pipelineCache ), &dataSize, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetPipelineCacheData( + static_cast( m_device ), static_cast( pipelineCache ), &dataSize, reinterpret_cast( data.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" ); @@ -3613,12 +3652,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPipelineCacheData( m_device, static_cast( pipelineCache ), &dataSize, nullptr ) ); + result = + static_cast( d.vkGetPipelineCacheData( static_cast( m_device ), static_cast( pipelineCache ), &dataSize, nullptr ) ); if ( ( result == Result::eSuccess ) && dataSize ) { data.resize( dataSize ); - result = static_cast( - d.vkGetPipelineCacheData( m_device, static_cast( pipelineCache ), &dataSize, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetPipelineCacheData( + static_cast( m_device ), static_cast( pipelineCache ), &dataSize, reinterpret_cast( data.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" ); @@ -3652,8 +3692,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkMergePipelineCaches && "Function requires " ); # endif - Result result = static_cast( d.vkMergePipelineCaches( - m_device, static_cast( dstCache ), srcCaches.size(), reinterpret_cast( srcCaches.data() ) ) ); + Result result = static_cast( d.vkMergePipelineCaches( static_cast( m_device ), + static_cast( dstCache ), + srcCaches.size(), + reinterpret_cast( srcCaches.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mergePipelineCaches" ); return detail::createResultValueType( result ); @@ -3696,7 +3738,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateComputePipelines( m_device, + Result result = static_cast( d.vkCreateComputePipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -3731,7 +3773,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size(), {}, pipelineAllocator ); - Result result = static_cast( d.vkCreateComputePipelines( m_device, + Result result = static_cast( d.vkCreateComputePipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -3759,7 +3801,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateComputePipelines( m_device, + Result result = static_cast( d.vkCreateComputePipelines( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -3788,7 +3830,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateComputePipelines( m_device, + Result result = static_cast( d.vkCreateComputePipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -3829,7 +3871,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateComputePipelines( m_device, + Result result = static_cast( d.vkCreateComputePipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -3863,7 +3905,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateComputePipelines( m_device, + Result result = static_cast( d.vkCreateComputePipelines( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -3898,7 +3940,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipeline && "Function requires " ); # endif - d.vkDestroyPipeline( m_device, static_cast( pipeline ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipeline( + static_cast( m_device ), static_cast( pipeline ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3921,7 +3964,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipeline && "Function requires " ); # endif - d.vkDestroyPipeline( m_device, static_cast( pipeline ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipeline( + static_cast( m_device ), static_cast( pipeline ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3950,7 +3994,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PipelineLayout pipelineLayout; - Result result = static_cast( d.vkCreatePipelineLayout( m_device, + Result result = static_cast( d.vkCreatePipelineLayout( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &pipelineLayout ) ) ); @@ -3971,7 +4015,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PipelineLayout pipelineLayout; - Result result = static_cast( d.vkCreatePipelineLayout( m_device, + Result result = static_cast( d.vkCreatePipelineLayout( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &pipelineLayout ) ) ); @@ -4004,7 +4048,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipelineLayout && "Function requires " ); # endif - d.vkDestroyPipelineLayout( m_device, static_cast( pipelineLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipelineLayout( + static_cast( m_device ), static_cast( pipelineLayout ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4028,7 +4073,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipelineLayout && "Function requires " ); # endif - d.vkDestroyPipelineLayout( m_device, static_cast( pipelineLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipelineLayout( + static_cast( m_device ), static_cast( pipelineLayout ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4056,7 +4102,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Sampler sampler; - Result result = static_cast( d.vkCreateSampler( m_device, + Result result = static_cast( d.vkCreateSampler( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &sampler ) ) ); @@ -4077,7 +4123,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Sampler sampler; - Result result = static_cast( d.vkCreateSampler( m_device, + Result result = static_cast( d.vkCreateSampler( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &sampler ) ) ); @@ -4106,7 +4152,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySampler && "Function requires " ); # endif - d.vkDestroySampler( m_device, static_cast( sampler ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySampler( + static_cast( m_device ), static_cast( sampler ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4128,7 +4175,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySampler && "Function requires " ); # endif - d.vkDestroySampler( m_device, static_cast( sampler ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySampler( + static_cast( m_device ), static_cast( sampler ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4157,7 +4205,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorSetLayout setLayout; - Result result = static_cast( d.vkCreateDescriptorSetLayout( m_device, + Result result = static_cast( d.vkCreateDescriptorSetLayout( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &setLayout ) ) ); @@ -4178,7 +4226,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorSetLayout setLayout; - Result result = static_cast( d.vkCreateDescriptorSetLayout( m_device, + Result result = static_cast( d.vkCreateDescriptorSetLayout( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &setLayout ) ) ); @@ -4212,8 +4260,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDescriptorSetLayout && "Function requires " ); # endif - d.vkDestroyDescriptorSetLayout( - m_device, static_cast( descriptorSetLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorSetLayout( static_cast( m_device ), + static_cast( descriptorSetLayout ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4239,8 +4288,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDescriptorSetLayout && "Function requires " ); # endif - d.vkDestroyDescriptorSetLayout( - m_device, static_cast( descriptorSetLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorSetLayout( static_cast( m_device ), + static_cast( descriptorSetLayout ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4269,7 +4319,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorPool descriptorPool; - Result result = static_cast( d.vkCreateDescriptorPool( m_device, + Result result = static_cast( d.vkCreateDescriptorPool( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &descriptorPool ) ) ); @@ -4290,7 +4340,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorPool descriptorPool; - Result result = static_cast( d.vkCreateDescriptorPool( m_device, + Result result = static_cast( d.vkCreateDescriptorPool( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &descriptorPool ) ) ); @@ -4323,7 +4373,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDescriptorPool && "Function requires " ); # endif - d.vkDestroyDescriptorPool( m_device, static_cast( descriptorPool ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorPool( + static_cast( m_device ), static_cast( descriptorPool ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4347,7 +4398,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDescriptorPool && "Function requires " ); # endif - d.vkDestroyDescriptorPool( m_device, static_cast( descriptorPool ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorPool( + static_cast( m_device ), static_cast( descriptorPool ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -4372,8 +4424,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkResetDescriptorPool && "Function requires " ); # endif - Result result = static_cast( - d.vkResetDescriptorPool( m_device, static_cast( descriptorPool ), static_cast( flags ) ) ); + Result result = static_cast( d.vkResetDescriptorPool( + static_cast( m_device ), static_cast( descriptorPool ), static_cast( flags ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetDescriptorPool" ); return detail::createResultValueType( result ); @@ -4406,8 +4458,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector descriptorSets( allocateInfo.descriptorSetCount ); - Result result = static_cast( d.vkAllocateDescriptorSets( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); + Result result = static_cast( d.vkAllocateDescriptorSets( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( descriptorSets.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); return detail::createResultValueType( result, std::move( descriptorSets ) ); @@ -4427,8 +4480,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector descriptorSets( allocateInfo.descriptorSetCount, {}, descriptorSetAllocator ); - Result result = static_cast( d.vkAllocateDescriptorSets( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); + Result result = static_cast( d.vkAllocateDescriptorSets( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( descriptorSets.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); return detail::createResultValueType( result, std::move( descriptorSets ) ); @@ -4449,8 +4503,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector descriptorSets( allocateInfo.descriptorSetCount ); - Result result = static_cast( d.vkAllocateDescriptorSets( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); + Result result = static_cast( d.vkAllocateDescriptorSets( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( descriptorSets.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" ); std::vector, DescriptorSetAllocator> uniqueDescriptorSets; uniqueDescriptorSets.reserve( allocateInfo.descriptorSetCount ); @@ -4477,8 +4532,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector descriptorSets( allocateInfo.descriptorSetCount ); - Result result = static_cast( d.vkAllocateDescriptorSets( - m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); + Result result = static_cast( d.vkAllocateDescriptorSets( static_cast( m_device ), + reinterpret_cast( &allocateInfo ), + reinterpret_cast( descriptorSets.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" ); std::vector, DescriptorSetAllocator> uniqueDescriptorSets( descriptorSetAllocator ); uniqueDescriptorSets.reserve( allocateInfo.descriptorSetCount ); @@ -4515,8 +4571,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFreeDescriptorSets && "Function requires " ); # endif - Result result = static_cast( d.vkFreeDescriptorSets( - m_device, static_cast( descriptorPool ), descriptorSets.size(), reinterpret_cast( descriptorSets.data() ) ) ); + Result result = static_cast( d.vkFreeDescriptorSets( static_cast( m_device ), + static_cast( descriptorPool ), + descriptorSets.size(), + reinterpret_cast( descriptorSets.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::freeDescriptorSets" ); return detail::createResultValueType( result ); @@ -4546,8 +4604,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkFreeDescriptorSets && "Function requires " ); # endif - Result result = static_cast( d.vkFreeDescriptorSets( - m_device, static_cast( descriptorPool ), descriptorSets.size(), reinterpret_cast( descriptorSets.data() ) ) ); + Result result = static_cast( d.vkFreeDescriptorSets( static_cast( m_device ), + static_cast( descriptorPool ), + descriptorSets.size(), + reinterpret_cast( descriptorSets.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::( Device::free )" ); return detail::createResultValueType( result ); @@ -4582,7 +4642,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSets && "Function requires " ); # endif - d.vkUpdateDescriptorSets( m_device, + d.vkUpdateDescriptorSets( static_cast( m_device ), descriptorWrites.size(), reinterpret_cast( descriptorWrites.data() ), descriptorCopies.size(), @@ -4636,7 +4696,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets && "Function requires " ); # endif - d.vkCmdBindDescriptorSets( m_commandBuffer, + d.vkCmdBindDescriptorSets( static_cast( m_commandBuffer ), static_cast( pipelineBindPoint ), static_cast( layout ), firstSet, @@ -4674,7 +4734,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdClearColorImage && "Function requires " ); # endif - d.vkCmdClearColorImage( m_commandBuffer, + d.vkCmdClearColorImage( static_cast( m_commandBuffer ), static_cast( image ), static_cast( imageLayout ), reinterpret_cast( &color ), @@ -4760,7 +4820,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdWaitEvents && "Function requires " ); # endif - d.vkCmdWaitEvents( m_commandBuffer, + d.vkCmdWaitEvents( static_cast( m_commandBuffer ), events.size(), reinterpret_cast( events.data() ), static_cast( srcStageMask ), @@ -4800,7 +4860,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushConstants && "Function requires " ); # endif - d.vkCmdPushConstants( m_commandBuffer, + d.vkCmdPushConstants( static_cast( m_commandBuffer ), static_cast( layout ), static_cast( stageFlags ), offset, @@ -4845,7 +4905,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateGraphicsPipelines( m_device, + Result result = static_cast( d.vkCreateGraphicsPipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -4880,7 +4940,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size(), {}, pipelineAllocator ); - Result result = static_cast( d.vkCreateGraphicsPipelines( m_device, + Result result = static_cast( d.vkCreateGraphicsPipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -4908,7 +4968,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateGraphicsPipelines( m_device, + Result result = static_cast( d.vkCreateGraphicsPipelines( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -4937,7 +4997,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateGraphicsPipelines( m_device, + Result result = static_cast( d.vkCreateGraphicsPipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -4978,7 +5038,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateGraphicsPipelines( m_device, + Result result = static_cast( d.vkCreateGraphicsPipelines( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -5012,7 +5072,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateGraphicsPipelines( m_device, + Result result = static_cast( d.vkCreateGraphicsPipelines( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -5052,7 +5112,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Framebuffer framebuffer; - Result result = static_cast( d.vkCreateFramebuffer( m_device, + Result result = static_cast( d.vkCreateFramebuffer( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &framebuffer ) ) ); @@ -5073,7 +5133,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Framebuffer framebuffer; - Result result = static_cast( d.vkCreateFramebuffer( m_device, + Result result = static_cast( d.vkCreateFramebuffer( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &framebuffer ) ) ); @@ -5106,7 +5166,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyFramebuffer && "Function requires " ); # endif - d.vkDestroyFramebuffer( m_device, static_cast( framebuffer ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyFramebuffer( + static_cast( m_device ), static_cast( framebuffer ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5129,7 +5190,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyFramebuffer && "Function requires " ); # endif - d.vkDestroyFramebuffer( m_device, static_cast( framebuffer ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyFramebuffer( + static_cast( m_device ), static_cast( framebuffer ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5157,7 +5219,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RenderPass renderPass; - Result result = static_cast( d.vkCreateRenderPass( m_device, + Result result = static_cast( d.vkCreateRenderPass( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &renderPass ) ) ); @@ -5178,7 +5240,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RenderPass renderPass; - Result result = static_cast( d.vkCreateRenderPass( m_device, + Result result = static_cast( d.vkCreateRenderPass( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &renderPass ) ) ); @@ -5211,7 +5273,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyRenderPass && "Function requires " ); # endif - d.vkDestroyRenderPass( m_device, static_cast( renderPass ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyRenderPass( + static_cast( m_device ), static_cast( renderPass ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5234,7 +5297,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyRenderPass && "Function requires " ); # endif - d.vkDestroyRenderPass( m_device, static_cast( renderPass ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyRenderPass( + static_cast( m_device ), static_cast( renderPass ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5257,7 +5321,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Extent2D granularity; - d.vkGetRenderAreaGranularity( m_device, static_cast( renderPass ), reinterpret_cast( &granularity ) ); + d.vkGetRenderAreaGranularity( static_cast( m_device ), static_cast( renderPass ), reinterpret_cast( &granularity ) ); return granularity; } @@ -5283,7 +5347,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetViewport && "Function requires " ); # endif - d.vkCmdSetViewport( m_commandBuffer, firstViewport, viewports.size(), reinterpret_cast( viewports.data() ) ); + d.vkCmdSetViewport( + static_cast( m_commandBuffer ), firstViewport, viewports.size(), reinterpret_cast( viewports.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5307,7 +5372,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetScissor && "Function requires " ); # endif - d.vkCmdSetScissor( m_commandBuffer, firstScissor, scissors.size(), reinterpret_cast( scissors.data() ) ); + d.vkCmdSetScissor( static_cast( m_commandBuffer ), firstScissor, scissors.size(), reinterpret_cast( scissors.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5346,7 +5411,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetBlendConstants && "Function requires " ); # endif - d.vkCmdSetBlendConstants( m_commandBuffer, blendConstants.data() ); + d.vkCmdSetBlendConstants( static_cast( m_commandBuffer ), blendConstants.data() ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5426,7 +5491,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBindVertexBuffers( m_commandBuffer, + d.vkCmdBindVertexBuffers( static_cast( m_commandBuffer ), firstBinding, buffers.size(), reinterpret_cast( buffers.data() ), @@ -5511,7 +5576,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBlitImage && "Function requires " ); # endif - d.vkCmdBlitImage( m_commandBuffer, + d.vkCmdBlitImage( static_cast( m_commandBuffer ), static_cast( srcImage ), static_cast( srcImageLayout ), static_cast( dstImage ), @@ -5554,7 +5619,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdClearDepthStencilImage && "Function requires " ); # endif - d.vkCmdClearDepthStencilImage( m_commandBuffer, + d.vkCmdClearDepthStencilImage( static_cast( m_commandBuffer ), static_cast( image ), static_cast( imageLayout ), reinterpret_cast( &depthStencil ), @@ -5587,7 +5652,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdClearAttachments && "Function requires " ); # endif - d.vkCmdClearAttachments( m_commandBuffer, + d.vkCmdClearAttachments( static_cast( m_commandBuffer ), attachments.size(), reinterpret_cast( attachments.data() ), rects.size(), @@ -5627,7 +5692,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdResolveImage && "Function requires " ); # endif - d.vkCmdResolveImage( m_commandBuffer, + d.vkCmdResolveImage( static_cast( m_commandBuffer ), static_cast( srcImage ), static_cast( srcImageLayout ), static_cast( dstImage ), @@ -5659,7 +5724,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass && "Function requires " ); # endif - d.vkCmdBeginRenderPass( m_commandBuffer, reinterpret_cast( &renderPassBegin ), static_cast( contents ) ); + d.vkCmdBeginRenderPass( static_cast( m_commandBuffer ), + reinterpret_cast( &renderPassBegin ), + static_cast( contents ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5728,8 +5795,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindBufferMemory2 && "Function requires or " ); # endif - Result result = - static_cast( d.vkBindBufferMemory2( m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + Result result = static_cast( + d.vkBindBufferMemory2( static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory2" ); return detail::createResultValueType( result ); @@ -5757,8 +5824,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindImageMemory2 && "Function requires or " ); # endif - Result result = - static_cast( d.vkBindImageMemory2( m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + Result result = static_cast( + d.vkBindImageMemory2( static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory2" ); return detail::createResultValueType( result ); @@ -5792,7 +5859,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PeerMemoryFeatureFlags peerMemoryFeatures; d.vkGetDeviceGroupPeerMemoryFeatures( - m_device, heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast( &peerMemoryFeatures ) ); + static_cast( m_device ), heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast( &peerMemoryFeatures ) ); return peerMemoryFeatures; } @@ -5839,12 +5906,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDeviceGroups( m_instance, &physicalDeviceGroupCount, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceGroups( static_cast( m_instance ), &physicalDeviceGroupCount, nullptr ) ); if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount ) { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); - result = static_cast( d.vkEnumeratePhysicalDeviceGroups( - m_instance, &physicalDeviceGroupCount, reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); + result = static_cast( + d.vkEnumeratePhysicalDeviceGroups( static_cast( m_instance ), + &physicalDeviceGroupCount, + reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" ); @@ -5876,12 +5945,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDeviceGroups( m_instance, &physicalDeviceGroupCount, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceGroups( static_cast( m_instance ), &physicalDeviceGroupCount, nullptr ) ); if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount ) { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); - result = static_cast( d.vkEnumeratePhysicalDeviceGroups( - m_instance, &physicalDeviceGroupCount, reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); + result = static_cast( + d.vkEnumeratePhysicalDeviceGroups( static_cast( m_instance ), + &physicalDeviceGroupCount, + reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" ); @@ -5920,8 +5991,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetImageMemoryRequirements2( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetImageMemoryRequirements2( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -5940,8 +6012,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetImageMemoryRequirements2( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetImageMemoryRequirements2( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -5973,8 +6046,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetBufferMemoryRequirements2( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetBufferMemoryRequirements2( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -5993,8 +6067,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetBufferMemoryRequirements2( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetBufferMemoryRequirements2( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -6035,9 +6110,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements; uint32_t sparseMemoryRequirementCount; d.vkGetImageSparseMemoryRequirements2( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetImageSparseMemoryRequirements2( m_device, + d.vkGetImageSparseMemoryRequirements2( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -6071,9 +6146,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator ); uint32_t sparseMemoryRequirementCount; d.vkGetImageSparseMemoryRequirements2( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetImageSparseMemoryRequirements2( m_device, + d.vkGetImageSparseMemoryRequirements2( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -6107,7 +6182,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceFeatures2 features; - d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast( &features ) ); + d.vkGetPhysicalDeviceFeatures2( static_cast( m_physicalDevice ), reinterpret_cast( &features ) ); return features; } @@ -6124,7 +6199,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; PhysicalDeviceFeatures2 & features = structureChain.template get(); - d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast( &features ) ); + d.vkGetPhysicalDeviceFeatures2( static_cast( m_physicalDevice ), reinterpret_cast( &features ) ); return structureChain; } @@ -6152,7 +6227,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceProperties2 properties; - d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast( &properties ) ); + d.vkGetPhysicalDeviceProperties2( static_cast( m_physicalDevice ), reinterpret_cast( &properties ) ); return properties; } @@ -6170,7 +6245,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; PhysicalDeviceProperties2 & properties = structureChain.template get(); - d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast( &properties ) ); + d.vkGetPhysicalDeviceProperties2( static_cast( m_physicalDevice ), reinterpret_cast( &properties ) ); return structureChain; } @@ -6200,7 +6275,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif FormatProperties2 formatProperties; - d.vkGetPhysicalDeviceFormatProperties2( m_physicalDevice, static_cast( format ), reinterpret_cast( &formatProperties ) ); + d.vkGetPhysicalDeviceFormatProperties2( + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( &formatProperties ) ); return formatProperties; } @@ -6223,7 +6299,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; FormatProperties2 & formatProperties = structureChain.template get(); - d.vkGetPhysicalDeviceFormatProperties2( m_physicalDevice, static_cast( format ), reinterpret_cast( &formatProperties ) ); + d.vkGetPhysicalDeviceFormatProperties2( + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( &formatProperties ) ); return structureChain; } @@ -6256,7 +6333,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ImageFormatProperties2 imageFormatProperties; Result result = - static_cast( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice, + static_cast( d.vkGetPhysicalDeviceImageFormatProperties2( static_cast( m_physicalDevice ), reinterpret_cast( &imageFormatInfo ), reinterpret_cast( &imageFormatProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); @@ -6283,7 +6360,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; ImageFormatProperties2 & imageFormatProperties = structureChain.template get(); Result result = - static_cast( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice, + static_cast( d.vkGetPhysicalDeviceImageFormatProperties2( static_cast( m_physicalDevice ), reinterpret_cast( &imageFormatInfo ), reinterpret_cast( &imageFormatProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); @@ -6321,10 +6398,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); queueFamilyProperties.resize( queueFamilyPropertyCount ); - d.vkGetPhysicalDeviceQueueFamilyProperties2( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -6351,10 +6429,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector queueFamilyProperties( queueFamilyProperties2Allocator ); uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); queueFamilyProperties.resize( queueFamilyPropertyCount ); - d.vkGetPhysicalDeviceQueueFamilyProperties2( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -6383,15 +6462,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector structureChains; std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); structureChains.resize( queueFamilyPropertyCount ); queueFamilyProperties.resize( queueFamilyPropertyCount ); for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ ) { queueFamilyProperties[i].pNext = structureChains[i].template get().pNext; } - d.vkGetPhysicalDeviceQueueFamilyProperties2( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -6424,15 +6504,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector structureChains( structureChainAllocator ); std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); structureChains.resize( queueFamilyPropertyCount ); queueFamilyProperties.resize( queueFamilyPropertyCount ); for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ ) { queueFamilyProperties[i].pNext = structureChains[i].template get().pNext; } - d.vkGetPhysicalDeviceQueueFamilyProperties2( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -6471,7 +6552,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceMemoryProperties2 memoryProperties; - d.vkGetPhysicalDeviceMemoryProperties2( m_physicalDevice, reinterpret_cast( &memoryProperties ) ); + d.vkGetPhysicalDeviceMemoryProperties2( static_cast( m_physicalDevice ), + reinterpret_cast( &memoryProperties ) ); return memoryProperties; } @@ -6493,7 +6575,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get(); - d.vkGetPhysicalDeviceMemoryProperties2( m_physicalDevice, reinterpret_cast( &memoryProperties ) ); + d.vkGetPhysicalDeviceMemoryProperties2( static_cast( m_physicalDevice ), + reinterpret_cast( &memoryProperties ) ); return structureChain; } @@ -6531,10 +6614,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector properties; uint32_t propertyCount; - d.vkGetPhysicalDeviceSparseImageFormatProperties2( - m_physicalDevice, reinterpret_cast( &formatInfo ), &propertyCount, nullptr ); + d.vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast( m_physicalDevice ), + reinterpret_cast( &formatInfo ), + &propertyCount, + nullptr ); properties.resize( propertyCount ); - d.vkGetPhysicalDeviceSparseImageFormatProperties2( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast( m_physicalDevice ), reinterpret_cast( &formatInfo ), &propertyCount, reinterpret_cast( properties.data() ) ); @@ -6566,10 +6651,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector properties( sparseImageFormatProperties2Allocator ); uint32_t propertyCount; - d.vkGetPhysicalDeviceSparseImageFormatProperties2( - m_physicalDevice, reinterpret_cast( &formatInfo ), &propertyCount, nullptr ); + d.vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast( m_physicalDevice ), + reinterpret_cast( &formatInfo ), + &propertyCount, + nullptr ); properties.resize( propertyCount ); - d.vkGetPhysicalDeviceSparseImageFormatProperties2( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast( m_physicalDevice ), reinterpret_cast( &formatInfo ), &propertyCount, reinterpret_cast( properties.data() ) ); @@ -6610,7 +6697,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Queue queue; - d.vkGetDeviceQueue2( m_device, reinterpret_cast( &queueInfo ), reinterpret_cast( &queue ) ); + d.vkGetDeviceQueue2( static_cast( m_device ), reinterpret_cast( &queueInfo ), reinterpret_cast( &queue ) ); return queue; } @@ -6643,7 +6730,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalBufferProperties externalBufferProperties; - d.vkGetPhysicalDeviceExternalBufferProperties( m_physicalDevice, + d.vkGetPhysicalDeviceExternalBufferProperties( static_cast( m_physicalDevice ), reinterpret_cast( &externalBufferInfo ), reinterpret_cast( &externalBufferProperties ) ); @@ -6678,7 +6765,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalFenceProperties externalFenceProperties; - d.vkGetPhysicalDeviceExternalFenceProperties( m_physicalDevice, + d.vkGetPhysicalDeviceExternalFenceProperties( static_cast( m_physicalDevice ), reinterpret_cast( &externalFenceInfo ), reinterpret_cast( &externalFenceProperties ) ); @@ -6713,7 +6800,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalSemaphoreProperties externalSemaphoreProperties; - d.vkGetPhysicalDeviceExternalSemaphoreProperties( m_physicalDevice, + d.vkGetPhysicalDeviceExternalSemaphoreProperties( static_cast( m_physicalDevice ), reinterpret_cast( &externalSemaphoreInfo ), reinterpret_cast( &externalSemaphoreProperties ) ); @@ -6760,7 +6847,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorUpdateTemplate descriptorUpdateTemplate; - Result result = static_cast( d.vkCreateDescriptorUpdateTemplate( m_device, + Result result = static_cast( d.vkCreateDescriptorUpdateTemplate( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &descriptorUpdateTemplate ) ) ); @@ -6784,7 +6871,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorUpdateTemplate descriptorUpdateTemplate; - Result result = static_cast( d.vkCreateDescriptorUpdateTemplate( m_device, + Result result = static_cast( d.vkCreateDescriptorUpdateTemplate( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &descriptorUpdateTemplate ) ) ); @@ -6821,8 +6908,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkDestroyDescriptorUpdateTemplate( - m_device, static_cast( descriptorUpdateTemplate ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorUpdateTemplate( static_cast( m_device ), + static_cast( descriptorUpdateTemplate ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -6851,8 +6939,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkDestroyDescriptorUpdateTemplate( - m_device, static_cast( descriptorUpdateTemplate ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorUpdateTemplate( static_cast( m_device ), + static_cast( descriptorUpdateTemplate ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -6882,7 +6971,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkUpdateDescriptorSetWithTemplate( m_device, + d.vkUpdateDescriptorSetWithTemplate( static_cast( m_device ), static_cast( descriptorSet ), static_cast( descriptorUpdateTemplate ), reinterpret_cast( &data ) ); @@ -6914,8 +7003,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorSetLayoutSupport support; - d.vkGetDescriptorSetLayoutSupport( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &support ) ); + d.vkGetDescriptorSetLayoutSupport( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &support ) ); return support; } @@ -6933,8 +7023,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; DescriptorSetLayoutSupport & support = structureChain.template get(); - d.vkGetDescriptorSetLayoutSupport( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &support ) ); + d.vkGetDescriptorSetLayoutSupport( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &support ) ); return structureChain; } @@ -6969,7 +7060,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SamplerYcbcrConversion ycbcrConversion; - Result result = static_cast( d.vkCreateSamplerYcbcrConversion( m_device, + Result result = static_cast( d.vkCreateSamplerYcbcrConversion( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &ycbcrConversion ) ) ); @@ -6993,7 +7084,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SamplerYcbcrConversion ycbcrConversion; - Result result = static_cast( d.vkCreateSamplerYcbcrConversion( m_device, + Result result = static_cast( d.vkCreateSamplerYcbcrConversion( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &ycbcrConversion ) ) ); @@ -7030,8 +7121,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkDestroySamplerYcbcrConversion( - m_device, static_cast( ycbcrConversion ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySamplerYcbcrConversion( static_cast( m_device ), + static_cast( ycbcrConversion ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7060,8 +7152,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkDestroySamplerYcbcrConversion( - m_device, static_cast( ycbcrConversion ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySamplerYcbcrConversion( static_cast( m_device ), + static_cast( ycbcrConversion ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7096,7 +7189,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint64_t value; - Result result = static_cast( d.vkGetSemaphoreCounterValue( m_device, static_cast( semaphore ), &value ) ); + Result result = static_cast( d.vkGetSemaphoreCounterValue( static_cast( m_device ), static_cast( semaphore ), &value ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValue" ); return detail::createResultValueType( result, std::move( value ) ); @@ -7122,7 +7215,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkWaitSemaphores && "Function requires or " ); # endif - Result result = static_cast( d.vkWaitSemaphores( m_device, reinterpret_cast( &waitInfo ), timeout ) ); + Result result = + static_cast( d.vkWaitSemaphores( static_cast( m_device ), reinterpret_cast( &waitInfo ), timeout ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitSemaphores", { Result::eSuccess, Result::eTimeout } ); return static_cast( result ); @@ -7148,7 +7242,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSignalSemaphore && "Function requires or " ); # endif - Result result = static_cast( d.vkSignalSemaphore( m_device, reinterpret_cast( &signalInfo ) ) ); + Result result = + static_cast( d.vkSignalSemaphore( static_cast( m_device ), reinterpret_cast( &signalInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::signalSemaphore" ); return detail::createResultValueType( result ); @@ -7175,7 +7270,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - VkDeviceAddress result = d.vkGetBufferDeviceAddress( m_device, reinterpret_cast( &info ) ); + VkDeviceAddress result = d.vkGetBufferDeviceAddress( static_cast( m_device ), reinterpret_cast( &info ) ); return static_cast( result ); } @@ -7202,7 +7297,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - uint64_t result = d.vkGetBufferOpaqueCaptureAddress( m_device, reinterpret_cast( &info ) ); + uint64_t result = d.vkGetBufferOpaqueCaptureAddress( static_cast( m_device ), reinterpret_cast( &info ) ); return result; } @@ -7232,7 +7327,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddress( m_device, reinterpret_cast( &info ) ); + uint64_t result = + d.vkGetDeviceMemoryOpaqueCaptureAddress( static_cast( m_device ), reinterpret_cast( &info ) ); return result; } @@ -7295,7 +7391,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RenderPass renderPass; - Result result = static_cast( d.vkCreateRenderPass2( m_device, + Result result = static_cast( d.vkCreateRenderPass2( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &renderPass ) ) ); @@ -7316,7 +7412,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RenderPass renderPass; - Result result = static_cast( d.vkCreateRenderPass2( m_device, + Result result = static_cast( d.vkCreateRenderPass2( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &renderPass ) ) ); @@ -7350,8 +7446,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass2 && "Function requires or " ); # endif - d.vkCmdBeginRenderPass2( - m_commandBuffer, reinterpret_cast( &renderPassBegin ), reinterpret_cast( &subpassBeginInfo ) ); + d.vkCmdBeginRenderPass2( static_cast( m_commandBuffer ), + reinterpret_cast( &renderPassBegin ), + reinterpret_cast( &subpassBeginInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7377,8 +7474,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdNextSubpass2 && "Function requires or " ); # endif - d.vkCmdNextSubpass2( - m_commandBuffer, reinterpret_cast( &subpassBeginInfo ), reinterpret_cast( &subpassEndInfo ) ); + d.vkCmdNextSubpass2( static_cast( m_commandBuffer ), + reinterpret_cast( &subpassBeginInfo ), + reinterpret_cast( &subpassEndInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7400,7 +7498,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndRenderPass2 && "Function requires or " ); # endif - d.vkCmdEndRenderPass2( m_commandBuffer, reinterpret_cast( &subpassEndInfo ) ); + d.vkCmdEndRenderPass2( static_cast( m_commandBuffer ), reinterpret_cast( &subpassEndInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7438,12 +7536,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceToolProperties( static_cast( m_physicalDevice ), &toolCount, nullptr ) ); if ( ( result == Result::eSuccess ) && toolCount ) { toolProperties.resize( toolCount ); - result = static_cast( - d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, reinterpret_cast( toolProperties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceToolProperties( + static_cast( m_physicalDevice ), &toolCount, reinterpret_cast( toolProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" ); @@ -7475,12 +7573,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceToolProperties( static_cast( m_physicalDevice ), &toolCount, nullptr ) ); if ( ( result == Result::eSuccess ) && toolCount ) { toolProperties.resize( toolCount ); - result = static_cast( - d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, reinterpret_cast( toolProperties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceToolProperties( + static_cast( m_physicalDevice ), &toolCount, reinterpret_cast( toolProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" ); @@ -7518,7 +7616,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PrivateDataSlot privateDataSlot; - Result result = static_cast( d.vkCreatePrivateDataSlot( m_device, + Result result = static_cast( d.vkCreatePrivateDataSlot( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &privateDataSlot ) ) ); @@ -7539,7 +7637,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PrivateDataSlot privateDataSlot; - Result result = static_cast( d.vkCreatePrivateDataSlot( m_device, + Result result = static_cast( d.vkCreatePrivateDataSlot( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &privateDataSlot ) ) ); @@ -7572,8 +7670,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlot && "Function requires or " ); # endif - d.vkDestroyPrivateDataSlot( - m_device, static_cast( privateDataSlot ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPrivateDataSlot( static_cast( m_device ), + static_cast( privateDataSlot ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7598,8 +7697,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlot && "Function requires or " ); # endif - d.vkDestroyPrivateDataSlot( - m_device, static_cast( privateDataSlot ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPrivateDataSlot( static_cast( m_device ), + static_cast( privateDataSlot ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7624,8 +7724,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetPrivateData && "Function requires or " ); # endif - Result result = static_cast( - d.vkSetPrivateData( m_device, static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), data ) ); + Result result = static_cast( d.vkSetPrivateData( + static_cast( m_device ), static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setPrivateData" ); return detail::createResultValueType( result ); @@ -7654,7 +7754,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint64_t data; - d.vkGetPrivateData( m_device, static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), &data ); + d.vkGetPrivateData( + static_cast( m_device ), static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), &data ); return data; } @@ -7678,7 +7779,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier2 && "Function requires or " ); # endif - d.vkCmdPipelineBarrier2( m_commandBuffer, reinterpret_cast( &dependencyInfo ) ); + d.vkCmdPipelineBarrier2( static_cast( m_commandBuffer ), reinterpret_cast( &dependencyInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7713,8 +7814,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueSubmit2 && "Function requires or " ); # endif - Result result = static_cast( - d.vkQueueSubmit2( m_queue, submits.size(), reinterpret_cast( submits.data() ), static_cast( fence ) ) ); + Result result = static_cast( d.vkQueueSubmit2( + static_cast( m_queue ), submits.size(), reinterpret_cast( submits.data() ), static_cast( fence ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit2" ); return detail::createResultValueType( result ); @@ -7739,7 +7840,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer2 && "Function requires or " ); # endif - d.vkCmdCopyBuffer2( m_commandBuffer, reinterpret_cast( ©BufferInfo ) ); + d.vkCmdCopyBuffer2( static_cast( m_commandBuffer ), reinterpret_cast( ©BufferInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7761,7 +7862,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImage2 && "Function requires or " ); # endif - d.vkCmdCopyImage2( m_commandBuffer, reinterpret_cast( ©ImageInfo ) ); + d.vkCmdCopyImage2( static_cast( m_commandBuffer ), reinterpret_cast( ©ImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7784,7 +7885,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage2 && "Function requires or " ); # endif - d.vkCmdCopyBufferToImage2( m_commandBuffer, reinterpret_cast( ©BufferToImageInfo ) ); + d.vkCmdCopyBufferToImage2( static_cast( m_commandBuffer ), reinterpret_cast( ©BufferToImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7807,7 +7908,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer2 && "Function requires or " ); # endif - d.vkCmdCopyImageToBuffer2( m_commandBuffer, reinterpret_cast( ©ImageToBufferInfo ) ); + d.vkCmdCopyImageToBuffer2( static_cast( m_commandBuffer ), reinterpret_cast( ©ImageToBufferInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7837,8 +7938,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetDeviceBufferMemoryRequirements( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceBufferMemoryRequirements( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -7857,8 +7959,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetDeviceBufferMemoryRequirements( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceBufferMemoryRequirements( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -7890,8 +7993,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetDeviceImageMemoryRequirements( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceImageMemoryRequirements( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -7910,8 +8014,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetDeviceImageMemoryRequirements( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceImageMemoryRequirements( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -7952,9 +8057,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements; uint32_t sparseMemoryRequirementCount; d.vkGetDeviceImageSparseMemoryRequirements( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetDeviceImageSparseMemoryRequirements( m_device, + d.vkGetDeviceImageSparseMemoryRequirements( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -7988,9 +8093,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator ); uint32_t sparseMemoryRequirementCount; d.vkGetDeviceImageSparseMemoryRequirements( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetDeviceImageSparseMemoryRequirements( m_device, + d.vkGetDeviceImageSparseMemoryRequirements( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -8023,7 +8128,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetEvent2 && "Function requires or " ); # endif - d.vkCmdSetEvent2( m_commandBuffer, static_cast( event ), reinterpret_cast( &dependencyInfo ) ); + d.vkCmdSetEvent2( + static_cast( m_commandBuffer ), static_cast( event ), reinterpret_cast( &dependencyInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8067,7 +8173,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdWaitEvents2( m_commandBuffer, + d.vkCmdWaitEvents2( static_cast( m_commandBuffer ), events.size(), reinterpret_cast( events.data() ), reinterpret_cast( dependencyInfos.data() ) ); @@ -8092,7 +8198,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBlitImage2 && "Function requires or " ); # endif - d.vkCmdBlitImage2( m_commandBuffer, reinterpret_cast( &blitImageInfo ) ); + d.vkCmdBlitImage2( static_cast( m_commandBuffer ), reinterpret_cast( &blitImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8114,7 +8220,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdResolveImage2 && "Function requires or " ); # endif - d.vkCmdResolveImage2( m_commandBuffer, reinterpret_cast( &resolveImageInfo ) ); + d.vkCmdResolveImage2( static_cast( m_commandBuffer ), reinterpret_cast( &resolveImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8136,7 +8242,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginRendering && "Function requires or " ); # endif - d.vkCmdBeginRendering( m_commandBuffer, reinterpret_cast( &renderingInfo ) ); + d.vkCmdBeginRendering( static_cast( m_commandBuffer ), reinterpret_cast( &renderingInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8192,7 +8298,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - d.vkCmdSetViewportWithCount( m_commandBuffer, viewports.size(), reinterpret_cast( viewports.data() ) ); + d.vkCmdSetViewportWithCount( static_cast( m_commandBuffer ), viewports.size(), reinterpret_cast( viewports.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8215,7 +8321,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - d.vkCmdSetScissorWithCount( m_commandBuffer, scissors.size(), reinterpret_cast( scissors.data() ) ); + d.vkCmdSetScissorWithCount( static_cast( m_commandBuffer ), scissors.size(), reinterpret_cast( scissors.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8273,7 +8379,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBindVertexBuffers2( m_commandBuffer, + d.vkCmdBindVertexBuffers2( static_cast( m_commandBuffer ), firstBinding, buffers.size(), reinterpret_cast( buffers.data() ), @@ -8387,7 +8493,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif void * pData; - Result result = static_cast( d.vkMapMemory2( m_device, reinterpret_cast( &memoryMapInfo ), &pData ) ); + Result result = + static_cast( d.vkMapMemory2( static_cast( m_device ), reinterpret_cast( &memoryMapInfo ), &pData ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2" ); return detail::createResultValueType( result, std::move( pData ) ); @@ -8413,7 +8520,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkUnmapMemory2 && "Function requires or " ); # endif - Result result = static_cast( d.vkUnmapMemory2( m_device, reinterpret_cast( &memoryUnmapInfo ) ) ); + Result result = + static_cast( d.vkUnmapMemory2( static_cast( m_device ), reinterpret_cast( &memoryUnmapInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2" ); return detail::createResultValueType( result ); @@ -8446,7 +8554,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE SubresourceLayout2 layout; d.vkGetDeviceImageSubresourceLayout( - m_device, reinterpret_cast( &info ), reinterpret_cast( &layout ) ); + static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &layout ) ); return layout; } @@ -8466,7 +8574,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; SubresourceLayout2 & layout = structureChain.template get(); d.vkGetDeviceImageSubresourceLayout( - m_device, reinterpret_cast( &info ), reinterpret_cast( &layout ) ); + static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &layout ) ); return structureChain; } @@ -8498,7 +8606,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SubresourceLayout2 layout; - d.vkGetImageSubresourceLayout2( m_device, + d.vkGetImageSubresourceLayout2( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -8520,7 +8628,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; SubresourceLayout2 & layout = structureChain.template get(); - d.vkGetImageSubresourceLayout2( m_device, + d.vkGetImageSubresourceLayout2( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -8550,7 +8658,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyMemoryToImage && "Function requires or " ); # endif - Result result = static_cast( d.vkCopyMemoryToImage( m_device, reinterpret_cast( ©MemoryToImageInfo ) ) ); + Result result = static_cast( + d.vkCopyMemoryToImage( static_cast( m_device ), reinterpret_cast( ©MemoryToImageInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToImage" ); return detail::createResultValueType( result ); @@ -8578,7 +8687,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyImageToMemory && "Function requires or " ); # endif - Result result = static_cast( d.vkCopyImageToMemory( m_device, reinterpret_cast( ©ImageToMemoryInfo ) ) ); + Result result = static_cast( + d.vkCopyImageToMemory( static_cast( m_device ), reinterpret_cast( ©ImageToMemoryInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToMemory" ); return detail::createResultValueType( result ); @@ -8606,7 +8716,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyImageToImage && "Function requires or " ); # endif - Result result = static_cast( d.vkCopyImageToImage( m_device, reinterpret_cast( ©ImageToImageInfo ) ) ); + Result result = static_cast( + d.vkCopyImageToImage( static_cast( m_device ), reinterpret_cast( ©ImageToImageInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToImage" ); return detail::createResultValueType( result ); @@ -8634,8 +8745,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkTransitionImageLayout && "Function requires or " ); # endif - Result result = static_cast( - d.vkTransitionImageLayout( m_device, transitions.size(), reinterpret_cast( transitions.data() ) ) ); + Result result = static_cast( d.vkTransitionImageLayout( + static_cast( m_device ), transitions.size(), reinterpret_cast( transitions.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::transitionImageLayout" ); return detail::createResultValueType( result ); @@ -8674,7 +8785,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet && "Function requires or " ); # endif - d.vkCmdPushDescriptorSet( m_commandBuffer, + d.vkCmdPushDescriptorSet( static_cast( m_commandBuffer ), static_cast( pipelineBindPoint ), static_cast( layout ), set, @@ -8712,7 +8823,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - d.vkCmdPushDescriptorSetWithTemplate( m_commandBuffer, + d.vkCmdPushDescriptorSetWithTemplate( static_cast( m_commandBuffer ), static_cast( descriptorUpdateTemplate ), static_cast( layout ), set, @@ -8741,7 +8852,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets2 && "Function requires or " ); # endif - d.vkCmdBindDescriptorSets2( m_commandBuffer, reinterpret_cast( &bindDescriptorSetsInfo ) ); + d.vkCmdBindDescriptorSets2( static_cast( m_commandBuffer ), + reinterpret_cast( &bindDescriptorSetsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8763,7 +8875,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushConstants2 && "Function requires or " ); # endif - d.vkCmdPushConstants2( m_commandBuffer, reinterpret_cast( &pushConstantsInfo ) ); + d.vkCmdPushConstants2( static_cast( m_commandBuffer ), reinterpret_cast( &pushConstantsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8785,7 +8897,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet2 && "Function requires or " ); # endif - d.vkCmdPushDescriptorSet2( m_commandBuffer, reinterpret_cast( &pushDescriptorSetInfo ) ); + d.vkCmdPushDescriptorSet2( static_cast( m_commandBuffer ), reinterpret_cast( &pushDescriptorSetInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8813,7 +8925,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdPushDescriptorSetWithTemplate2( m_commandBuffer, + d.vkCmdPushDescriptorSetWithTemplate2( static_cast( m_commandBuffer ), reinterpret_cast( &pushDescriptorSetWithTemplateInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8864,7 +8976,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Extent2D granularity; d.vkGetRenderingAreaGranularity( - m_device, reinterpret_cast( &renderingAreaInfo ), reinterpret_cast( &granularity ) ); + static_cast( m_device ), reinterpret_cast( &renderingAreaInfo ), reinterpret_cast( &granularity ) ); return granularity; } @@ -8894,7 +9006,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetRenderingAttachmentLocations( m_commandBuffer, reinterpret_cast( &locationInfo ) ); + d.vkCmdSetRenderingAttachmentLocations( static_cast( m_commandBuffer ), + reinterpret_cast( &locationInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8922,7 +9035,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetRenderingInputAttachmentIndices( m_commandBuffer, reinterpret_cast( &inputAttachmentIndexInfo ) ); + d.vkCmdSetRenderingInputAttachmentIndices( static_cast( m_commandBuffer ), + reinterpret_cast( &inputAttachmentIndexInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8948,7 +9062,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySurfaceKHR && "Function requires " ); # endif - d.vkDestroySurfaceKHR( m_instance, static_cast( surface ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySurfaceKHR( + static_cast( m_instance ), static_cast( surface ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8971,7 +9086,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySurfaceKHR && "Function requires " ); # endif - d.vkDestroySurfaceKHR( m_instance, static_cast( surface ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySurfaceKHR( + static_cast( m_instance ), static_cast( surface ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9000,7 +9116,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Bool32 supported; Result result = static_cast( d.vkGetPhysicalDeviceSurfaceSupportKHR( - m_physicalDevice, queueFamilyIndex, static_cast( surface ), reinterpret_cast( &supported ) ) ); + static_cast( m_physicalDevice ), queueFamilyIndex, static_cast( surface ), reinterpret_cast( &supported ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceSupportKHR" ); return detail::createResultValueType( result, std::move( supported ) ); @@ -9032,8 +9148,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceCapabilitiesKHR surfaceCapabilities; - Result result = static_cast( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR( - m_physicalDevice, static_cast( surface ), reinterpret_cast( &surfaceCapabilities ) ) ); + Result result = static_cast( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR( static_cast( m_physicalDevice ), + static_cast( surface ), + reinterpret_cast( &surfaceCapabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilitiesKHR" ); return detail::createResultValueType( result, std::move( surfaceCapabilities ) ); @@ -9073,13 +9190,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = - static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( m_physicalDevice, static_cast( surface ), &surfaceFormatCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( + static_cast( m_physicalDevice ), static_cast( surface ), &surfaceFormatCount, nullptr ) ); if ( ( result == Result::eSuccess ) && surfaceFormatCount ) { surfaceFormats.resize( surfaceFormatCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( - m_physicalDevice, static_cast( surface ), &surfaceFormatCount, reinterpret_cast( surfaceFormats.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( static_cast( m_physicalDevice ), + static_cast( surface ), + &surfaceFormatCount, + reinterpret_cast( surfaceFormats.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" ); @@ -9110,13 +9229,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = - static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( m_physicalDevice, static_cast( surface ), &surfaceFormatCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( + static_cast( m_physicalDevice ), static_cast( surface ), &surfaceFormatCount, nullptr ) ); if ( ( result == Result::eSuccess ) && surfaceFormatCount ) { surfaceFormats.resize( surfaceFormatCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( - m_physicalDevice, static_cast( surface ), &surfaceFormatCount, reinterpret_cast( surfaceFormats.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormatsKHR( static_cast( m_physicalDevice ), + static_cast( surface ), + &surfaceFormatCount, + reinterpret_cast( surfaceFormats.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" ); @@ -9162,13 +9283,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetPhysicalDeviceSurfacePresentModesKHR( m_physicalDevice, static_cast( surface ), &presentModeCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModesKHR( + static_cast( m_physicalDevice ), static_cast( surface ), &presentModeCount, nullptr ) ); if ( ( result == Result::eSuccess ) && presentModeCount ) { presentModes.resize( presentModeCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModesKHR( - m_physicalDevice, static_cast( surface ), &presentModeCount, reinterpret_cast( presentModes.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModesKHR( static_cast( m_physicalDevice ), + static_cast( surface ), + &presentModeCount, + reinterpret_cast( presentModes.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" ); @@ -9199,13 +9322,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetPhysicalDeviceSurfacePresentModesKHR( m_physicalDevice, static_cast( surface ), &presentModeCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModesKHR( + static_cast( m_physicalDevice ), static_cast( surface ), &presentModeCount, nullptr ) ); if ( ( result == Result::eSuccess ) && presentModeCount ) { presentModes.resize( presentModeCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModesKHR( - m_physicalDevice, static_cast( surface ), &presentModeCount, reinterpret_cast( presentModes.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModesKHR( static_cast( m_physicalDevice ), + static_cast( surface ), + &presentModeCount, + reinterpret_cast( presentModes.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" ); @@ -9245,7 +9370,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SwapchainKHR swapchain; - Result result = static_cast( d.vkCreateSwapchainKHR( m_device, + Result result = static_cast( d.vkCreateSwapchainKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &swapchain ) ) ); @@ -9266,7 +9391,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SwapchainKHR swapchain; - Result result = static_cast( d.vkCreateSwapchainKHR( m_device, + Result result = static_cast( d.vkCreateSwapchainKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &swapchain ) ) ); @@ -9299,7 +9424,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySwapchainKHR && "Function requires " ); # endif - d.vkDestroySwapchainKHR( m_device, static_cast( swapchain ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySwapchainKHR( + static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9322,7 +9448,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroySwapchainKHR && "Function requires " ); # endif - d.vkDestroySwapchainKHR( m_device, static_cast( swapchain ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySwapchainKHR( + static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9355,12 +9482,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetSwapchainImagesKHR( m_device, static_cast( swapchain ), &swapchainImageCount, nullptr ) ); + result = static_cast( + d.vkGetSwapchainImagesKHR( static_cast( m_device ), static_cast( swapchain ), &swapchainImageCount, nullptr ) ); if ( ( result == Result::eSuccess ) && swapchainImageCount ) { swapchainImages.resize( swapchainImageCount ); - result = static_cast( d.vkGetSwapchainImagesKHR( - m_device, static_cast( swapchain ), &swapchainImageCount, reinterpret_cast( swapchainImages.data() ) ) ); + result = static_cast( d.vkGetSwapchainImagesKHR( static_cast( m_device ), + static_cast( swapchain ), + &swapchainImageCount, + reinterpret_cast( swapchainImages.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainImagesKHR" ); @@ -9390,12 +9520,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetSwapchainImagesKHR( m_device, static_cast( swapchain ), &swapchainImageCount, nullptr ) ); + result = static_cast( + d.vkGetSwapchainImagesKHR( static_cast( m_device ), static_cast( swapchain ), &swapchainImageCount, nullptr ) ); if ( ( result == Result::eSuccess ) && swapchainImageCount ) { swapchainImages.resize( swapchainImageCount ); - result = static_cast( d.vkGetSwapchainImagesKHR( - m_device, static_cast( swapchain ), &swapchainImageCount, reinterpret_cast( swapchainImages.data() ) ) ); + result = static_cast( d.vkGetSwapchainImagesKHR( static_cast( m_device ), + static_cast( swapchain ), + &swapchainImageCount, + reinterpret_cast( swapchainImages.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainImagesKHR" ); @@ -9434,8 +9567,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint32_t imageIndex; - Result result = static_cast( d.vkAcquireNextImageKHR( - m_device, static_cast( swapchain ), timeout, static_cast( semaphore ), static_cast( fence ), &imageIndex ) ); + Result result = static_cast( d.vkAcquireNextImageKHR( static_cast( m_device ), + static_cast( swapchain ), + timeout, + static_cast( semaphore ), + static_cast( fence ), + &imageIndex ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( result, @@ -9468,7 +9605,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueuePresentKHR && "Function requires " ); # endif - Result result = static_cast( d.vkQueuePresentKHR( m_queue, reinterpret_cast( &presentInfo ) ) ); + Result result = static_cast( d.vkQueuePresentKHR( static_cast( m_queue ), reinterpret_cast( &presentInfo ) ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } ); @@ -9505,8 +9642,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceGroupPresentCapabilitiesKHR deviceGroupPresentCapabilities; - Result result = static_cast( - d.vkGetDeviceGroupPresentCapabilitiesKHR( m_device, reinterpret_cast( &deviceGroupPresentCapabilities ) ) ); + Result result = static_cast( d.vkGetDeviceGroupPresentCapabilitiesKHR( + static_cast( m_device ), reinterpret_cast( &deviceGroupPresentCapabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupPresentCapabilitiesKHR" ); return detail::createResultValueType( result, std::move( deviceGroupPresentCapabilities ) ); @@ -9539,7 +9676,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DeviceGroupPresentModeFlagsKHR modes; Result result = static_cast( d.vkGetDeviceGroupSurfacePresentModesKHR( - m_device, static_cast( surface ), reinterpret_cast( &modes ) ) ); + static_cast( m_device ), static_cast( surface ), reinterpret_cast( &modes ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModesKHR" ); return detail::createResultValueType( result, std::move( modes ) ); @@ -9578,12 +9715,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDevicePresentRectanglesKHR( m_physicalDevice, static_cast( surface ), &rectCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDevicePresentRectanglesKHR( + static_cast( m_physicalDevice ), static_cast( surface ), &rectCount, nullptr ) ); if ( ( result == Result::eSuccess ) && rectCount ) { rects.resize( rectCount ); result = static_cast( d.vkGetPhysicalDevicePresentRectanglesKHR( - m_physicalDevice, static_cast( surface ), &rectCount, reinterpret_cast( rects.data() ) ) ); + static_cast( m_physicalDevice ), static_cast( surface ), &rectCount, reinterpret_cast( rects.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" ); @@ -9615,12 +9753,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDevicePresentRectanglesKHR( m_physicalDevice, static_cast( surface ), &rectCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDevicePresentRectanglesKHR( + static_cast( m_physicalDevice ), static_cast( surface ), &rectCount, nullptr ) ); if ( ( result == Result::eSuccess ) && rectCount ) { rects.resize( rectCount ); result = static_cast( d.vkGetPhysicalDevicePresentRectanglesKHR( - m_physicalDevice, static_cast( surface ), &rectCount, reinterpret_cast( rects.data() ) ) ); + static_cast( m_physicalDevice ), static_cast( surface ), &rectCount, reinterpret_cast( rects.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" ); @@ -9655,8 +9794,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint32_t imageIndex; - Result result = - static_cast( d.vkAcquireNextImage2KHR( m_device, reinterpret_cast( &acquireInfo ), &imageIndex ) ); + Result result = static_cast( + d.vkAcquireNextImage2KHR( static_cast( m_device ), reinterpret_cast( &acquireInfo ), &imageIndex ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( result, @@ -9704,12 +9843,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayPropertiesKHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( - d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayPropertiesKHR( + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" ); @@ -9740,12 +9879,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayPropertiesKHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( - d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayPropertiesKHR( + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" ); @@ -9789,12 +9928,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" ); @@ -9825,12 +9965,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" ); @@ -9874,12 +10015,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, nullptr ) ); + result = + static_cast( d.vkGetDisplayPlaneSupportedDisplaysKHR( static_cast( m_physicalDevice ), planeIndex, &displayCount, nullptr ) ); if ( ( result == Result::eSuccess ) && displayCount ) { displays.resize( displayCount ); - result = static_cast( - d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, reinterpret_cast( displays.data() ) ) ); + result = static_cast( d.vkGetDisplayPlaneSupportedDisplaysKHR( + static_cast( m_physicalDevice ), planeIndex, &displayCount, reinterpret_cast( displays.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" ); @@ -9910,12 +10052,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, nullptr ) ); + result = + static_cast( d.vkGetDisplayPlaneSupportedDisplaysKHR( static_cast( m_physicalDevice ), planeIndex, &displayCount, nullptr ) ); if ( ( result == Result::eSuccess ) && displayCount ) { displays.resize( displayCount ); - result = static_cast( - d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, reinterpret_cast( displays.data() ) ) ); + result = static_cast( d.vkGetDisplayPlaneSupportedDisplaysKHR( + static_cast( m_physicalDevice ), planeIndex, &displayCount, reinterpret_cast( displays.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" ); @@ -9961,12 +10104,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayModePropertiesKHR( m_physicalDevice, static_cast( display ), &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetDisplayModePropertiesKHR( static_cast( m_physicalDevice ), static_cast( display ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( d.vkGetDisplayModePropertiesKHR( - m_physicalDevice, static_cast( display ), &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetDisplayModePropertiesKHR( static_cast( m_physicalDevice ), + static_cast( display ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModePropertiesKHR" ); @@ -9998,12 +10144,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayModePropertiesKHR( m_physicalDevice, static_cast( display ), &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetDisplayModePropertiesKHR( static_cast( m_physicalDevice ), static_cast( display ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( d.vkGetDisplayModePropertiesKHR( - m_physicalDevice, static_cast( display ), &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetDisplayModePropertiesKHR( static_cast( m_physicalDevice ), + static_cast( display ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModePropertiesKHR" ); @@ -10042,7 +10191,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayModeKHR mode; - Result result = static_cast( d.vkCreateDisplayModeKHR( m_physicalDevice, + Result result = static_cast( d.vkCreateDisplayModeKHR( static_cast( m_physicalDevice ), static_cast( display ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), @@ -10064,7 +10213,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayModeKHR mode; - Result result = static_cast( d.vkCreateDisplayModeKHR( m_physicalDevice, + Result result = static_cast( d.vkCreateDisplayModeKHR( static_cast( m_physicalDevice ), static_cast( display ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), @@ -10103,8 +10252,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayPlaneCapabilitiesKHR capabilities; - Result result = static_cast( d.vkGetDisplayPlaneCapabilitiesKHR( - m_physicalDevice, static_cast( mode ), planeIndex, reinterpret_cast( &capabilities ) ) ); + Result result = static_cast( d.vkGetDisplayPlaneCapabilitiesKHR( static_cast( m_physicalDevice ), + static_cast( mode ), + planeIndex, + reinterpret_cast( &capabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilitiesKHR" ); return detail::createResultValueType( result, std::move( capabilities ) ); @@ -10138,7 +10289,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateDisplayPlaneSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateDisplayPlaneSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10160,7 +10311,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateDisplayPlaneSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateDisplayPlaneSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10205,7 +10356,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector swapchains( createInfos.size() ); - Result result = static_cast( d.vkCreateSharedSwapchainsKHR( m_device, + Result result = static_cast( d.vkCreateSharedSwapchainsKHR( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -10232,7 +10383,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector swapchains( createInfos.size(), {}, swapchainKHRAllocator ); - Result result = static_cast( d.vkCreateSharedSwapchainsKHR( m_device, + Result result = static_cast( d.vkCreateSharedSwapchainsKHR( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -10253,7 +10404,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SwapchainKHR swapchain; - Result result = static_cast( d.vkCreateSharedSwapchainsKHR( m_device, + Result result = static_cast( d.vkCreateSharedSwapchainsKHR( static_cast( m_device ), 1, reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), @@ -10279,7 +10430,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector swapchains( createInfos.size() ); - Result result = static_cast( d.vkCreateSharedSwapchainsKHR( m_device, + Result result = static_cast( d.vkCreateSharedSwapchainsKHR( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -10312,7 +10463,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector swapchains( createInfos.size() ); - Result result = static_cast( d.vkCreateSharedSwapchainsKHR( m_device, + Result result = static_cast( d.vkCreateSharedSwapchainsKHR( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -10339,7 +10490,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SwapchainKHR swapchain; - Result result = static_cast( d.vkCreateSharedSwapchainsKHR( m_device, + Result result = static_cast( d.vkCreateSharedSwapchainsKHR( static_cast( m_device ), 1, reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), @@ -10379,7 +10530,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateXlibSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateXlibSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10400,7 +10551,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateXlibSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateXlibSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10436,7 +10587,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkBool32 result = d.vkGetPhysicalDeviceXlibPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &dpy, visualID ); + VkBool32 result = d.vkGetPhysicalDeviceXlibPresentationSupportKHR( static_cast( m_physicalDevice ), queueFamilyIndex, &dpy, visualID ); return static_cast( result ); } @@ -10470,7 +10621,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateXcbSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateXcbSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10491,7 +10642,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateXcbSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateXcbSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10527,7 +10678,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkBool32 result = d.vkGetPhysicalDeviceXcbPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &connection, visual_id ); + VkBool32 result = + d.vkGetPhysicalDeviceXcbPresentationSupportKHR( static_cast( m_physicalDevice ), queueFamilyIndex, &connection, visual_id ); return static_cast( result ); } @@ -10562,7 +10714,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateWaylandSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateWaylandSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10583,7 +10735,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateWaylandSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateWaylandSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10619,7 +10771,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkBool32 result = d.vkGetPhysicalDeviceWaylandPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &display ); + VkBool32 result = d.vkGetPhysicalDeviceWaylandPresentationSupportKHR( static_cast( m_physicalDevice ), queueFamilyIndex, &display ); return static_cast( result ); } @@ -10654,7 +10806,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateAndroidSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateAndroidSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10675,7 +10827,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateAndroidSurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateAndroidSurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10715,7 +10867,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateWin32SurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateWin32SurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10736,7 +10888,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateWin32SurfaceKHR( m_instance, + Result result = static_cast( d.vkCreateWin32SurfaceKHR( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -10787,7 +10939,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DebugReportCallbackEXT callback; - Result result = static_cast( d.vkCreateDebugReportCallbackEXT( m_instance, + Result result = static_cast( d.vkCreateDebugReportCallbackEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &callback ) ) ); @@ -10810,7 +10962,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DebugReportCallbackEXT callback; - Result result = static_cast( d.vkCreateDebugReportCallbackEXT( m_instance, + Result result = static_cast( d.vkCreateDebugReportCallbackEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &callback ) ) ); @@ -10845,8 +10997,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDebugReportCallbackEXT && "Function requires " ); # endif - d.vkDestroyDebugReportCallbackEXT( - m_instance, static_cast( callback ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDebugReportCallbackEXT( static_cast( m_instance ), + static_cast( callback ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10873,8 +11026,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDebugReportCallbackEXT && "Function requires " ); # endif - d.vkDestroyDebugReportCallbackEXT( - m_instance, static_cast( callback ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDebugReportCallbackEXT( static_cast( m_instance ), + static_cast( callback ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10917,7 +11071,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDebugReportMessageEXT && "Function requires " ); # endif - d.vkDebugReportMessageEXT( m_instance, + d.vkDebugReportMessageEXT( static_cast( m_instance ), static_cast( flags ), static_cast( objectType_ ), object, @@ -10951,7 +11105,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDebugMarkerSetObjectTagEXT && "Function requires " ); # endif - Result result = static_cast( d.vkDebugMarkerSetObjectTagEXT( m_device, reinterpret_cast( &tagInfo ) ) ); + Result result = static_cast( + d.vkDebugMarkerSetObjectTagEXT( static_cast( m_device ), reinterpret_cast( &tagInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::debugMarkerSetObjectTagEXT" ); return detail::createResultValueType( result ); @@ -10981,7 +11136,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDebugMarkerSetObjectNameEXT && "Function requires " ); # endif - Result result = static_cast( d.vkDebugMarkerSetObjectNameEXT( m_device, reinterpret_cast( &nameInfo ) ) ); + Result result = static_cast( + d.vkDebugMarkerSetObjectNameEXT( static_cast( m_device ), reinterpret_cast( &nameInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::debugMarkerSetObjectNameEXT" ); return detail::createResultValueType( result ); @@ -11006,7 +11162,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDebugMarkerBeginEXT && "Function requires " ); # endif - d.vkCmdDebugMarkerBeginEXT( m_commandBuffer, reinterpret_cast( &markerInfo ) ); + d.vkCmdDebugMarkerBeginEXT( static_cast( m_commandBuffer ), reinterpret_cast( &markerInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11036,7 +11192,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDebugMarkerInsertEXT && "Function requires " ); # endif - d.vkCmdDebugMarkerInsertEXT( m_commandBuffer, reinterpret_cast( &markerInfo ) ); + d.vkCmdDebugMarkerInsertEXT( static_cast( m_commandBuffer ), reinterpret_cast( &markerInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11067,8 +11223,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif VideoCapabilitiesKHR capabilities; - Result result = static_cast( d.vkGetPhysicalDeviceVideoCapabilitiesKHR( - m_physicalDevice, reinterpret_cast( &videoProfile ), reinterpret_cast( &capabilities ) ) ); + Result result = static_cast( d.vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &videoProfile ), + reinterpret_cast( &capabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" ); return detail::createResultValueType( result, std::move( capabilities ) ); @@ -11091,8 +11248,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; VideoCapabilitiesKHR & capabilities = structureChain.template get(); - Result result = static_cast( d.vkGetPhysicalDeviceVideoCapabilitiesKHR( - m_physicalDevice, reinterpret_cast( &videoProfile ), reinterpret_cast( &capabilities ) ) ); + Result result = static_cast( d.vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &videoProfile ), + reinterpret_cast( &capabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" ); return detail::createResultValueType( result, std::move( structureChain ) ); @@ -11135,13 +11293,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( - m_physicalDevice, reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &videoFormatInfo ), + &videoFormatPropertyCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && videoFormatPropertyCount ) { videoFormatProperties.resize( videoFormatPropertyCount ); result = static_cast( - d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, reinterpret_cast( videoFormatProperties.data() ) ) ); @@ -11178,13 +11339,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( - m_physicalDevice, reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &videoFormatInfo ), + &videoFormatPropertyCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && videoFormatPropertyCount ) { videoFormatProperties.resize( videoFormatPropertyCount ); result = static_cast( - d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, reinterpret_cast( videoFormatProperties.data() ) ) ); @@ -11221,8 +11385,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( - m_physicalDevice, reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &videoFormatInfo ), + &videoFormatPropertyCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && videoFormatPropertyCount ) { structureChains.resize( videoFormatPropertyCount ); @@ -11232,7 +11399,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE videoFormatProperties[i].pNext = structureChains[i].template get().pNext; } result = static_cast( - d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, reinterpret_cast( videoFormatProperties.data() ) ) ); @@ -11274,8 +11441,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( - m_physicalDevice, reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &videoFormatInfo ), + &videoFormatPropertyCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && videoFormatPropertyCount ) { structureChains.resize( videoFormatPropertyCount ); @@ -11285,7 +11455,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE videoFormatProperties[i].pNext = structureChains[i].template get().pNext; } result = static_cast( - d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &videoFormatInfo ), &videoFormatPropertyCount, reinterpret_cast( videoFormatProperties.data() ) ) ); @@ -11330,7 +11500,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif VideoSessionKHR videoSession; - Result result = static_cast( d.vkCreateVideoSessionKHR( m_device, + Result result = static_cast( d.vkCreateVideoSessionKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &videoSession ) ) ); @@ -11351,7 +11521,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif VideoSessionKHR videoSession; - Result result = static_cast( d.vkCreateVideoSessionKHR( m_device, + Result result = static_cast( d.vkCreateVideoSessionKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &videoSession ) ) ); @@ -11384,7 +11554,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionKHR && "Function requires " ); # endif - d.vkDestroyVideoSessionKHR( m_device, static_cast( videoSession ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyVideoSessionKHR( + static_cast( m_device ), static_cast( videoSession ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11408,7 +11579,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionKHR && "Function requires " ); # endif - d.vkDestroyVideoSessionKHR( m_device, static_cast( videoSession ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyVideoSessionKHR( + static_cast( m_device ), static_cast( videoSession ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11448,13 +11620,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetVideoSessionMemoryRequirementsKHR( m_device, static_cast( videoSession ), &memoryRequirementsCount, nullptr ) ); + result = static_cast( d.vkGetVideoSessionMemoryRequirementsKHR( + static_cast( m_device ), static_cast( videoSession ), &memoryRequirementsCount, nullptr ) ); if ( ( result == Result::eSuccess ) && memoryRequirementsCount ) { memoryRequirements.resize( memoryRequirementsCount ); result = static_cast( - d.vkGetVideoSessionMemoryRequirementsKHR( m_device, + d.vkGetVideoSessionMemoryRequirementsKHR( static_cast( m_device ), static_cast( videoSession ), &memoryRequirementsCount, reinterpret_cast( memoryRequirements.data() ) ) ); @@ -11491,13 +11663,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetVideoSessionMemoryRequirementsKHR( m_device, static_cast( videoSession ), &memoryRequirementsCount, nullptr ) ); + result = static_cast( d.vkGetVideoSessionMemoryRequirementsKHR( + static_cast( m_device ), static_cast( videoSession ), &memoryRequirementsCount, nullptr ) ); if ( ( result == Result::eSuccess ) && memoryRequirementsCount ) { memoryRequirements.resize( memoryRequirementsCount ); result = static_cast( - d.vkGetVideoSessionMemoryRequirementsKHR( m_device, + d.vkGetVideoSessionMemoryRequirementsKHR( static_cast( m_device ), static_cast( videoSession ), &memoryRequirementsCount, reinterpret_cast( memoryRequirements.data() ) ) ); @@ -11538,7 +11710,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Result result = - static_cast( d.vkBindVideoSessionMemoryKHR( m_device, + static_cast( d.vkBindVideoSessionMemoryKHR( static_cast( m_device ), static_cast( videoSession ), bindSessionMemoryInfos.size(), reinterpret_cast( bindSessionMemoryInfos.data() ) ) ); @@ -11576,7 +11748,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif VideoSessionParametersKHR videoSessionParameters; - Result result = static_cast( d.vkCreateVideoSessionParametersKHR( m_device, + Result result = static_cast( d.vkCreateVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &videoSessionParameters ) ) ); @@ -11599,7 +11771,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif VideoSessionParametersKHR videoSessionParameters; - Result result = static_cast( d.vkCreateVideoSessionParametersKHR( m_device, + Result result = static_cast( d.vkCreateVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &videoSessionParameters ) ) ); @@ -11636,7 +11808,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Result result = - static_cast( d.vkUpdateVideoSessionParametersKHR( m_device, + static_cast( d.vkUpdateVideoSessionParametersKHR( static_cast( m_device ), static_cast( videoSessionParameters ), reinterpret_cast( &updateInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::updateVideoSessionParametersKHR" ); @@ -11669,8 +11841,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionParametersKHR && "Function requires " ); # endif - d.vkDestroyVideoSessionParametersKHR( - m_device, static_cast( videoSessionParameters ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyVideoSessionParametersKHR( static_cast( m_device ), + static_cast( videoSessionParameters ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11698,8 +11871,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionParametersKHR && "Function requires " ); # endif - d.vkDestroyVideoSessionParametersKHR( - m_device, static_cast( videoSessionParameters ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyVideoSessionParametersKHR( static_cast( m_device ), + static_cast( videoSessionParameters ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11721,7 +11895,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginVideoCodingKHR && "Function requires " ); # endif - d.vkCmdBeginVideoCodingKHR( m_commandBuffer, reinterpret_cast( &beginInfo ) ); + d.vkCmdBeginVideoCodingKHR( static_cast( m_commandBuffer ), reinterpret_cast( &beginInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11743,7 +11917,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndVideoCodingKHR && "Function requires " ); # endif - d.vkCmdEndVideoCodingKHR( m_commandBuffer, reinterpret_cast( &endCodingInfo ) ); + d.vkCmdEndVideoCodingKHR( static_cast( m_commandBuffer ), reinterpret_cast( &endCodingInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11768,7 +11942,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdControlVideoCodingKHR && "Function requires " ); # endif - d.vkCmdControlVideoCodingKHR( m_commandBuffer, reinterpret_cast( &codingControlInfo ) ); + d.vkCmdControlVideoCodingKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &codingControlInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11792,7 +11967,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDecodeVideoKHR && "Function requires " ); # endif - d.vkCmdDecodeVideoKHR( m_commandBuffer, reinterpret_cast( &decodeInfo ) ); + d.vkCmdDecodeVideoKHR( static_cast( m_commandBuffer ), reinterpret_cast( &decodeInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11842,7 +12017,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBindTransformFeedbackBuffersEXT( m_commandBuffer, + d.vkCmdBindTransformFeedbackBuffersEXT( static_cast( m_commandBuffer ), firstBinding, buffers.size(), reinterpret_cast( buffers.data() ), @@ -11888,7 +12063,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBeginTransformFeedbackEXT( m_commandBuffer, + d.vkCmdBeginTransformFeedbackEXT( static_cast( m_commandBuffer ), firstCounterBuffer, counterBuffers.size(), reinterpret_cast( counterBuffers.data() ), @@ -11931,7 +12106,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdEndTransformFeedbackEXT( m_commandBuffer, + d.vkCmdEndTransformFeedbackEXT( static_cast( m_commandBuffer ), firstCounterBuffer, counterBuffers.size(), reinterpret_cast( counterBuffers.data() ), @@ -12004,7 +12179,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CuModuleNVX module; - Result result = static_cast( d.vkCreateCuModuleNVX( m_device, + Result result = static_cast( d.vkCreateCuModuleNVX( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &module ) ) ); @@ -12025,7 +12200,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CuModuleNVX module; - Result result = static_cast( d.vkCreateCuModuleNVX( m_device, + Result result = static_cast( d.vkCreateCuModuleNVX( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &module ) ) ); @@ -12062,7 +12237,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CuFunctionNVX function; - Result result = static_cast( d.vkCreateCuFunctionNVX( m_device, + Result result = static_cast( d.vkCreateCuFunctionNVX( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &function ) ) ); @@ -12083,7 +12258,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CuFunctionNVX function; - Result result = static_cast( d.vkCreateCuFunctionNVX( m_device, + Result result = static_cast( d.vkCreateCuFunctionNVX( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &function ) ) ); @@ -12115,7 +12290,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCuModuleNVX && "Function requires " ); # endif - d.vkDestroyCuModuleNVX( m_device, static_cast( module ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCuModuleNVX( + static_cast( m_device ), static_cast( module ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12138,7 +12314,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCuModuleNVX && "Function requires " ); # endif - d.vkDestroyCuModuleNVX( m_device, static_cast( module ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCuModuleNVX( + static_cast( m_device ), static_cast( module ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12163,7 +12340,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCuFunctionNVX && "Function requires " ); # endif - d.vkDestroyCuFunctionNVX( m_device, static_cast( function ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCuFunctionNVX( + static_cast( m_device ), static_cast( function ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12186,7 +12364,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCuFunctionNVX && "Function requires " ); # endif - d.vkDestroyCuFunctionNVX( m_device, static_cast( function ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCuFunctionNVX( + static_cast( m_device ), static_cast( function ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12208,7 +12387,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCuLaunchKernelNVX && "Function requires " ); # endif - d.vkCmdCuLaunchKernelNVX( m_commandBuffer, reinterpret_cast( &launchInfo ) ); + d.vkCmdCuLaunchKernelNVX( static_cast( m_commandBuffer ), reinterpret_cast( &launchInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12232,7 +12411,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetImageViewHandleNVX && "Function requires " ); # endif - uint32_t result = d.vkGetImageViewHandleNVX( m_device, reinterpret_cast( &info ) ); + uint32_t result = d.vkGetImageViewHandleNVX( static_cast( m_device ), reinterpret_cast( &info ) ); return result; } @@ -12256,7 +12435,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetImageViewHandle64NVX && "Function requires " ); # endif - uint64_t result = d.vkGetImageViewHandle64NVX( m_device, reinterpret_cast( &info ) ); + uint64_t result = d.vkGetImageViewHandle64NVX( static_cast( m_device ), reinterpret_cast( &info ) ); return result; } @@ -12284,8 +12463,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ImageViewAddressPropertiesNVX properties; - Result result = static_cast( - d.vkGetImageViewAddressNVX( m_device, static_cast( imageView ), reinterpret_cast( &properties ) ) ); + Result result = static_cast( d.vkGetImageViewAddressNVX( + static_cast( m_device ), static_cast( imageView ), reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewAddressNVX" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -12373,7 +12552,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetShaderInfoAMD( m_device, + result = static_cast( d.vkGetShaderInfoAMD( static_cast( m_device ), static_cast( pipeline ), static_cast( shaderStage ), static_cast( infoType ), @@ -12382,7 +12561,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE if ( ( result == Result::eSuccess ) && infoSize ) { info.resize( infoSize ); - result = static_cast( d.vkGetShaderInfoAMD( m_device, + result = static_cast( d.vkGetShaderInfoAMD( static_cast( m_device ), static_cast( pipeline ), static_cast( shaderStage ), static_cast( infoType ), @@ -12417,7 +12596,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetShaderInfoAMD( m_device, + result = static_cast( d.vkGetShaderInfoAMD( static_cast( m_device ), static_cast( pipeline ), static_cast( shaderStage ), static_cast( infoType ), @@ -12426,7 +12605,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE if ( ( result == Result::eSuccess ) && infoSize ) { info.resize( infoSize ); - result = static_cast( d.vkGetShaderInfoAMD( m_device, + result = static_cast( d.vkGetShaderInfoAMD( static_cast( m_device ), static_cast( pipeline ), static_cast( shaderStage ), static_cast( infoType ), @@ -12464,7 +12643,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginRenderingKHR && "Function requires or " ); # endif - d.vkCmdBeginRenderingKHR( m_commandBuffer, reinterpret_cast( &renderingInfo ) ); + d.vkCmdBeginRenderingKHR( static_cast( m_commandBuffer ), reinterpret_cast( &renderingInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12506,7 +12685,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateStreamDescriptorSurfaceGGP( m_instance, + Result result = static_cast( d.vkCreateStreamDescriptorSurfaceGGP( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -12528,7 +12707,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateStreamDescriptorSurfaceGGP( m_instance, + Result result = static_cast( d.vkCreateStreamDescriptorSurfaceGGP( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -12589,7 +12768,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ExternalImageFormatPropertiesNV externalImageFormatProperties; Result result = static_cast( - d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV( m_physicalDevice, + d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV( static_cast( m_physicalDevice ), static_cast( format ), static_cast( type ), static_cast( tiling ), @@ -12628,8 +12807,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif HANDLE handle; - Result result = static_cast( - d.vkGetMemoryWin32HandleNV( m_device, static_cast( memory ), static_cast( handleType ), &handle ) ); + Result result = static_cast( d.vkGetMemoryWin32HandleNV( + static_cast( m_device ), static_cast( memory ), static_cast( handleType ), &handle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleNV" ); return detail::createResultValueType( result, std::move( handle ) ); @@ -12661,7 +12840,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceFeatures2 features; - d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast( &features ) ); + d.vkGetPhysicalDeviceFeatures2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &features ) ); return features; } @@ -12679,7 +12858,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; PhysicalDeviceFeatures2 & features = structureChain.template get(); - d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast( &features ) ); + d.vkGetPhysicalDeviceFeatures2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &features ) ); return structureChain; } @@ -12707,7 +12886,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceProperties2 properties; - d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast( &properties ) ); + d.vkGetPhysicalDeviceProperties2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &properties ) ); return properties; } @@ -12725,7 +12904,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; PhysicalDeviceProperties2 & properties = structureChain.template get(); - d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast( &properties ) ); + d.vkGetPhysicalDeviceProperties2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &properties ) ); return structureChain; } @@ -12757,7 +12936,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE FormatProperties2 formatProperties; d.vkGetPhysicalDeviceFormatProperties2KHR( - m_physicalDevice, static_cast( format ), reinterpret_cast( &formatProperties ) ); + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( &formatProperties ) ); return formatProperties; } @@ -12781,7 +12960,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; FormatProperties2 & formatProperties = structureChain.template get(); d.vkGetPhysicalDeviceFormatProperties2KHR( - m_physicalDevice, static_cast( format ), reinterpret_cast( &formatProperties ) ); + static_cast( m_physicalDevice ), static_cast( format ), reinterpret_cast( &formatProperties ) ); return structureChain; } @@ -12814,7 +12993,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ImageFormatProperties2 imageFormatProperties; Result result = - static_cast( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice, + static_cast( d.vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &imageFormatInfo ), reinterpret_cast( &imageFormatProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" ); @@ -12841,7 +13020,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; ImageFormatProperties2 & imageFormatProperties = structureChain.template get(); Result result = - static_cast( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice, + static_cast( d.vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &imageFormatInfo ), reinterpret_cast( &imageFormatProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" ); @@ -12879,10 +13058,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); queueFamilyProperties.resize( queueFamilyPropertyCount ); - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -12909,10 +13089,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector queueFamilyProperties( queueFamilyProperties2Allocator ); uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); queueFamilyProperties.resize( queueFamilyPropertyCount ); - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -12941,15 +13122,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector structureChains; std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); structureChains.resize( queueFamilyPropertyCount ); queueFamilyProperties.resize( queueFamilyPropertyCount ); for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ ) { queueFamilyProperties[i].pNext = structureChains[i].template get().pNext; } - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -12982,15 +13164,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector structureChains( structureChainAllocator ); std::vector queueFamilyProperties; uint32_t queueFamilyPropertyCount; - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), &queueFamilyPropertyCount, nullptr ); structureChains.resize( queueFamilyPropertyCount ); queueFamilyProperties.resize( queueFamilyPropertyCount ); for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ ) { queueFamilyProperties[i].pNext = structureChains[i].template get().pNext; } - d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( - m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast( queueFamilyProperties.data() ) ); + d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast( m_physicalDevice ), + &queueFamilyPropertyCount, + reinterpret_cast( queueFamilyProperties.data() ) ); VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() ); if ( queueFamilyPropertyCount < queueFamilyProperties.size() ) @@ -13029,7 +13212,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PhysicalDeviceMemoryProperties2 memoryProperties; - d.vkGetPhysicalDeviceMemoryProperties2KHR( m_physicalDevice, reinterpret_cast( &memoryProperties ) ); + d.vkGetPhysicalDeviceMemoryProperties2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &memoryProperties ) ); return memoryProperties; } @@ -13051,7 +13235,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get(); - d.vkGetPhysicalDeviceMemoryProperties2KHR( m_physicalDevice, reinterpret_cast( &memoryProperties ) ); + d.vkGetPhysicalDeviceMemoryProperties2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &memoryProperties ) ); return structureChain; } @@ -13089,10 +13274,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector properties; uint32_t propertyCount; - d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( - m_physicalDevice, reinterpret_cast( &formatInfo ), &propertyCount, nullptr ); + d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &formatInfo ), + &propertyCount, + nullptr ); properties.resize( propertyCount ); - d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &formatInfo ), &propertyCount, reinterpret_cast( properties.data() ) ); @@ -13124,10 +13311,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector properties( sparseImageFormatProperties2Allocator ); uint32_t propertyCount; - d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( - m_physicalDevice, reinterpret_cast( &formatInfo ), &propertyCount, nullptr ); + d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &formatInfo ), + &propertyCount, + nullptr ); properties.resize( propertyCount ); - d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( m_physicalDevice, + d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &formatInfo ), &propertyCount, reinterpret_cast( properties.data() ) ); @@ -13170,7 +13359,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PeerMemoryFeatureFlags peerMemoryFeatures; d.vkGetDeviceGroupPeerMemoryFeaturesKHR( - m_device, heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast( &peerMemoryFeatures ) ); + static_cast( m_device ), heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast( &peerMemoryFeatures ) ); return peerMemoryFeatures; } @@ -13221,7 +13410,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateViSurfaceNN( m_instance, + Result result = static_cast( d.vkCreateViSurfaceNN( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -13242,7 +13431,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateViSurfaceNN( m_instance, + Result result = static_cast( d.vkCreateViSurfaceNN( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -13300,12 +13489,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDeviceGroupsKHR( m_instance, &physicalDeviceGroupCount, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceGroupsKHR( static_cast( m_instance ), &physicalDeviceGroupCount, nullptr ) ); if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount ) { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); - result = static_cast( d.vkEnumeratePhysicalDeviceGroupsKHR( - m_instance, &physicalDeviceGroupCount, reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); + result = static_cast( + d.vkEnumeratePhysicalDeviceGroupsKHR( static_cast( m_instance ), + &physicalDeviceGroupCount, + reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" ); @@ -13338,12 +13529,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDeviceGroupsKHR( m_instance, &physicalDeviceGroupCount, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceGroupsKHR( static_cast( m_instance ), &physicalDeviceGroupCount, nullptr ) ); if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount ) { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); - result = static_cast( d.vkEnumeratePhysicalDeviceGroupsKHR( - m_instance, &physicalDeviceGroupCount, reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); + result = static_cast( + d.vkEnumeratePhysicalDeviceGroupsKHR( static_cast( m_instance ), + &physicalDeviceGroupCount, + reinterpret_cast( physicalDeviceGroupProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" ); @@ -13385,7 +13578,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalBufferProperties externalBufferProperties; - d.vkGetPhysicalDeviceExternalBufferPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceExternalBufferPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &externalBufferInfo ), reinterpret_cast( &externalBufferProperties ) ); @@ -13418,8 +13611,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif HANDLE handle; - Result result = - static_cast( d.vkGetMemoryWin32HandleKHR( m_device, reinterpret_cast( &getWin32HandleInfo ), &handle ) ); + Result result = static_cast( d.vkGetMemoryWin32HandleKHR( + static_cast( m_device ), reinterpret_cast( &getWin32HandleInfo ), &handle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleKHR" ); return detail::createResultValueType( result, std::move( handle ) ); @@ -13454,7 +13647,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE MemoryWin32HandlePropertiesKHR memoryWin32HandleProperties; Result result = - static_cast( d.vkGetMemoryWin32HandlePropertiesKHR( m_device, + static_cast( d.vkGetMemoryWin32HandlePropertiesKHR( static_cast( m_device ), static_cast( handleType ), handle, reinterpret_cast( &memoryWin32HandleProperties ) ) ); @@ -13488,7 +13681,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif int fd; - Result result = static_cast( d.vkGetMemoryFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); + Result result = + static_cast( d.vkGetMemoryFdKHR( static_cast( m_device ), reinterpret_cast( &getFdInfo ), &fd ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdKHR" ); return detail::createResultValueType( result, std::move( fd ) ); @@ -13519,8 +13713,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryFdPropertiesKHR memoryFdProperties; - Result result = static_cast( d.vkGetMemoryFdPropertiesKHR( - m_device, static_cast( handleType ), fd, reinterpret_cast( &memoryFdProperties ) ) ); + Result result = static_cast( d.vkGetMemoryFdPropertiesKHR( static_cast( m_device ), + static_cast( handleType ), + fd, + reinterpret_cast( &memoryFdProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdPropertiesKHR" ); return detail::createResultValueType( result, std::move( memoryFdProperties ) ); @@ -13556,7 +13752,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalSemaphoreProperties externalSemaphoreProperties; - d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &externalSemaphoreInfo ), reinterpret_cast( &externalSemaphoreProperties ) ); @@ -13590,8 +13786,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkImportSemaphoreWin32HandleKHR && "Function requires " ); # endif - Result result = static_cast( - d.vkImportSemaphoreWin32HandleKHR( m_device, reinterpret_cast( &importSemaphoreWin32HandleInfo ) ) ); + Result result = static_cast( d.vkImportSemaphoreWin32HandleKHR( + static_cast( m_device ), reinterpret_cast( &importSemaphoreWin32HandleInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreWin32HandleKHR" ); return detail::createResultValueType( result ); @@ -13620,8 +13816,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif HANDLE handle; - Result result = static_cast( - d.vkGetSemaphoreWin32HandleKHR( m_device, reinterpret_cast( &getWin32HandleInfo ), &handle ) ); + Result result = static_cast( d.vkGetSemaphoreWin32HandleKHR( + static_cast( m_device ), reinterpret_cast( &getWin32HandleInfo ), &handle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreWin32HandleKHR" ); return detail::createResultValueType( result, std::move( handle ) ); @@ -13652,7 +13848,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkImportSemaphoreFdKHR && "Function requires " ); # endif - Result result = static_cast( d.vkImportSemaphoreFdKHR( m_device, reinterpret_cast( &importSemaphoreFdInfo ) ) ); + Result result = static_cast( + d.vkImportSemaphoreFdKHR( static_cast( m_device ), reinterpret_cast( &importSemaphoreFdInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreFdKHR" ); return detail::createResultValueType( result ); @@ -13681,7 +13878,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif int fd; - Result result = static_cast( d.vkGetSemaphoreFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); + Result result = + static_cast( d.vkGetSemaphoreFdKHR( static_cast( m_device ), reinterpret_cast( &getFdInfo ), &fd ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreFdKHR" ); return detail::createResultValueType( result, std::move( fd ) ); @@ -13722,7 +13920,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetKHR && "Function requires or " ); # endif - d.vkCmdPushDescriptorSetKHR( m_commandBuffer, + d.vkCmdPushDescriptorSetKHR( static_cast( m_commandBuffer ), static_cast( pipelineBindPoint ), static_cast( layout ), set, @@ -13760,7 +13958,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - d.vkCmdPushDescriptorSetWithTemplateKHR( m_commandBuffer, + d.vkCmdPushDescriptorSetWithTemplateKHR( static_cast( m_commandBuffer ), static_cast( descriptorUpdateTemplate ), static_cast( layout ), set, @@ -13793,7 +13991,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginConditionalRenderingEXT && "Function requires " ); # endif - d.vkCmdBeginConditionalRenderingEXT( m_commandBuffer, reinterpret_cast( &conditionalRenderingBegin ) ); + d.vkCmdBeginConditionalRenderingEXT( static_cast( m_commandBuffer ), + reinterpret_cast( &conditionalRenderingBegin ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13837,7 +14036,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorUpdateTemplate descriptorUpdateTemplate; - Result result = static_cast( d.vkCreateDescriptorUpdateTemplateKHR( m_device, + Result result = static_cast( d.vkCreateDescriptorUpdateTemplateKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &descriptorUpdateTemplate ) ) ); @@ -13861,7 +14060,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorUpdateTemplate descriptorUpdateTemplate; - Result result = static_cast( d.vkCreateDescriptorUpdateTemplateKHR( m_device, + Result result = static_cast( d.vkCreateDescriptorUpdateTemplateKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &descriptorUpdateTemplate ) ) ); @@ -13898,8 +14097,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkDestroyDescriptorUpdateTemplateKHR( - m_device, static_cast( descriptorUpdateTemplate ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDescriptorUpdateTemplateKHR( static_cast( m_device ), + static_cast( descriptorUpdateTemplate ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13929,7 +14129,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkUpdateDescriptorSetWithTemplateKHR( m_device, + d.vkUpdateDescriptorSetWithTemplateKHR( static_cast( m_device ), static_cast( descriptorSet ), static_cast( descriptorUpdateTemplate ), reinterpret_cast( &data ) ); @@ -13959,8 +14159,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetViewportWScalingNV && "Function requires " ); # endif - d.vkCmdSetViewportWScalingNV( - m_commandBuffer, firstViewport, viewportWScalings.size(), reinterpret_cast( viewportWScalings.data() ) ); + d.vkCmdSetViewportWScalingNV( static_cast( m_commandBuffer ), + firstViewport, + viewportWScalings.size(), + reinterpret_cast( viewportWScalings.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13985,7 +14187,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkReleaseDisplayEXT && "Function requires " ); # endif - Result result = static_cast( d.vkReleaseDisplayEXT( m_physicalDevice, static_cast( display ) ) ); + Result result = static_cast( d.vkReleaseDisplayEXT( static_cast( m_physicalDevice ), static_cast( display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::releaseDisplayEXT" ); return detail::createResultValueType( result ); @@ -14011,7 +14213,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkReleaseDisplayEXT && "Function requires " ); # endif - Result result = static_cast( d.vkReleaseDisplayEXT( m_physicalDevice, static_cast( display ) ) ); + Result result = static_cast( d.vkReleaseDisplayEXT( static_cast( m_physicalDevice ), static_cast( display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::release" ); return detail::createResultValueType( result ); @@ -14041,7 +14243,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkAcquireXlibDisplayEXT && "Function requires " ); # endif - Result result = static_cast( d.vkAcquireXlibDisplayEXT( m_physicalDevice, &dpy, static_cast( display ) ) ); + Result result = + static_cast( d.vkAcquireXlibDisplayEXT( static_cast( m_physicalDevice ), &dpy, static_cast( display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireXlibDisplayEXT" ); return detail::createResultValueType( result ); @@ -14070,7 +14273,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayKHR display; - Result result = static_cast( d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast( &display ) ) ); + Result result = static_cast( + d.vkGetRandROutputDisplayEXT( static_cast( m_physicalDevice ), &dpy, rrOutput, reinterpret_cast( &display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXT" ); return detail::createResultValueType( result, std::move( display ) ); @@ -14088,7 +14292,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayKHR display; - Result result = static_cast( d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast( &display ) ) ); + Result result = static_cast( + d.vkGetRandROutputDisplayEXT( static_cast( m_physicalDevice ), &dpy, rrOutput, reinterpret_cast( &display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXTUnique" ); return detail::createResultValueType( result, UniqueHandle( display, detail::ObjectRelease( *this, d ) ) ); @@ -14125,8 +14330,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceCapabilities2EXT surfaceCapabilities; - Result result = static_cast( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT( - m_physicalDevice, static_cast( surface ), reinterpret_cast( &surfaceCapabilities ) ) ); + Result result = + static_cast( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT( static_cast( m_physicalDevice ), + static_cast( surface ), + reinterpret_cast( &surfaceCapabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2EXT" ); return detail::createResultValueType( result, std::move( surfaceCapabilities ) ); @@ -14156,8 +14363,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDisplayPowerControlEXT && "Function requires " ); # endif - Result result = static_cast( - d.vkDisplayPowerControlEXT( m_device, static_cast( display ), reinterpret_cast( &displayPowerInfo ) ) ); + Result result = static_cast( d.vkDisplayPowerControlEXT( + static_cast( m_device ), static_cast( display ), reinterpret_cast( &displayPowerInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::displayPowerControlEXT" ); return detail::createResultValueType( result ); @@ -14188,7 +14395,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Fence fence; - Result result = static_cast( d.vkRegisterDeviceEventEXT( m_device, + Result result = static_cast( d.vkRegisterDeviceEventEXT( static_cast( m_device ), reinterpret_cast( &deviceEventInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &fence ) ) ); @@ -14209,7 +14416,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Fence fence; - Result result = static_cast( d.vkRegisterDeviceEventEXT( m_device, + Result result = static_cast( d.vkRegisterDeviceEventEXT( static_cast( m_device ), reinterpret_cast( &deviceEventInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &fence ) ) ); @@ -14246,7 +14453,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Fence fence; - Result result = static_cast( d.vkRegisterDisplayEventEXT( m_device, + Result result = static_cast( d.vkRegisterDisplayEventEXT( static_cast( m_device ), static_cast( display ), reinterpret_cast( &displayEventInfo ), reinterpret_cast( allocator.get() ), @@ -14268,7 +14475,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Fence fence; - Result result = static_cast( d.vkRegisterDisplayEventEXT( m_device, + Result result = static_cast( d.vkRegisterDisplayEventEXT( static_cast( m_device ), static_cast( display ), reinterpret_cast( &displayEventInfo ), reinterpret_cast( allocator.get() ), @@ -14307,8 +14514,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint64_t counterValue; - Result result = static_cast( - d.vkGetSwapchainCounterEXT( m_device, static_cast( swapchain ), static_cast( counter ), &counterValue ) ); + Result result = static_cast( d.vkGetSwapchainCounterEXT( + static_cast( m_device ), static_cast( swapchain ), static_cast( counter ), &counterValue ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT", { Result::eSuccess, Result::eErrorOutOfDateKHR } ); @@ -14351,8 +14558,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RefreshCycleDurationGOOGLE displayTimingProperties; - Result result = static_cast( d.vkGetRefreshCycleDurationGOOGLE( - m_device, static_cast( swapchain ), reinterpret_cast( &displayTimingProperties ) ) ); + Result result = static_cast( d.vkGetRefreshCycleDurationGOOGLE( static_cast( m_device ), + static_cast( swapchain ), + reinterpret_cast( &displayTimingProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRefreshCycleDurationGOOGLE" ); return detail::createResultValueType( result, std::move( displayTimingProperties ) ); @@ -14398,12 +14606,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = - static_cast( d.vkGetPastPresentationTimingGOOGLE( m_device, static_cast( swapchain ), &presentationTimingCount, nullptr ) ); + result = static_cast( + d.vkGetPastPresentationTimingGOOGLE( static_cast( m_device ), static_cast( swapchain ), &presentationTimingCount, nullptr ) ); if ( ( result == Result::eSuccess ) && presentationTimingCount ) { presentationTimings.resize( presentationTimingCount ); - result = static_cast( d.vkGetPastPresentationTimingGOOGLE( m_device, + result = static_cast( d.vkGetPastPresentationTimingGOOGLE( static_cast( m_device ), static_cast( swapchain ), &presentationTimingCount, reinterpret_cast( presentationTimings.data() ) ) ); @@ -14455,12 +14663,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = - static_cast( d.vkGetPastPresentationTimingGOOGLE( m_device, static_cast( swapchain ), &presentationTimingCount, nullptr ) ); + result = static_cast( + d.vkGetPastPresentationTimingGOOGLE( static_cast( m_device ), static_cast( swapchain ), &presentationTimingCount, nullptr ) ); if ( ( result == Result::eSuccess ) && presentationTimingCount ) { presentationTimings.resize( presentationTimingCount ); - result = static_cast( d.vkGetPastPresentationTimingGOOGLE( m_device, + result = static_cast( d.vkGetPastPresentationTimingGOOGLE( static_cast( m_device ), static_cast( swapchain ), &presentationTimingCount, reinterpret_cast( presentationTimings.data() ) ) ); @@ -14511,8 +14719,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetDiscardRectangleEXT && "Function requires " ); # endif - d.vkCmdSetDiscardRectangleEXT( - m_commandBuffer, firstDiscardRectangle, discardRectangles.size(), reinterpret_cast( discardRectangles.data() ) ); + d.vkCmdSetDiscardRectangleEXT( static_cast( m_commandBuffer ), + firstDiscardRectangle, + discardRectangles.size(), + reinterpret_cast( discardRectangles.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14568,7 +14778,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkSetHdrMetadataEXT( m_device, + d.vkSetHdrMetadataEXT( static_cast( m_device ), swapchains.size(), reinterpret_cast( swapchains.data() ), reinterpret_cast( metadata.data() ) ); @@ -14601,7 +14811,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RenderPass renderPass; - Result result = static_cast( d.vkCreateRenderPass2KHR( m_device, + Result result = static_cast( d.vkCreateRenderPass2KHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &renderPass ) ) ); @@ -14622,7 +14832,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RenderPass renderPass; - Result result = static_cast( d.vkCreateRenderPass2KHR( m_device, + Result result = static_cast( d.vkCreateRenderPass2KHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &renderPass ) ) ); @@ -14656,8 +14866,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass2KHR && "Function requires or " ); # endif - d.vkCmdBeginRenderPass2KHR( - m_commandBuffer, reinterpret_cast( &renderPassBegin ), reinterpret_cast( &subpassBeginInfo ) ); + d.vkCmdBeginRenderPass2KHR( static_cast( m_commandBuffer ), + reinterpret_cast( &renderPassBegin ), + reinterpret_cast( &subpassBeginInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14683,8 +14894,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdNextSubpass2KHR && "Function requires or " ); # endif - d.vkCmdNextSubpass2KHR( - m_commandBuffer, reinterpret_cast( &subpassBeginInfo ), reinterpret_cast( &subpassEndInfo ) ); + d.vkCmdNextSubpass2KHR( static_cast( m_commandBuffer ), + reinterpret_cast( &subpassBeginInfo ), + reinterpret_cast( &subpassEndInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14706,7 +14918,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndRenderPass2KHR && "Function requires or " ); # endif - d.vkCmdEndRenderPass2KHR( m_commandBuffer, reinterpret_cast( &subpassEndInfo ) ); + d.vkCmdEndRenderPass2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &subpassEndInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14730,7 +14942,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetSwapchainStatusKHR && "Function requires " ); # endif - Result result = static_cast( d.vkGetSwapchainStatusKHR( m_device, static_cast( swapchain ) ) ); + Result result = static_cast( d.vkGetSwapchainStatusKHR( static_cast( m_device ), static_cast( swapchain ) ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( @@ -14772,7 +14984,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalFenceProperties externalFenceProperties; - d.vkGetPhysicalDeviceExternalFencePropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceExternalFencePropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &externalFenceInfo ), reinterpret_cast( &externalFenceProperties ) ); @@ -14804,8 +15016,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkImportFenceWin32HandleKHR && "Function requires " ); # endif - Result result = static_cast( - d.vkImportFenceWin32HandleKHR( m_device, reinterpret_cast( &importFenceWin32HandleInfo ) ) ); + Result result = static_cast( d.vkImportFenceWin32HandleKHR( + static_cast( m_device ), reinterpret_cast( &importFenceWin32HandleInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importFenceWin32HandleKHR" ); return detail::createResultValueType( result ); @@ -14834,8 +15046,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif HANDLE handle; - Result result = - static_cast( d.vkGetFenceWin32HandleKHR( m_device, reinterpret_cast( &getWin32HandleInfo ), &handle ) ); + Result result = static_cast( + d.vkGetFenceWin32HandleKHR( static_cast( m_device ), reinterpret_cast( &getWin32HandleInfo ), &handle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceWin32HandleKHR" ); return detail::createResultValueType( result, std::move( handle ) ); @@ -14866,7 +15078,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkImportFenceFdKHR && "Function requires " ); # endif - Result result = static_cast( d.vkImportFenceFdKHR( m_device, reinterpret_cast( &importFenceFdInfo ) ) ); + Result result = + static_cast( d.vkImportFenceFdKHR( static_cast( m_device ), reinterpret_cast( &importFenceFdInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importFenceFdKHR" ); return detail::createResultValueType( result ); @@ -14894,7 +15107,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif int fd; - Result result = static_cast( d.vkGetFenceFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); + Result result = + static_cast( d.vkGetFenceFdKHR( static_cast( m_device ), reinterpret_cast( &getFdInfo ), &fd ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceFdKHR" ); return detail::createResultValueType( result, std::move( fd ) ); @@ -14952,14 +15166,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, nullptr, nullptr ) ); if ( ( result == Result::eSuccess ) && counterCount ) { counters.resize( counterCount ); counterDescriptions.resize( counterCount ); result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, reinterpret_cast( counters.data() ), @@ -15010,14 +15224,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, nullptr, nullptr ) ); if ( ( result == Result::eSuccess ) && counterCount ) { counters.resize( counterCount ); counterDescriptions.resize( counterCount ); result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, reinterpret_cast( counters.data() ), @@ -15061,8 +15275,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint32_t numPasses; - d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( - m_physicalDevice, reinterpret_cast( &performanceQueryCreateInfo ), &numPasses ); + d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( static_cast( m_physicalDevice ), + reinterpret_cast( &performanceQueryCreateInfo ), + &numPasses ); return numPasses; } @@ -15089,7 +15304,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkAcquireProfilingLockKHR && "Function requires " ); # endif - Result result = static_cast( d.vkAcquireProfilingLockKHR( m_device, reinterpret_cast( &info ) ) ); + Result result = + static_cast( d.vkAcquireProfilingLockKHR( static_cast( m_device ), reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireProfilingLockKHR" ); return detail::createResultValueType( result ); @@ -15133,7 +15349,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE SurfaceCapabilities2KHR surfaceCapabilities; Result result = - static_cast( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice, + static_cast( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), reinterpret_cast( &surfaceCapabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); @@ -15160,7 +15376,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; SurfaceCapabilities2KHR & surfaceCapabilities = structureChain.template get(); Result result = - static_cast( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice, + static_cast( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), reinterpret_cast( &surfaceCapabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); @@ -15204,12 +15420,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( - m_physicalDevice, reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &surfaceInfo ), + &surfaceFormatCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && surfaceFormatCount ) { surfaceFormats.resize( surfaceFormatCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice, + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, reinterpret_cast( surfaceFormats.data() ) ) ); @@ -15245,12 +15463,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( - m_physicalDevice, reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &surfaceInfo ), + &surfaceFormatCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && surfaceFormatCount ) { surfaceFormats.resize( surfaceFormatCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice, + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, reinterpret_cast( surfaceFormats.data() ) ) ); @@ -15287,8 +15507,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( - m_physicalDevice, reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &surfaceInfo ), + &surfaceFormatCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && surfaceFormatCount ) { structureChains.resize( surfaceFormatCount ); @@ -15297,7 +15519,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { surfaceFormats[i].pNext = structureChains[i].template get().pNext; } - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice, + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, reinterpret_cast( surfaceFormats.data() ) ) ); @@ -15339,8 +15561,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( - m_physicalDevice, reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), + reinterpret_cast( &surfaceInfo ), + &surfaceFormatCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && surfaceFormatCount ) { structureChains.resize( surfaceFormatCount ); @@ -15349,7 +15573,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { surfaceFormats[i].pNext = structureChains[i].template get().pNext; } - result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice, + result = static_cast( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), &surfaceFormatCount, reinterpret_cast( surfaceFormats.data() ) ) ); @@ -15403,12 +15627,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayProperties2KHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( - d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayProperties2KHR( + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" ); @@ -15440,12 +15664,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayProperties2KHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( - d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceDisplayProperties2KHR( + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" ); @@ -15490,12 +15714,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" ); @@ -15527,12 +15752,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" ); @@ -15578,12 +15804,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast( display ), &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), static_cast( display ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( d.vkGetDisplayModeProperties2KHR( - m_physicalDevice, static_cast( display ), &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), + static_cast( display ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" ); @@ -15615,12 +15844,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast( display ), &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), static_cast( display ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); - result = static_cast( d.vkGetDisplayModeProperties2KHR( - m_physicalDevice, static_cast( display ), &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), + static_cast( display ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" ); @@ -15653,7 +15885,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast( display ), &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), static_cast( display ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { structureChains.resize( propertyCount ); @@ -15662,8 +15895,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { properties[i].pNext = structureChains[i].template get().pNext; } - result = static_cast( d.vkGetDisplayModeProperties2KHR( - m_physicalDevice, static_cast( display ), &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), + static_cast( display ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" ); @@ -15700,7 +15935,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast( display ), &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), static_cast( display ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { structureChains.resize( propertyCount ); @@ -15709,8 +15945,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { properties[i].pNext = structureChains[i].template get().pNext; } - result = static_cast( d.vkGetDisplayModeProperties2KHR( - m_physicalDevice, static_cast( display ), &propertyCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetDisplayModeProperties2KHR( static_cast( m_physicalDevice ), + static_cast( display ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" ); @@ -15752,7 +15990,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayPlaneCapabilities2KHR capabilities; - Result result = static_cast( d.vkGetDisplayPlaneCapabilities2KHR( m_physicalDevice, + Result result = static_cast( d.vkGetDisplayPlaneCapabilities2KHR( static_cast( m_physicalDevice ), reinterpret_cast( &displayPlaneInfo ), reinterpret_cast( &capabilities ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilities2KHR" ); @@ -15788,7 +16026,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateIOSSurfaceMVK( m_instance, + Result result = static_cast( d.vkCreateIOSSurfaceMVK( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -15809,7 +16047,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateIOSSurfaceMVK( m_instance, + Result result = static_cast( d.vkCreateIOSSurfaceMVK( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -15849,7 +16087,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateMacOSSurfaceMVK( m_instance, + Result result = static_cast( d.vkCreateMacOSSurfaceMVK( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -15870,7 +16108,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateMacOSSurfaceMVK( m_instance, + Result result = static_cast( d.vkCreateMacOSSurfaceMVK( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -15906,7 +16144,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetDebugUtilsObjectNameEXT && "Function requires " ); # endif - Result result = static_cast( d.vkSetDebugUtilsObjectNameEXT( m_device, reinterpret_cast( &nameInfo ) ) ); + Result result = static_cast( + d.vkSetDebugUtilsObjectNameEXT( static_cast( m_device ), reinterpret_cast( &nameInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setDebugUtilsObjectNameEXT" ); return detail::createResultValueType( result ); @@ -15951,7 +16190,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetDebugUtilsObjectTagEXT && "Function requires " ); # endif - Result result = static_cast( d.vkSetDebugUtilsObjectTagEXT( m_device, reinterpret_cast( &tagInfo ) ) ); + Result result = static_cast( + d.vkSetDebugUtilsObjectTagEXT( static_cast( m_device ), reinterpret_cast( &tagInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setDebugUtilsObjectTagEXT" ); return detail::createResultValueType( result ); @@ -15997,7 +16237,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueBeginDebugUtilsLabelEXT && "Function requires " ); # endif - d.vkQueueBeginDebugUtilsLabelEXT( m_queue, reinterpret_cast( &labelInfo ) ); + d.vkQueueBeginDebugUtilsLabelEXT( static_cast( m_queue ), reinterpret_cast( &labelInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16029,7 +16269,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueInsertDebugUtilsLabelEXT && "Function requires " ); # endif - d.vkQueueInsertDebugUtilsLabelEXT( m_queue, reinterpret_cast( &labelInfo ) ); + d.vkQueueInsertDebugUtilsLabelEXT( static_cast( m_queue ), reinterpret_cast( &labelInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16051,7 +16291,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginDebugUtilsLabelEXT && "Function requires " ); # endif - d.vkCmdBeginDebugUtilsLabelEXT( m_commandBuffer, reinterpret_cast( &labelInfo ) ); + d.vkCmdBeginDebugUtilsLabelEXT( static_cast( m_commandBuffer ), reinterpret_cast( &labelInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16083,7 +16323,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdInsertDebugUtilsLabelEXT && "Function requires " ); # endif - d.vkCmdInsertDebugUtilsLabelEXT( m_commandBuffer, reinterpret_cast( &labelInfo ) ); + d.vkCmdInsertDebugUtilsLabelEXT( static_cast( m_commandBuffer ), reinterpret_cast( &labelInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16114,7 +16354,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DebugUtilsMessengerEXT messenger; - Result result = static_cast( d.vkCreateDebugUtilsMessengerEXT( m_instance, + Result result = static_cast( d.vkCreateDebugUtilsMessengerEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &messenger ) ) ); @@ -16137,7 +16377,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DebugUtilsMessengerEXT messenger; - Result result = static_cast( d.vkCreateDebugUtilsMessengerEXT( m_instance, + Result result = static_cast( d.vkCreateDebugUtilsMessengerEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &messenger ) ) ); @@ -16173,8 +16413,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDebugUtilsMessengerEXT && "Function requires " ); # endif - d.vkDestroyDebugUtilsMessengerEXT( - m_instance, static_cast( messenger ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDebugUtilsMessengerEXT( static_cast( m_instance ), + static_cast( messenger ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16202,8 +16443,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDebugUtilsMessengerEXT && "Function requires " ); # endif - d.vkDestroyDebugUtilsMessengerEXT( - m_instance, static_cast( messenger ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDebugUtilsMessengerEXT( static_cast( m_instance ), + static_cast( messenger ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16234,7 +16476,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSubmitDebugUtilsMessageEXT && "Function requires " ); # endif - d.vkSubmitDebugUtilsMessageEXT( m_instance, + d.vkSubmitDebugUtilsMessageEXT( static_cast( m_instance ), static_cast( messageSeverity ), static_cast( messageTypes ), reinterpret_cast( &callbackData ) ); @@ -16269,8 +16511,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AndroidHardwareBufferPropertiesANDROID properties; - Result result = static_cast( - d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast( &properties ) ) ); + Result result = static_cast( d.vkGetAndroidHardwareBufferPropertiesANDROID( + static_cast( m_device ), &buffer, reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -16294,8 +16536,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; AndroidHardwareBufferPropertiesANDROID & properties = structureChain.template get(); - Result result = static_cast( - d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast( &properties ) ) ); + Result result = static_cast( d.vkGetAndroidHardwareBufferPropertiesANDROID( + static_cast( m_device ), &buffer, reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" ); return detail::createResultValueType( result, std::move( structureChain ) ); @@ -16327,8 +16569,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif struct AHardwareBuffer * buffer; - Result result = static_cast( - d.vkGetMemoryAndroidHardwareBufferANDROID( m_device, reinterpret_cast( &info ), &buffer ) ); + Result result = static_cast( d.vkGetMemoryAndroidHardwareBufferANDROID( + static_cast( m_device ), reinterpret_cast( &info ), &buffer ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryAndroidHardwareBufferANDROID" ); return detail::createResultValueType( result, std::move( buffer ) ); @@ -16363,7 +16605,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif GpaSessionAMD gpaSession; - Result result = static_cast( d.vkCreateGpaSessionAMD( m_device, + Result result = static_cast( d.vkCreateGpaSessionAMD( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &gpaSession ) ) ); @@ -16384,7 +16626,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif GpaSessionAMD gpaSession; - Result result = static_cast( d.vkCreateGpaSessionAMD( m_device, + Result result = static_cast( d.vkCreateGpaSessionAMD( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &gpaSession ) ) ); @@ -16417,7 +16659,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyGpaSessionAMD && "Function requires " ); # endif - d.vkDestroyGpaSessionAMD( m_device, static_cast( gpaSession ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyGpaSessionAMD( + static_cast( m_device ), static_cast( gpaSession ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16441,7 +16684,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyGpaSessionAMD && "Function requires " ); # endif - d.vkDestroyGpaSessionAMD( m_device, static_cast( gpaSession ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyGpaSessionAMD( + static_cast( m_device ), static_cast( gpaSession ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16464,7 +16708,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif GpaDeviceClockModeInfoAMD info; - Result result = static_cast( d.vkSetGpaDeviceClockModeAMD( m_device, reinterpret_cast( &info ) ) ); + Result result = + static_cast( d.vkSetGpaDeviceClockModeAMD( static_cast( m_device ), reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setGpaClockModeAMD" ); return detail::createResultValueType( result, std::move( info ) ); @@ -16490,7 +16735,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif GpaDeviceGetClockInfoAMD info; - Result result = static_cast( d.vkGetGpaDeviceClockInfoAMD( m_device, reinterpret_cast( &info ) ) ); + Result result = + static_cast( d.vkGetGpaDeviceClockInfoAMD( static_cast( m_device ), reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGpaClockInfoAMD" ); return detail::createResultValueType( result, std::move( info ) ); @@ -16516,7 +16762,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginGpaSessionAMD && "Function requires " ); # endif - Result result = static_cast( d.vkCmdBeginGpaSessionAMD( m_commandBuffer, static_cast( gpaSession ) ) ); + Result result = + static_cast( d.vkCmdBeginGpaSessionAMD( static_cast( m_commandBuffer ), static_cast( gpaSession ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::beginGpaSessionAMD" ); return detail::createResultValueType( result ); @@ -16542,7 +16789,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndGpaSessionAMD && "Function requires " ); # endif - Result result = static_cast( d.vkCmdEndGpaSessionAMD( m_commandBuffer, static_cast( gpaSession ) ) ); + Result result = + static_cast( d.vkCmdEndGpaSessionAMD( static_cast( m_commandBuffer ), static_cast( gpaSession ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::endGpaSessionAMD" ); return detail::createResultValueType( result ); @@ -16573,8 +16821,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint32_t sampleID; - Result result = static_cast( d.vkCmdBeginGpaSampleAMD( - m_commandBuffer, static_cast( gpaSession ), reinterpret_cast( &gpaSampleBeginInfo ), &sampleID ) ); + Result result = static_cast( d.vkCmdBeginGpaSampleAMD( static_cast( m_commandBuffer ), + static_cast( gpaSession ), + reinterpret_cast( &gpaSampleBeginInfo ), + &sampleID ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::beginGpaSampleAMD" ); return detail::createResultValueType( result, std::move( sampleID ) ); @@ -16608,7 +16858,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetGpaSessionStatusAMD && "Function requires " ); # endif - Result result = static_cast( d.vkGetGpaSessionStatusAMD( m_device, static_cast( gpaSession ) ) ); + Result result = static_cast( d.vkGetGpaSessionStatusAMD( static_cast( m_device ), static_cast( gpaSession ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGpaSessionStatusAMD" ); return detail::createResultValueType( result ); @@ -16641,12 +16891,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector data; size_t sizeInBytes; - Result result = static_cast( d.vkGetGpaSessionResultsAMD( m_device, static_cast( gpaSession ), sampleID, &sizeInBytes, nullptr ) ); + Result result = static_cast( + d.vkGetGpaSessionResultsAMD( static_cast( m_device ), static_cast( gpaSession ), sampleID, &sizeInBytes, nullptr ) ); if ( result == Result::eSuccess ) { data.resize( sizeInBytes ); - result = static_cast( - d.vkGetGpaSessionResultsAMD( m_device, static_cast( gpaSession ), sampleID, &sizeInBytes, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetGpaSessionResultsAMD( + static_cast( m_device ), static_cast( gpaSession ), sampleID, &sizeInBytes, reinterpret_cast( data.data() ) ) ); } detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGpaSessionResultsAMD" ); @@ -16673,12 +16924,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector data( uint8_tAllocator ); size_t sizeInBytes; - Result result = static_cast( d.vkGetGpaSessionResultsAMD( m_device, static_cast( gpaSession ), sampleID, &sizeInBytes, nullptr ) ); + Result result = static_cast( + d.vkGetGpaSessionResultsAMD( static_cast( m_device ), static_cast( gpaSession ), sampleID, &sizeInBytes, nullptr ) ); if ( result == Result::eSuccess ) { data.resize( sizeInBytes ); - result = static_cast( - d.vkGetGpaSessionResultsAMD( m_device, static_cast( gpaSession ), sampleID, &sizeInBytes, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetGpaSessionResultsAMD( + static_cast( m_device ), static_cast( gpaSession ), sampleID, &sizeInBytes, reinterpret_cast( data.data() ) ) ); } detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGpaSessionResultsAMD" ); @@ -16710,7 +16962,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkResetGpaSessionAMD && "Function requires " ); # endif - Result result = static_cast( d.vkResetGpaSessionAMD( m_device, static_cast( gpaSession ) ) ); + Result result = static_cast( d.vkResetGpaSessionAMD( static_cast( m_device ), static_cast( gpaSession ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetGpaSessionAMD" ); return detail::createResultValueType( result ); @@ -16768,7 +17020,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector pipelines( createInfos.size() ); Result result = - static_cast( d.vkCreateExecutionGraphPipelinesAMDX( m_device, + static_cast( d.vkCreateExecutionGraphPipelinesAMDX( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -16805,7 +17057,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector pipelines( createInfos.size(), {}, pipelineAllocator ); Result result = - static_cast( d.vkCreateExecutionGraphPipelinesAMDX( m_device, + static_cast( d.vkCreateExecutionGraphPipelinesAMDX( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -16835,7 +17087,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateExecutionGraphPipelinesAMDX( m_device, + Result result = static_cast( d.vkCreateExecutionGraphPipelinesAMDX( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -16867,7 +17119,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector pipelines( createInfos.size() ); Result result = - static_cast( d.vkCreateExecutionGraphPipelinesAMDX( m_device, + static_cast( d.vkCreateExecutionGraphPipelinesAMDX( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -16910,7 +17162,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector pipelines( createInfos.size() ); Result result = - static_cast( d.vkCreateExecutionGraphPipelinesAMDX( m_device, + static_cast( d.vkCreateExecutionGraphPipelinesAMDX( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -16946,7 +17198,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateExecutionGraphPipelinesAMDX( m_device, + Result result = static_cast( d.vkCreateExecutionGraphPipelinesAMDX( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -16987,8 +17239,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExecutionGraphPipelineScratchSizeAMDX sizeInfo; - Result result = static_cast( d.vkGetExecutionGraphPipelineScratchSizeAMDX( - m_device, static_cast( executionGraph ), reinterpret_cast( &sizeInfo ) ) ); + Result result = + static_cast( d.vkGetExecutionGraphPipelineScratchSizeAMDX( static_cast( m_device ), + static_cast( executionGraph ), + reinterpret_cast( &sizeInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineScratchSizeAMDX" ); return detail::createResultValueType( result, std::move( sizeInfo ) ); @@ -17021,8 +17275,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint32_t nodeIndex; - Result result = static_cast( d.vkGetExecutionGraphPipelineNodeIndexAMDX( - m_device, static_cast( executionGraph ), reinterpret_cast( &nodeInfo ), &nodeIndex ) ); + Result result = + static_cast( d.vkGetExecutionGraphPipelineNodeIndexAMDX( static_cast( m_device ), + static_cast( executionGraph ), + reinterpret_cast( &nodeInfo ), + &nodeIndex ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineNodeIndexAMDX" ); return detail::createResultValueType( result, std::move( nodeIndex ) ); @@ -17065,7 +17322,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDispatchGraphAMDX && "Function requires " ); # endif - d.vkCmdDispatchGraphAMDX( m_commandBuffer, + d.vkCmdDispatchGraphAMDX( static_cast( m_commandBuffer ), static_cast( scratch ), static_cast( scratchSize ), reinterpret_cast( &countInfo ) ); @@ -17097,7 +17354,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDispatchGraphIndirectAMDX && "Function requires " ); # endif - d.vkCmdDispatchGraphIndirectAMDX( m_commandBuffer, + d.vkCmdDispatchGraphIndirectAMDX( static_cast( m_commandBuffer ), static_cast( scratch ), static_cast( scratchSize ), reinterpret_cast( &countInfo ) ); @@ -17151,7 +17408,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - Result result = static_cast( d.vkWriteSamplerDescriptorsEXT( m_device, + Result result = static_cast( d.vkWriteSamplerDescriptorsEXT( static_cast( m_device ), samplers.size(), reinterpret_cast( samplers.data() ), reinterpret_cast( descriptors.data() ) ) ); @@ -17195,7 +17452,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - Result result = static_cast( d.vkWriteResourceDescriptorsEXT( m_device, + Result result = static_cast( d.vkWriteResourceDescriptorsEXT( static_cast( m_device ), resources.size(), reinterpret_cast( resources.data() ), reinterpret_cast( descriptors.data() ) ) ); @@ -17223,7 +17480,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindSamplerHeapEXT && "Function requires " ); # endif - d.vkCmdBindSamplerHeapEXT( m_commandBuffer, reinterpret_cast( &bindInfo ) ); + d.vkCmdBindSamplerHeapEXT( static_cast( m_commandBuffer ), reinterpret_cast( &bindInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17245,7 +17502,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindResourceHeapEXT && "Function requires " ); # endif - d.vkCmdBindResourceHeapEXT( m_commandBuffer, reinterpret_cast( &bindInfo ) ); + d.vkCmdBindResourceHeapEXT( static_cast( m_commandBuffer ), reinterpret_cast( &bindInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17267,7 +17524,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushDataEXT && "Function requires " ); # endif - d.vkCmdPushDataEXT( m_commandBuffer, reinterpret_cast( &pushDataInfo ) ); + d.vkCmdPushDataEXT( static_cast( m_commandBuffer ), reinterpret_cast( &pushDataInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17318,8 +17575,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint32_t index; - Result result = static_cast( d.vkRegisterCustomBorderColorEXT( - m_device, reinterpret_cast( &borderColor ), static_cast( requestIndex ), &index ) ); + Result result = static_cast( d.vkRegisterCustomBorderColorEXT( static_cast( m_device ), + reinterpret_cast( &borderColor ), + static_cast( requestIndex ), + &index ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerCustomBorderColorEXT" ); return detail::createResultValueType( result, std::move( index ) ); @@ -17370,7 +17629,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetSampleLocationsEXT && "Function requires " ); # endif - d.vkCmdSetSampleLocationsEXT( m_commandBuffer, reinterpret_cast( &sampleLocationsInfo ) ); + d.vkCmdSetSampleLocationsEXT( static_cast( m_commandBuffer ), reinterpret_cast( &sampleLocationsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17400,8 +17659,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MultisamplePropertiesEXT multisampleProperties; - d.vkGetPhysicalDeviceMultisamplePropertiesEXT( - m_physicalDevice, static_cast( samples ), reinterpret_cast( &multisampleProperties ) ); + d.vkGetPhysicalDeviceMultisamplePropertiesEXT( static_cast( m_physicalDevice ), + static_cast( samples ), + reinterpret_cast( &multisampleProperties ) ); return multisampleProperties; } @@ -17435,8 +17695,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetImageMemoryRequirements2KHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetImageMemoryRequirements2KHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -17455,8 +17716,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetImageMemoryRequirements2KHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetImageMemoryRequirements2KHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -17488,8 +17750,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetBufferMemoryRequirements2KHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetBufferMemoryRequirements2KHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -17508,8 +17771,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetBufferMemoryRequirements2KHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetBufferMemoryRequirements2KHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -17550,9 +17814,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements; uint32_t sparseMemoryRequirementCount; d.vkGetImageSparseMemoryRequirements2KHR( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetImageSparseMemoryRequirements2KHR( m_device, + d.vkGetImageSparseMemoryRequirements2KHR( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -17586,9 +17850,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator ); uint32_t sparseMemoryRequirementCount; d.vkGetImageSparseMemoryRequirements2KHR( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetImageSparseMemoryRequirements2KHR( m_device, + d.vkGetImageSparseMemoryRequirements2KHR( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -17632,7 +17896,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureKHR accelerationStructure; - Result result = static_cast( d.vkCreateAccelerationStructureKHR( m_device, + Result result = static_cast( d.vkCreateAccelerationStructureKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &accelerationStructure ) ) ); @@ -17655,7 +17919,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureKHR accelerationStructure; - Result result = static_cast( d.vkCreateAccelerationStructureKHR( m_device, + Result result = static_cast( d.vkCreateAccelerationStructureKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &accelerationStructure ) ) ); @@ -17691,8 +17955,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureKHR && "Function requires " ); # endif - d.vkDestroyAccelerationStructureKHR( - m_device, static_cast( accelerationStructure ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyAccelerationStructureKHR( static_cast( m_device ), + static_cast( accelerationStructure ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17720,8 +17985,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureKHR && "Function requires " ); # endif - d.vkDestroyAccelerationStructureKHR( - m_device, static_cast( accelerationStructure ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyAccelerationStructureKHR( static_cast( m_device ), + static_cast( accelerationStructure ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17762,7 +18028,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBuildAccelerationStructuresKHR( m_commandBuffer, + d.vkCmdBuildAccelerationStructuresKHR( static_cast( m_commandBuffer ), infos.size(), reinterpret_cast( infos.data() ), reinterpret_cast( pBuildRangeInfos.data() ) ); @@ -17822,7 +18088,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBuildAccelerationStructuresIndirectKHR( m_commandBuffer, + d.vkCmdBuildAccelerationStructuresIndirectKHR( static_cast( m_commandBuffer ), infos.size(), reinterpret_cast( infos.data() ), reinterpret_cast( indirectDeviceAddresses.data() ), @@ -17874,7 +18140,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ Result result = static_cast( - d.vkBuildAccelerationStructuresKHR( m_device, + d.vkBuildAccelerationStructuresKHR( static_cast( m_device ), static_cast( deferredOperation ), infos.size(), reinterpret_cast( infos.data() ), @@ -17911,8 +18177,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyAccelerationStructureKHR && "Function requires " ); # endif - Result result = static_cast( d.vkCopyAccelerationStructureKHR( - m_device, static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); + Result result = static_cast( d.vkCopyAccelerationStructureKHR( static_cast( m_device ), + static_cast( deferredOperation ), + reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyAccelerationStructureKHR", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -17946,8 +18213,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - Result result = static_cast( d.vkCopyAccelerationStructureToMemoryKHR( - m_device, static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); + Result result = + static_cast( d.vkCopyAccelerationStructureToMemoryKHR( static_cast( m_device ), + static_cast( deferredOperation ), + reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyAccelerationStructureToMemoryKHR", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -17981,8 +18250,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - Result result = static_cast( d.vkCopyMemoryToAccelerationStructureKHR( - m_device, static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); + Result result = + static_cast( d.vkCopyMemoryToAccelerationStructureKHR( static_cast( m_device ), + static_cast( deferredOperation ), + reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToAccelerationStructureKHR", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -18033,7 +18304,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); Result result = - static_cast( d.vkWriteAccelerationStructuresPropertiesKHR( m_device, + static_cast( d.vkWriteAccelerationStructuresPropertiesKHR( static_cast( m_device ), accelerationStructures.size(), reinterpret_cast( accelerationStructures.data() ), static_cast( queryType ), @@ -18059,7 +18330,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataType data; Result result = - static_cast( d.vkWriteAccelerationStructuresPropertiesKHR( m_device, + static_cast( d.vkWriteAccelerationStructuresPropertiesKHR( static_cast( m_device ), accelerationStructures.size(), reinterpret_cast( accelerationStructures.data() ), static_cast( queryType ), @@ -18095,7 +18366,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyAccelerationStructureKHR && "Function requires " ); # endif - d.vkCmdCopyAccelerationStructureKHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdCopyAccelerationStructureKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18123,7 +18395,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdCopyAccelerationStructureToMemoryKHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdCopyAccelerationStructureToMemoryKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18151,7 +18424,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdCopyMemoryToAccelerationStructureKHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdCopyMemoryToAccelerationStructureKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18179,8 +18453,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkDeviceAddress result = - d.vkGetAccelerationStructureDeviceAddressKHR( m_device, reinterpret_cast( &info ) ); + VkDeviceAddress result = d.vkGetAccelerationStructureDeviceAddressKHR( static_cast( m_device ), + reinterpret_cast( &info ) ); return static_cast( result ); } @@ -18221,7 +18495,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdWriteAccelerationStructuresPropertiesKHR( m_commandBuffer, + d.vkCmdWriteAccelerationStructuresPropertiesKHR( static_cast( m_commandBuffer ), accelerationStructures.size(), reinterpret_cast( accelerationStructures.data() ), static_cast( queryType ), @@ -18257,7 +18531,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureCompatibilityKHR compatibility; - d.vkGetDeviceAccelerationStructureCompatibilityKHR( m_device, + d.vkGetDeviceAccelerationStructureCompatibilityKHR( static_cast( m_device ), reinterpret_cast( &versionInfo ), reinterpret_cast( &compatibility ) ); @@ -18307,7 +18581,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ AccelerationStructureBuildSizesInfoKHR sizeInfo; - d.vkGetAccelerationStructureBuildSizesKHR( m_device, + d.vkGetAccelerationStructureBuildSizesKHR( static_cast( m_device ), static_cast( buildType ), reinterpret_cast( &buildInfo ), maxPrimitiveCounts.data(), @@ -18358,7 +18632,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdTraceRaysKHR && "Function requires " ); # endif - d.vkCmdTraceRaysKHR( m_commandBuffer, + d.vkCmdTraceRaysKHR( static_cast( m_commandBuffer ), reinterpret_cast( &raygenShaderBindingTable ), reinterpret_cast( &missShaderBindingTable ), reinterpret_cast( &hitShaderBindingTable ), @@ -18410,7 +18684,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -18448,7 +18722,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size(), {}, pipelineAllocator ); - Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -18481,7 +18755,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), 1, @@ -18515,7 +18789,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -18559,7 +18833,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -18599,7 +18873,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesKHR( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), 1, @@ -18646,8 +18920,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); - Result result = static_cast( d.vkGetRayTracingShaderGroupHandlesKHR( - m_device, static_cast( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); + Result result = static_cast( d.vkGetRayTracingShaderGroupHandlesKHR( static_cast( m_device ), + static_cast( pipeline ), + firstGroup, + groupCount, + data.size() * sizeof( DataType ), + reinterpret_cast( data.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesKHR" ); return detail::createResultValueType( result, std::move( data ) ); @@ -18667,7 +18945,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataType data; Result result = static_cast( d.vkGetRayTracingShaderGroupHandlesKHR( - m_device, static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); + static_cast( m_device ), static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleKHR" ); return detail::createResultValueType( result, std::move( data ) ); @@ -18705,8 +18983,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); - Result result = static_cast( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( - m_device, static_cast( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); + Result result = static_cast( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( static_cast( m_device ), + static_cast( pipeline ), + firstGroup, + groupCount, + data.size() * sizeof( DataType ), + reinterpret_cast( data.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandlesKHR" ); return detail::createResultValueType( result, std::move( data ) ); @@ -18726,7 +19008,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataType data; Result result = static_cast( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( - m_device, static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); + static_cast( m_device ), static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandleKHR" ); return detail::createResultValueType( result, std::move( data ) ); @@ -18766,7 +19048,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdTraceRaysIndirectKHR && "Function requires " ); # endif - d.vkCmdTraceRaysIndirectKHR( m_commandBuffer, + d.vkCmdTraceRaysIndirectKHR( static_cast( m_commandBuffer ), reinterpret_cast( &raygenShaderBindingTable ), reinterpret_cast( &missShaderBindingTable ), reinterpret_cast( &hitShaderBindingTable ), @@ -18826,7 +19108,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SamplerYcbcrConversion ycbcrConversion; - Result result = static_cast( d.vkCreateSamplerYcbcrConversionKHR( m_device, + Result result = static_cast( d.vkCreateSamplerYcbcrConversionKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &ycbcrConversion ) ) ); @@ -18850,7 +19132,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SamplerYcbcrConversion ycbcrConversion; - Result result = static_cast( d.vkCreateSamplerYcbcrConversionKHR( m_device, + Result result = static_cast( d.vkCreateSamplerYcbcrConversionKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &ycbcrConversion ) ) ); @@ -18887,8 +19169,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkDestroySamplerYcbcrConversionKHR( - m_device, static_cast( ycbcrConversion ), reinterpret_cast( allocator.get() ) ); + d.vkDestroySamplerYcbcrConversionKHR( static_cast( m_device ), + static_cast( ycbcrConversion ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18915,8 +19198,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindBufferMemory2KHR && "Function requires or " ); # endif - Result result = - static_cast( d.vkBindBufferMemory2KHR( m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + Result result = static_cast( + d.vkBindBufferMemory2KHR( static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory2KHR" ); return detail::createResultValueType( result ); @@ -18944,8 +19227,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindImageMemory2KHR && "Function requires or " ); # endif - Result result = - static_cast( d.vkBindImageMemory2KHR( m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + Result result = static_cast( + d.vkBindImageMemory2KHR( static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory2KHR" ); return detail::createResultValueType( result ); @@ -18980,7 +19263,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE ImageDrmFormatModifierPropertiesEXT properties; Result result = static_cast( d.vkGetImageDrmFormatModifierPropertiesEXT( - m_device, static_cast( image ), reinterpret_cast( &properties ) ) ); + static_cast( m_device ), static_cast( image ), reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageDrmFormatModifierPropertiesEXT" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -19014,7 +19297,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ValidationCacheEXT validationCache; - Result result = static_cast( d.vkCreateValidationCacheEXT( m_device, + Result result = static_cast( d.vkCreateValidationCacheEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &validationCache ) ) ); @@ -19035,7 +19318,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ValidationCacheEXT validationCache; - Result result = static_cast( d.vkCreateValidationCacheEXT( m_device, + Result result = static_cast( d.vkCreateValidationCacheEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &validationCache ) ) ); @@ -19068,8 +19351,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyValidationCacheEXT && "Function requires " ); # endif - d.vkDestroyValidationCacheEXT( - m_device, static_cast( validationCache ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyValidationCacheEXT( static_cast( m_device ), + static_cast( validationCache ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19094,8 +19378,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyValidationCacheEXT && "Function requires " ); # endif - d.vkDestroyValidationCacheEXT( - m_device, static_cast( validationCache ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyValidationCacheEXT( static_cast( m_device ), + static_cast( validationCache ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19122,8 +19407,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkMergeValidationCachesEXT && "Function requires " ); # endif - Result result = static_cast( d.vkMergeValidationCachesEXT( - m_device, static_cast( dstCache ), srcCaches.size(), reinterpret_cast( srcCaches.data() ) ) ); + Result result = static_cast( d.vkMergeValidationCachesEXT( static_cast( m_device ), + static_cast( dstCache ), + srcCaches.size(), + reinterpret_cast( srcCaches.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mergeValidationCachesEXT" ); return detail::createResultValueType( result ); @@ -19159,12 +19446,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetValidationCacheDataEXT( m_device, static_cast( validationCache ), &dataSize, nullptr ) ); + result = static_cast( + d.vkGetValidationCacheDataEXT( static_cast( m_device ), static_cast( validationCache ), &dataSize, nullptr ) ); if ( ( result == Result::eSuccess ) && dataSize ) { data.resize( dataSize ); - result = static_cast( - d.vkGetValidationCacheDataEXT( m_device, static_cast( validationCache ), &dataSize, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetValidationCacheDataEXT( + static_cast( m_device ), static_cast( validationCache ), &dataSize, reinterpret_cast( data.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" ); @@ -19194,12 +19482,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetValidationCacheDataEXT( m_device, static_cast( validationCache ), &dataSize, nullptr ) ); + result = static_cast( + d.vkGetValidationCacheDataEXT( static_cast( m_device ), static_cast( validationCache ), &dataSize, nullptr ) ); if ( ( result == Result::eSuccess ) && dataSize ) { data.resize( dataSize ); - result = static_cast( - d.vkGetValidationCacheDataEXT( m_device, static_cast( validationCache ), &dataSize, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetValidationCacheDataEXT( + static_cast( m_device ), static_cast( validationCache ), &dataSize, reinterpret_cast( data.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" ); @@ -19246,8 +19535,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetViewportShadingRatePaletteNV && "Function requires " ); # endif - d.vkCmdSetViewportShadingRatePaletteNV( - m_commandBuffer, firstViewport, shadingRatePalettes.size(), reinterpret_cast( shadingRatePalettes.data() ) ); + d.vkCmdSetViewportShadingRatePaletteNV( static_cast( m_commandBuffer ), + firstViewport, + shadingRatePalettes.size(), + reinterpret_cast( shadingRatePalettes.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19276,7 +19567,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetCoarseSampleOrderNV && "Function requires " ); # endif - d.vkCmdSetCoarseSampleOrderNV( m_commandBuffer, + d.vkCmdSetCoarseSampleOrderNV( static_cast( m_commandBuffer ), static_cast( sampleOrderType ), customSampleOrders.size(), reinterpret_cast( customSampleOrders.data() ) ); @@ -19313,7 +19604,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureNV accelerationStructure; - Result result = static_cast( d.vkCreateAccelerationStructureNV( m_device, + Result result = static_cast( d.vkCreateAccelerationStructureNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &accelerationStructure ) ) ); @@ -19336,7 +19627,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureNV accelerationStructure; - Result result = static_cast( d.vkCreateAccelerationStructureNV( m_device, + Result result = static_cast( d.vkCreateAccelerationStructureNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &accelerationStructure ) ) ); @@ -19372,8 +19663,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureNV && "Function requires " ); # endif - d.vkDestroyAccelerationStructureNV( - m_device, static_cast( accelerationStructure ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyAccelerationStructureNV( static_cast( m_device ), + static_cast( accelerationStructure ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19401,8 +19693,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureNV && "Function requires " ); # endif - d.vkDestroyAccelerationStructureNV( - m_device, static_cast( accelerationStructure ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyAccelerationStructureNV( static_cast( m_device ), + static_cast( accelerationStructure ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19432,7 +19725,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetAccelerationStructureMemoryRequirementsNV( m_device, + d.vkGetAccelerationStructureMemoryRequirementsNV( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -19457,7 +19750,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetAccelerationStructureMemoryRequirementsNV( m_device, + d.vkGetAccelerationStructureMemoryRequirementsNV( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -19489,7 +19782,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Result result = static_cast( d.vkBindAccelerationStructureMemoryNV( - m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindAccelerationStructureMemoryNV" ); return detail::createResultValueType( result ); @@ -19540,7 +19833,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructureNV && "Function requires " ); # endif - d.vkCmdBuildAccelerationStructureNV( m_commandBuffer, + d.vkCmdBuildAccelerationStructureNV( static_cast( m_commandBuffer ), reinterpret_cast( &info ), static_cast( instanceData ), static_cast( instanceOffset ), @@ -19639,7 +19932,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateRayTracingPipelinesNV( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesNV( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -19675,7 +19968,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size(), {}, pipelineAllocator ); - Result result = static_cast( d.vkCreateRayTracingPipelinesNV( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesNV( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -19704,7 +19997,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateRayTracingPipelinesNV( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesNV( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -19735,7 +20028,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateRayTracingPipelinesNV( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesNV( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -19777,7 +20070,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateRayTracingPipelinesNV( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesNV( static_cast( m_device ), static_cast( pipelineCache ), createInfos.size(), reinterpret_cast( createInfos.data() ), @@ -19812,7 +20105,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateRayTracingPipelinesNV( m_device, + Result result = static_cast( d.vkCreateRayTracingPipelinesNV( static_cast( m_device ), static_cast( pipelineCache ), 1, reinterpret_cast( &createInfo ), @@ -19857,8 +20150,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); - Result result = static_cast( d.vkGetRayTracingShaderGroupHandlesNV( - m_device, static_cast( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); + Result result = static_cast( d.vkGetRayTracingShaderGroupHandlesNV( static_cast( m_device ), + static_cast( pipeline ), + firstGroup, + groupCount, + data.size() * sizeof( DataType ), + reinterpret_cast( data.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesNV" ); return detail::createResultValueType( result, std::move( data ) ); @@ -19878,7 +20175,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataType data; Result result = static_cast( d.vkGetRayTracingShaderGroupHandlesNV( - m_device, static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); + static_cast( m_device ), static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleNV" ); return detail::createResultValueType( result, std::move( data ) ); @@ -19914,8 +20211,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); - Result result = static_cast( d.vkGetAccelerationStructureHandleNV( - m_device, static_cast( accelerationStructure ), data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); + Result result = static_cast( d.vkGetAccelerationStructureHandleNV( static_cast( m_device ), + static_cast( accelerationStructure ), + data.size() * sizeof( DataType ), + reinterpret_cast( data.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" ); return detail::createResultValueType( result, std::move( data ) ); @@ -19933,8 +20232,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( d.vkGetAccelerationStructureHandleNV( - m_device, static_cast( accelerationStructure ), sizeof( DataType ), reinterpret_cast( &data ) ) ); + Result result = static_cast( d.vkGetAccelerationStructureHandleNV( static_cast( m_device ), + static_cast( accelerationStructure ), + sizeof( DataType ), + reinterpret_cast( &data ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" ); return detail::createResultValueType( result, std::move( data ) ); @@ -19976,7 +20277,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdWriteAccelerationStructuresPropertiesNV( m_commandBuffer, + d.vkCmdWriteAccelerationStructuresPropertiesNV( static_cast( m_commandBuffer ), accelerationStructures.size(), reinterpret_cast( accelerationStructures.data() ), static_cast( queryType ), @@ -20004,7 +20305,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCompileDeferredNV && "Function requires " ); # endif - Result result = static_cast( d.vkCompileDeferredNV( m_device, static_cast( pipeline ), shader ) ); + Result result = static_cast( d.vkCompileDeferredNV( static_cast( m_device ), static_cast( pipeline ), shader ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::compileDeferredNV" ); return detail::createResultValueType( result ); @@ -20039,8 +20340,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorSetLayoutSupport support; - d.vkGetDescriptorSetLayoutSupportKHR( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &support ) ); + d.vkGetDescriptorSetLayoutSupportKHR( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &support ) ); return support; } @@ -20059,8 +20361,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; DescriptorSetLayoutSupport & support = structureChain.template get(); - d.vkGetDescriptorSetLayoutSupportKHR( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &support ) ); + d.vkGetDescriptorSetLayoutSupportKHR( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &support ) ); return structureChain; } @@ -20131,7 +20434,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE MemoryHostPointerPropertiesEXT memoryHostPointerProperties; Result result = - static_cast( d.vkGetMemoryHostPointerPropertiesEXT( m_device, + static_cast( d.vkGetMemoryHostPointerPropertiesEXT( static_cast( m_device ), static_cast( handleType ), pHostPointer, reinterpret_cast( &memoryHostPointerProperties ) ) ); @@ -20203,12 +20506,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( static_cast( m_physicalDevice ), &timeDomainCount, nullptr ) ); if ( ( result == Result::eSuccess ) && timeDomainCount ) { timeDomains.resize( timeDomainCount ); - result = static_cast( - d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( + static_cast( m_physicalDevice ), &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" ); @@ -20240,12 +20544,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( static_cast( m_physicalDevice ), &timeDomainCount, nullptr ) ); if ( ( result == Result::eSuccess ) && timeDomainCount ) { timeDomains.resize( timeDomainCount ); - result = static_cast( - d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( + static_cast( m_physicalDevice ), &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" ); @@ -20291,8 +20596,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) ); std::vector & timestamps = data_.first; uint64_t & maxDeviation = data_.second; - Result result = static_cast( d.vkGetCalibratedTimestampsEXT( - m_device, timestampInfos.size(), reinterpret_cast( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); + Result result = static_cast( d.vkGetCalibratedTimestampsEXT( static_cast( m_device ), + timestampInfos.size(), + reinterpret_cast( timestampInfos.data() ), + timestamps.data(), + &maxDeviation ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); return detail::createResultValueType( result, std::move( data_ ) ); @@ -20317,8 +20625,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::piecewise_construct, std::forward_as_tuple( timestampInfos.size(), uint64_tAllocator ), std::forward_as_tuple( 0 ) ); std::vector & timestamps = data_.first; uint64_t & maxDeviation = data_.second; - Result result = static_cast( d.vkGetCalibratedTimestampsEXT( - m_device, timestampInfos.size(), reinterpret_cast( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); + Result result = static_cast( d.vkGetCalibratedTimestampsEXT( static_cast( m_device ), + timestampInfos.size(), + reinterpret_cast( timestampInfos.data() ), + timestamps.data(), + &maxDeviation ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); return detail::createResultValueType( result, std::move( data_ ) ); @@ -20338,8 +20649,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::pair data_; uint64_t & timestamp = data_.first; uint64_t & maxDeviation = data_.second; - Result result = static_cast( - d.vkGetCalibratedTimestampsEXT( m_device, 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); + Result result = static_cast( d.vkGetCalibratedTimestampsEXT( + static_cast( m_device ), 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampEXT" ); return detail::createResultValueType( result, std::move( data_ ) ); @@ -20410,8 +20721,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetExclusiveScissorEnableNV && "Function requires " ); # endif - d.vkCmdSetExclusiveScissorEnableNV( - m_commandBuffer, firstExclusiveScissor, exclusiveScissorEnables.size(), reinterpret_cast( exclusiveScissorEnables.data() ) ); + d.vkCmdSetExclusiveScissorEnableNV( static_cast( m_commandBuffer ), + firstExclusiveScissor, + exclusiveScissorEnables.size(), + reinterpret_cast( exclusiveScissorEnables.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20436,8 +20749,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetExclusiveScissorNV && "Function requires " ); # endif - d.vkCmdSetExclusiveScissorNV( - m_commandBuffer, firstExclusiveScissor, exclusiveScissors.size(), reinterpret_cast( exclusiveScissors.data() ) ); + d.vkCmdSetExclusiveScissorNV( static_cast( m_commandBuffer ), + firstExclusiveScissor, + exclusiveScissors.size(), + reinterpret_cast( exclusiveScissors.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20461,7 +20776,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetCheckpointNV && "Function requires " ); # endif - d.vkCmdSetCheckpointNV( m_commandBuffer, reinterpret_cast( &checkpointMarker ) ); + d.vkCmdSetCheckpointNV( static_cast( m_commandBuffer ), reinterpret_cast( &checkpointMarker ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20489,9 +20804,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector checkpointData; uint32_t checkpointDataCount; - d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, nullptr ); + d.vkGetQueueCheckpointDataNV( static_cast( m_queue ), &checkpointDataCount, nullptr ); checkpointData.resize( checkpointDataCount ); - d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); + d.vkGetQueueCheckpointDataNV( static_cast( m_queue ), &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() ); if ( checkpointDataCount < checkpointData.size() ) @@ -20516,9 +20831,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector checkpointData( checkpointDataNVAllocator ); uint32_t checkpointDataCount; - d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, nullptr ); + d.vkGetQueueCheckpointDataNV( static_cast( m_queue ), &checkpointDataCount, nullptr ); checkpointData.resize( checkpointDataCount ); - d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); + d.vkGetQueueCheckpointDataNV( static_cast( m_queue ), &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() ); if ( checkpointDataCount < checkpointData.size() ) @@ -20553,9 +20868,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector checkpointData; uint32_t checkpointDataCount; - d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, nullptr ); + d.vkGetQueueCheckpointData2NV( static_cast( m_queue ), &checkpointDataCount, nullptr ); checkpointData.resize( checkpointDataCount ); - d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); + d.vkGetQueueCheckpointData2NV( static_cast( m_queue ), &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() ); if ( checkpointDataCount < checkpointData.size() ) @@ -20580,9 +20895,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector checkpointData( checkpointData2NVAllocator ); uint32_t checkpointDataCount; - d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, nullptr ); + d.vkGetQueueCheckpointData2NV( static_cast( m_queue ), &checkpointDataCount, nullptr ); checkpointData.resize( checkpointDataCount ); - d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); + d.vkGetQueueCheckpointData2NV( static_cast( m_queue ), &checkpointDataCount, reinterpret_cast( checkpointData.data() ) ); VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() ); if ( checkpointDataCount < checkpointData.size() ) @@ -20618,7 +20933,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint64_t value; - Result result = static_cast( d.vkGetSemaphoreCounterValueKHR( m_device, static_cast( semaphore ), &value ) ); + Result result = static_cast( d.vkGetSemaphoreCounterValueKHR( static_cast( m_device ), static_cast( semaphore ), &value ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValueKHR" ); return detail::createResultValueType( result, std::move( value ) ); @@ -20645,7 +20960,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkWaitSemaphoresKHR && "Function requires or " ); # endif - Result result = static_cast( d.vkWaitSemaphoresKHR( m_device, reinterpret_cast( &waitInfo ), timeout ) ); + Result result = + static_cast( d.vkWaitSemaphoresKHR( static_cast( m_device ), reinterpret_cast( &waitInfo ), timeout ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitSemaphoresKHR", { Result::eSuccess, Result::eTimeout } ); return static_cast( result ); @@ -20672,7 +20988,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSignalSemaphoreKHR && "Function requires or " ); # endif - Result result = static_cast( d.vkSignalSemaphoreKHR( m_device, reinterpret_cast( &signalInfo ) ) ); + Result result = + static_cast( d.vkSignalSemaphoreKHR( static_cast( m_device ), reinterpret_cast( &signalInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::signalSemaphoreKHR" ); return detail::createResultValueType( result ); @@ -20703,7 +21020,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetSwapchainPresentTimingQueueSizeEXT && "Function requires " ); # endif - Result result = static_cast( d.vkSetSwapchainPresentTimingQueueSizeEXT( m_device, static_cast( swapchain ), size ) ); + Result result = + static_cast( d.vkSetSwapchainPresentTimingQueueSizeEXT( static_cast( m_device ), static_cast( swapchain ), size ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setSwapchainPresentTimingQueueSizeEXT", { Result::eSuccess, Result::eNotReady } ); return static_cast( result ); @@ -20739,7 +21057,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::pair data_; SwapchainTimingPropertiesEXT & swapchainTimingProperties = data_.first; uint64_t & swapchainTimingPropertiesCounter = data_.second; - Result result = static_cast( d.vkGetSwapchainTimingPropertiesEXT( m_device, + Result result = static_cast( d.vkGetSwapchainTimingPropertiesEXT( static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( &swapchainTimingProperties ), &swapchainTimingPropertiesCounter ) ); @@ -20803,8 +21121,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkInitializePerformanceApiINTEL && "Function requires " ); # endif - Result result = - static_cast( d.vkInitializePerformanceApiINTEL( m_device, reinterpret_cast( &initializeInfo ) ) ); + Result result = static_cast( d.vkInitializePerformanceApiINTEL( + static_cast( m_device ), reinterpret_cast( &initializeInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::initializePerformanceApiINTEL" ); return detail::createResultValueType( result ); @@ -20843,8 +21161,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceMarkerINTEL && "Function requires " ); # endif - Result result = - static_cast( d.vkCmdSetPerformanceMarkerINTEL( m_commandBuffer, reinterpret_cast( &markerInfo ) ) ); + Result result = static_cast( d.vkCmdSetPerformanceMarkerINTEL( static_cast( m_commandBuffer ), + reinterpret_cast( &markerInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceMarkerINTEL" ); return detail::createResultValueType( result ); @@ -20874,8 +21192,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceStreamMarkerINTEL && "Function requires " ); # endif - Result result = static_cast( - d.vkCmdSetPerformanceStreamMarkerINTEL( m_commandBuffer, reinterpret_cast( &markerInfo ) ) ); + Result result = static_cast( d.vkCmdSetPerformanceStreamMarkerINTEL( + static_cast( m_commandBuffer ), reinterpret_cast( &markerInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceStreamMarkerINTEL" ); return detail::createResultValueType( result ); @@ -20905,8 +21223,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceOverrideINTEL && "Function requires " ); # endif - Result result = - static_cast( d.vkCmdSetPerformanceOverrideINTEL( m_commandBuffer, reinterpret_cast( &overrideInfo ) ) ); + Result result = static_cast( d.vkCmdSetPerformanceOverrideINTEL( static_cast( m_commandBuffer ), + reinterpret_cast( &overrideInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceOverrideINTEL" ); return detail::createResultValueType( result ); @@ -20940,7 +21258,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PerformanceConfigurationINTEL configuration; Result result = - static_cast( d.vkAcquirePerformanceConfigurationINTEL( m_device, + static_cast( d.vkAcquirePerformanceConfigurationINTEL( static_cast( m_device ), reinterpret_cast( &acquireInfo ), reinterpret_cast( &configuration ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTEL" ); @@ -20962,7 +21280,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PerformanceConfigurationINTEL configuration; Result result = - static_cast( d.vkAcquirePerformanceConfigurationINTEL( m_device, + static_cast( d.vkAcquirePerformanceConfigurationINTEL( static_cast( m_device ), reinterpret_cast( &acquireInfo ), reinterpret_cast( &configuration ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTELUnique" ); @@ -20996,7 +21314,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkReleasePerformanceConfigurationINTEL && "Function requires " ); # endif - Result result = static_cast( d.vkReleasePerformanceConfigurationINTEL( m_device, static_cast( configuration ) ) ); + Result result = static_cast( + d.vkReleasePerformanceConfigurationINTEL( static_cast( m_device ), static_cast( configuration ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releasePerformanceConfigurationINTEL" ); return detail::createResultValueType( result ); @@ -21025,7 +21344,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkReleasePerformanceConfigurationINTEL && "Function requires " ); # endif - Result result = static_cast( d.vkReleasePerformanceConfigurationINTEL( m_device, static_cast( configuration ) ) ); + Result result = static_cast( + d.vkReleasePerformanceConfigurationINTEL( static_cast( m_device ), static_cast( configuration ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::release" ); return detail::createResultValueType( result ); @@ -21056,7 +21376,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - Result result = static_cast( d.vkQueueSetPerformanceConfigurationINTEL( m_queue, static_cast( configuration ) ) ); + Result result = static_cast( + d.vkQueueSetPerformanceConfigurationINTEL( static_cast( m_queue ), static_cast( configuration ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::setPerformanceConfigurationINTEL" ); return detail::createResultValueType( result ); @@ -21088,7 +21409,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PerformanceValueINTEL value; Result result = static_cast( d.vkGetPerformanceParameterINTEL( - m_device, static_cast( parameter ), reinterpret_cast( &value ) ) ); + static_cast( m_device ), static_cast( parameter ), reinterpret_cast( &value ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPerformanceParameterINTEL" ); return detail::createResultValueType( result, std::move( value ) ); @@ -21135,7 +21456,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateImagePipeSurfaceFUCHSIA( m_instance, + Result result = static_cast( d.vkCreateImagePipeSurfaceFUCHSIA( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -21157,7 +21478,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateImagePipeSurfaceFUCHSIA( m_instance, + Result result = static_cast( d.vkCreateImagePipeSurfaceFUCHSIA( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -21197,7 +21518,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateMetalSurfaceEXT( m_instance, + Result result = static_cast( d.vkCreateMetalSurfaceEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -21218,7 +21539,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateMetalSurfaceEXT( m_instance, + Result result = static_cast( d.vkCreateMetalSurfaceEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -21270,12 +21591,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( m_physicalDevice, &fragmentShadingRateCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast( m_physicalDevice ), &fragmentShadingRateCount, nullptr ) ); if ( ( result == Result::eSuccess ) && fragmentShadingRateCount ) { fragmentShadingRates.resize( fragmentShadingRateCount ); - result = static_cast( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( - m_physicalDevice, &fragmentShadingRateCount, reinterpret_cast( fragmentShadingRates.data() ) ) ); + result = static_cast( + d.vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast( m_physicalDevice ), + &fragmentShadingRateCount, + reinterpret_cast( fragmentShadingRates.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" ); @@ -21312,12 +21636,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( m_physicalDevice, &fragmentShadingRateCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast( m_physicalDevice ), &fragmentShadingRateCount, nullptr ) ); if ( ( result == Result::eSuccess ) && fragmentShadingRateCount ) { fragmentShadingRates.resize( fragmentShadingRateCount ); - result = static_cast( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( - m_physicalDevice, &fragmentShadingRateCount, reinterpret_cast( fragmentShadingRates.data() ) ) ); + result = static_cast( + d.vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast( m_physicalDevice ), + &fragmentShadingRateCount, + reinterpret_cast( fragmentShadingRates.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" ); @@ -21354,7 +21681,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetFragmentShadingRateKHR && "Function requires " ); # endif - d.vkCmdSetFragmentShadingRateKHR( m_commandBuffer, + d.vkCmdSetFragmentShadingRateKHR( static_cast( m_commandBuffer ), reinterpret_cast( &fragmentSize ), reinterpret_cast( combinerOps.data() ) ); } @@ -21386,7 +21713,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetRenderingAttachmentLocationsKHR( m_commandBuffer, reinterpret_cast( &locationInfo ) ); + d.vkCmdSetRenderingAttachmentLocationsKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &locationInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -21414,7 +21742,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetRenderingInputAttachmentIndicesKHR( m_commandBuffer, reinterpret_cast( &inputAttachmentIndexInfo ) ); + d.vkCmdSetRenderingInputAttachmentIndicesKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &inputAttachmentIndexInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -21440,7 +21769,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - VkDeviceAddress result = d.vkGetBufferDeviceAddressEXT( m_device, reinterpret_cast( &info ) ); + VkDeviceAddress result = d.vkGetBufferDeviceAddressEXT( static_cast( m_device ), reinterpret_cast( &info ) ); return static_cast( result ); } @@ -21480,12 +21809,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceToolPropertiesEXT( static_cast( m_physicalDevice ), &toolCount, nullptr ) ); if ( ( result == Result::eSuccess ) && toolCount ) { toolProperties.resize( toolCount ); - result = static_cast( - d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, reinterpret_cast( toolProperties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceToolPropertiesEXT( + static_cast( m_physicalDevice ), &toolCount, reinterpret_cast( toolProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" ); @@ -21517,12 +21846,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceToolPropertiesEXT( static_cast( m_physicalDevice ), &toolCount, nullptr ) ); if ( ( result == Result::eSuccess ) && toolCount ) { toolProperties.resize( toolCount ); - result = static_cast( - d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, reinterpret_cast( toolProperties.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceToolPropertiesEXT( + static_cast( m_physicalDevice ), &toolCount, reinterpret_cast( toolProperties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" ); @@ -21557,7 +21886,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkWaitForPresentKHR && "Function requires " ); # endif - Result result = static_cast( d.vkWaitForPresentKHR( m_device, static_cast( swapchain ), presentId, timeout ) ); + Result result = + static_cast( d.vkWaitForPresentKHR( static_cast( m_device ), static_cast( swapchain ), presentId, timeout ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( result, @@ -21605,12 +21935,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" ); @@ -21643,12 +21974,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" ); @@ -21698,12 +22030,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( m_physicalDevice, &combinationCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( static_cast( m_physicalDevice ), &combinationCount, nullptr ) ); if ( ( result == Result::eSuccess ) && combinationCount ) { combinations.resize( combinationCount ); result = static_cast( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( - m_physicalDevice, &combinationCount, reinterpret_cast( combinations.data() ) ) ); + static_cast( m_physicalDevice ), + &combinationCount, + reinterpret_cast( combinations.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" ); @@ -21740,12 +22075,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( m_physicalDevice, &combinationCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( static_cast( m_physicalDevice ), &combinationCount, nullptr ) ); if ( ( result == Result::eSuccess ) && combinationCount ) { combinations.resize( combinationCount ); result = static_cast( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( - m_physicalDevice, &combinationCount, reinterpret_cast( combinations.data() ) ) ); + static_cast( m_physicalDevice ), + &combinationCount, + reinterpret_cast( combinations.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" ); @@ -21796,12 +22134,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( - m_physicalDevice, reinterpret_cast( &surfaceInfo ), &presentModeCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( &surfaceInfo ), + &presentModeCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && presentModeCount ) { presentModes.resize( presentModeCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( m_physicalDevice, + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), &presentModeCount, reinterpret_cast( presentModes.data() ) ) ); @@ -21837,12 +22177,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( - m_physicalDevice, reinterpret_cast( &surfaceInfo ), &presentModeCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( &surfaceInfo ), + &presentModeCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && presentModeCount ) { presentModes.resize( presentModeCount ); - result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( m_physicalDevice, + result = static_cast( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast( m_physicalDevice ), reinterpret_cast( &surfaceInfo ), &presentModeCount, reinterpret_cast( presentModes.data() ) ) ); @@ -21880,7 +22222,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkAcquireFullScreenExclusiveModeEXT && "Function requires " ); # endif - Result result = static_cast( d.vkAcquireFullScreenExclusiveModeEXT( m_device, static_cast( swapchain ) ) ); + Result result = static_cast( d.vkAcquireFullScreenExclusiveModeEXT( static_cast( m_device ), static_cast( swapchain ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireFullScreenExclusiveModeEXT" ); return detail::createResultValueType( result ); @@ -21909,7 +22251,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkReleaseFullScreenExclusiveModeEXT && "Function requires " ); # endif - Result result = static_cast( d.vkReleaseFullScreenExclusiveModeEXT( m_device, static_cast( swapchain ) ) ); + Result result = static_cast( d.vkReleaseFullScreenExclusiveModeEXT( static_cast( m_device ), static_cast( swapchain ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseFullScreenExclusiveModeEXT" ); return detail::createResultValueType( result ); @@ -21942,8 +22284,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceGroupPresentModeFlagsKHR modes; - Result result = static_cast( d.vkGetDeviceGroupSurfacePresentModes2EXT( - m_device, reinterpret_cast( &surfaceInfo ), reinterpret_cast( &modes ) ) ); + Result result = static_cast( d.vkGetDeviceGroupSurfacePresentModes2EXT( static_cast( m_device ), + reinterpret_cast( &surfaceInfo ), + reinterpret_cast( &modes ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModes2EXT" ); return detail::createResultValueType( result, std::move( modes ) ); @@ -21978,7 +22321,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateHeadlessSurfaceEXT( m_instance, + Result result = static_cast( d.vkCreateHeadlessSurfaceEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -21999,7 +22342,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateHeadlessSurfaceEXT( m_instance, + Result result = static_cast( d.vkCreateHeadlessSurfaceEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -22033,7 +22376,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - VkDeviceAddress result = d.vkGetBufferDeviceAddressKHR( m_device, reinterpret_cast( &info ) ); + VkDeviceAddress result = d.vkGetBufferDeviceAddressKHR( static_cast( m_device ), reinterpret_cast( &info ) ); return static_cast( result ); } @@ -22060,7 +22403,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - uint64_t result = d.vkGetBufferOpaqueCaptureAddressKHR( m_device, reinterpret_cast( &info ) ); + uint64_t result = d.vkGetBufferOpaqueCaptureAddressKHR( static_cast( m_device ), reinterpret_cast( &info ) ); return result; } @@ -22090,7 +22433,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddressKHR( m_device, reinterpret_cast( &info ) ); + uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddressKHR( static_cast( m_device ), + reinterpret_cast( &info ) ); return result; } @@ -22164,7 +22508,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - d.vkCmdSetViewportWithCountEXT( m_commandBuffer, viewports.size(), reinterpret_cast( viewports.data() ) ); + d.vkCmdSetViewportWithCountEXT( + static_cast( m_commandBuffer ), viewports.size(), reinterpret_cast( viewports.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22187,7 +22532,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or or " ); # endif - d.vkCmdSetScissorWithCountEXT( m_commandBuffer, scissors.size(), reinterpret_cast( scissors.data() ) ); + d.vkCmdSetScissorWithCountEXT( static_cast( m_commandBuffer ), scissors.size(), reinterpret_cast( scissors.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22245,7 +22590,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBindVertexBuffers2EXT( m_commandBuffer, + d.vkCmdBindVertexBuffers2EXT( static_cast( m_commandBuffer ), firstBinding, buffers.size(), reinterpret_cast( buffers.data() ), @@ -22335,8 +22680,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeferredOperationKHR deferredOperation; - Result result = static_cast( d.vkCreateDeferredOperationKHR( - m_device, reinterpret_cast( allocator.get() ), reinterpret_cast( &deferredOperation ) ) ); + Result result = static_cast( d.vkCreateDeferredOperationKHR( static_cast( m_device ), + reinterpret_cast( allocator.get() ), + reinterpret_cast( &deferredOperation ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHR" ); return detail::createResultValueType( result, std::move( deferredOperation ) ); @@ -22354,8 +22700,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeferredOperationKHR deferredOperation; - Result result = static_cast( d.vkCreateDeferredOperationKHR( - m_device, reinterpret_cast( allocator.get() ), reinterpret_cast( &deferredOperation ) ) ); + Result result = static_cast( d.vkCreateDeferredOperationKHR( static_cast( m_device ), + reinterpret_cast( allocator.get() ), + reinterpret_cast( &deferredOperation ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHRUnique" ); return detail::createResultValueType( @@ -22388,7 +22735,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif d.vkDestroyDeferredOperationKHR( - m_device, static_cast( operation ), reinterpret_cast( allocator.get() ) ); + static_cast( m_device ), static_cast( operation ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22415,7 +22762,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif d.vkDestroyDeferredOperationKHR( - m_device, static_cast( operation ), reinterpret_cast( allocator.get() ) ); + static_cast( m_device ), static_cast( operation ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22449,7 +22796,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetDeferredOperationResultKHR && "Function requires " ); # endif - Result result = static_cast( d.vkGetDeferredOperationResultKHR( m_device, static_cast( operation ) ) ); + Result result = + static_cast( d.vkGetDeferredOperationResultKHR( static_cast( m_device ), static_cast( operation ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDeferredOperationResultKHR", { Result::eSuccess, Result::eNotReady } ); return static_cast( result ); @@ -22474,7 +22822,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDeferredOperationJoinKHR && "Function requires " ); # endif - Result result = static_cast( d.vkDeferredOperationJoinKHR( m_device, static_cast( operation ) ) ); + Result result = static_cast( d.vkDeferredOperationJoinKHR( static_cast( m_device ), static_cast( operation ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::deferredOperationJoinKHR", { Result::eSuccess, Result::eThreadDoneKHR, Result::eThreadIdleKHR } ); @@ -22520,12 +22868,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetPipelineExecutablePropertiesKHR( m_device, reinterpret_cast( &pipelineInfo ), &executableCount, nullptr ) ); + result = static_cast( d.vkGetPipelineExecutablePropertiesKHR( + static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &executableCount, nullptr ) ); if ( ( result == Result::eSuccess ) && executableCount ) { properties.resize( executableCount ); - result = static_cast( d.vkGetPipelineExecutablePropertiesKHR( m_device, + result = static_cast( d.vkGetPipelineExecutablePropertiesKHR( static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &executableCount, reinterpret_cast( properties.data() ) ) ); @@ -22563,12 +22911,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetPipelineExecutablePropertiesKHR( m_device, reinterpret_cast( &pipelineInfo ), &executableCount, nullptr ) ); + result = static_cast( d.vkGetPipelineExecutablePropertiesKHR( + static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &executableCount, nullptr ) ); if ( ( result == Result::eSuccess ) && executableCount ) { properties.resize( executableCount ); - result = static_cast( d.vkGetPipelineExecutablePropertiesKHR( m_device, + result = static_cast( d.vkGetPipelineExecutablePropertiesKHR( static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &executableCount, reinterpret_cast( properties.data() ) ) ); @@ -22621,11 +22969,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( d.vkGetPipelineExecutableStatisticsKHR( - m_device, reinterpret_cast( &executableInfo ), &statisticCount, nullptr ) ); + static_cast( m_device ), reinterpret_cast( &executableInfo ), &statisticCount, nullptr ) ); if ( ( result == Result::eSuccess ) && statisticCount ) { statistics.resize( statisticCount ); - result = static_cast( d.vkGetPipelineExecutableStatisticsKHR( m_device, + result = static_cast( d.vkGetPipelineExecutableStatisticsKHR( static_cast( m_device ), reinterpret_cast( &executableInfo ), &statisticCount, reinterpret_cast( statistics.data() ) ) ); @@ -22664,11 +23012,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( d.vkGetPipelineExecutableStatisticsKHR( - m_device, reinterpret_cast( &executableInfo ), &statisticCount, nullptr ) ); + static_cast( m_device ), reinterpret_cast( &executableInfo ), &statisticCount, nullptr ) ); if ( ( result == Result::eSuccess ) && statisticCount ) { statistics.resize( statisticCount ); - result = static_cast( d.vkGetPipelineExecutableStatisticsKHR( m_device, + result = static_cast( d.vkGetPipelineExecutableStatisticsKHR( static_cast( m_device ), reinterpret_cast( &executableInfo ), &statisticCount, reinterpret_cast( statistics.data() ) ) ); @@ -22724,7 +23072,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyMemoryToImageEXT && "Function requires or " ); # endif - Result result = static_cast( d.vkCopyMemoryToImageEXT( m_device, reinterpret_cast( ©MemoryToImageInfo ) ) ); + Result result = static_cast( + d.vkCopyMemoryToImageEXT( static_cast( m_device ), reinterpret_cast( ©MemoryToImageInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToImageEXT" ); return detail::createResultValueType( result ); @@ -22752,7 +23101,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyImageToMemoryEXT && "Function requires or " ); # endif - Result result = static_cast( d.vkCopyImageToMemoryEXT( m_device, reinterpret_cast( ©ImageToMemoryInfo ) ) ); + Result result = static_cast( + d.vkCopyImageToMemoryEXT( static_cast( m_device ), reinterpret_cast( ©ImageToMemoryInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToMemoryEXT" ); return detail::createResultValueType( result ); @@ -22780,7 +23130,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyImageToImageEXT && "Function requires or " ); # endif - Result result = static_cast( d.vkCopyImageToImageEXT( m_device, reinterpret_cast( ©ImageToImageInfo ) ) ); + Result result = static_cast( + d.vkCopyImageToImageEXT( static_cast( m_device ), reinterpret_cast( ©ImageToImageInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToImageEXT" ); return detail::createResultValueType( result ); @@ -22808,8 +23159,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkTransitionImageLayoutEXT && "Function requires or " ); # endif - Result result = static_cast( - d.vkTransitionImageLayoutEXT( m_device, transitions.size(), reinterpret_cast( transitions.data() ) ) ); + Result result = static_cast( d.vkTransitionImageLayoutEXT( + static_cast( m_device ), transitions.size(), reinterpret_cast( transitions.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::transitionImageLayoutEXT" ); return detail::createResultValueType( result ); @@ -22844,7 +23195,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SubresourceLayout2 layout; - d.vkGetImageSubresourceLayout2EXT( m_device, + d.vkGetImageSubresourceLayout2EXT( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -22867,7 +23218,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; SubresourceLayout2 & layout = structureChain.template get(); - d.vkGetImageSubresourceLayout2EXT( m_device, + d.vkGetImageSubresourceLayout2EXT( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -22899,7 +23250,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif void * pData; - Result result = static_cast( d.vkMapMemory2KHR( m_device, reinterpret_cast( &memoryMapInfo ), &pData ) ); + Result result = + static_cast( d.vkMapMemory2KHR( static_cast( m_device ), reinterpret_cast( &memoryMapInfo ), &pData ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2KHR" ); return detail::createResultValueType( result, std::move( pData ) ); @@ -22926,7 +23278,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkUnmapMemory2KHR && "Function requires or " ); # endif - Result result = static_cast( d.vkUnmapMemory2KHR( m_device, reinterpret_cast( &memoryUnmapInfo ) ) ); + Result result = + static_cast( d.vkUnmapMemory2KHR( static_cast( m_device ), reinterpret_cast( &memoryUnmapInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2KHR" ); return detail::createResultValueType( result ); @@ -22957,7 +23310,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - Result result = static_cast( d.vkReleaseSwapchainImagesEXT( m_device, reinterpret_cast( &releaseInfo ) ) ); + Result result = static_cast( + d.vkReleaseSwapchainImagesEXT( static_cast( m_device ), reinterpret_cast( &releaseInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseSwapchainImagesEXT" ); return detail::createResultValueType( result ); @@ -22992,7 +23346,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetGeneratedCommandsMemoryRequirementsNV( m_device, + d.vkGetGeneratedCommandsMemoryRequirementsNV( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -23017,7 +23371,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetGeneratedCommandsMemoryRequirementsNV( m_device, + d.vkGetGeneratedCommandsMemoryRequirementsNV( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -23048,7 +23402,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPreprocessGeneratedCommandsNV && "Function requires " ); # endif - d.vkCmdPreprocessGeneratedCommandsNV( m_commandBuffer, reinterpret_cast( &generatedCommandsInfo ) ); + d.vkCmdPreprocessGeneratedCommandsNV( static_cast( m_commandBuffer ), + reinterpret_cast( &generatedCommandsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23076,8 +23431,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdExecuteGeneratedCommandsNV && "Function requires " ); # endif - d.vkCmdExecuteGeneratedCommandsNV( - m_commandBuffer, static_cast( isPreprocessed ), reinterpret_cast( &generatedCommandsInfo ) ); + d.vkCmdExecuteGeneratedCommandsNV( static_cast( m_commandBuffer ), + static_cast( isPreprocessed ), + reinterpret_cast( &generatedCommandsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23120,7 +23476,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif IndirectCommandsLayoutNV indirectCommandsLayout; - Result result = static_cast( d.vkCreateIndirectCommandsLayoutNV( m_device, + Result result = static_cast( d.vkCreateIndirectCommandsLayoutNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &indirectCommandsLayout ) ) ); @@ -23143,7 +23499,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif IndirectCommandsLayoutNV indirectCommandsLayout; - Result result = static_cast( d.vkCreateIndirectCommandsLayoutNV( m_device, + Result result = static_cast( d.vkCreateIndirectCommandsLayoutNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &indirectCommandsLayout ) ) ); @@ -23179,8 +23535,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutNV && "Function requires " ); # endif - d.vkDestroyIndirectCommandsLayoutNV( - m_device, static_cast( indirectCommandsLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyIndirectCommandsLayoutNV( static_cast( m_device ), + static_cast( indirectCommandsLayout ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23208,8 +23565,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutNV && "Function requires " ); # endif - d.vkDestroyIndirectCommandsLayoutNV( - m_device, static_cast( indirectCommandsLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyIndirectCommandsLayoutNV( static_cast( m_device ), + static_cast( indirectCommandsLayout ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23233,7 +23591,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetDepthBias2EXT && "Function requires " ); # endif - d.vkCmdSetDepthBias2EXT( m_commandBuffer, reinterpret_cast( &depthBiasInfo ) ); + d.vkCmdSetDepthBias2EXT( static_cast( m_commandBuffer ), reinterpret_cast( &depthBiasInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23259,7 +23617,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkAcquireDrmDisplayEXT && "Function requires " ); # endif - Result result = static_cast( d.vkAcquireDrmDisplayEXT( m_physicalDevice, drmFd, static_cast( display ) ) ); + Result result = + static_cast( d.vkAcquireDrmDisplayEXT( static_cast( m_physicalDevice ), drmFd, static_cast( display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireDrmDisplayEXT" ); return detail::createResultValueType( result ); @@ -23288,7 +23647,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayKHR display; - Result result = static_cast( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast( &display ) ) ); + Result result = static_cast( + d.vkGetDrmDisplayEXT( static_cast( m_physicalDevice ), drmFd, connectorId, reinterpret_cast( &display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXT" ); return detail::createResultValueType( result, std::move( display ) ); @@ -23306,7 +23666,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayKHR display; - Result result = static_cast( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast( &display ) ) ); + Result result = static_cast( + d.vkGetDrmDisplayEXT( static_cast( m_physicalDevice ), drmFd, connectorId, reinterpret_cast( &display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXTUnique" ); return detail::createResultValueType( result, UniqueHandle( display, detail::ObjectRelease( *this, d ) ) ); @@ -23341,7 +23702,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PrivateDataSlot privateDataSlot; - Result result = static_cast( d.vkCreatePrivateDataSlotEXT( m_device, + Result result = static_cast( d.vkCreatePrivateDataSlotEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &privateDataSlot ) ) ); @@ -23362,7 +23723,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PrivateDataSlot privateDataSlot; - Result result = static_cast( d.vkCreatePrivateDataSlotEXT( m_device, + Result result = static_cast( d.vkCreatePrivateDataSlotEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &privateDataSlot ) ) ); @@ -23395,8 +23756,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlotEXT && "Function requires or " ); # endif - d.vkDestroyPrivateDataSlotEXT( - m_device, static_cast( privateDataSlot ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPrivateDataSlotEXT( static_cast( m_device ), + static_cast( privateDataSlot ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23421,8 +23783,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetPrivateDataEXT && "Function requires or " ); # endif - Result result = static_cast( - d.vkSetPrivateDataEXT( m_device, static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), data ) ); + Result result = static_cast( d.vkSetPrivateDataEXT( + static_cast( m_device ), static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setPrivateDataEXT" ); return detail::createResultValueType( result ); @@ -23451,7 +23813,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif uint64_t data; - d.vkGetPrivateDataEXT( m_device, static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), &data ); + d.vkGetPrivateDataEXT( + static_cast( m_device ), static_cast( objectType_ ), objectHandle, static_cast( privateDataSlot ), &data ); return data; } @@ -23488,7 +23851,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VideoEncodeQualityLevelPropertiesKHR qualityLevelProperties; Result result = static_cast( - d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &qualityLevelInfo ), reinterpret_cast( &qualityLevelProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" ); @@ -23515,7 +23878,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; VideoEncodeQualityLevelPropertiesKHR & qualityLevelProperties = structureChain.template get(); Result result = static_cast( - d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( m_physicalDevice, + d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( static_cast( m_physicalDevice ), reinterpret_cast( &qualityLevelInfo ), reinterpret_cast( &qualityLevelProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" ); @@ -23567,7 +23930,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23576,7 +23939,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23613,7 +23976,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23622,7 +23985,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23659,7 +24022,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23668,7 +24031,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23707,7 +24070,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23716,7 +24079,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); result = static_cast( - d.vkGetEncodedVideoSessionParametersKHR( m_device, + d.vkGetEncodedVideoSessionParametersKHR( static_cast( m_device ), reinterpret_cast( &videoSessionParametersInfo ), reinterpret_cast( &feedbackInfo ), &dataSize, @@ -23747,7 +24110,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEncodeVideoKHR && "Function requires " ); # endif - d.vkCmdEncodeVideoKHR( m_commandBuffer, reinterpret_cast( &encodeInfo ) ); + d.vkCmdEncodeVideoKHR( static_cast( m_commandBuffer ), reinterpret_cast( &encodeInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23772,7 +24135,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueSetPerfHintQCOM && "Function requires " ); # endif - Result result = static_cast( d.vkQueueSetPerfHintQCOM( m_queue, reinterpret_cast( &perfHintInfo ) ) ); + Result result = + static_cast( d.vkQueueSetPerfHintQCOM( static_cast( m_queue ), reinterpret_cast( &perfHintInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::setPerfHintQCOM" ); return detail::createResultValueType( result ); @@ -23806,7 +24170,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CudaModuleNV module; - Result result = static_cast( d.vkCreateCudaModuleNV( m_device, + Result result = static_cast( d.vkCreateCudaModuleNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &module ) ) ); @@ -23827,7 +24191,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CudaModuleNV module; - Result result = static_cast( d.vkCreateCudaModuleNV( m_device, + Result result = static_cast( d.vkCreateCudaModuleNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &module ) ) ); @@ -23867,12 +24231,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetCudaModuleCacheNV( m_device, static_cast( module ), &cacheSize, nullptr ) ); + result = static_cast( d.vkGetCudaModuleCacheNV( static_cast( m_device ), static_cast( module ), &cacheSize, nullptr ) ); if ( ( result == Result::eSuccess ) && cacheSize ) { cacheData.resize( cacheSize ); - result = static_cast( - d.vkGetCudaModuleCacheNV( m_device, static_cast( module ), &cacheSize, reinterpret_cast( cacheData.data() ) ) ); + result = static_cast( d.vkGetCudaModuleCacheNV( + static_cast( m_device ), static_cast( module ), &cacheSize, reinterpret_cast( cacheData.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCudaModuleCacheNV" ); @@ -23902,12 +24266,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetCudaModuleCacheNV( m_device, static_cast( module ), &cacheSize, nullptr ) ); + result = static_cast( d.vkGetCudaModuleCacheNV( static_cast( m_device ), static_cast( module ), &cacheSize, nullptr ) ); if ( ( result == Result::eSuccess ) && cacheSize ) { cacheData.resize( cacheSize ); - result = static_cast( - d.vkGetCudaModuleCacheNV( m_device, static_cast( module ), &cacheSize, reinterpret_cast( cacheData.data() ) ) ); + result = static_cast( d.vkGetCudaModuleCacheNV( + static_cast( m_device ), static_cast( module ), &cacheSize, reinterpret_cast( cacheData.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCudaModuleCacheNV" ); @@ -23945,7 +24309,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CudaFunctionNV function; - Result result = static_cast( d.vkCreateCudaFunctionNV( m_device, + Result result = static_cast( d.vkCreateCudaFunctionNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &function ) ) ); @@ -23966,7 +24330,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif CudaFunctionNV function; - Result result = static_cast( d.vkCreateCudaFunctionNV( m_device, + Result result = static_cast( d.vkCreateCudaFunctionNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &function ) ) ); @@ -23999,7 +24363,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCudaModuleNV && "Function requires " ); # endif - d.vkDestroyCudaModuleNV( m_device, static_cast( module ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCudaModuleNV( + static_cast( m_device ), static_cast( module ), reinterpret_cast( allocator.get() ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24022,7 +24387,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCudaModuleNV && "Function requires " ); # endif - d.vkDestroyCudaModuleNV( m_device, static_cast( module ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCudaModuleNV( + static_cast( m_device ), static_cast( module ), reinterpret_cast( allocator.get() ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24047,7 +24413,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCudaFunctionNV && "Function requires " ); # endif - d.vkDestroyCudaFunctionNV( m_device, static_cast( function ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCudaFunctionNV( + static_cast( m_device ), static_cast( function ), reinterpret_cast( allocator.get() ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24070,7 +24437,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyCudaFunctionNV && "Function requires " ); # endif - d.vkDestroyCudaFunctionNV( m_device, static_cast( function ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyCudaFunctionNV( + static_cast( m_device ), static_cast( function ), reinterpret_cast( allocator.get() ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24092,7 +24460,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCudaLaunchKernelNV && "Function requires " ); # endif - d.vkCmdCudaLaunchKernelNV( m_commandBuffer, reinterpret_cast( &launchInfo ) ); + d.vkCmdCudaLaunchKernelNV( static_cast( m_commandBuffer ), reinterpret_cast( &launchInfo ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_ENABLE_BETA_EXTENSIONS*/ @@ -24117,7 +24485,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDispatchTileQCOM && "Function requires " ); # endif - d.vkCmdDispatchTileQCOM( m_commandBuffer, reinterpret_cast( &dispatchTileInfo ) ); + d.vkCmdDispatchTileQCOM( static_cast( m_commandBuffer ), reinterpret_cast( &dispatchTileInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24142,7 +24510,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginPerTileExecutionQCOM && "Function requires " ); # endif - d.vkCmdBeginPerTileExecutionQCOM( m_commandBuffer, reinterpret_cast( &perTileBeginInfo ) ); + d.vkCmdBeginPerTileExecutionQCOM( static_cast( m_commandBuffer ), reinterpret_cast( &perTileBeginInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24164,10 +24532,107 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndPerTileExecutionQCOM && "Function requires " ); # endif - d.vkCmdEndPerTileExecutionQCOM( m_commandBuffer, reinterpret_cast( &perTileEndInfo ) ); + d.vkCmdEndPerTileExecutionQCOM( static_cast( m_commandBuffer ), reinterpret_cast( &perTileEndInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + //=== VK_NV_low_latency === + + // wrapper function for command vkSetLatencySleepModeLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Device::setLatencySleepModeLegacyNV( Bool32 lowLatencyMode, Bool32 lowLatencyBoost, uint32_t minimumIntervalUs, Dispatch const & d ) + const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkSetLatencySleepModeLegacyNV( + static_cast( m_device ), static_cast( lowLatencyMode ), static_cast( lowLatencyBoost ), minimumIntervalUs ); + } + + // wrapper function for command vkLatencySleepLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Device::latencySleepLegacyNV( Semaphore signalSemaphore, uint64_t value, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkLatencySleepLegacyNV( static_cast( m_device ), static_cast( signalSemaphore ), value ); + } + + // wrapper function for command vkSetLatencyMarkerLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Device::setLatencyMarkerLegacyNV( uint64_t frameID, uint32_t marker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkSetLatencyMarkerLegacyNV( static_cast( m_device ), frameID, marker ); + } + + // wrapper function for command vkGetLatencyTimingsLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Device::getLatencyTimingsLegacyNV( void * pTimings, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkGetLatencyTimingsLegacyNV( static_cast( m_device ), pTimings ); + } + +#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetLatencyTimingsLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsLegacyNV.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE TimingsType Device::getLatencyTimingsLegacyNV( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkGetLatencyTimingsLegacyNV && "Function requires " ); +# endif + + TimingsType timings; + d.vkGetLatencyTimingsLegacyNV( static_cast( m_device ), &timings ); + + return timings; + } +#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + + // wrapper function for command vkQueueNotifyOutOfBandLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Queue::notifyOutOfBandLegacyNV( uint32_t queueType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkQueueNotifyOutOfBandLegacyNV( static_cast( m_queue ), queueType ); + } + + // wrapper function for command vkGetSleepStatusLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSleepStatusLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Device::getSleepStatusLegacyNV( Bool32 * pLowLatencyMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkGetSleepStatusLegacyNV( static_cast( m_device ), reinterpret_cast( pLowLatencyMode ) ); + } + +#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetSleepStatusLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSleepStatusLegacyNV.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 Device::getSleepStatusLegacyNV( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkGetSleepStatusLegacyNV && "Function requires " ); +# endif + + Bool32 lowLatencyMode; + d.vkGetSleepStatusLegacyNV( static_cast( m_device ), reinterpret_cast( &lowLatencyMode ) ); + + return lowLatencyMode; + } +#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + + // wrapper function for command vkShutdownLatencyDeviceLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkShutdownLatencyDeviceLegacyNV.html + template ::type> + VULKAN_HPP_INLINE void Device::shutdownLatencyLegacyNV( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + d.vkShutdownLatencyDeviceLegacyNV( static_cast( m_device ) ); + } + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === @@ -24189,7 +24654,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkExportMetalObjectsEXT && "Function requires " ); # endif - d.vkExportMetalObjectsEXT( m_device, reinterpret_cast( &metalObjectsInfo ) ); + d.vkExportMetalObjectsEXT( static_cast( m_device ), reinterpret_cast( &metalObjectsInfo ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_METAL_EXT*/ @@ -24215,7 +24680,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetEvent2KHR && "Function requires or " ); # endif - d.vkCmdSetEvent2KHR( m_commandBuffer, static_cast( event ), reinterpret_cast( &dependencyInfo ) ); + d.vkCmdSetEvent2KHR( + static_cast( m_commandBuffer ), static_cast( event ), reinterpret_cast( &dependencyInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24259,7 +24725,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdWaitEvents2KHR( m_commandBuffer, + d.vkCmdWaitEvents2KHR( static_cast( m_commandBuffer ), events.size(), reinterpret_cast( events.data() ), reinterpret_cast( dependencyInfos.data() ) ); @@ -24284,7 +24750,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier2KHR && "Function requires or " ); # endif - d.vkCmdPipelineBarrier2KHR( m_commandBuffer, reinterpret_cast( &dependencyInfo ) ); + d.vkCmdPipelineBarrier2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &dependencyInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24319,8 +24785,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueSubmit2KHR && "Function requires or " ); # endif - Result result = static_cast( - d.vkQueueSubmit2KHR( m_queue, submits.size(), reinterpret_cast( submits.data() ), static_cast( fence ) ) ); + Result result = static_cast( d.vkQueueSubmit2KHR( + static_cast( m_queue ), submits.size(), reinterpret_cast( submits.data() ), static_cast( fence ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit2KHR" ); return detail::createResultValueType( result ); @@ -24353,7 +24819,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceSize layoutSizeInBytes; - d.vkGetDescriptorSetLayoutSizeEXT( m_device, static_cast( layout ), reinterpret_cast( &layoutSizeInBytes ) ); + d.vkGetDescriptorSetLayoutSizeEXT( + static_cast( m_device ), static_cast( layout ), reinterpret_cast( &layoutSizeInBytes ) ); return layoutSizeInBytes; } @@ -24384,7 +24851,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DeviceSize offset; - d.vkGetDescriptorSetLayoutBindingOffsetEXT( m_device, static_cast( layout ), binding, reinterpret_cast( &offset ) ); + d.vkGetDescriptorSetLayoutBindingOffsetEXT( + static_cast( m_device ), static_cast( layout ), binding, reinterpret_cast( &offset ) ); return offset; } @@ -24410,7 +24878,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkGetDescriptorEXT && "Function requires " ); # endif - d.vkGetDescriptorEXT( m_device, reinterpret_cast( &descriptorInfo ), dataSize, pDescriptor ); + d.vkGetDescriptorEXT( static_cast( m_device ), reinterpret_cast( &descriptorInfo ), dataSize, pDescriptor ); } // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html @@ -24424,8 +24892,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorType descriptor; - d.vkGetDescriptorEXT( - m_device, reinterpret_cast( &descriptorInfo ), sizeof( DescriptorType ), reinterpret_cast( &descriptor ) ); + d.vkGetDescriptorEXT( static_cast( m_device ), + reinterpret_cast( &descriptorInfo ), + sizeof( DescriptorType ), + reinterpret_cast( &descriptor ) ); return descriptor; } @@ -24454,7 +24924,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorBuffersEXT && "Function requires " ); # endif - d.vkCmdBindDescriptorBuffersEXT( m_commandBuffer, bindingInfos.size(), reinterpret_cast( bindingInfos.data() ) ); + d.vkCmdBindDescriptorBuffersEXT( + static_cast( m_commandBuffer ), bindingInfos.size(), reinterpret_cast( bindingInfos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24503,7 +24974,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdSetDescriptorBufferOffsetsEXT( m_commandBuffer, + d.vkCmdSetDescriptorBufferOffsetsEXT( static_cast( m_commandBuffer ), static_cast( pipelineBindPoint ), static_cast( layout ), firstSet, @@ -24549,8 +25020,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( - d.vkGetBufferOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); + Result result = static_cast( d.vkGetBufferOpaqueCaptureDescriptorDataEXT( + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferOpaqueCaptureDescriptorDataEXT" ); return detail::createResultValueType( result, std::move( data ) ); @@ -24582,8 +25053,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( - d.vkGetImageOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); + Result result = static_cast( d.vkGetImageOpaqueCaptureDescriptorDataEXT( + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDescriptorDataEXT" ); return detail::createResultValueType( result, std::move( data ) ); @@ -24615,8 +25086,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( - d.vkGetImageViewOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); + Result result = static_cast( d.vkGetImageViewOpaqueCaptureDescriptorDataEXT( + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewOpaqueCaptureDescriptorDataEXT" ); return detail::createResultValueType( result, std::move( data ) ); @@ -24648,8 +25119,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( - d.vkGetSamplerOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); + Result result = static_cast( d.vkGetSamplerOpaqueCaptureDescriptorDataEXT( + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSamplerOpaqueCaptureDescriptorDataEXT" ); return detail::createResultValueType( result, std::move( data ) ); @@ -24684,7 +25155,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataType data; Result result = static_cast( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT( - m_device, reinterpret_cast( &info ), &data ) ); + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT" ); return detail::createResultValueType( result, std::move( data ) ); @@ -24711,7 +25182,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindIndexBuffer3KHR && "Function requires " ); # endif - d.vkCmdBindIndexBuffer3KHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdBindIndexBuffer3KHR( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24736,8 +25207,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers3KHR && "Function requires " ); # endif - d.vkCmdBindVertexBuffers3KHR( - m_commandBuffer, firstBinding, bindingInfos.size(), reinterpret_cast( bindingInfos.data() ) ); + d.vkCmdBindVertexBuffers3KHR( static_cast( m_commandBuffer ), + firstBinding, + bindingInfos.size(), + reinterpret_cast( bindingInfos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24759,7 +25232,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawIndirect2KHR && "Function requires " ); # endif - d.vkCmdDrawIndirect2KHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDrawIndirect2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24781,7 +25254,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawIndexedIndirect2KHR && "Function requires " ); # endif - d.vkCmdDrawIndexedIndirect2KHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDrawIndexedIndirect2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24803,7 +25276,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDispatchIndirect2KHR && "Function requires " ); # endif - d.vkCmdDispatchIndirect2KHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDispatchIndirect2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24825,7 +25298,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryKHR && "Function requires " ); # endif - d.vkCmdCopyMemoryKHR( m_commandBuffer, reinterpret_cast( copyMemoryInfo.get() ) ); + d.vkCmdCopyMemoryKHR( static_cast( m_commandBuffer ), reinterpret_cast( copyMemoryInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24849,7 +25322,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageKHR && "Function requires " ); # endif - d.vkCmdCopyMemoryToImageKHR( m_commandBuffer, reinterpret_cast( copyMemoryInfo.get() ) ); + d.vkCmdCopyMemoryToImageKHR( static_cast( m_commandBuffer ), + reinterpret_cast( copyMemoryInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24873,7 +25347,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImageToMemoryKHR && "Function requires " ); # endif - d.vkCmdCopyImageToMemoryKHR( m_commandBuffer, reinterpret_cast( copyMemoryInfo.get() ) ); + d.vkCmdCopyImageToMemoryKHR( static_cast( m_commandBuffer ), + reinterpret_cast( copyMemoryInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24903,7 +25378,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdUpdateMemoryKHR && "Function requires " ); # endif - d.vkCmdUpdateMemoryKHR( m_commandBuffer, + d.vkCmdUpdateMemoryKHR( static_cast( m_commandBuffer ), reinterpret_cast( &dstRange ), static_cast( dstFlags ), data.size() * sizeof( DataType ), @@ -24934,8 +25409,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdFillMemoryKHR && "Function requires " ); # endif - d.vkCmdFillMemoryKHR( - m_commandBuffer, reinterpret_cast( &dstRange ), static_cast( dstFlags ), data ); + d.vkCmdFillMemoryKHR( static_cast( m_commandBuffer ), + reinterpret_cast( &dstRange ), + static_cast( dstFlags ), + data ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24977,7 +25454,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyQueryPoolResultsToMemoryKHR && "Function requires " ); # endif - d.vkCmdCopyQueryPoolResultsToMemoryKHR( m_commandBuffer, + d.vkCmdCopyQueryPoolResultsToMemoryKHR( static_cast( m_commandBuffer ), static_cast( queryPool ), firstQuery, queryCount, @@ -25005,7 +25482,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawIndirectCount2KHR && "Function requires " ); # endif - d.vkCmdDrawIndirectCount2KHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDrawIndirectCount2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25029,7 +25506,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawIndexedIndirectCount2KHR && "Function requires " ); # endif - d.vkCmdDrawIndexedIndirectCount2KHR( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDrawIndexedIndirectCount2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25056,7 +25533,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginConditionalRendering2EXT && "Function requires " ); # endif - d.vkCmdBeginConditionalRendering2EXT( m_commandBuffer, reinterpret_cast( &conditionalRenderingBegin ) ); + d.vkCmdBeginConditionalRendering2EXT( static_cast( m_commandBuffer ), + reinterpret_cast( &conditionalRenderingBegin ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25086,8 +25564,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdBindTransformFeedbackBuffers2EXT( - m_commandBuffer, firstBinding, bindingInfos.size(), reinterpret_cast( bindingInfos.data() ) ); + d.vkCmdBindTransformFeedbackBuffers2EXT( static_cast( m_commandBuffer ), + firstBinding, + bindingInfos.size(), + reinterpret_cast( bindingInfos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25117,8 +25597,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginTransformFeedback2EXT && "Function requires " ); # endif - d.vkCmdBeginTransformFeedback2EXT( - m_commandBuffer, firstCounterRange, counterInfos.size(), reinterpret_cast( counterInfos.data() ) ); + d.vkCmdBeginTransformFeedback2EXT( static_cast( m_commandBuffer ), + firstCounterRange, + counterInfos.size(), + reinterpret_cast( counterInfos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25148,8 +25630,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndTransformFeedback2EXT && "Function requires " ); # endif - d.vkCmdEndTransformFeedback2EXT( - m_commandBuffer, firstCounterRange, counterInfos.size(), reinterpret_cast( counterInfos.data() ) ); + d.vkCmdEndTransformFeedback2EXT( static_cast( m_commandBuffer ), + firstCounterRange, + counterInfos.size(), + reinterpret_cast( counterInfos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25188,7 +25672,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawIndirectByteCount2EXT && "Function requires " ); # endif - d.vkCmdDrawIndirectByteCount2EXT( m_commandBuffer, + d.vkCmdDrawIndirectByteCount2EXT( static_cast( m_commandBuffer ), instanceCount, firstInstance, reinterpret_cast( &counterInfo ), @@ -25217,7 +25701,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawMeshTasksIndirect2EXT && "Function requires " ); # endif - d.vkCmdDrawMeshTasksIndirect2EXT( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDrawMeshTasksIndirect2EXT( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25241,7 +25725,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawMeshTasksIndirectCount2EXT && "Function requires " ); # endif - d.vkCmdDrawMeshTasksIndirectCount2EXT( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdDrawMeshTasksIndirectCount2EXT( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25263,7 +25747,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdWriteMarkerToMemoryAMD && "Function requires " ); # endif - d.vkCmdWriteMarkerToMemoryAMD( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdWriteMarkerToMemoryAMD( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25295,7 +25779,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureKHR accelerationStructure; - Result result = static_cast( d.vkCreateAccelerationStructure2KHR( m_device, + Result result = static_cast( d.vkCreateAccelerationStructure2KHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &accelerationStructure ) ) ); @@ -25318,7 +25802,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureKHR accelerationStructure; - Result result = static_cast( d.vkCreateAccelerationStructure2KHR( m_device, + Result result = static_cast( d.vkCreateAccelerationStructure2KHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &accelerationStructure ) ) ); @@ -25356,7 +25840,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetFragmentShadingRateEnumNV && "Function requires " ); # endif - d.vkCmdSetFragmentShadingRateEnumNV( m_commandBuffer, + d.vkCmdSetFragmentShadingRateEnumNV( static_cast( m_commandBuffer ), static_cast( shadingRate ), reinterpret_cast( combinerOps.data() ) ); } @@ -25421,7 +25905,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer2KHR && "Function requires or " ); # endif - d.vkCmdCopyBuffer2KHR( m_commandBuffer, reinterpret_cast( ©BufferInfo ) ); + d.vkCmdCopyBuffer2KHR( static_cast( m_commandBuffer ), reinterpret_cast( ©BufferInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25443,7 +25927,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImage2KHR && "Function requires or " ); # endif - d.vkCmdCopyImage2KHR( m_commandBuffer, reinterpret_cast( ©ImageInfo ) ); + d.vkCmdCopyImage2KHR( static_cast( m_commandBuffer ), reinterpret_cast( ©ImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25468,7 +25952,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage2KHR && "Function requires or " ); # endif - d.vkCmdCopyBufferToImage2KHR( m_commandBuffer, reinterpret_cast( ©BufferToImageInfo ) ); + d.vkCmdCopyBufferToImage2KHR( static_cast( m_commandBuffer ), + reinterpret_cast( ©BufferToImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25493,7 +25978,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer2KHR && "Function requires or " ); # endif - d.vkCmdCopyImageToBuffer2KHR( m_commandBuffer, reinterpret_cast( ©ImageToBufferInfo ) ); + d.vkCmdCopyImageToBuffer2KHR( static_cast( m_commandBuffer ), + reinterpret_cast( ©ImageToBufferInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25515,7 +26001,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBlitImage2KHR && "Function requires or " ); # endif - d.vkCmdBlitImage2KHR( m_commandBuffer, reinterpret_cast( &blitImageInfo ) ); + d.vkCmdBlitImage2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &blitImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25537,7 +26023,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdResolveImage2KHR && "Function requires or " ); # endif - d.vkCmdResolveImage2KHR( m_commandBuffer, reinterpret_cast( &resolveImageInfo ) ); + d.vkCmdResolveImage2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &resolveImageInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25575,7 +26061,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkAcquireWinrtDisplayNV && "Function requires " ); # endif - Result result = static_cast( d.vkAcquireWinrtDisplayNV( m_physicalDevice, static_cast( display ) ) ); + Result result = static_cast( d.vkAcquireWinrtDisplayNV( static_cast( m_physicalDevice ), static_cast( display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireWinrtDisplayNV" ); return detail::createResultValueType( result ); @@ -25604,7 +26090,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayKHR display; - Result result = static_cast( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast( &display ) ) ); + Result result = static_cast( + d.vkGetWinrtDisplayNV( static_cast( m_physicalDevice ), deviceRelativeId, reinterpret_cast( &display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNV" ); return detail::createResultValueType( result, std::move( display ) ); @@ -25622,7 +26109,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DisplayKHR display; - Result result = static_cast( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast( &display ) ) ); + Result result = static_cast( + d.vkGetWinrtDisplayNV( static_cast( m_physicalDevice ), deviceRelativeId, reinterpret_cast( &display ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNVUnique" ); return detail::createResultValueType( result, UniqueHandle( display, detail::ObjectRelease( *this, d ) ) ); @@ -25659,7 +26147,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateDirectFBSurfaceEXT( m_instance, + Result result = static_cast( d.vkCreateDirectFBSurfaceEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -25680,7 +26168,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateDirectFBSurfaceEXT( m_instance, + Result result = static_cast( d.vkCreateDirectFBSurfaceEXT( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -25716,7 +26204,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkBool32 result = d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT( m_physicalDevice, queueFamilyIndex, &dfb ); + VkBool32 result = d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT( static_cast( m_physicalDevice ), queueFamilyIndex, &dfb ); return static_cast( result ); } @@ -25753,7 +26241,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetVertexInputEXT && "Function requires or " ); # endif - d.vkCmdSetVertexInputEXT( m_commandBuffer, + d.vkCmdSetVertexInputEXT( static_cast( m_commandBuffer ), vertexBindingDescriptions.size(), reinterpret_cast( vertexBindingDescriptions.data() ), vertexAttributeDescriptions.size(), @@ -25788,8 +26276,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif zx_handle_t zirconHandle; - Result result = static_cast( - d.vkGetMemoryZirconHandleFUCHSIA( m_device, reinterpret_cast( &getZirconHandleInfo ), &zirconHandle ) ); + Result result = static_cast( d.vkGetMemoryZirconHandleFUCHSIA( + static_cast( m_device ), reinterpret_cast( &getZirconHandleInfo ), &zirconHandle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandleFUCHSIA" ); return detail::createResultValueType( result, std::move( zirconHandle ) ); @@ -25828,7 +26316,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE MemoryZirconHandlePropertiesFUCHSIA memoryZirconHandleProperties; Result result = static_cast( - d.vkGetMemoryZirconHandlePropertiesFUCHSIA( m_device, + d.vkGetMemoryZirconHandlePropertiesFUCHSIA( static_cast( m_device ), static_cast( handleType ), zirconHandle, reinterpret_cast( &memoryZirconHandleProperties ) ) ); @@ -25866,7 +26354,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Result result = static_cast( d.vkImportSemaphoreZirconHandleFUCHSIA( - m_device, reinterpret_cast( &importSemaphoreZirconHandleInfo ) ) ); + static_cast( m_device ), reinterpret_cast( &importSemaphoreZirconHandleInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreZirconHandleFUCHSIA" ); return detail::createResultValueType( result ); @@ -25897,8 +26385,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif zx_handle_t zirconHandle; - Result result = static_cast( - d.vkGetSemaphoreZirconHandleFUCHSIA( m_device, reinterpret_cast( &getZirconHandleInfo ), &zirconHandle ) ); + Result result = static_cast( d.vkGetSemaphoreZirconHandleFUCHSIA( + static_cast( m_device ), reinterpret_cast( &getZirconHandleInfo ), &zirconHandle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreZirconHandleFUCHSIA" ); return detail::createResultValueType( result, std::move( zirconHandle ) ); @@ -25936,7 +26424,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif BufferCollectionFUCHSIA collection; - Result result = static_cast( d.vkCreateBufferCollectionFUCHSIA( m_device, + Result result = static_cast( d.vkCreateBufferCollectionFUCHSIA( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &collection ) ) ); @@ -25959,7 +26447,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif BufferCollectionFUCHSIA collection; - Result result = static_cast( d.vkCreateBufferCollectionFUCHSIA( m_device, + Result result = static_cast( d.vkCreateBufferCollectionFUCHSIA( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &collection ) ) ); @@ -25997,8 +26485,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - Result result = static_cast( d.vkSetBufferCollectionImageConstraintsFUCHSIA( - m_device, static_cast( collection ), reinterpret_cast( &imageConstraintsInfo ) ) ); + Result result = + static_cast( d.vkSetBufferCollectionImageConstraintsFUCHSIA( static_cast( m_device ), + static_cast( collection ), + reinterpret_cast( &imageConstraintsInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setBufferCollectionImageConstraintsFUCHSIA" ); return detail::createResultValueType( result ); @@ -26031,8 +26521,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - Result result = static_cast( d.vkSetBufferCollectionBufferConstraintsFUCHSIA( - m_device, static_cast( collection ), reinterpret_cast( &bufferConstraintsInfo ) ) ); + Result result = static_cast( + d.vkSetBufferCollectionBufferConstraintsFUCHSIA( static_cast( m_device ), + static_cast( collection ), + reinterpret_cast( &bufferConstraintsInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setBufferCollectionBufferConstraintsFUCHSIA" ); return detail::createResultValueType( result ); @@ -26062,8 +26554,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyBufferCollectionFUCHSIA && "Function requires " ); # endif - d.vkDestroyBufferCollectionFUCHSIA( - m_device, static_cast( collection ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyBufferCollectionFUCHSIA( static_cast( m_device ), + static_cast( collection ), + reinterpret_cast( allocator.get() ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26090,8 +26583,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyBufferCollectionFUCHSIA && "Function requires " ); # endif - d.vkDestroyBufferCollectionFUCHSIA( - m_device, static_cast( collection ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyBufferCollectionFUCHSIA( static_cast( m_device ), + static_cast( collection ), + reinterpret_cast( allocator.get() ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26121,8 +26615,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif BufferCollectionPropertiesFUCHSIA properties; - Result result = static_cast( d.vkGetBufferCollectionPropertiesFUCHSIA( - m_device, static_cast( collection ), reinterpret_cast( &properties ) ) ); + Result result = static_cast( d.vkGetBufferCollectionPropertiesFUCHSIA( static_cast( m_device ), + static_cast( collection ), + reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferCollectionPropertiesFUCHSIA" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -26158,7 +26653,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Extent2D maxWorkgroupSize; Result result = static_cast( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( - m_device, static_cast( renderpass ), reinterpret_cast( &maxWorkgroupSize ) ) ); + static_cast( m_device ), static_cast( renderpass ), reinterpret_cast( &maxWorkgroupSize ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSubpassShadingMaxWorkgroupSizeHUAWEI" ); return detail::createResultValueType( result, std::move( maxWorkgroupSize ) ); @@ -26210,8 +26705,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif RemoteAddressNV address; - Result result = static_cast( d.vkGetMemoryRemoteAddressNV( - m_device, reinterpret_cast( &memoryGetRemoteAddressInfo ), reinterpret_cast( &address ) ) ); + Result result = static_cast( d.vkGetMemoryRemoteAddressNV( static_cast( m_device ), + reinterpret_cast( &memoryGetRemoteAddressInfo ), + reinterpret_cast( &address ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryRemoteAddressNV" ); return detail::createResultValueType( result, std::move( address ) ); @@ -26243,8 +26739,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif BaseOutStructure pipelineProperties; - Result result = static_cast( d.vkGetPipelinePropertiesEXT( - m_device, reinterpret_cast( &pipelineInfo ), reinterpret_cast( &pipelineProperties ) ) ); + Result result = static_cast( d.vkGetPipelinePropertiesEXT( static_cast( m_device ), + reinterpret_cast( &pipelineInfo ), + reinterpret_cast( &pipelineProperties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelinePropertiesEXT" ); return detail::createResultValueType( result, std::move( pipelineProperties ) ); @@ -26324,7 +26821,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateScreenSurfaceQNX( m_instance, + Result result = static_cast( d.vkCreateScreenSurfaceQNX( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -26345,7 +26842,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateScreenSurfaceQNX( m_instance, + Result result = static_cast( d.vkCreateScreenSurfaceQNX( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -26381,7 +26878,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkBool32 result = d.vkGetPhysicalDeviceScreenPresentationSupportQNX( m_physicalDevice, queueFamilyIndex, &window ); + VkBool32 result = d.vkGetPhysicalDeviceScreenPresentationSupportQNX( static_cast( m_physicalDevice ), queueFamilyIndex, &window ); return static_cast( result ); } @@ -26410,7 +26907,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetColorWriteEnableEXT && "Function requires " ); # endif - d.vkCmdSetColorWriteEnableEXT( m_commandBuffer, colorWriteEnables.size(), reinterpret_cast( colorWriteEnables.data() ) ); + d.vkCmdSetColorWriteEnableEXT( + static_cast( m_commandBuffer ), colorWriteEnables.size(), reinterpret_cast( colorWriteEnables.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26452,7 +26950,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawMultiEXT && "Function requires " ); # endif - d.vkCmdDrawMultiEXT( m_commandBuffer, + d.vkCmdDrawMultiEXT( static_cast( m_commandBuffer ), vertexInfo.size(), reinterpret_cast( vertexInfo.data() ), instanceCount, @@ -26495,7 +26993,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDrawMultiIndexedEXT && "Function requires " ); # endif - d.vkCmdDrawMultiIndexedEXT( m_commandBuffer, + d.vkCmdDrawMultiIndexedEXT( static_cast( m_commandBuffer ), indexInfo.size(), reinterpret_cast( indexInfo.data() ), instanceCount, @@ -26531,7 +27029,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MicromapEXT micromap; - Result result = static_cast( d.vkCreateMicromapEXT( m_device, + Result result = static_cast( d.vkCreateMicromapEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( µmap ) ) ); @@ -26552,7 +27050,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MicromapEXT micromap; - Result result = static_cast( d.vkCreateMicromapEXT( m_device, + Result result = static_cast( d.vkCreateMicromapEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( µmap ) ) ); @@ -26585,7 +27083,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyMicromapEXT && "Function requires " ); # endif - d.vkDestroyMicromapEXT( m_device, static_cast( micromap ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyMicromapEXT( + static_cast( m_device ), static_cast( micromap ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26608,7 +27107,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyMicromapEXT && "Function requires " ); # endif - d.vkDestroyMicromapEXT( m_device, static_cast( micromap ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyMicromapEXT( + static_cast( m_device ), static_cast( micromap ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26631,7 +27131,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBuildMicromapsEXT && "Function requires " ); # endif - d.vkCmdBuildMicromapsEXT( m_commandBuffer, infos.size(), reinterpret_cast( infos.data() ) ); + d.vkCmdBuildMicromapsEXT( static_cast( m_commandBuffer ), infos.size(), reinterpret_cast( infos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26658,8 +27158,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBuildMicromapsEXT && "Function requires " ); # endif - Result result = static_cast( d.vkBuildMicromapsEXT( - m_device, static_cast( deferredOperation ), infos.size(), reinterpret_cast( infos.data() ) ) ); + Result result = static_cast( d.vkBuildMicromapsEXT( static_cast( m_device ), + static_cast( deferredOperation ), + infos.size(), + reinterpret_cast( infos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::buildMicromapsEXT", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -26689,8 +27191,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyMicromapEXT && "Function requires " ); # endif - Result result = static_cast( - d.vkCopyMicromapEXT( m_device, static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); + Result result = static_cast( d.vkCopyMicromapEXT( + static_cast( m_device ), static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMicromapEXT", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -26720,8 +27222,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyMicromapToMemoryEXT && "Function requires " ); # endif - Result result = static_cast( d.vkCopyMicromapToMemoryEXT( - m_device, static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); + Result result = static_cast( d.vkCopyMicromapToMemoryEXT( static_cast( m_device ), + static_cast( deferredOperation ), + reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMicromapToMemoryEXT", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -26752,8 +27255,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCopyMemoryToMicromapEXT && "Function requires " ); # endif - Result result = static_cast( d.vkCopyMemoryToMicromapEXT( - m_device, static_cast( deferredOperation ), reinterpret_cast( &info ) ) ); + Result result = static_cast( d.vkCopyMemoryToMicromapEXT( static_cast( m_device ), + static_cast( deferredOperation ), + reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToMicromapEXT", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } ); @@ -26797,7 +27301,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 ); std::vector data( dataSize / sizeof( DataType ) ); - Result result = static_cast( d.vkWriteMicromapsPropertiesEXT( m_device, + Result result = static_cast( d.vkWriteMicromapsPropertiesEXT( static_cast( m_device ), micromaps.size(), reinterpret_cast( micromaps.data() ), static_cast( queryType ), @@ -26821,7 +27325,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( d.vkWriteMicromapsPropertiesEXT( m_device, + Result result = static_cast( d.vkWriteMicromapsPropertiesEXT( static_cast( m_device ), micromaps.size(), reinterpret_cast( micromaps.data() ), static_cast( queryType ), @@ -26852,7 +27356,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMicromapEXT && "Function requires " ); # endif - d.vkCmdCopyMicromapEXT( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdCopyMicromapEXT( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26874,7 +27378,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMicromapToMemoryEXT && "Function requires " ); # endif - d.vkCmdCopyMicromapToMemoryEXT( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdCopyMicromapToMemoryEXT( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26896,7 +27400,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToMicromapEXT && "Function requires " ); # endif - d.vkCmdCopyMemoryToMicromapEXT( m_commandBuffer, reinterpret_cast( &info ) ); + d.vkCmdCopyMemoryToMicromapEXT( static_cast( m_commandBuffer ), reinterpret_cast( &info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26929,7 +27433,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdWriteMicromapsPropertiesEXT && "Function requires " ); # endif - d.vkCmdWriteMicromapsPropertiesEXT( m_commandBuffer, + d.vkCmdWriteMicromapsPropertiesEXT( static_cast( m_commandBuffer ), micromaps.size(), reinterpret_cast( micromaps.data() ), static_cast( queryType ), @@ -26963,7 +27467,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureCompatibilityKHR compatibility; - d.vkGetDeviceMicromapCompatibilityEXT( m_device, + d.vkGetDeviceMicromapCompatibilityEXT( static_cast( m_device ), reinterpret_cast( &versionInfo ), reinterpret_cast( &compatibility ) ); @@ -26996,7 +27500,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MicromapBuildSizesInfoEXT sizeInfo; - d.vkGetMicromapBuildSizesEXT( m_device, + d.vkGetMicromapBuildSizesEXT( static_cast( m_device ), static_cast( buildType ), reinterpret_cast( &buildInfo ), reinterpret_cast( &sizeInfo ) ); @@ -27063,8 +27567,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetDeviceBufferMemoryRequirementsKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceBufferMemoryRequirementsKHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -27087,8 +27592,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetDeviceBufferMemoryRequirementsKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceBufferMemoryRequirementsKHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -27120,8 +27626,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetDeviceImageMemoryRequirementsKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceImageMemoryRequirementsKHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -27144,8 +27651,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetDeviceImageMemoryRequirementsKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceImageMemoryRequirementsKHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -27186,9 +27694,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements; uint32_t sparseMemoryRequirementCount; d.vkGetDeviceImageSparseMemoryRequirementsKHR( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetDeviceImageSparseMemoryRequirementsKHR( m_device, + d.vkGetDeviceImageSparseMemoryRequirementsKHR( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -27222,9 +27730,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::vector sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator ); uint32_t sparseMemoryRequirementCount; d.vkGetDeviceImageSparseMemoryRequirementsKHR( - m_device, reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); + static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, nullptr ); sparseMemoryRequirements.resize( sparseMemoryRequirementCount ); - d.vkGetDeviceImageSparseMemoryRequirementsKHR( m_device, + d.vkGetDeviceImageSparseMemoryRequirementsKHR( static_cast( m_device ), reinterpret_cast( &info ), &sparseMemoryRequirementCount, reinterpret_cast( sparseMemoryRequirements.data() ) ); @@ -27263,7 +27771,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetDispatchParametersARM && "Function requires " ); # endif - d.vkCmdSetDispatchParametersARM( m_commandBuffer, reinterpret_cast( &dispatchParameters ) ); + d.vkCmdSetDispatchParametersARM( static_cast( m_commandBuffer ), + reinterpret_cast( &dispatchParameters ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27296,7 +27805,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DescriptorSetLayoutHostMappingInfoVALVE hostMapping; - d.vkGetDescriptorSetLayoutHostMappingInfoVALVE( m_device, + d.vkGetDescriptorSetLayoutHostMappingInfoVALVE( static_cast( m_device ), reinterpret_cast( &bindingReference ), reinterpret_cast( &hostMapping ) ); @@ -27327,7 +27836,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif void * pData; - d.vkGetDescriptorSetHostMappingVALVE( m_device, static_cast( descriptorSet ), &pData ); + d.vkGetDescriptorSetHostMappingVALVE( static_cast( m_device ), static_cast( descriptorSet ), &pData ); return pData; } @@ -27381,7 +27890,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageIndirectNV && "Function requires " ); # endif - d.vkCmdCopyMemoryToImageIndirectNV( m_commandBuffer, + d.vkCmdCopyMemoryToImageIndirectNV( static_cast( m_commandBuffer ), static_cast( copyBufferAddress ), imageSubresources.size(), stride, @@ -27415,8 +27924,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDecompressMemoryNV && "Function requires " ); # endif - d.vkCmdDecompressMemoryNV( - m_commandBuffer, decompressMemoryRegions.size(), reinterpret_cast( decompressMemoryRegions.data() ) ); + d.vkCmdDecompressMemoryNV( static_cast( m_commandBuffer ), + decompressMemoryRegions.size(), + reinterpret_cast( decompressMemoryRegions.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27461,8 +27971,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetPipelineIndirectMemoryRequirementsNV( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetPipelineIndirectMemoryRequirementsNV( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -27485,8 +27996,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetPipelineIndirectMemoryRequirementsNV( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetPipelineIndirectMemoryRequirementsNV( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -27527,7 +28039,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - VkDeviceAddress result = d.vkGetPipelineIndirectDeviceAddressNV( m_device, reinterpret_cast( &info ) ); + VkDeviceAddress result = + d.vkGetPipelineIndirectDeviceAddressNV( static_cast( m_device ), reinterpret_cast( &info ) ); return static_cast( result ); } @@ -27560,8 +28073,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif NativeBufferPropertiesOHOS properties; - Result result = - static_cast( d.vkGetNativeBufferPropertiesOHOS( m_device, &buffer, reinterpret_cast( &properties ) ) ); + Result result = static_cast( + d.vkGetNativeBufferPropertiesOHOS( static_cast( m_device ), &buffer, reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -27580,8 +28093,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; NativeBufferPropertiesOHOS & properties = structureChain.template get(); - Result result = - static_cast( d.vkGetNativeBufferPropertiesOHOS( m_device, &buffer, reinterpret_cast( &properties ) ) ); + Result result = static_cast( + d.vkGetNativeBufferPropertiesOHOS( static_cast( m_device ), &buffer, reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" ); return detail::createResultValueType( result, std::move( structureChain ) ); @@ -27610,8 +28123,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif struct OH_NativeBuffer * buffer; - Result result = - static_cast( d.vkGetMemoryNativeBufferOHOS( m_device, reinterpret_cast( &info ), &buffer ) ); + Result result = static_cast( + d.vkGetMemoryNativeBufferOHOS( static_cast( m_device ), reinterpret_cast( &info ), &buffer ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryNativeBufferOHOS" ); return detail::createResultValueType( result, std::move( buffer ) ); @@ -27675,7 +28188,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdSetSampleMaskEXT( m_commandBuffer, static_cast( samples ), reinterpret_cast( sampleMask.data() ) ); + d.vkCmdSetSampleMaskEXT( static_cast( m_commandBuffer ), + static_cast( samples ), + reinterpret_cast( sampleMask.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27726,7 +28241,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetColorBlendEnableEXT( m_commandBuffer, firstAttachment, colorBlendEnables.size(), reinterpret_cast( colorBlendEnables.data() ) ); + d.vkCmdSetColorBlendEnableEXT( static_cast( m_commandBuffer ), + firstAttachment, + colorBlendEnables.size(), + reinterpret_cast( colorBlendEnables.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27756,8 +28274,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetColorBlendEquationEXT( - m_commandBuffer, firstAttachment, colorBlendEquations.size(), reinterpret_cast( colorBlendEquations.data() ) ); + d.vkCmdSetColorBlendEquationEXT( static_cast( m_commandBuffer ), + firstAttachment, + colorBlendEquations.size(), + reinterpret_cast( colorBlendEquations.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27783,8 +28303,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetColorWriteMaskEXT( - m_commandBuffer, firstAttachment, colorWriteMasks.size(), reinterpret_cast( colorWriteMasks.data() ) ); + d.vkCmdSetColorWriteMaskEXT( static_cast( m_commandBuffer ), + firstAttachment, + colorWriteMasks.size(), + reinterpret_cast( colorWriteMasks.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27870,8 +28392,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetColorBlendAdvancedEXT( - m_commandBuffer, firstAttachment, colorBlendAdvanced.size(), reinterpret_cast( colorBlendAdvanced.data() ) ); + d.vkCmdSetColorBlendAdvancedEXT( static_cast( m_commandBuffer ), + firstAttachment, + colorBlendAdvanced.size(), + reinterpret_cast( colorBlendAdvanced.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -27942,8 +28466,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetViewportSwizzleNV( - m_commandBuffer, firstViewport, viewportSwizzles.size(), reinterpret_cast( viewportSwizzles.data() ) ); + d.vkCmdSetViewportSwizzleNV( static_cast( m_commandBuffer ), + firstViewport, + viewportSwizzles.size(), + reinterpret_cast( viewportSwizzles.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28007,7 +28533,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetCoverageModulationTableNV( m_commandBuffer, coverageModulationTable.size(), coverageModulationTable.data() ); + d.vkCmdSetCoverageModulationTableNV( static_cast( m_commandBuffer ), coverageModulationTable.size(), coverageModulationTable.data() ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28066,7 +28592,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif TensorARM tensor; - Result result = static_cast( d.vkCreateTensorARM( m_device, + Result result = static_cast( d.vkCreateTensorARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &tensor ) ) ); @@ -28087,7 +28613,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif TensorARM tensor; - Result result = static_cast( d.vkCreateTensorARM( m_device, + Result result = static_cast( d.vkCreateTensorARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &tensor ) ) ); @@ -28118,7 +28644,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyTensorARM && "Function requires " ); # endif - d.vkDestroyTensorARM( m_device, static_cast( tensor ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyTensorARM( + static_cast( m_device ), static_cast( tensor ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28141,7 +28668,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyTensorARM && "Function requires " ); # endif - d.vkDestroyTensorARM( m_device, static_cast( tensor ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyTensorARM( + static_cast( m_device ), static_cast( tensor ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28169,7 +28697,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif TensorViewARM view; - Result result = static_cast( d.vkCreateTensorViewARM( m_device, + Result result = static_cast( d.vkCreateTensorViewARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &view ) ) ); @@ -28190,7 +28718,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif TensorViewARM view; - Result result = static_cast( d.vkCreateTensorViewARM( m_device, + Result result = static_cast( d.vkCreateTensorViewARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &view ) ) ); @@ -28223,7 +28751,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyTensorViewARM && "Function requires " ); # endif - d.vkDestroyTensorViewARM( m_device, static_cast( tensorView ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyTensorViewARM( + static_cast( m_device ), static_cast( tensorView ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28247,7 +28776,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyTensorViewARM && "Function requires " ); # endif - d.vkDestroyTensorViewARM( m_device, static_cast( tensorView ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyTensorViewARM( + static_cast( m_device ), static_cast( tensorView ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28276,8 +28806,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetTensorMemoryRequirementsARM( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetTensorMemoryRequirementsARM( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -28295,8 +28826,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetTensorMemoryRequirementsARM( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetTensorMemoryRequirementsARM( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -28323,8 +28855,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindTensorMemoryARM && "Function requires " ); # endif - Result result = - static_cast( d.vkBindTensorMemoryARM( m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + Result result = static_cast( + d.vkBindTensorMemoryARM( static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindTensorMemoryARM" ); return detail::createResultValueType( result ); @@ -28356,8 +28888,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetDeviceTensorMemoryRequirementsARM( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceTensorMemoryRequirementsARM( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return memoryRequirements; } @@ -28379,8 +28912,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetDeviceTensorMemoryRequirementsARM( - m_device, reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); + d.vkGetDeviceTensorMemoryRequirementsARM( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( &memoryRequirements ) ); return structureChain; } @@ -28404,7 +28938,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyTensorARM && "Function requires " ); # endif - d.vkCmdCopyTensorARM( m_commandBuffer, reinterpret_cast( ©TensorInfo ) ); + d.vkCmdCopyTensorARM( static_cast( m_commandBuffer ), reinterpret_cast( ©TensorInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28435,7 +28969,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalTensorPropertiesARM externalTensorProperties; - d.vkGetPhysicalDeviceExternalTensorPropertiesARM( m_physicalDevice, + d.vkGetPhysicalDeviceExternalTensorPropertiesARM( static_cast( m_physicalDevice ), reinterpret_cast( &externalTensorInfo ), reinterpret_cast( &externalTensorProperties ) ); @@ -28467,8 +29001,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( - d.vkGetTensorOpaqueCaptureDescriptorDataARM( m_device, reinterpret_cast( &info ), &data ) ); + Result result = static_cast( d.vkGetTensorOpaqueCaptureDescriptorDataARM( + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDescriptorDataARM" ); return detail::createResultValueType( result, std::move( data ) ); @@ -28500,8 +29034,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif DataType data; - Result result = static_cast( - d.vkGetTensorViewOpaqueCaptureDescriptorDataARM( m_device, reinterpret_cast( &info ), &data ) ); + Result result = static_cast( d.vkGetTensorViewOpaqueCaptureDescriptorDataARM( + static_cast( m_device ), reinterpret_cast( &info ), &data ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorViewOpaqueCaptureDescriptorDataARM" ); return detail::createResultValueType( result, std::move( data ) ); @@ -28534,7 +29068,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderModuleIdentifierEXT identifier; - d.vkGetShaderModuleIdentifierEXT( m_device, static_cast( shaderModule ), reinterpret_cast( &identifier ) ); + d.vkGetShaderModuleIdentifierEXT( + static_cast( m_device ), static_cast( shaderModule ), reinterpret_cast( &identifier ) ); return identifier; } @@ -28566,8 +29101,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderModuleIdentifierEXT identifier; - d.vkGetShaderModuleCreateInfoIdentifierEXT( - m_device, reinterpret_cast( &createInfo ), reinterpret_cast( &identifier ) ); + d.vkGetShaderModuleCreateInfoIdentifierEXT( static_cast( m_device ), + reinterpret_cast( &createInfo ), + reinterpret_cast( &identifier ) ); return identifier; } @@ -28614,13 +29150,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( - m_physicalDevice, reinterpret_cast( &opticalFlowImageFormatInfo ), &formatCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( static_cast( m_physicalDevice ), + reinterpret_cast( &opticalFlowImageFormatInfo ), + &formatCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && formatCount ) { imageFormatProperties.resize( formatCount ); result = static_cast( - d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( m_physicalDevice, + d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( static_cast( m_physicalDevice ), reinterpret_cast( &opticalFlowImageFormatInfo ), &formatCount, reinterpret_cast( imageFormatProperties.data() ) ) ); @@ -28660,13 +29199,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( - m_physicalDevice, reinterpret_cast( &opticalFlowImageFormatInfo ), &formatCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( static_cast( m_physicalDevice ), + reinterpret_cast( &opticalFlowImageFormatInfo ), + &formatCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && formatCount ) { imageFormatProperties.resize( formatCount ); result = static_cast( - d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( m_physicalDevice, + d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( static_cast( m_physicalDevice ), reinterpret_cast( &opticalFlowImageFormatInfo ), &formatCount, reinterpret_cast( imageFormatProperties.data() ) ) ); @@ -28707,7 +29249,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif OpticalFlowSessionNV session; - Result result = static_cast( d.vkCreateOpticalFlowSessionNV( m_device, + Result result = static_cast( d.vkCreateOpticalFlowSessionNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &session ) ) ); @@ -28728,7 +29270,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif OpticalFlowSessionNV session; - Result result = static_cast( d.vkCreateOpticalFlowSessionNV( m_device, + Result result = static_cast( d.vkCreateOpticalFlowSessionNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &session ) ) ); @@ -28764,7 +29306,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif d.vkDestroyOpticalFlowSessionNV( - m_device, static_cast( session ), reinterpret_cast( allocator.get() ) ); + static_cast( m_device ), static_cast( session ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28791,7 +29333,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif d.vkDestroyOpticalFlowSessionNV( - m_device, static_cast( session ), reinterpret_cast( allocator.get() ) ); + static_cast( m_device ), static_cast( session ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28822,7 +29364,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkBindOpticalFlowSessionImageNV && "Function requires " ); # endif - Result result = static_cast( d.vkBindOpticalFlowSessionImageNV( m_device, + Result result = static_cast( d.vkBindOpticalFlowSessionImageNV( static_cast( m_device ), static_cast( session ), static_cast( bindingPoint ), static_cast( view ), @@ -28855,8 +29397,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdOpticalFlowExecuteNV && "Function requires " ); # endif - d.vkCmdOpticalFlowExecuteNV( - m_commandBuffer, static_cast( session ), reinterpret_cast( &executeInfo ) ); + d.vkCmdOpticalFlowExecuteNV( static_cast( m_commandBuffer ), + static_cast( session ), + reinterpret_cast( &executeInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -28900,7 +29443,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Extent2D granularity; d.vkGetRenderingAreaGranularityKHR( - m_device, reinterpret_cast( &renderingAreaInfo ), reinterpret_cast( &granularity ) ); + static_cast( m_device ), reinterpret_cast( &renderingAreaInfo ), reinterpret_cast( &granularity ) ); return granularity; } @@ -28932,7 +29475,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE SubresourceLayout2 layout; d.vkGetDeviceImageSubresourceLayoutKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &layout ) ); + static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &layout ) ); return layout; } @@ -28956,7 +29499,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; SubresourceLayout2 & layout = structureChain.template get(); d.vkGetDeviceImageSubresourceLayoutKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( &layout ) ); + static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &layout ) ); return structureChain; } @@ -28990,7 +29533,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SubresourceLayout2 layout; - d.vkGetImageSubresourceLayout2KHR( m_device, + d.vkGetImageSubresourceLayout2KHR( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -29013,7 +29556,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; SubresourceLayout2 & layout = structureChain.template get(); - d.vkGetImageSubresourceLayout2KHR( m_device, + d.vkGetImageSubresourceLayout2KHR( static_cast( m_device ), static_cast( image ), reinterpret_cast( &subresource ), reinterpret_cast( &layout ) ); @@ -29042,7 +29585,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkAntiLagUpdateAMD && "Function requires " ); # endif - d.vkAntiLagUpdateAMD( m_device, reinterpret_cast( &data ) ); + d.vkAntiLagUpdateAMD( static_cast( m_device ), reinterpret_cast( &data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -29069,8 +29612,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkWaitForPresent2KHR && "Function requires " ); # endif - Result result = static_cast( - d.vkWaitForPresent2KHR( m_device, static_cast( swapchain ), reinterpret_cast( &presentWait2Info ) ) ); + Result result = static_cast( d.vkWaitForPresent2KHR( + static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( &presentWait2Info ) ) ); # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS ) detail::resultCheck( result, @@ -29115,7 +29658,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector shaders( createInfos.size() ); - Result result = static_cast( d.vkCreateShadersEXT( m_device, + Result result = static_cast( d.vkCreateShadersEXT( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -29142,7 +29685,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector shaders( createInfos.size(), {}, shaderEXTAllocator ); - Result result = static_cast( d.vkCreateShadersEXT( m_device, + Result result = static_cast( d.vkCreateShadersEXT( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -29163,7 +29706,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderEXT shader; - Result result = static_cast( d.vkCreateShadersEXT( m_device, + Result result = static_cast( d.vkCreateShadersEXT( static_cast( m_device ), 1, reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), @@ -29188,7 +29731,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector shaders( createInfos.size() ); - Result result = static_cast( d.vkCreateShadersEXT( m_device, + Result result = static_cast( d.vkCreateShadersEXT( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -29221,7 +29764,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector shaders( createInfos.size() ); - Result result = static_cast( d.vkCreateShadersEXT( m_device, + Result result = static_cast( d.vkCreateShadersEXT( static_cast( m_device ), createInfos.size(), reinterpret_cast( createInfos.data() ), reinterpret_cast( allocator.get() ), @@ -29248,7 +29791,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderEXT shader; - Result result = static_cast( d.vkCreateShadersEXT( m_device, + Result result = static_cast( d.vkCreateShadersEXT( static_cast( m_device ), 1, reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), @@ -29281,7 +29824,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyShaderEXT && "Function requires " ); # endif - d.vkDestroyShaderEXT( m_device, static_cast( shader ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyShaderEXT( + static_cast( m_device ), static_cast( shader ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -29304,7 +29848,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyShaderEXT && "Function requires " ); # endif - d.vkDestroyShaderEXT( m_device, static_cast( shader ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyShaderEXT( + static_cast( m_device ), static_cast( shader ), reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -29336,12 +29881,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetShaderBinaryDataEXT( m_device, static_cast( shader ), &dataSize, nullptr ) ); + result = static_cast( d.vkGetShaderBinaryDataEXT( static_cast( m_device ), static_cast( shader ), &dataSize, nullptr ) ); if ( ( result == Result::eSuccess ) && dataSize ) { data.resize( dataSize ); - result = - static_cast( d.vkGetShaderBinaryDataEXT( m_device, static_cast( shader ), &dataSize, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetShaderBinaryDataEXT( + static_cast( m_device ), static_cast( shader ), &dataSize, reinterpret_cast( data.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderBinaryDataEXT" ); @@ -29371,12 +29916,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetShaderBinaryDataEXT( m_device, static_cast( shader ), &dataSize, nullptr ) ); + result = static_cast( d.vkGetShaderBinaryDataEXT( static_cast( m_device ), static_cast( shader ), &dataSize, nullptr ) ); if ( ( result == Result::eSuccess ) && dataSize ) { data.resize( dataSize ); - result = - static_cast( d.vkGetShaderBinaryDataEXT( m_device, static_cast( shader ), &dataSize, reinterpret_cast( data.data() ) ) ); + result = static_cast( d.vkGetShaderBinaryDataEXT( + static_cast( m_device ), static_cast( shader ), &dataSize, reinterpret_cast( data.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderBinaryDataEXT" ); @@ -29421,7 +29966,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ - d.vkCmdBindShadersEXT( m_commandBuffer, + d.vkCmdBindShadersEXT( static_cast( m_commandBuffer ), stages.size(), reinterpret_cast( stages.data() ), reinterpret_cast( shaders.data() ) ); @@ -29451,8 +29996,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdSetDepthClampRangeEXT( - m_commandBuffer, static_cast( depthClampMode ), reinterpret_cast( depthClampRange.get() ) ); + d.vkCmdSetDepthClampRangeEXT( static_cast( m_commandBuffer ), + static_cast( depthClampMode ), + reinterpret_cast( depthClampRange.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -29494,7 +30040,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount ); binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount; binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29502,7 +30048,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE else { VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo ); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29510,7 +30056,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { pipelineBinaries.resize( binaries.pipelineBinaryCount ); binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29548,7 +30094,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount ); binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount; binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29556,7 +30102,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE else { VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo ); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29564,7 +30110,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { pipelineBinaries.resize( binaries.pipelineBinaryCount ); binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29601,7 +30147,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount ); binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount; binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29609,7 +30155,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE else { VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo ); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29617,7 +30163,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { pipelineBinaries.resize( binaries.pipelineBinaryCount ); binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29662,7 +30208,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount ); binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount; binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29670,7 +30216,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE else { VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo ); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29678,7 +30224,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { pipelineBinaries.resize( binaries.pipelineBinaryCount ); binaries.pPipelineBinaries = pipelineBinaries.data(); - result = static_cast( d.vkCreatePipelineBinariesKHR( m_device, + result = static_cast( d.vkCreatePipelineBinariesKHR( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &binaries ) ) ); @@ -29721,8 +30267,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipelineBinaryKHR && "Function requires " ); # endif - d.vkDestroyPipelineBinaryKHR( - m_device, static_cast( pipelineBinary ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipelineBinaryKHR( static_cast( m_device ), + static_cast( pipelineBinary ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -29747,8 +30294,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyPipelineBinaryKHR && "Function requires " ); # endif - d.vkDestroyPipelineBinaryKHR( - m_device, static_cast( pipelineBinary ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyPipelineBinaryKHR( static_cast( m_device ), + static_cast( pipelineBinary ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -29775,8 +30323,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif PipelineBinaryKeyKHR pipelineKey; - Result result = static_cast( d.vkGetPipelineKeyKHR( - m_device, reinterpret_cast( pipelineCreateInfo.get() ), reinterpret_cast( &pipelineKey ) ) ); + Result result = static_cast( d.vkGetPipelineKeyKHR( static_cast( m_device ), + reinterpret_cast( pipelineCreateInfo.get() ), + reinterpret_cast( &pipelineKey ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineKeyKHR" ); return detail::createResultValueType( result, std::move( pipelineKey ) ); @@ -29817,7 +30366,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first; std::vector & pipelineBinaryData = data_.second; size_t pipelineBinaryDataSize; - Result result = static_cast( d.vkGetPipelineBinaryDataKHR( m_device, + Result result = static_cast( d.vkGetPipelineBinaryDataKHR( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &pipelineBinaryKey ), &pipelineBinaryDataSize, @@ -29825,7 +30374,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE if ( result == Result::eSuccess ) { pipelineBinaryData.resize( pipelineBinaryDataSize ); - result = static_cast( d.vkGetPipelineBinaryDataKHR( m_device, + result = static_cast( d.vkGetPipelineBinaryDataKHR( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &pipelineBinaryKey ), &pipelineBinaryDataSize, @@ -29855,7 +30404,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first; std::vector & pipelineBinaryData = data_.second; size_t pipelineBinaryDataSize; - Result result = static_cast( d.vkGetPipelineBinaryDataKHR( m_device, + Result result = static_cast( d.vkGetPipelineBinaryDataKHR( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &pipelineBinaryKey ), &pipelineBinaryDataSize, @@ -29863,7 +30412,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE if ( result == Result::eSuccess ) { pipelineBinaryData.resize( pipelineBinaryDataSize ); - result = static_cast( d.vkGetPipelineBinaryDataKHR( m_device, + result = static_cast( d.vkGetPipelineBinaryDataKHR( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &pipelineBinaryKey ), &pipelineBinaryDataSize, @@ -29900,8 +30449,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkReleaseCapturedPipelineDataKHR && "Function requires " ); # endif - Result result = static_cast( d.vkReleaseCapturedPipelineDataKHR( - m_device, reinterpret_cast( &info ), reinterpret_cast( allocator.get() ) ) ); + Result result = static_cast( d.vkReleaseCapturedPipelineDataKHR( static_cast( m_device ), + reinterpret_cast( &info ), + reinterpret_cast( allocator.get() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseCapturedPipelineDataKHR" ); return detail::createResultValueType( result ); @@ -29943,12 +30493,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetFramebufferTilePropertiesQCOM( m_device, static_cast( framebuffer ), &propertiesCount, nullptr ) ); + result = static_cast( + d.vkGetFramebufferTilePropertiesQCOM( static_cast( m_device ), static_cast( framebuffer ), &propertiesCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertiesCount ) { properties.resize( propertiesCount ); - result = static_cast( d.vkGetFramebufferTilePropertiesQCOM( - m_device, static_cast( framebuffer ), &propertiesCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetFramebufferTilePropertiesQCOM( static_cast( m_device ), + static_cast( framebuffer ), + &propertiesCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFramebufferTilePropertiesQCOM" ); @@ -29980,12 +30533,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetFramebufferTilePropertiesQCOM( m_device, static_cast( framebuffer ), &propertiesCount, nullptr ) ); + result = static_cast( + d.vkGetFramebufferTilePropertiesQCOM( static_cast( m_device ), static_cast( framebuffer ), &propertiesCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertiesCount ) { properties.resize( propertiesCount ); - result = static_cast( d.vkGetFramebufferTilePropertiesQCOM( - m_device, static_cast( framebuffer ), &propertiesCount, reinterpret_cast( properties.data() ) ) ); + result = static_cast( d.vkGetFramebufferTilePropertiesQCOM( static_cast( m_device ), + static_cast( framebuffer ), + &propertiesCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFramebufferTilePropertiesQCOM" ); @@ -30023,8 +30579,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif TilePropertiesQCOM properties; - Result result = static_cast( d.vkGetDynamicRenderingTilePropertiesQCOM( - m_device, reinterpret_cast( &renderingInfo ), reinterpret_cast( &properties ) ) ); + Result result = static_cast( d.vkGetDynamicRenderingTilePropertiesQCOM( static_cast( m_device ), + reinterpret_cast( &renderingInfo ), + reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDynamicRenderingTilePropertiesQCOM" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -30055,7 +30612,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - Result result = static_cast( d.vkReleaseSwapchainImagesKHR( m_device, reinterpret_cast( &releaseInfo ) ) ); + Result result = static_cast( + d.vkReleaseSwapchainImagesKHR( static_cast( m_device ), reinterpret_cast( &releaseInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseSwapchainImagesKHR" ); return detail::createResultValueType( result ); @@ -30096,12 +30654,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" ); @@ -30134,12 +30693,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" ); @@ -30175,8 +30735,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkConvertCooperativeVectorMatrixNV && "Function requires " ); # endif - Result result = - static_cast( d.vkConvertCooperativeVectorMatrixNV( m_device, reinterpret_cast( &info ) ) ); + Result result = static_cast( + d.vkConvertCooperativeVectorMatrixNV( static_cast( m_device ), reinterpret_cast( &info ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::convertCooperativeVectorMatrixNV", { Result::eSuccess, Result::eIncomplete } ); return static_cast( result ); @@ -30206,7 +30766,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdConvertCooperativeVectorMatrixNV && "Function requires " ); # endif - d.vkCmdConvertCooperativeVectorMatrixNV( m_commandBuffer, infos.size(), reinterpret_cast( infos.data() ) ); + d.vkCmdConvertCooperativeVectorMatrixNV( + static_cast( m_commandBuffer ), infos.size(), reinterpret_cast( infos.data() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -30233,8 +30794,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetLatencySleepModeNV && "Function requires " ); # endif - Result result = static_cast( - d.vkSetLatencySleepModeNV( m_device, static_cast( swapchain ), reinterpret_cast( &sleepModeInfo ) ) ); + Result result = static_cast( d.vkSetLatencySleepModeNV( + static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( &sleepModeInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setLatencySleepModeNV" ); return detail::createResultValueType( result ); @@ -30262,8 +30823,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkLatencySleepNV && "Function requires " ); # endif - Result result = static_cast( - d.vkLatencySleepNV( m_device, static_cast( swapchain ), reinterpret_cast( &sleepInfo ) ) ); + Result result = static_cast( d.vkLatencySleepNV( + static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( &sleepInfo ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::latencySleepNV" ); return detail::createResultValueType( result ); @@ -30291,7 +30852,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkSetLatencyMarkerNV && "Function requires " ); # endif - d.vkSetLatencyMarkerNV( m_device, static_cast( swapchain ), reinterpret_cast( &latencyMarkerInfo ) ); + d.vkSetLatencyMarkerNV( + static_cast( m_device ), static_cast( swapchain ), reinterpret_cast( &latencyMarkerInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -30323,7 +30885,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkQueueNotifyOutOfBandNV && "Function requires " ); # endif - d.vkQueueNotifyOutOfBandNV( m_queue, reinterpret_cast( &queueTypeInfo ) ); + d.vkQueueNotifyOutOfBandNV( static_cast( m_queue ), reinterpret_cast( &queueTypeInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -30362,12 +30924,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" ); @@ -30401,12 +30964,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), &propertyCount, reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" ); @@ -30462,7 +31026,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateDataGraphPipelinesARM( m_device, + Result result = static_cast( d.vkCreateDataGraphPipelinesARM( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -30500,7 +31064,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size(), {}, pipelineAllocator ); - Result result = static_cast( d.vkCreateDataGraphPipelinesARM( m_device, + Result result = static_cast( d.vkCreateDataGraphPipelinesARM( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -30533,7 +31097,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateDataGraphPipelinesARM( m_device, + Result result = static_cast( d.vkCreateDataGraphPipelinesARM( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), 1, @@ -30566,7 +31130,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateDataGraphPipelinesARM( m_device, + Result result = static_cast( d.vkCreateDataGraphPipelinesARM( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -30610,7 +31174,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif std::vector pipelines( createInfos.size() ); - Result result = static_cast( d.vkCreateDataGraphPipelinesARM( m_device, + Result result = static_cast( d.vkCreateDataGraphPipelinesARM( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), createInfos.size(), @@ -30650,7 +31214,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Pipeline pipeline; - Result result = static_cast( d.vkCreateDataGraphPipelinesARM( m_device, + Result result = static_cast( d.vkCreateDataGraphPipelinesARM( static_cast( m_device ), static_cast( deferredOperation ), static_cast( pipelineCache ), 1, @@ -30695,7 +31259,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataGraphPipelineSessionARM session; Result result = - static_cast( d.vkCreateDataGraphPipelineSessionARM( m_device, + static_cast( d.vkCreateDataGraphPipelineSessionARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &session ) ) ); @@ -30719,7 +31283,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DataGraphPipelineSessionARM session; Result result = - static_cast( d.vkCreateDataGraphPipelineSessionARM( m_device, + static_cast( d.vkCreateDataGraphPipelineSessionARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &session ) ) ); @@ -30772,13 +31336,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM( - m_device, reinterpret_cast( &info ), &bindPointRequirementCount, nullptr ) ); + result = static_cast( + d.vkGetDataGraphPipelineSessionBindPointRequirementsARM( static_cast( m_device ), + reinterpret_cast( &info ), + &bindPointRequirementCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && bindPointRequirementCount ) { bindPointRequirements.resize( bindPointRequirementCount ); result = static_cast( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM( - m_device, + static_cast( m_device ), reinterpret_cast( &info ), &bindPointRequirementCount, reinterpret_cast( bindPointRequirements.data() ) ) ); @@ -30820,13 +31387,16 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM( - m_device, reinterpret_cast( &info ), &bindPointRequirementCount, nullptr ) ); + result = static_cast( + d.vkGetDataGraphPipelineSessionBindPointRequirementsARM( static_cast( m_device ), + reinterpret_cast( &info ), + &bindPointRequirementCount, + nullptr ) ); if ( ( result == Result::eSuccess ) && bindPointRequirementCount ) { bindPointRequirements.resize( bindPointRequirementCount ); result = static_cast( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM( - m_device, + static_cast( m_device ), reinterpret_cast( &info ), &bindPointRequirementCount, reinterpret_cast( bindPointRequirements.data() ) ) ); @@ -30868,7 +31438,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( m_device, + d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -30893,7 +31463,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( m_device, + d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -30925,7 +31495,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif Result result = static_cast( d.vkBindDataGraphPipelineSessionMemoryARM( - m_device, bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); + static_cast( m_device ), bindInfos.size(), reinterpret_cast( bindInfos.data() ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindDataGraphPipelineSessionMemoryARM" ); return detail::createResultValueType( result ); @@ -30955,8 +31525,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDataGraphPipelineSessionARM && "Function requires " ); # endif - d.vkDestroyDataGraphPipelineSessionARM( - m_device, static_cast( session ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDataGraphPipelineSessionARM( static_cast( m_device ), + static_cast( session ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -30983,8 +31554,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyDataGraphPipelineSessionARM && "Function requires " ); # endif - d.vkDestroyDataGraphPipelineSessionARM( - m_device, static_cast( session ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyDataGraphPipelineSessionARM( static_cast( m_device ), + static_cast( session ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31010,8 +31582,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDispatchDataGraphARM && "Function requires " ); # endif - d.vkCmdDispatchDataGraphARM( - m_commandBuffer, static_cast( session ), reinterpret_cast( info.get() ) ); + d.vkCmdDispatchDataGraphARM( static_cast( m_commandBuffer ), + static_cast( session ), + reinterpret_cast( info.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31051,12 +31624,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( d.vkGetDataGraphPipelineAvailablePropertiesARM( - m_device, reinterpret_cast( &pipelineInfo ), &propertiesCount, nullptr ) ); + static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &propertiesCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertiesCount ) { properties.resize( propertiesCount ); result = - static_cast( d.vkGetDataGraphPipelineAvailablePropertiesARM( m_device, + static_cast( d.vkGetDataGraphPipelineAvailablePropertiesARM( static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &propertiesCount, reinterpret_cast( properties.data() ) ) ); @@ -31094,12 +31667,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( d.vkGetDataGraphPipelineAvailablePropertiesARM( - m_device, reinterpret_cast( &pipelineInfo ), &propertiesCount, nullptr ) ); + static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &propertiesCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertiesCount ) { properties.resize( propertiesCount ); result = - static_cast( d.vkGetDataGraphPipelineAvailablePropertiesARM( m_device, + static_cast( d.vkGetDataGraphPipelineAvailablePropertiesARM( static_cast( m_device ), reinterpret_cast( &pipelineInfo ), &propertiesCount, reinterpret_cast( properties.data() ) ) ); @@ -31169,13 +31742,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( m_physicalDevice, queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( + static_cast( m_physicalDevice ), queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount ) { queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount ); result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, &queueFamilyDataGraphPropertyCount, reinterpret_cast( queueFamilyDataGraphProperties.data() ) ) ); @@ -31214,13 +31787,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( m_physicalDevice, queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) ); + result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( + static_cast( m_physicalDevice ), queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount ) { queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount ); result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, &queueFamilyDataGraphPropertyCount, reinterpret_cast( queueFamilyDataGraphProperties.data() ) ) ); @@ -31266,7 +31839,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE QueueFamilyDataGraphProcessingEnginePropertiesARM queueFamilyDataGraphProcessingEngineProperties; d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM( - m_physicalDevice, + static_cast( m_physicalDevice ), reinterpret_cast( &queueFamilyDataGraphProcessingEngineInfo ), reinterpret_cast( &queueFamilyDataGraphProcessingEngineProperties ) ); @@ -31307,7 +31880,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE BaseOutStructure properties; Result result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphEngineOperationPropertiesARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, reinterpret_cast( &queueFamilyDataGraphProperties ), reinterpret_cast( &properties ) ) ); @@ -31355,8 +31928,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ScreenBufferPropertiesQNX properties; - Result result = - static_cast( d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast( &properties ) ) ); + Result result = static_cast( + d.vkGetScreenBufferPropertiesQNX( static_cast( m_device ), &buffer, reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); return detail::createResultValueType( result, std::move( properties ) ); @@ -31375,8 +31948,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; ScreenBufferPropertiesQNX & properties = structureChain.template get(); - Result result = - static_cast( d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast( &properties ) ) ); + Result result = static_cast( + d.vkGetScreenBufferPropertiesQNX( static_cast( m_device ), &buffer, reinterpret_cast( &properties ) ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); return detail::createResultValueType( result, std::move( structureChain ) ); @@ -31429,12 +32002,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( static_cast( m_physicalDevice ), &timeDomainCount, nullptr ) ); if ( ( result == Result::eSuccess ) && timeDomainCount ) { timeDomains.resize( timeDomainCount ); - result = static_cast( - d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( + static_cast( m_physicalDevice ), &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" ); @@ -31466,12 +32040,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, nullptr ) ); + result = + static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( static_cast( m_physicalDevice ), &timeDomainCount, nullptr ) ); if ( ( result == Result::eSuccess ) && timeDomainCount ) { timeDomains.resize( timeDomainCount ); - result = static_cast( - d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); + result = static_cast( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( + static_cast( m_physicalDevice ), &timeDomainCount, reinterpret_cast( timeDomains.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" ); @@ -31517,8 +32092,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) ); std::vector & timestamps = data_.first; uint64_t & maxDeviation = data_.second; - Result result = static_cast( d.vkGetCalibratedTimestampsKHR( - m_device, timestampInfos.size(), reinterpret_cast( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); + Result result = static_cast( d.vkGetCalibratedTimestampsKHR( static_cast( m_device ), + timestampInfos.size(), + reinterpret_cast( timestampInfos.data() ), + timestamps.data(), + &maxDeviation ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" ); return detail::createResultValueType( result, std::move( data_ ) ); @@ -31543,8 +32121,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::piecewise_construct, std::forward_as_tuple( timestampInfos.size(), uint64_tAllocator ), std::forward_as_tuple( 0 ) ); std::vector & timestamps = data_.first; uint64_t & maxDeviation = data_.second; - Result result = static_cast( d.vkGetCalibratedTimestampsKHR( - m_device, timestampInfos.size(), reinterpret_cast( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); + Result result = static_cast( d.vkGetCalibratedTimestampsKHR( static_cast( m_device ), + timestampInfos.size(), + reinterpret_cast( timestampInfos.data() ), + timestamps.data(), + &maxDeviation ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" ); return detail::createResultValueType( result, std::move( data_ ) ); @@ -31564,8 +32145,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::pair data_; uint64_t & timestamp = data_.first; uint64_t & maxDeviation = data_.second; - Result result = static_cast( - d.vkGetCalibratedTimestampsKHR( m_device, 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); + Result result = static_cast( d.vkGetCalibratedTimestampsKHR( + static_cast( m_device ), 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampKHR" ); return detail::createResultValueType( result, std::move( data_ ) ); @@ -31595,7 +32176,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets2KHR && "Function requires or " ); # endif - d.vkCmdBindDescriptorSets2KHR( m_commandBuffer, reinterpret_cast( &bindDescriptorSetsInfo ) ); + d.vkCmdBindDescriptorSets2KHR( static_cast( m_commandBuffer ), + reinterpret_cast( &bindDescriptorSetsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31617,7 +32199,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushConstants2KHR && "Function requires or " ); # endif - d.vkCmdPushConstants2KHR( m_commandBuffer, reinterpret_cast( &pushConstantsInfo ) ); + d.vkCmdPushConstants2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &pushConstantsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31642,7 +32224,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet2KHR && "Function requires or " ); # endif - d.vkCmdPushDescriptorSet2KHR( m_commandBuffer, reinterpret_cast( &pushDescriptorSetInfo ) ); + d.vkCmdPushDescriptorSet2KHR( static_cast( m_commandBuffer ), + reinterpret_cast( &pushDescriptorSetInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31670,7 +32253,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires or " ); # endif - d.vkCmdPushDescriptorSetWithTemplate2KHR( m_commandBuffer, + d.vkCmdPushDescriptorSetWithTemplate2KHR( static_cast( m_commandBuffer ), reinterpret_cast( &pushDescriptorSetWithTemplateInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31698,7 +32281,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetDescriptorBufferOffsets2EXT && "Function requires " ); # endif - d.vkCmdSetDescriptorBufferOffsets2EXT( m_commandBuffer, reinterpret_cast( &setDescriptorBufferOffsetsInfo ) ); + d.vkCmdSetDescriptorBufferOffsets2EXT( static_cast( m_commandBuffer ), + reinterpret_cast( &setDescriptorBufferOffsetsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31728,7 +32312,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT( - m_commandBuffer, reinterpret_cast( &bindDescriptorBufferEmbeddedSamplersInfo ) ); + static_cast( m_commandBuffer ), + reinterpret_cast( &bindDescriptorBufferEmbeddedSamplersInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31753,7 +32338,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBindTileMemoryQCOM && "Function requires " ); # endif - d.vkCmdBindTileMemoryQCOM( m_commandBuffer, reinterpret_cast( tileMemoryBindInfo.get() ) ); + d.vkCmdBindTileMemoryQCOM( static_cast( m_commandBuffer ), + reinterpret_cast( tileMemoryBindInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31780,7 +32366,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryIndirectKHR && "Function requires " ); # endif - d.vkCmdCopyMemoryIndirectKHR( m_commandBuffer, reinterpret_cast( ©MemoryIndirectInfo ) ); + d.vkCmdCopyMemoryIndirectKHR( static_cast( m_commandBuffer ), + reinterpret_cast( ©MemoryIndirectInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31807,7 +32394,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageIndirectKHR && "Function requires " ); # endif - d.vkCmdCopyMemoryToImageIndirectKHR( m_commandBuffer, reinterpret_cast( ©MemoryToImageIndirectInfo ) ); + d.vkCmdCopyMemoryToImageIndirectKHR( static_cast( m_commandBuffer ), + reinterpret_cast( ©MemoryToImageIndirectInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31834,7 +32422,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdDecompressMemoryEXT && "Function requires " ); # endif - d.vkCmdDecompressMemoryEXT( m_commandBuffer, reinterpret_cast( &decompressMemoryInfoEXT ) ); + d.vkCmdDecompressMemoryEXT( static_cast( m_commandBuffer ), + reinterpret_cast( &decompressMemoryInfoEXT ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31886,7 +32475,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalComputeQueueNV externalQueue; - Result result = static_cast( d.vkCreateExternalComputeQueueNV( m_device, + Result result = static_cast( d.vkCreateExternalComputeQueueNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &externalQueue ) ) ); @@ -31909,7 +32498,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ExternalComputeQueueNV externalQueue; - Result result = static_cast( d.vkCreateExternalComputeQueueNV( m_device, + Result result = static_cast( d.vkCreateExternalComputeQueueNV( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &externalQueue ) ) ); @@ -31945,8 +32534,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyExternalComputeQueueNV && "Function requires " ); # endif - d.vkDestroyExternalComputeQueueNV( - m_device, static_cast( externalQueue ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyExternalComputeQueueNV( static_cast( m_device ), + static_cast( externalQueue ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -31974,8 +32564,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyExternalComputeQueueNV && "Function requires " ); # endif - d.vkDestroyExternalComputeQueueNV( - m_device, static_cast( externalQueue ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyExternalComputeQueueNV( static_cast( m_device ), + static_cast( externalQueue ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32005,7 +32596,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE std::pair data_; ExternalComputeQueueDataParamsNV & arams = data_.first; DataType & data = data_.second; - d.vkGetExternalComputeQueueDataNV( m_externalComputeQueueNV, reinterpret_cast( &arams ), &data ); + d.vkGetExternalComputeQueueDataNV( + static_cast( m_externalComputeQueueNV ), reinterpret_cast( &arams ), &data ); return data_; } @@ -32039,7 +32631,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureBuildSizesInfoKHR sizeInfo; - d.vkGetClusterAccelerationStructureBuildSizesNV( m_device, + d.vkGetClusterAccelerationStructureBuildSizesNV( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &sizeInfo ) ); @@ -32071,7 +32663,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdBuildClusterAccelerationStructureIndirectNV( m_commandBuffer, + d.vkCmdBuildClusterAccelerationStructureIndirectNV( static_cast( m_commandBuffer ), reinterpret_cast( &commandInfos ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32105,7 +32697,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif AccelerationStructureBuildSizesInfoKHR sizeInfo; - d.vkGetPartitionedAccelerationStructuresBuildSizesNV( m_device, + d.vkGetPartitionedAccelerationStructuresBuildSizesNV( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &sizeInfo ) ); @@ -32137,7 +32729,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkCmdBuildPartitionedAccelerationStructuresNV( m_commandBuffer, reinterpret_cast( &buildInfo ) ); + d.vkCmdBuildPartitionedAccelerationStructuresNV( static_cast( m_commandBuffer ), + reinterpret_cast( &buildInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32169,7 +32762,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif MemoryRequirements2 memoryRequirements; - d.vkGetGeneratedCommandsMemoryRequirementsEXT( m_device, + d.vkGetGeneratedCommandsMemoryRequirementsEXT( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -32194,7 +32787,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE StructureChain structureChain; MemoryRequirements2 & memoryRequirements = structureChain.template get(); - d.vkGetGeneratedCommandsMemoryRequirementsEXT( m_device, + d.vkGetGeneratedCommandsMemoryRequirementsEXT( static_cast( m_device ), reinterpret_cast( &info ), reinterpret_cast( &memoryRequirements ) ); @@ -32226,8 +32819,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdPreprocessGeneratedCommandsEXT && "Function requires " ); # endif - d.vkCmdPreprocessGeneratedCommandsEXT( - m_commandBuffer, reinterpret_cast( &generatedCommandsInfo ), static_cast( stateCommandBuffer ) ); + d.vkCmdPreprocessGeneratedCommandsEXT( static_cast( m_commandBuffer ), + reinterpret_cast( &generatedCommandsInfo ), + static_cast( stateCommandBuffer ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32255,8 +32849,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdExecuteGeneratedCommandsEXT && "Function requires " ); # endif - d.vkCmdExecuteGeneratedCommandsEXT( - m_commandBuffer, static_cast( isPreprocessed ), reinterpret_cast( &generatedCommandsInfo ) ); + d.vkCmdExecuteGeneratedCommandsEXT( static_cast( m_commandBuffer ), + static_cast( isPreprocessed ), + reinterpret_cast( &generatedCommandsInfo ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32288,7 +32883,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif IndirectCommandsLayoutEXT indirectCommandsLayout; - Result result = static_cast( d.vkCreateIndirectCommandsLayoutEXT( m_device, + Result result = static_cast( d.vkCreateIndirectCommandsLayoutEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &indirectCommandsLayout ) ) ); @@ -32311,7 +32906,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif IndirectCommandsLayoutEXT indirectCommandsLayout; - Result result = static_cast( d.vkCreateIndirectCommandsLayoutEXT( m_device, + Result result = static_cast( d.vkCreateIndirectCommandsLayoutEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &indirectCommandsLayout ) ) ); @@ -32347,8 +32942,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutEXT && "Function requires " ); # endif - d.vkDestroyIndirectCommandsLayoutEXT( - m_device, static_cast( indirectCommandsLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyIndirectCommandsLayoutEXT( static_cast( m_device ), + static_cast( indirectCommandsLayout ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32376,8 +32972,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutEXT && "Function requires " ); # endif - d.vkDestroyIndirectCommandsLayoutEXT( - m_device, static_cast( indirectCommandsLayout ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyIndirectCommandsLayoutEXT( static_cast( m_device ), + static_cast( indirectCommandsLayout ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32409,7 +33006,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif IndirectExecutionSetEXT indirectExecutionSet; - Result result = static_cast( d.vkCreateIndirectExecutionSetEXT( m_device, + Result result = static_cast( d.vkCreateIndirectExecutionSetEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &indirectExecutionSet ) ) ); @@ -32432,7 +33029,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif IndirectExecutionSetEXT indirectExecutionSet; - Result result = static_cast( d.vkCreateIndirectExecutionSetEXT( m_device, + Result result = static_cast( d.vkCreateIndirectExecutionSetEXT( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &indirectExecutionSet ) ) ); @@ -32468,8 +33065,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyIndirectExecutionSetEXT && "Function requires " ); # endif - d.vkDestroyIndirectExecutionSetEXT( - m_device, static_cast( indirectExecutionSet ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyIndirectExecutionSetEXT( static_cast( m_device ), + static_cast( indirectExecutionSet ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32497,8 +33095,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyIndirectExecutionSetEXT && "Function requires " ); # endif - d.vkDestroyIndirectExecutionSetEXT( - m_device, static_cast( indirectExecutionSet ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyIndirectExecutionSetEXT( static_cast( m_device ), + static_cast( indirectExecutionSet ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -32531,7 +33130,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkUpdateIndirectExecutionSetPipelineEXT( m_device, + d.vkUpdateIndirectExecutionSetPipelineEXT( static_cast( m_device ), static_cast( indirectExecutionSet ), executionSetWrites.size(), reinterpret_cast( executionSetWrites.data() ) ); @@ -32567,7 +33166,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE "Function requires " ); # endif - d.vkUpdateIndirectExecutionSetShaderEXT( m_device, + d.vkUpdateIndirectExecutionSetShaderEXT( static_cast( m_device ), static_cast( indirectExecutionSet ), executionSetWrites.size(), reinterpret_cast( executionSetWrites.data() ) ); @@ -32605,12 +33204,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDeviceFaultReportsKHR( m_device, timeout, &faultCounts, nullptr ) ); + result = static_cast( d.vkGetDeviceFaultReportsKHR( static_cast( m_device ), timeout, &faultCounts, nullptr ) ); if ( ( result == Result::eSuccess ) && faultCounts ) { faultInfo.resize( faultCounts ); - result = - static_cast( d.vkGetDeviceFaultReportsKHR( m_device, timeout, &faultCounts, reinterpret_cast( faultInfo.data() ) ) ); + result = static_cast( d.vkGetDeviceFaultReportsKHR( + static_cast( m_device ), timeout, &faultCounts, reinterpret_cast( faultInfo.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFaultReportsKHR", { Result::eSuccess, Result::eIncomplete, Result::eTimeout } ); @@ -32640,12 +33239,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetDeviceFaultReportsKHR( m_device, timeout, &faultCounts, nullptr ) ); + result = static_cast( d.vkGetDeviceFaultReportsKHR( static_cast( m_device ), timeout, &faultCounts, nullptr ) ); if ( ( result == Result::eSuccess ) && faultCounts ) { faultInfo.resize( faultCounts ); - result = - static_cast( d.vkGetDeviceFaultReportsKHR( m_device, timeout, &faultCounts, reinterpret_cast( faultInfo.data() ) ) ); + result = static_cast( d.vkGetDeviceFaultReportsKHR( + static_cast( m_device ), timeout, &faultCounts, reinterpret_cast( faultInfo.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFaultReportsKHR", { Result::eSuccess, Result::eIncomplete, Result::eTimeout } ); @@ -32695,7 +33294,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateSurfaceOHOS( m_instance, + Result result = static_cast( d.vkCreateSurfaceOHOS( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -32716,7 +33315,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateSurfaceOHOS( m_instance, + Result result = static_cast( d.vkCreateSurfaceOHOS( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -32768,12 +33367,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" ); @@ -32810,12 +33412,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) ); + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( static_cast( m_physicalDevice ), &propertyCount, nullptr ) ); if ( ( result == Result::eSuccess ) && propertyCount ) { properties.resize( propertyCount ); result = static_cast( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( - m_physicalDevice, &propertyCount, reinterpret_cast( properties.data() ) ) ); + static_cast( m_physicalDevice ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" ); @@ -32853,8 +33458,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif void * handle; - Result result = - static_cast( d.vkGetMemoryMetalHandleEXT( m_device, reinterpret_cast( &getMetalHandleInfo ), &handle ) ); + Result result = static_cast( d.vkGetMemoryMetalHandleEXT( + static_cast( m_device ), reinterpret_cast( &getMetalHandleInfo ), &handle ) ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryMetalHandleEXT" ); return detail::createResultValueType( result, std::move( handle ) ); @@ -32889,7 +33494,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE MemoryMetalHandlePropertiesEXT memoryMetalHandleProperties; Result result = - static_cast( d.vkGetMemoryMetalHandlePropertiesEXT( m_device, + static_cast( d.vkGetMemoryMetalHandlePropertiesEXT( static_cast( m_device ), static_cast( handleType ), reinterpret_cast( &handle ), reinterpret_cast( &memoryMetalHandleProperties ) ) ); @@ -32951,14 +33556,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, nullptr, nullptr ) ); if ( ( result == Result::eSuccess ) && counterCount ) { counters.resize( counterCount ); counterDescriptions.resize( counterCount ); result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, reinterpret_cast( counters.data() ), @@ -33009,14 +33614,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( - d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) ); + result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, nullptr, nullptr ) ); if ( ( result == Result::eSuccess ) && counterCount ) { counters.resize( counterCount ); counterDescriptions.resize( counterCount ); result = static_cast( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, &counterCount, reinterpret_cast( counters.data() ), @@ -33073,12 +33678,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( m_physicalDevice, &descriptionCount, nullptr ) ); + result = static_cast( + d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( static_cast( m_physicalDevice ), &descriptionCount, nullptr ) ); if ( ( result == Result::eSuccess ) && descriptionCount ) { descriptions.resize( descriptionCount ); result = static_cast( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( - m_physicalDevice, &descriptionCount, reinterpret_cast( descriptions.data() ) ) ); + static_cast( m_physicalDevice ), + &descriptionCount, + reinterpret_cast( descriptions.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateShaderInstrumentationMetricsARM" ); @@ -33115,12 +33723,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Result result; do { - result = static_cast( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( m_physicalDevice, &descriptionCount, nullptr ) ); + result = static_cast( + d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( static_cast( m_physicalDevice ), &descriptionCount, nullptr ) ); if ( ( result == Result::eSuccess ) && descriptionCount ) { descriptions.resize( descriptionCount ); result = static_cast( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( - m_physicalDevice, &descriptionCount, reinterpret_cast( descriptions.data() ) ) ); + static_cast( m_physicalDevice ), + &descriptionCount, + reinterpret_cast( descriptions.data() ) ) ); } } while ( result == Result::eIncomplete ); detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateShaderInstrumentationMetricsARM" ); @@ -33161,7 +33772,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderInstrumentationARM instrumentation; - Result result = static_cast( d.vkCreateShaderInstrumentationARM( m_device, + Result result = static_cast( d.vkCreateShaderInstrumentationARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &instrumentation ) ) ); @@ -33184,7 +33795,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif ShaderInstrumentationARM instrumentation; - Result result = static_cast( d.vkCreateShaderInstrumentationARM( m_device, + Result result = static_cast( d.vkCreateShaderInstrumentationARM( static_cast( m_device ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &instrumentation ) ) ); @@ -33220,8 +33831,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyShaderInstrumentationARM && "Function requires " ); # endif - d.vkDestroyShaderInstrumentationARM( - m_device, static_cast( instrumentation ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyShaderInstrumentationARM( static_cast( m_device ), + static_cast( instrumentation ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -33249,8 +33861,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkDestroyShaderInstrumentationARM && "Function requires " ); # endif - d.vkDestroyShaderInstrumentationARM( - m_device, static_cast( instrumentation ), reinterpret_cast( allocator.get() ) ); + d.vkDestroyShaderInstrumentationARM( static_cast( m_device ), + static_cast( instrumentation ), + reinterpret_cast( allocator.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -33318,7 +33931,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndRendering2EXT && "Function requires or " ); # endif - d.vkCmdEndRendering2EXT( m_commandBuffer, reinterpret_cast( renderingEndInfo.get() ) ); + d.vkCmdEndRendering2EXT( static_cast( m_commandBuffer ), reinterpret_cast( renderingEndInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -33345,7 +33958,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdBeginCustomResolveEXT && "Function requires " ); # endif - d.vkCmdBeginCustomResolveEXT( m_commandBuffer, reinterpret_cast( beginCustomResolveInfo.get() ) ); + d.vkCmdBeginCustomResolveEXT( static_cast( m_commandBuffer ), + reinterpret_cast( beginCustomResolveInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -33369,7 +33983,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdEndRendering2KHR && "Function requires or " ); # endif - d.vkCmdEndRendering2KHR( m_commandBuffer, reinterpret_cast( renderingEndInfo.get() ) ); + d.vkCmdEndRendering2KHR( static_cast( m_commandBuffer ), reinterpret_cast( renderingEndInfo.get() ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -33424,7 +34038,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, reinterpret_cast( &queueFamilyDataGraphProperties ), reinterpret_cast( &opticalFlowImageFormatInfo ), @@ -33434,7 +34048,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { imageFormatProperties.resize( formatCount ); result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, reinterpret_cast( &queueFamilyDataGraphProperties ), reinterpret_cast( &opticalFlowImageFormatInfo ), @@ -33481,7 +34095,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE do { result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, reinterpret_cast( &queueFamilyDataGraphProperties ), reinterpret_cast( &opticalFlowImageFormatInfo ), @@ -33491,7 +34105,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { imageFormatProperties.resize( formatCount ); result = static_cast( d.vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM( - m_physicalDevice, + static_cast( m_physicalDevice ), queueFamilyIndex, reinterpret_cast( &queueFamilyDataGraphProperties ), reinterpret_cast( &opticalFlowImageFormatInfo ), @@ -33534,7 +34148,121 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_ASSERT( d.vkCmdSetComputeOccupancyPriorityNV && "Function requires " ); # endif - d.vkCmdSetComputeOccupancyPriorityNV( m_commandBuffer, reinterpret_cast( ¶meters ) ); + d.vkCmdSetComputeOccupancyPriorityNV( static_cast( m_commandBuffer ), + reinterpret_cast( ¶meters ) ); + } +#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + + //=== VK_EXT_cooperative_matrix_maintenance1 === + + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + template ::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixProperties2EXT( + PhysicalDeviceCooperativeMatrixInfo2EXT const * pCooperativeMatrixInfo, + uint32_t * pPropertyCount, + CooperativeMatrixProperties2EXT * pProperties, + Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); + return static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( pCooperativeMatrixInfo ), + pPropertyCount, + reinterpret_cast( pProperties ) ) ); + } + +#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + template < + typename CooperativeMatrixProperties2EXTAllocator, + typename Dispatch, + typename std::enable_if::value, int>::type, + typename std::enable_if::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type + PhysicalDevice::getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & cooperativeMatrixInfo, Dispatch const & d ) const + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT && + "Function requires " ); +# endif + + std::vector properties; + uint32_t propertyCount; + Result result; + do + { + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( &cooperativeMatrixInfo ), + &propertyCount, + nullptr ) ); + if ( ( result == Result::eSuccess ) && propertyCount ) + { + properties.resize( propertyCount ); + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( &cooperativeMatrixInfo ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); + } + } while ( result == Result::eIncomplete ); + detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixProperties2EXT" ); + VULKAN_HPP_ASSERT( propertyCount <= properties.size() ); + if ( propertyCount < properties.size() ) + { + properties.resize( propertyCount ); + } + return detail::createResultValueType( result, std::move( properties ) ); + } + + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + template < + typename CooperativeMatrixProperties2EXTAllocator, + typename Dispatch, + typename std::enable_if::value, int>::type, + typename std::enable_if::type> + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type + PhysicalDevice::getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & cooperativeMatrixInfo, + CooperativeMatrixProperties2EXTAllocator const & cooperativeMatrixProperties2EXTAllocator, + Dispatch const & d ) const + { + VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); +# if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT && + "Function requires " ); +# endif + + std::vector properties( cooperativeMatrixProperties2EXTAllocator ); + uint32_t propertyCount; + Result result; + do + { + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( &cooperativeMatrixInfo ), + &propertyCount, + nullptr ) ); + if ( ( result == Result::eSuccess ) && propertyCount ) + { + properties.resize( propertyCount ); + result = static_cast( + d.vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( static_cast( m_physicalDevice ), + reinterpret_cast( &cooperativeMatrixInfo ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); + } + } while ( result == Result::eIncomplete ); + detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixProperties2EXT" ); + VULKAN_HPP_ASSERT( propertyCount <= properties.size() ); + if ( propertyCount < properties.size() ) + { + properties.resize( propertyCount ); + } + return detail::createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -33565,7 +34293,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateUbmSurfaceSEC( m_instance, + Result result = static_cast( d.vkCreateUbmSurfaceSEC( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -33586,7 +34314,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif SurfaceKHR surface; - Result result = static_cast( d.vkCreateUbmSurfaceSEC( m_instance, + Result result = static_cast( d.vkCreateUbmSurfaceSEC( static_cast( m_instance ), reinterpret_cast( &createInfo ), reinterpret_cast( allocator.get() ), reinterpret_cast( &surface ) ) ); @@ -33622,7 +34350,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif struct ubm_device device; - VkBool32 result = d.vkGetPhysicalDeviceUbmPresentationSupportSEC( m_physicalDevice, queueFamilyIndex, &device ); + VkBool32 result = d.vkGetPhysicalDeviceUbmPresentationSupportSEC( static_cast( m_physicalDevice ), queueFamilyIndex, &device ); return { result, device }; } diff --git a/third_party/vulkan/vulkan_ggp.h b/third_party/vulkan/vulkan_ggp.h index f8a48ec..b896108 100644 --- a/third_party/vulkan/vulkan_ggp.h +++ b/third_party/vulkan/vulkan_ggp.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_handles.hpp b/third_party/vulkan/vulkan_handles.hpp index a6f812a..aa90842 100644 --- a/third_party/vulkan/vulkan_handles.hpp +++ b/third_party/vulkan/vulkan_handles.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -2183,6 +2182,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_EXT_shader_replicated_composites === struct PhysicalDeviceShaderReplicatedCompositesFeaturesEXT; + //=== VK_ARM_tensor_controls === + struct TensorRollingBackingCreateInfoARM; + struct TensorExplicitTilingFormatPropertiesARM; + //=== VK_EXT_shader_float8 === struct PhysicalDeviceShaderFloat8FeaturesEXT; @@ -2311,6 +2314,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_ARM_pipeline_opacity_micromap === struct PhysicalDevicePipelineOpacityMicromapFeaturesARM; + //=== VK_KHR_video_encode_feedback2 === + struct PhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + struct VideoEncodeFeedback2CapabilitiesKHR; + struct QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_external_memory_metal === struct ImportMemoryMetalHandleInfoEXT; @@ -2357,6 +2365,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE struct SetPresentConfigNV; struct PhysicalDevicePresentMeteringFeaturesNV; + //=== VK_EXT_multisampled_render_to_swapchain === + struct PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + struct SwapchainFlagsSurfaceCapabilitiesEXT; + //=== VK_EXT_fragment_density_map_offset === struct PhysicalDeviceFragmentDensityMapOffsetFeaturesEXT; using PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM = PhysicalDeviceFragmentDensityMapOffsetFeaturesEXT; @@ -2431,6 +2443,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE struct PhysicalDeviceMaintenance11FeaturesKHR; struct QueueFamilyOptimalImageTransferGranularityPropertiesKHR; + //=== VK_EXT_cooperative_matrix_maintenance1 === + struct CooperativeMatrixProperties2EXT; + struct PhysicalDeviceCooperativeMatrixInfo2EXT; + struct PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + //=== VK_EXT_shader_subgroup_partitioned === struct PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT; @@ -2439,6 +2456,18 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE struct UbmSurfaceCreateInfoSEC; #endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=== VK_KHR_extended_flags === + struct FormatProperties4KHR; + struct ImageUsageFlags2CreateInfoKHR; + struct ImageCreateFlags2CreateInfoKHR; + struct ImageViewUsage2CreateInfoKHR; + struct PhysicalDeviceExtendedFlagsFeaturesKHR; + struct ImageStencilUsage2CreateInfoKHR; + struct SharedPresentSurfaceCapabilities2KHR; + + //=== VK_EXT_shader_ocp_microscaling_types === + struct PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT; + //=== VK_VALVE_shader_mixed_float_dot_product === struct PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE; @@ -2454,6 +2483,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_EXT_primitive_restart_index === struct PhysicalDevicePrimitiveRestartIndexFeaturesEXT; + //=== VK_EXT_image_tiling_control === + struct PhysicalDeviceImageTilingControlFeaturesEXT; + struct ImageTilingControlCreateInfoEXT; + + //=== VK_NV_cooperative_matrix_decode_vector === + struct PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + //=================================== //=== HANDLE forward declarations === //=================================== @@ -12039,6 +12075,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE setPerfHintQCOM( PerfHintInfoQCOM const & perfHintInfo, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + //=== VK_NV_low_latency === + + // wrapper function for command vkQueueNotifyOutOfBandLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandLegacyNV.html + template ::type = true> + void notifyOutOfBandLegacyNV( uint32_t queueType, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; + //=== VK_KHR_synchronization2 === // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html @@ -17921,6 +17965,52 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_ENABLE_BETA_EXTENSIONS*/ + //=== VK_NV_low_latency === + + // wrapper function for command vkSetLatencySleepModeLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeLegacyNV.html + template ::type = true> + void setLatencySleepModeLegacyNV( Bool32 lowLatencyMode, + Bool32 lowLatencyBoost, + uint32_t minimumIntervalUs, + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkLatencySleepLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepLegacyNV.html + template ::type = true> + void + latencySleepLegacyNV( Semaphore signalSemaphore, uint64_t value, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkSetLatencyMarkerLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerLegacyNV.html + template ::type = true> + void setLatencyMarkerLegacyNV( uint64_t frameID, uint32_t marker, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkGetLatencyTimingsLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsLegacyNV.html + template ::type = true> + void getLatencyTimingsLegacyNV( void * pTimings, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetLatencyTimingsLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsLegacyNV.html + template ::type = true> + VULKAN_HPP_NODISCARD TimingsType getLatencyTimingsLegacyNV( Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + + // wrapper function for command vkGetSleepStatusLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSleepStatusLegacyNV.html + template ::type = true> + void getSleepStatusLegacyNV( Bool32 * pLowLatencyMode, Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetSleepStatusLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSleepStatusLegacyNV.html + template ::type = true> + VULKAN_HPP_NODISCARD Bool32 getSleepStatusLegacyNV( Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + + // wrapper function for command vkShutdownLatencyDeviceLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkShutdownLatencyDeviceLegacyNV.html + template ::type = true> + void shutdownLatencyLegacyNV( Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === @@ -22762,6 +22852,40 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + //=== VK_EXT_cooperative_matrix_maintenance1 === + + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + template ::type = true> + VULKAN_HPP_NODISCARD Result getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const * pCooperativeMatrixInfo, + uint32_t * pPropertyCount, + CooperativeMatrixProperties2EXT * pProperties, + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; +#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + template , + typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, + typename std::enable_if::value, + int>::type = 0, + typename std::enable_if::type = true> + VULKAN_HPP_NODISCARD typename ResultValueType>::type + getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & cooperativeMatrixInfo, + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + template , + typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE, + typename std::enable_if::value, + int>::type = 0, + typename std::enable_if::type = true> + VULKAN_HPP_NODISCARD typename ResultValueType>::type + getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & cooperativeMatrixInfo, + CooperativeMatrixProperties2EXTAllocator const & cooperativeMatrixProperties2EXTAllocator, + Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; +#endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === diff --git a/third_party/vulkan/vulkan_hash.hpp b/third_party/vulkan/vulkan_hash.hpp index 6218966..6f3fa8c 100644 --- a/third_party/vulkan/vulkan_hash.hpp +++ b/third_party/vulkan/vulkan_hash.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -3124,6 +3123,25 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::CooperativeMatrixProperties2EXT const & cooperativeMatrixProperties2EXT ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.MGranularity ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.NGranularity ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.KGranularity ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.AType ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.BType ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.CType ); + VULKAN_HPP_HASH_COMBINE( seed, cooperativeMatrixProperties2EXT.ResultType ); + return seed; + } + }; + template <> struct hash { @@ -6846,6 +6864,21 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::FormatProperties4KHR const & formatProperties4KHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, formatProperties4KHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, formatProperties4KHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, formatProperties4KHR.linearTilingFeatures ); + VULKAN_HPP_HASH_COMBINE( seed, formatProperties4KHR.optimalTilingFeatures ); + VULKAN_HPP_HASH_COMBINE( seed, formatProperties4KHR.bufferFeatures ); + return seed; + } + }; + template <> struct hash { @@ -7780,6 +7813,19 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::ImageCreateFlags2CreateInfoKHR const & imageCreateFlags2CreateInfoKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, imageCreateFlags2CreateInfoKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, imageCreateFlags2CreateInfoKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, imageCreateFlags2CreateInfoKHR.flags ); + return seed; + } + }; + template <> struct hash { @@ -8005,6 +8051,19 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::ImageStencilUsage2CreateInfoKHR const & imageStencilUsage2CreateInfoKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, imageStencilUsage2CreateInfoKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, imageStencilUsage2CreateInfoKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, imageStencilUsage2CreateInfoKHR.stencilUsage ); + return seed; + } + }; + template <> struct hash { @@ -8031,6 +8090,32 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::ImageTilingControlCreateInfoEXT const & imageTilingControlCreateInfoEXT ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, imageTilingControlCreateInfoEXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, imageTilingControlCreateInfoEXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, imageTilingControlCreateInfoEXT.tilingControl ); + return seed; + } + }; + + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::ImageUsageFlags2CreateInfoKHR const & imageUsageFlags2CreateInfoKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, imageUsageFlags2CreateInfoKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, imageUsageFlags2CreateInfoKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, imageUsageFlags2CreateInfoKHR.usage ); + return seed; + } + }; + template <> struct hash { @@ -8129,6 +8214,19 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::ImageViewUsage2CreateInfoKHR const & imageViewUsage2CreateInfoKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, imageViewUsage2CreateInfoKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, imageViewUsage2CreateInfoKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, imageViewUsage2CreateInfoKHR.usage ); + return seed; + } + }; + template <> struct hash { @@ -10458,6 +10556,20 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & + physicalDeviceCooperativeMatrixDecodeVectorFeaturesNV ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.cooperativeMatrixDecodeVector ); + return seed; + } + }; + template <> struct hash { @@ -10488,6 +10600,41 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t + operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceCooperativeMatrixInfo2EXT const & physicalDeviceCooperativeMatrixInfo2EXT ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixInfo2EXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixInfo2EXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixInfo2EXT.scope ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixInfo2EXT.invocations ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixInfo2EXT.subgroupSize ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixInfo2EXT.flags ); + return seed; + } + }; + + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & + physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.cooperativeMatrixProperties2 ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.cooperativeMatrixReductions ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.cooperativeMatrixConversions ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.cooperativeMatrixPerElementOperations ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.cooperativeMatrixGetCoordinate ); + return seed; + } + }; + template <> struct hash { @@ -11548,6 +11695,20 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t + operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceExtendedFlagsFeaturesKHR const & physicalDeviceExtendedFlagsFeaturesKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceExtendedFlagsFeaturesKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceExtendedFlagsFeaturesKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceExtendedFlagsFeaturesKHR.extendedFlags ); + return seed; + } + }; + template <> struct hash { @@ -12518,6 +12679,20 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceImageTilingControlFeaturesEXT const & physicalDeviceImageTilingControlFeaturesEXT ) const + VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceImageTilingControlFeaturesEXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceImageTilingControlFeaturesEXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceImageTilingControlFeaturesEXT.imageTilingControl ); + return seed; + } + }; + template <> struct hash { @@ -13490,6 +13665,20 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & + physicalDeviceMultisampledRenderToSwapchainFeaturesEXT ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceMultisampledRenderToSwapchainFeaturesEXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceMultisampledRenderToSwapchainFeaturesEXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceMultisampledRenderToSwapchainFeaturesEXT.multisampledRenderToSwapchain ); + return seed; + } + }; + template <> struct hash { @@ -15510,6 +15699,24 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t + operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT ) const + VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.shaderFloat4 ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.shaderFloat6 ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.shaderFloat8UnsignedE8M0 ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.shaderMXInt8 ); + return seed; + } + }; + template <> struct hash { @@ -16396,6 +16603,20 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::PhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & physicalDeviceVideoEncodeFeedback2FeaturesKHR ) const + VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceVideoEncodeFeedback2FeaturesKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceVideoEncodeFeedback2FeaturesKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, physicalDeviceVideoEncodeFeedback2FeaturesKHR.videoEncodeFeedback2 ); + return seed; + } + }; + template <> struct hash { @@ -18219,6 +18440,21 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & + queryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, queryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, queryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, queryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR.maxPerPartitionFeedbackEntries ); + VULKAN_HPP_HASH_COMBINE( seed, queryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR.perPartitionEncodeFeedbackFlags ); + return seed; + } + }; + template <> struct hash { @@ -19689,6 +19925,19 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::SharedPresentSurfaceCapabilities2KHR const & sharedPresentSurfaceCapabilities2KHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, sharedPresentSurfaceCapabilities2KHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, sharedPresentSurfaceCapabilities2KHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, sharedPresentSurfaceCapabilities2KHR.sharedPresentSupportedUsageFlags ); + return seed; + } + }; + template <> struct hash { @@ -20228,6 +20477,19 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::SwapchainFlagsSurfaceCapabilitiesEXT const & swapchainFlagsSurfaceCapabilitiesEXT ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, swapchainFlagsSurfaceCapabilitiesEXT.sType ); + VULKAN_HPP_HASH_COMBINE( seed, swapchainFlagsSurfaceCapabilitiesEXT.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, swapchainFlagsSurfaceCapabilitiesEXT.swapchainSupportedFlags ); + return seed; + } + }; + template <> struct hash { @@ -20386,6 +20648,24 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t + operator()( VULKAN_HPP_NAMESPACE::TensorExplicitTilingFormatPropertiesARM const & tensorExplicitTilingFormatPropertiesARM ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.sType ); + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.brick16TilingTensorFeatures ); + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.brick8TilingTensorFeatures ); + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.brick4TilingTensorFeatures ); + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.blockUTilingTensorFeatures ); + VULKAN_HPP_HASH_COMBINE( seed, tensorExplicitTilingFormatPropertiesARM.blockU64kTilingTensorFeatures ); + return seed; + } + }; + template <> struct hash { @@ -20413,6 +20693,22 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::TensorRollingBackingCreateInfoARM const & tensorRollingBackingCreateInfoARM ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, tensorRollingBackingCreateInfoARM.sType ); + VULKAN_HPP_HASH_COMBINE( seed, tensorRollingBackingCreateInfoARM.pNext ); + for ( size_t i = 0; i < VK_MAX_TENSOR_CREATE_INFO_ROLLING_BACKING_WRAP_COUNT_ARM; ++i ) + { + VULKAN_HPP_HASH_COMBINE( seed, tensorRollingBackingCreateInfoARM.wraps[i] ); + } + return seed; + } + }; + template <> struct hash { @@ -21399,6 +21695,20 @@ VULKAN_HPP_EXPORT namespace std } }; + template <> + struct hash + { + std::size_t operator()( VULKAN_HPP_NAMESPACE::VideoEncodeFeedback2CapabilitiesKHR const & videoEncodeFeedback2CapabilitiesKHR ) const VULKAN_HPP_NOEXCEPT + { + std::size_t seed = 0; + VULKAN_HPP_HASH_COMBINE( seed, videoEncodeFeedback2CapabilitiesKHR.sType ); + VULKAN_HPP_HASH_COMBINE( seed, videoEncodeFeedback2CapabilitiesKHR.pNext ); + VULKAN_HPP_HASH_COMBINE( seed, videoEncodeFeedback2CapabilitiesKHR.maxPerPartitionFeedbackEntries ); + VULKAN_HPP_HASH_COMBINE( seed, videoEncodeFeedback2CapabilitiesKHR.supportedPerPartitionEncodeFeedbackFlags ); + return seed; + } + }; + template <> struct hash { diff --git a/third_party/vulkan/vulkan_hpp_macros.hpp b/third_party/vulkan/vulkan_hpp_macros.hpp index 5cb6e98..769f320 100644 --- a/third_party/vulkan/vulkan_hpp_macros.hpp +++ b/third_party/vulkan/vulkan_hpp_macros.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // diff --git a/third_party/vulkan/vulkan_ios.h b/third_party/vulkan/vulkan_ios.h index 089991a..d6f1ed5 100644 --- a/third_party/vulkan/vulkan_ios.h +++ b/third_party/vulkan/vulkan_ios.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_macos.h b/third_party/vulkan/vulkan_macos.h index 7d5d8a1..2459e69 100644 --- a/third_party/vulkan/vulkan_macos.h +++ b/third_party/vulkan/vulkan_macos.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_metal.h b/third_party/vulkan/vulkan_metal.h index 501c363..1029b37 100644 --- a/third_party/vulkan/vulkan_metal.h +++ b/third_party/vulkan/vulkan_metal.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_ohos.h b/third_party/vulkan/vulkan_ohos.h index 3bde011..e5cdd2d 100644 --- a/third_party/vulkan/vulkan_ohos.h +++ b/third_party/vulkan/vulkan_ohos.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_raii.hpp b/third_party/vulkan/vulkan_raii.hpp index 3c13501..56ab3b3 100644 --- a/third_party/vulkan/vulkan_raii.hpp +++ b/third_party/vulkan/vulkan_raii.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -415,6 +414,10 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM = PFN_vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM" ) ); + //=== VK_EXT_cooperative_matrix_maintenance1 === + vkGetPhysicalDeviceCooperativeMatrixProperties2EXT = + PFN_vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeMatrixProperties2EXT" ) ); + # if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === vkCreateUbmSurfaceSEC = PFN_vkCreateUbmSurfaceSEC( vkGetInstanceProcAddr( instance, "vkCreateUbmSurfaceSEC" ) ); @@ -734,6 +737,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE //=== VK_ARM_data_graph_optical_flow === PFN_vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM vkGetPhysicalDeviceQueueFamilyDataGraphOpticalFlowImageFormatsARM = 0; + //=== VK_EXT_cooperative_matrix_maintenance1 === + PFN_vkGetPhysicalDeviceCooperativeMatrixProperties2EXT vkGetPhysicalDeviceCooperativeMatrixProperties2EXT = 0; + # if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === PFN_vkCreateUbmSurfaceSEC vkCreateUbmSurfaceSEC = 0; @@ -1593,6 +1599,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE vkCmdBeginPerTileExecutionQCOM = PFN_vkCmdBeginPerTileExecutionQCOM( vkGetDeviceProcAddr( device, "vkCmdBeginPerTileExecutionQCOM" ) ); vkCmdEndPerTileExecutionQCOM = PFN_vkCmdEndPerTileExecutionQCOM( vkGetDeviceProcAddr( device, "vkCmdEndPerTileExecutionQCOM" ) ); + //=== VK_NV_low_latency === + vkSetLatencySleepModeLegacyNV = PFN_vkSetLatencySleepModeLegacyNV( vkGetDeviceProcAddr( device, "vkSetLatencySleepModeLegacyNV" ) ); + vkLatencySleepLegacyNV = PFN_vkLatencySleepLegacyNV( vkGetDeviceProcAddr( device, "vkLatencySleepLegacyNV" ) ); + vkSetLatencyMarkerLegacyNV = PFN_vkSetLatencyMarkerLegacyNV( vkGetDeviceProcAddr( device, "vkSetLatencyMarkerLegacyNV" ) ); + vkGetLatencyTimingsLegacyNV = PFN_vkGetLatencyTimingsLegacyNV( vkGetDeviceProcAddr( device, "vkGetLatencyTimingsLegacyNV" ) ); + vkQueueNotifyOutOfBandLegacyNV = PFN_vkQueueNotifyOutOfBandLegacyNV( vkGetDeviceProcAddr( device, "vkQueueNotifyOutOfBandLegacyNV" ) ); + vkGetSleepStatusLegacyNV = PFN_vkGetSleepStatusLegacyNV( vkGetDeviceProcAddr( device, "vkGetSleepStatusLegacyNV" ) ); + vkShutdownLatencyDeviceLegacyNV = PFN_vkShutdownLatencyDeviceLegacyNV( vkGetDeviceProcAddr( device, "vkShutdownLatencyDeviceLegacyNV" ) ); + # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === vkExportMetalObjectsEXT = PFN_vkExportMetalObjectsEXT( vkGetDeviceProcAddr( device, "vkExportMetalObjectsEXT" ) ); @@ -2773,6 +2788,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE PFN_vkCmdBeginPerTileExecutionQCOM vkCmdBeginPerTileExecutionQCOM = 0; PFN_vkCmdEndPerTileExecutionQCOM vkCmdEndPerTileExecutionQCOM = 0; + //=== VK_NV_low_latency === + PFN_vkSetLatencySleepModeLegacyNV vkSetLatencySleepModeLegacyNV = 0; + PFN_vkLatencySleepLegacyNV vkLatencySleepLegacyNV = 0; + PFN_vkSetLatencyMarkerLegacyNV vkSetLatencyMarkerLegacyNV = 0; + PFN_vkGetLatencyTimingsLegacyNV vkGetLatencyTimingsLegacyNV = 0; + PFN_vkQueueNotifyOutOfBandLegacyNV vkQueueNotifyOutOfBandLegacyNV = 0; + PFN_vkGetSleepStatusLegacyNV vkGetSleepStatusLegacyNV = 0; + PFN_vkShutdownLatencyDeviceLegacyNV vkShutdownLatencyDeviceLegacyNV = 0; + # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === PFN_vkExportMetalObjectsEXT vkExportMetalObjectsEXT = 0; @@ -4395,6 +4419,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE QueueFamilyDataGraphPropertiesARM const & queueFamilyDataGraphProperties, DataGraphOpticalFlowImageFormatInfoARM const & opticalFlowImageFormatInfo ) const; + //=== VK_EXT_cooperative_matrix_maintenance1 === + + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + VULKAN_HPP_NODISCARD typename ResultValueType>::type + getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & cooperativeMatrixInfo ) const; + # if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === @@ -5542,6 +5573,27 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE Optional allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS; # endif /*VK_ENABLE_BETA_EXTENSIONS*/ + //=== VK_NV_low_latency === + + // wrapper function for command vkSetLatencySleepModeLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeLegacyNV.html + void setLatencySleepModeLegacyNV( Bool32 lowLatencyMode, Bool32 lowLatencyBoost, uint32_t minimumIntervalUs ) const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkSetLatencyMarkerLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerLegacyNV.html + void setLatencyMarkerLegacyNV( uint64_t frameID, uint32_t marker ) const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkGetLatencyTimingsLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsLegacyNV.html + template + VULKAN_HPP_NODISCARD TimingsType getLatencyTimingsLegacyNV() const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkGetSleepStatusLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSleepStatusLegacyNV.html + VULKAN_HPP_NODISCARD Bool32 getSleepStatusLegacyNV() const VULKAN_HPP_NOEXCEPT; + + // wrapper function for command vkShutdownLatencyDeviceLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkShutdownLatencyDeviceLegacyNV.html + void shutdownLatencyLegacyNV() const VULKAN_HPP_NOEXCEPT; + # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === @@ -13639,6 +13691,12 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE // wrapper function for command vkQueueSetPerfHintQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerfHintQCOM.html typename ResultValueType::type setPerfHintQCOM( PerfHintInfoQCOM const & perfHintInfo ) const; + //=== VK_NV_low_latency === + + // wrapper function for command vkQueueNotifyOutOfBandLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandLegacyNV.html + void notifyOutOfBandLegacyNV( uint32_t queueType ) const VULKAN_HPP_NOEXCEPT; + //=== VK_KHR_synchronization2 === // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html @@ -14181,6 +14239,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html VULKAN_HPP_NODISCARD typename ResultValueType::type getCounterValueKHR() const; + //=== VK_NV_low_latency === + + // wrapper function for command vkLatencySleepLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepLegacyNV.html + void latencySleepLegacyNV( uint64_t value ) const VULKAN_HPP_NOEXCEPT; + private: VULKAN_HPP_NAMESPACE::Device m_device = {}; VULKAN_HPP_NAMESPACE::Semaphore m_semaphore = {}; @@ -25877,6 +25940,76 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &perTileEndInfo ) ); } + //=== VK_NV_low_latency === + + // wrapper function for command vkSetLatencySleepModeLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeLegacyNV.html + VULKAN_HPP_INLINE void + Device::setLatencySleepModeLegacyNV( Bool32 lowLatencyMode, Bool32 lowLatencyBoost, uint32_t minimumIntervalUs ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkSetLatencySleepModeLegacyNV && "Function requires " ); + + getDispatcher()->vkSetLatencySleepModeLegacyNV( + static_cast( m_device ), static_cast( lowLatencyMode ), static_cast( lowLatencyBoost ), minimumIntervalUs ); + } + + // wrapper function for command vkLatencySleepLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepLegacyNV.html + VULKAN_HPP_INLINE void Semaphore::latencySleepLegacyNV( uint64_t value ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkLatencySleepLegacyNV && "Function requires " ); + + getDispatcher()->vkLatencySleepLegacyNV( static_cast( m_device ), static_cast( m_semaphore ), value ); + } + + // wrapper function for command vkSetLatencyMarkerLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerLegacyNV.html + VULKAN_HPP_INLINE void Device::setLatencyMarkerLegacyNV( uint64_t frameID, uint32_t marker ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkSetLatencyMarkerLegacyNV && "Function requires " ); + + getDispatcher()->vkSetLatencyMarkerLegacyNV( static_cast( m_device ), frameID, marker ); + } + + // wrapper function for command vkGetLatencyTimingsLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsLegacyNV.html + template + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE TimingsType Device::getLatencyTimingsLegacyNV() const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetLatencyTimingsLegacyNV && "Function requires " ); + + TimingsType timings; + getDispatcher()->vkGetLatencyTimingsLegacyNV( static_cast( m_device ), &timings ); + + return timings; + } + + // wrapper function for command vkQueueNotifyOutOfBandLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandLegacyNV.html + VULKAN_HPP_INLINE void Queue::notifyOutOfBandLegacyNV( uint32_t queueType ) const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkQueueNotifyOutOfBandLegacyNV && "Function requires " ); + + getDispatcher()->vkQueueNotifyOutOfBandLegacyNV( static_cast( m_queue ), queueType ); + } + + // wrapper function for command vkGetSleepStatusLegacyNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSleepStatusLegacyNV.html + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 Device::getSleepStatusLegacyNV() const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetSleepStatusLegacyNV && "Function requires " ); + + Bool32 lowLatencyMode; + getDispatcher()->vkGetSleepStatusLegacyNV( static_cast( m_device ), reinterpret_cast( &lowLatencyMode ) ); + + return lowLatencyMode; + } + + // wrapper function for command vkShutdownLatencyDeviceLegacyNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkShutdownLatencyDeviceLegacyNV.html + VULKAN_HPP_INLINE void Device::shutdownLatencyLegacyNV() const VULKAN_HPP_NOEXCEPT + { + VULKAN_HPP_ASSERT( getDispatcher()->vkShutdownLatencyDeviceLegacyNV && "Function requires " ); + + getDispatcher()->vkShutdownLatencyDeviceLegacyNV( static_cast( m_device ) ); + } + # if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_metal_objects === @@ -29972,6 +30105,45 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE reinterpret_cast( ¶meters ) ); } + //=== VK_EXT_cooperative_matrix_maintenance1 === + + // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixProperties2EXT.html + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType>::type + PhysicalDevice::getCooperativeMatrixProperties2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & cooperativeMatrixInfo ) const + { + VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixProperties2EXT && + "Function requires " ); + + std::vector properties; + uint32_t propertyCount; + Result result; + do + { + result = static_cast( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( + static_cast( m_physicalDevice ), + reinterpret_cast( &cooperativeMatrixInfo ), + &propertyCount, + nullptr ) ); + if ( ( result == Result::eSuccess ) && propertyCount ) + { + properties.resize( propertyCount ); + result = static_cast( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixProperties2EXT( + static_cast( m_physicalDevice ), + reinterpret_cast( &cooperativeMatrixInfo ), + &propertyCount, + reinterpret_cast( properties.data() ) ) ); + } + } while ( result == Result::eIncomplete ); + VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixProperties2EXT" ); + VULKAN_HPP_ASSERT( propertyCount <= properties.size() ); + if ( propertyCount < properties.size() ) + { + properties.resize( propertyCount ); + } + return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) ); + } + # if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === diff --git a/third_party/vulkan/vulkan_screen.h b/third_party/vulkan/vulkan_screen.h index 15e9d09..460432a 100644 --- a/third_party/vulkan/vulkan_screen.h +++ b/third_party/vulkan/vulkan_screen.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_shared.hpp b/third_party/vulkan/vulkan_shared.hpp index 926f99a..29bd9a6 100644 --- a/third_party/vulkan/vulkan_shared.hpp +++ b/third_party/vulkan/vulkan_shared.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // diff --git a/third_party/vulkan/vulkan_static_assertions.hpp b/third_party/vulkan/vulkan_static_assertions.hpp index c53ae2c..4718049 100644 --- a/third_party/vulkan/vulkan_static_assertions.hpp +++ b/third_party/vulkan/vulkan_static_assertions.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -9166,6 +9165,21 @@ VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "PhysicalDeviceShaderReplicatedCompositesFeaturesEXT is not nothrow_move_constructible!" ); +//=== VK_ARM_tensor_controls === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::TensorRollingBackingCreateInfoARM ) == sizeof( VkTensorRollingBackingCreateInfoARM ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "TensorRollingBackingCreateInfoARM is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::TensorExplicitTilingFormatPropertiesARM ) == sizeof( VkTensorExplicitTilingFormatPropertiesARM ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "TensorExplicitTilingFormatPropertiesARM is not nothrow_move_constructible!" ); + //=== VK_EXT_shader_float8 === VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceShaderFloat8FeaturesEXT ) == sizeof( VkPhysicalDeviceShaderFloat8FeaturesEXT ), @@ -9840,6 +9854,31 @@ VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "PhysicalDevicePipelineOpacityMicromapFeaturesARM is not nothrow_move_constructible!" ); +//=== VK_KHR_video_encode_feedback2 === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceVideoEncodeFeedback2FeaturesKHR ) == + sizeof( VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceVideoEncodeFeedback2FeaturesKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::VideoEncodeFeedback2CapabilitiesKHR ) == sizeof( VkVideoEncodeFeedback2CapabilitiesKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "VideoEncodeFeedback2CapabilitiesKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR ) == + sizeof( VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR is not nothrow_move_constructible!" ); + #if defined( VK_USE_PLATFORM_METAL_EXT ) //=== VK_EXT_external_memory_metal === @@ -10030,6 +10069,23 @@ VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "PhysicalDevicePresentMeteringFeaturesNV is not nothrow_move_constructible!" ); +//=== VK_EXT_multisampled_render_to_swapchain === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT ) == + sizeof( VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::SwapchainFlagsSurfaceCapabilitiesEXT ) == sizeof( VkSwapchainFlagsSurfaceCapabilitiesEXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "SwapchainFlagsSurfaceCapabilitiesEXT is not nothrow_move_constructible!" ); + //=== VK_EXT_fragment_density_map_offset === VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceFragmentDensityMapOffsetFeaturesEXT ) == @@ -10347,6 +10403,29 @@ VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "QueueFamilyOptimalImageTransferGranularityPropertiesKHR is not nothrow_move_constructible!" ); +//=== VK_EXT_cooperative_matrix_maintenance1 === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::CooperativeMatrixProperties2EXT ) == sizeof( VkCooperativeMatrixProperties2EXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "CooperativeMatrixProperties2EXT is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceCooperativeMatrixInfo2EXT ) == sizeof( VkPhysicalDeviceCooperativeMatrixInfo2EXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceCooperativeMatrixInfo2EXT is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT ) == + sizeof( VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT is not nothrow_move_constructible!" ); + //=== VK_EXT_shader_subgroup_partitioned === VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT ) == @@ -10367,6 +10446,61 @@ VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "FormatProperties4KHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::ImageUsageFlags2CreateInfoKHR ) == sizeof( VkImageUsageFlags2CreateInfoKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "ImageUsageFlags2CreateInfoKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::ImageCreateFlags2CreateInfoKHR ) == sizeof( VkImageCreateFlags2CreateInfoKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "ImageCreateFlags2CreateInfoKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::ImageViewUsage2CreateInfoKHR ) == sizeof( VkImageViewUsage2CreateInfoKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "ImageViewUsage2CreateInfoKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceExtendedFlagsFeaturesKHR ) == sizeof( VkPhysicalDeviceExtendedFlagsFeaturesKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceExtendedFlagsFeaturesKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::ImageStencilUsage2CreateInfoKHR ) == sizeof( VkImageStencilUsage2CreateInfoKHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "ImageStencilUsage2CreateInfoKHR is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::SharedPresentSurfaceCapabilities2KHR ) == sizeof( VkSharedPresentSurfaceCapabilities2KHR ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "SharedPresentSurfaceCapabilities2KHR is not nothrow_move_constructible!" ); + +//=== VK_EXT_shader_ocp_microscaling_types === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT ) == + sizeof( VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT is not nothrow_move_constructible!" ); + //=== VK_VALVE_shader_mixed_float_dot_product === VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE ) == @@ -10428,4 +10562,30 @@ VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "PhysicalDevicePrimitiveRestartIndexFeaturesEXT is not nothrow_move_constructible!" ); +//=== VK_EXT_image_tiling_control === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceImageTilingControlFeaturesEXT ) == + sizeof( VkPhysicalDeviceImageTilingControlFeaturesEXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceImageTilingControlFeaturesEXT is not nothrow_move_constructible!" ); + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::ImageTilingControlCreateInfoEXT ) == sizeof( VkImageTilingControlCreateInfoEXT ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "ImageTilingControlCreateInfoEXT is not nothrow_move_constructible!" ); + +//=== VK_NV_cooperative_matrix_decode_vector === + +VULKAN_HPP_STATIC_ASSERT( sizeof( VULKAN_HPP_NAMESPACE::PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV ) == + sizeof( VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV ), + "struct and wrapper have different size!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_standard_layout::value, + "struct wrapper is not a standard layout!" ); +VULKAN_HPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, + "PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV is not nothrow_move_constructible!" ); + #endif diff --git a/third_party/vulkan/vulkan_structs.hpp b/third_party/vulkan/vulkan_structs.hpp index 66e0ccd..a5854f1 100644 --- a/third_party/vulkan/vulkan_structs.hpp +++ b/third_party/vulkan/vulkan_structs.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -4069,7 +4068,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE DeviceSize triangleArrayStride_ = {}, void const * pNext_ = nullptr ) : pNext( pNext_ ) - , usageCountsCount( static_cast( usageCounts_.size() ) ) + , usageCountsCount( static_cast( !usageCounts_.empty() ? usageCounts_.size() : pUsageCounts_.size() ) ) , pUsageCounts( usageCounts_.data() ) , ppUsageCounts( pUsageCounts_.data() ) , data( data_ ) @@ -4077,13 +4076,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE , triangleArrayStride( triangleArrayStride_ ) { # ifdef VULKAN_HPP_NO_EXCEPTIONS - VULKAN_HPP_ASSERT( usageCounts_.empty() || pUsageCounts_.empty() || ( usageCounts_.size() == pUsageCounts_.size() ) ); + VULKAN_HPP_ASSERT( ( !usageCounts_.empty() + !pUsageCounts_.empty() ) <= 1 ); # else - if ( !usageCounts_.empty() && !pUsageCounts_.empty() && ( usageCounts_.size() != pUsageCounts_.size() ) ) + if ( 1 < ( !usageCounts_.empty() + !pUsageCounts_.empty() ) ) { throw LogicError( VULKAN_HPP_NAMESPACE_STRING - "::AccelerationStructureGeometryMicromapDataKHR::AccelerationStructureGeometryMicromapDataKHR: !usageCounts_.empty() && !pUsageCounts_.empty() && ( usageCounts_.size() != pUsageCounts_.size() )" ); + "::AccelerationStructureGeometryMicromapDataKHR::AccelerationStructureGeometryMicromapDataKHR: 1 < ( !usageCounts_.empty() + !pUsageCounts_.empty() )" ); } # endif /*VULKAN_HPP_NO_EXCEPTIONS*/ } @@ -29425,6 +29424,133 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = CooperativeMatrixFlexibleDimensionsPropertiesNV; }; + // wrapper struct for struct VkCooperativeMatrixProperties2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkCooperativeMatrixProperties2EXT.html + struct CooperativeMatrixProperties2EXT + { + using NativeType = VkCooperativeMatrixProperties2EXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eCooperativeMatrixProperties2EXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR CooperativeMatrixProperties2EXT( uint32_t MGranularity_ = {}, + uint32_t NGranularity_ = {}, + uint32_t KGranularity_ = {}, + ComponentTypeKHR AType_ = ComponentTypeKHR::eFloat16, + ComponentTypeKHR BType_ = ComponentTypeKHR::eFloat16, + ComponentTypeKHR CType_ = ComponentTypeKHR::eFloat16, + ComponentTypeKHR ResultType_ = ComponentTypeKHR::eFloat16, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , MGranularity{ MGranularity_ } + , NGranularity{ NGranularity_ } + , KGranularity{ KGranularity_ } + , AType{ AType_ } + , BType{ BType_ } + , CType{ CType_ } + , ResultType{ ResultType_ } + { + } + + VULKAN_HPP_CONSTEXPR CooperativeMatrixProperties2EXT( CooperativeMatrixProperties2EXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + CooperativeMatrixProperties2EXT( VkCooperativeMatrixProperties2EXT const & rhs ) VULKAN_HPP_NOEXCEPT + : CooperativeMatrixProperties2EXT( *reinterpret_cast( &rhs ) ) + { + } + + CooperativeMatrixProperties2EXT & operator=( CooperativeMatrixProperties2EXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + CooperativeMatrixProperties2EXT & operator=( VkCooperativeMatrixProperties2EXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + + operator VkCooperativeMatrixProperties2EXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkCooperativeMatrixProperties2EXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkCooperativeMatrixProperties2EXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkCooperativeMatrixProperties2EXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, MGranularity, NGranularity, KGranularity, AType, BType, CType, ResultType ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( CooperativeMatrixProperties2EXT const & ) const = default; +#else + bool operator==( CooperativeMatrixProperties2EXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( MGranularity == rhs.MGranularity ) && ( NGranularity == rhs.NGranularity ) && + ( KGranularity == rhs.KGranularity ) && ( AType == rhs.AType ) && ( BType == rhs.BType ) && ( CType == rhs.CType ) && + ( ResultType == rhs.ResultType ); +# endif + } + + bool operator!=( CooperativeMatrixProperties2EXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eCooperativeMatrixProperties2EXT; + void * pNext = {}; + uint32_t MGranularity = {}; + uint32_t NGranularity = {}; + uint32_t KGranularity = {}; + ComponentTypeKHR AType = ComponentTypeKHR::eFloat16; + ComponentTypeKHR BType = ComponentTypeKHR::eFloat16; + ComponentTypeKHR CType = ComponentTypeKHR::eFloat16; + ComponentTypeKHR ResultType = ComponentTypeKHR::eFloat16; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = CooperativeMatrixProperties2EXT; + }; +#endif + + template <> + struct CppType + { + using Type = CooperativeMatrixProperties2EXT; + }; + // wrapper struct for struct VkCooperativeMatrixPropertiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkCooperativeMatrixPropertiesKHR.html struct CooperativeMatrixPropertiesKHR @@ -68518,6 +68644,111 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using FormatProperties3KHR = FormatProperties3; + // wrapper struct for struct VkFormatProperties4KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkFormatProperties4KHR.html + struct FormatProperties4KHR + { + using NativeType = VkFormatProperties4KHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eFormatProperties4KHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR FormatProperties4KHR( FormatFeatureFlags4KHR linearTilingFeatures_ = {}, + FormatFeatureFlags4KHR optimalTilingFeatures_ = {}, + FormatFeatureFlags4KHR bufferFeatures_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , linearTilingFeatures{ linearTilingFeatures_ } + , optimalTilingFeatures{ optimalTilingFeatures_ } + , bufferFeatures{ bufferFeatures_ } + { + } + + VULKAN_HPP_CONSTEXPR FormatProperties4KHR( FormatProperties4KHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + FormatProperties4KHR( VkFormatProperties4KHR const & rhs ) VULKAN_HPP_NOEXCEPT + : FormatProperties4KHR( *reinterpret_cast( &rhs ) ) + { + } + + FormatProperties4KHR & operator=( FormatProperties4KHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + FormatProperties4KHR & operator=( VkFormatProperties4KHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + + operator VkFormatProperties4KHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkFormatProperties4KHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkFormatProperties4KHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkFormatProperties4KHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, linearTilingFeatures, optimalTilingFeatures, bufferFeatures ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( FormatProperties4KHR const & ) const = default; +#else + bool operator==( FormatProperties4KHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( linearTilingFeatures == rhs.linearTilingFeatures ) && + ( optimalTilingFeatures == rhs.optimalTilingFeatures ) && ( bufferFeatures == rhs.bufferFeatures ); +# endif + } + + bool operator!=( FormatProperties4KHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eFormatProperties4KHR; + void * pNext = {}; + FormatFeatureFlags4KHR linearTilingFeatures = {}; + FormatFeatureFlags4KHR optimalTilingFeatures = {}; + FormatFeatureFlags4KHR bufferFeatures = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = FormatProperties4KHR; + }; +#endif + + template <> + struct CppType + { + using Type = FormatProperties4KHR; + }; + // wrapper struct for struct VkFragmentShadingRateAttachmentInfoKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkFragmentShadingRateAttachmentInfoKHR.html struct FragmentShadingRateAttachmentInfoKHR @@ -79038,6 +79269,129 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; #endif + // wrapper struct for struct VkImageCreateFlags2CreateInfoKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageCreateFlags2CreateInfoKHR.html + struct ImageCreateFlags2CreateInfoKHR + { + using NativeType = VkImageCreateFlags2CreateInfoKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eImageCreateFlags2CreateInfoKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR ImageCreateFlags2CreateInfoKHR( ImageCreateFlags2KHR flags_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , flags{ flags_ } + { + } + + VULKAN_HPP_CONSTEXPR ImageCreateFlags2CreateInfoKHR( ImageCreateFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + ImageCreateFlags2CreateInfoKHR( VkImageCreateFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : ImageCreateFlags2CreateInfoKHR( *reinterpret_cast( &rhs ) ) + { + } + + ImageCreateFlags2CreateInfoKHR & operator=( ImageCreateFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + ImageCreateFlags2CreateInfoKHR & operator=( VkImageCreateFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 ImageCreateFlags2CreateInfoKHR & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageCreateFlags2CreateInfoKHR && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 ImageCreateFlags2CreateInfoKHR & setFlags( ImageCreateFlags2KHR flags_ ) & VULKAN_HPP_NOEXCEPT + { + flags = flags_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageCreateFlags2CreateInfoKHR && setFlags( ImageCreateFlags2KHR flags_ ) && VULKAN_HPP_NOEXCEPT + { + flags = flags_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkImageCreateFlags2CreateInfoKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageCreateFlags2CreateInfoKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageCreateFlags2CreateInfoKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkImageCreateFlags2CreateInfoKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, flags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( ImageCreateFlags2CreateInfoKHR const & ) const = default; +#else + bool operator==( ImageCreateFlags2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( flags == rhs.flags ); +# endif + } + + bool operator!=( ImageCreateFlags2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eImageCreateFlags2CreateInfoKHR; + void * pNext = {}; + ImageCreateFlags2KHR flags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = ImageCreateFlags2CreateInfoKHR; + }; +#endif + + template <> + struct CppType + { + using Type = ImageCreateFlags2CreateInfoKHR; + }; + // wrapper struct for struct VkImageViewCreateInfo, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageViewCreateInfo.html struct ImageViewCreateInfo { @@ -81329,6 +81683,129 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using ImageSparseMemoryRequirementsInfo2KHR = ImageSparseMemoryRequirementsInfo2; + // wrapper struct for struct VkImageStencilUsage2CreateInfoKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageStencilUsage2CreateInfoKHR.html + struct ImageStencilUsage2CreateInfoKHR + { + using NativeType = VkImageStencilUsage2CreateInfoKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eImageStencilUsage2CreateInfoKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR ImageStencilUsage2CreateInfoKHR( ImageUsageFlags2KHR stencilUsage_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , stencilUsage{ stencilUsage_ } + { + } + + VULKAN_HPP_CONSTEXPR ImageStencilUsage2CreateInfoKHR( ImageStencilUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + ImageStencilUsage2CreateInfoKHR( VkImageStencilUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : ImageStencilUsage2CreateInfoKHR( *reinterpret_cast( &rhs ) ) + { + } + + ImageStencilUsage2CreateInfoKHR & operator=( ImageStencilUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + ImageStencilUsage2CreateInfoKHR & operator=( VkImageStencilUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 ImageStencilUsage2CreateInfoKHR & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageStencilUsage2CreateInfoKHR && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 ImageStencilUsage2CreateInfoKHR & setStencilUsage( ImageUsageFlags2KHR stencilUsage_ ) & VULKAN_HPP_NOEXCEPT + { + stencilUsage = stencilUsage_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageStencilUsage2CreateInfoKHR && setStencilUsage( ImageUsageFlags2KHR stencilUsage_ ) && VULKAN_HPP_NOEXCEPT + { + stencilUsage = stencilUsage_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkImageStencilUsage2CreateInfoKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageStencilUsage2CreateInfoKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageStencilUsage2CreateInfoKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkImageStencilUsage2CreateInfoKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, stencilUsage ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( ImageStencilUsage2CreateInfoKHR const & ) const = default; +#else + bool operator==( ImageStencilUsage2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( stencilUsage == rhs.stencilUsage ); +# endif + } + + bool operator!=( ImageStencilUsage2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eImageStencilUsage2CreateInfoKHR; + void * pNext = {}; + ImageUsageFlags2KHR stencilUsage = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = ImageStencilUsage2CreateInfoKHR; + }; +#endif + + template <> + struct CppType + { + using Type = ImageStencilUsage2CreateInfoKHR; + }; + // wrapper struct for struct VkImageStencilUsageCreateInfo, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageStencilUsageCreateInfo.html struct ImageStencilUsageCreateInfo { @@ -81575,6 +82052,253 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = ImageSwapchainCreateInfoKHR; }; + // wrapper struct for struct VkImageTilingControlCreateInfoEXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageTilingControlCreateInfoEXT.html + struct ImageTilingControlCreateInfoEXT + { + using NativeType = VkImageTilingControlCreateInfoEXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eImageTilingControlCreateInfoEXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR ImageTilingControlCreateInfoEXT( ImageTilingControlEXT tilingControl_ = ImageTilingControlEXT::eDefault, + void const * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , tilingControl{ tilingControl_ } + { + } + + VULKAN_HPP_CONSTEXPR ImageTilingControlCreateInfoEXT( ImageTilingControlCreateInfoEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + ImageTilingControlCreateInfoEXT( VkImageTilingControlCreateInfoEXT const & rhs ) VULKAN_HPP_NOEXCEPT + : ImageTilingControlCreateInfoEXT( *reinterpret_cast( &rhs ) ) + { + } + + ImageTilingControlCreateInfoEXT & operator=( ImageTilingControlCreateInfoEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + ImageTilingControlCreateInfoEXT & operator=( VkImageTilingControlCreateInfoEXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 ImageTilingControlCreateInfoEXT & setPNext( void const * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageTilingControlCreateInfoEXT && setPNext( void const * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 ImageTilingControlCreateInfoEXT & setTilingControl( ImageTilingControlEXT tilingControl_ ) & VULKAN_HPP_NOEXCEPT + { + tilingControl = tilingControl_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageTilingControlCreateInfoEXT && setTilingControl( ImageTilingControlEXT tilingControl_ ) && VULKAN_HPP_NOEXCEPT + { + tilingControl = tilingControl_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkImageTilingControlCreateInfoEXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageTilingControlCreateInfoEXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageTilingControlCreateInfoEXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkImageTilingControlCreateInfoEXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, tilingControl ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( ImageTilingControlCreateInfoEXT const & ) const = default; +#else + bool operator==( ImageTilingControlCreateInfoEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( tilingControl == rhs.tilingControl ); +# endif + } + + bool operator!=( ImageTilingControlCreateInfoEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eImageTilingControlCreateInfoEXT; + void const * pNext = {}; + ImageTilingControlEXT tilingControl = ImageTilingControlEXT::eDefault; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = ImageTilingControlCreateInfoEXT; + }; +#endif + + template <> + struct CppType + { + using Type = ImageTilingControlCreateInfoEXT; + }; + + // wrapper struct for struct VkImageUsageFlags2CreateInfoKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageUsageFlags2CreateInfoKHR.html + struct ImageUsageFlags2CreateInfoKHR + { + using NativeType = VkImageUsageFlags2CreateInfoKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eImageUsageFlags2CreateInfoKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR ImageUsageFlags2CreateInfoKHR( ImageUsageFlags2KHR usage_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , usage{ usage_ } + { + } + + VULKAN_HPP_CONSTEXPR ImageUsageFlags2CreateInfoKHR( ImageUsageFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + ImageUsageFlags2CreateInfoKHR( VkImageUsageFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : ImageUsageFlags2CreateInfoKHR( *reinterpret_cast( &rhs ) ) + { + } + + ImageUsageFlags2CreateInfoKHR & operator=( ImageUsageFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + ImageUsageFlags2CreateInfoKHR & operator=( VkImageUsageFlags2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 ImageUsageFlags2CreateInfoKHR & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageUsageFlags2CreateInfoKHR && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 ImageUsageFlags2CreateInfoKHR & setUsage( ImageUsageFlags2KHR usage_ ) & VULKAN_HPP_NOEXCEPT + { + usage = usage_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageUsageFlags2CreateInfoKHR && setUsage( ImageUsageFlags2KHR usage_ ) && VULKAN_HPP_NOEXCEPT + { + usage = usage_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkImageUsageFlags2CreateInfoKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageUsageFlags2CreateInfoKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageUsageFlags2CreateInfoKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkImageUsageFlags2CreateInfoKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, usage ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( ImageUsageFlags2CreateInfoKHR const & ) const = default; +#else + bool operator==( ImageUsageFlags2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( usage == rhs.usage ); +# endif + } + + bool operator!=( ImageUsageFlags2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eImageUsageFlags2CreateInfoKHR; + void * pNext = {}; + ImageUsageFlags2KHR usage = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = ImageUsageFlags2CreateInfoKHR; + }; +#endif + + template <> + struct CppType + { + using Type = ImageUsageFlags2CreateInfoKHR; + }; + // wrapper struct for struct VkImageViewASTCDecodeModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageViewASTCDecodeModeEXT.html struct ImageViewASTCDecodeModeEXT { @@ -82487,6 +83211,128 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = ImageViewSlicedCreateInfoEXT; }; + // wrapper struct for struct VkImageViewUsage2CreateInfoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageViewUsage2CreateInfoKHR.html + struct ImageViewUsage2CreateInfoKHR + { + using NativeType = VkImageViewUsage2CreateInfoKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eImageViewUsage2CreateInfoKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR ImageViewUsage2CreateInfoKHR( ImageUsageFlags2KHR usage_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , usage{ usage_ } + { + } + + VULKAN_HPP_CONSTEXPR ImageViewUsage2CreateInfoKHR( ImageViewUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + ImageViewUsage2CreateInfoKHR( VkImageViewUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : ImageViewUsage2CreateInfoKHR( *reinterpret_cast( &rhs ) ) + { + } + + ImageViewUsage2CreateInfoKHR & operator=( ImageViewUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + ImageViewUsage2CreateInfoKHR & operator=( VkImageViewUsage2CreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 ImageViewUsage2CreateInfoKHR & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageViewUsage2CreateInfoKHR && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 ImageViewUsage2CreateInfoKHR & setUsage( ImageUsageFlags2KHR usage_ ) & VULKAN_HPP_NOEXCEPT + { + usage = usage_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 ImageViewUsage2CreateInfoKHR && setUsage( ImageUsageFlags2KHR usage_ ) && VULKAN_HPP_NOEXCEPT + { + usage = usage_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkImageViewUsage2CreateInfoKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageViewUsage2CreateInfoKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkImageViewUsage2CreateInfoKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkImageViewUsage2CreateInfoKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, usage ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( ImageViewUsage2CreateInfoKHR const & ) const = default; +#else + bool operator==( ImageViewUsage2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( usage == rhs.usage ); +# endif + } + + bool operator!=( ImageViewUsage2CreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eImageViewUsage2CreateInfoKHR; + void * pNext = {}; + ImageUsageFlags2KHR usage = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = ImageViewUsage2CreateInfoKHR; + }; +#endif + + template <> + struct CppType + { + using Type = ImageViewUsage2CreateInfoKHR; + }; + // wrapper struct for struct VkImageViewUsageCreateInfo, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageViewUsageCreateInfo.html struct ImageViewUsageCreateInfo { @@ -104876,6 +105722,135 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceCooperativeMatrixConversionFeaturesQCOM; }; + // wrapper struct for struct VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.html + struct PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV + { + using NativeType = VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV( Bool32 cooperativeMatrixDecodeVector_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , cooperativeMatrixDecodeVector{ cooperativeMatrixDecodeVector_ } + { + } + + VULKAN_HPP_CONSTEXPR + PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV( PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV( VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV & + operator=( PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV & operator=( VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV & setCooperativeMatrixDecodeVector( Bool32 cooperativeMatrixDecodeVector_ ) & + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixDecodeVector = cooperativeMatrixDecodeVector_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV && + setCooperativeMatrixDecodeVector( Bool32 cooperativeMatrixDecodeVector_ ) && + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixDecodeVector = cooperativeMatrixDecodeVector_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, cooperativeMatrixDecodeVector ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & ) const = default; +#else + bool operator==( PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( cooperativeMatrixDecodeVector == rhs.cooperativeMatrixDecodeVector ); +# endif + } + + bool operator!=( PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + void * pNext = {}; + Bool32 cooperativeMatrixDecodeVector = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV; + }; + // wrapper struct for struct VkPhysicalDeviceCooperativeMatrixFeaturesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceCooperativeMatrixFeaturesKHR.html struct PhysicalDeviceCooperativeMatrixFeaturesKHR @@ -105162,6 +106137,388 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceCooperativeMatrixFeaturesNV; }; + // wrapper struct for struct VkPhysicalDeviceCooperativeMatrixInfo2EXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceCooperativeMatrixInfo2EXT.html + struct PhysicalDeviceCooperativeMatrixInfo2EXT + { + using NativeType = VkPhysicalDeviceCooperativeMatrixInfo2EXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceCooperativeMatrixInfo2EXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceCooperativeMatrixInfo2EXT( ScopeKHR scope_ = ScopeKHR::eDevice, + uint32_t invocations_ = {}, + uint32_t subgroupSize_ = {}, + CooperativeMatrixFlagsEXT flags_ = {}, + void const * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , scope{ scope_ } + , invocations{ invocations_ } + , subgroupSize{ subgroupSize_ } + , flags{ flags_ } + { + } + + VULKAN_HPP_CONSTEXPR PhysicalDeviceCooperativeMatrixInfo2EXT( PhysicalDeviceCooperativeMatrixInfo2EXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceCooperativeMatrixInfo2EXT( VkPhysicalDeviceCooperativeMatrixInfo2EXT const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceCooperativeMatrixInfo2EXT( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceCooperativeMatrixInfo2EXT & operator=( PhysicalDeviceCooperativeMatrixInfo2EXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceCooperativeMatrixInfo2EXT & operator=( VkPhysicalDeviceCooperativeMatrixInfo2EXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT & setPNext( void const * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT && setPNext( void const * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT & setScope( ScopeKHR scope_ ) & VULKAN_HPP_NOEXCEPT + { + scope = scope_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT && setScope( ScopeKHR scope_ ) && VULKAN_HPP_NOEXCEPT + { + scope = scope_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT & setInvocations( uint32_t invocations_ ) & VULKAN_HPP_NOEXCEPT + { + invocations = invocations_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT && setInvocations( uint32_t invocations_ ) && VULKAN_HPP_NOEXCEPT + { + invocations = invocations_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT & setSubgroupSize( uint32_t subgroupSize_ ) & VULKAN_HPP_NOEXCEPT + { + subgroupSize = subgroupSize_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT && setSubgroupSize( uint32_t subgroupSize_ ) && VULKAN_HPP_NOEXCEPT + { + subgroupSize = subgroupSize_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT & setFlags( CooperativeMatrixFlagsEXT flags_ ) & VULKAN_HPP_NOEXCEPT + { + flags = flags_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixInfo2EXT && setFlags( CooperativeMatrixFlagsEXT flags_ ) && VULKAN_HPP_NOEXCEPT + { + flags = flags_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceCooperativeMatrixInfo2EXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixInfo2EXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixInfo2EXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixInfo2EXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, scope, invocations, subgroupSize, flags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceCooperativeMatrixInfo2EXT const & ) const = default; +#else + bool operator==( PhysicalDeviceCooperativeMatrixInfo2EXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( scope == rhs.scope ) && ( invocations == rhs.invocations ) && + ( subgroupSize == rhs.subgroupSize ) && ( flags == rhs.flags ); +# endif + } + + bool operator!=( PhysicalDeviceCooperativeMatrixInfo2EXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceCooperativeMatrixInfo2EXT; + void const * pNext = {}; + ScopeKHR scope = ScopeKHR::eDevice; + uint32_t invocations = {}; + uint32_t subgroupSize = {}; + CooperativeMatrixFlagsEXT flags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceCooperativeMatrixInfo2EXT; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceCooperativeMatrixInfo2EXT; + }; + + // wrapper struct for struct VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT.html + struct PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT + { + using NativeType = VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT( Bool32 cooperativeMatrixProperties2_ = {}, + Bool32 cooperativeMatrixReductions_ = {}, + Bool32 cooperativeMatrixConversions_ = {}, + Bool32 cooperativeMatrixPerElementOperations_ = {}, + Bool32 cooperativeMatrixGetCoordinate_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , cooperativeMatrixProperties2{ cooperativeMatrixProperties2_ } + , cooperativeMatrixReductions{ cooperativeMatrixReductions_ } + , cooperativeMatrixConversions{ cooperativeMatrixConversions_ } + , cooperativeMatrixPerElementOperations{ cooperativeMatrixPerElementOperations_ } + , cooperativeMatrixGetCoordinate{ cooperativeMatrixGetCoordinate_ } + { + } + + VULKAN_HPP_CONSTEXPR PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT( PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & rhs ) + VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT( VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & + operator=( PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & + operator=( VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & setCooperativeMatrixProperties2( Bool32 cooperativeMatrixProperties2_ ) & + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixProperties2 = cooperativeMatrixProperties2_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT && setCooperativeMatrixProperties2( Bool32 cooperativeMatrixProperties2_ ) && + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixProperties2 = cooperativeMatrixProperties2_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & setCooperativeMatrixReductions( Bool32 cooperativeMatrixReductions_ ) & + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixReductions = cooperativeMatrixReductions_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT && setCooperativeMatrixReductions( Bool32 cooperativeMatrixReductions_ ) && + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixReductions = cooperativeMatrixReductions_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & setCooperativeMatrixConversions( Bool32 cooperativeMatrixConversions_ ) & + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixConversions = cooperativeMatrixConversions_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT && setCooperativeMatrixConversions( Bool32 cooperativeMatrixConversions_ ) && + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixConversions = cooperativeMatrixConversions_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & + setCooperativeMatrixPerElementOperations( Bool32 cooperativeMatrixPerElementOperations_ ) & + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixPerElementOperations = cooperativeMatrixPerElementOperations_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT && + setCooperativeMatrixPerElementOperations( Bool32 cooperativeMatrixPerElementOperations_ ) && + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixPerElementOperations = cooperativeMatrixPerElementOperations_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT & + setCooperativeMatrixGetCoordinate( Bool32 cooperativeMatrixGetCoordinate_ ) & + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixGetCoordinate = cooperativeMatrixGetCoordinate_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT && + setCooperativeMatrixGetCoordinate( Bool32 cooperativeMatrixGetCoordinate_ ) && + VULKAN_HPP_NOEXCEPT + { + cooperativeMatrixGetCoordinate = cooperativeMatrixGetCoordinate_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, + pNext, + cooperativeMatrixProperties2, + cooperativeMatrixReductions, + cooperativeMatrixConversions, + cooperativeMatrixPerElementOperations, + cooperativeMatrixGetCoordinate ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & ) const = default; +#else + bool operator==( PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( cooperativeMatrixProperties2 == rhs.cooperativeMatrixProperties2 ) && + ( cooperativeMatrixReductions == rhs.cooperativeMatrixReductions ) && ( cooperativeMatrixConversions == rhs.cooperativeMatrixConversions ) && + ( cooperativeMatrixPerElementOperations == rhs.cooperativeMatrixPerElementOperations ) && + ( cooperativeMatrixGetCoordinate == rhs.cooperativeMatrixGetCoordinate ); +# endif + } + + bool operator!=( PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + void * pNext = {}; + Bool32 cooperativeMatrixProperties2 = {}; + Bool32 cooperativeMatrixReductions = {}; + Bool32 cooperativeMatrixConversions = {}; + Bool32 cooperativeMatrixPerElementOperations = {}; + Bool32 cooperativeMatrixGetCoordinate = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT; + }; + // wrapper struct for struct VkPhysicalDeviceCooperativeMatrixPropertiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceCooperativeMatrixPropertiesKHR.html struct PhysicalDeviceCooperativeMatrixPropertiesKHR @@ -114538,6 +115895,129 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceExtendedDynamicStateFeaturesEXT; }; + // wrapper struct for struct VkPhysicalDeviceExtendedFlagsFeaturesKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceExtendedFlagsFeaturesKHR.html + struct PhysicalDeviceExtendedFlagsFeaturesKHR + { + using NativeType = VkPhysicalDeviceExtendedFlagsFeaturesKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceExtendedFlagsFeaturesKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceExtendedFlagsFeaturesKHR( Bool32 extendedFlags_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , extendedFlags{ extendedFlags_ } + { + } + + VULKAN_HPP_CONSTEXPR PhysicalDeviceExtendedFlagsFeaturesKHR( PhysicalDeviceExtendedFlagsFeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceExtendedFlagsFeaturesKHR( VkPhysicalDeviceExtendedFlagsFeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceExtendedFlagsFeaturesKHR( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceExtendedFlagsFeaturesKHR & operator=( PhysicalDeviceExtendedFlagsFeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceExtendedFlagsFeaturesKHR & operator=( VkPhysicalDeviceExtendedFlagsFeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceExtendedFlagsFeaturesKHR & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceExtendedFlagsFeaturesKHR && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceExtendedFlagsFeaturesKHR & setExtendedFlags( Bool32 extendedFlags_ ) & VULKAN_HPP_NOEXCEPT + { + extendedFlags = extendedFlags_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceExtendedFlagsFeaturesKHR && setExtendedFlags( Bool32 extendedFlags_ ) && VULKAN_HPP_NOEXCEPT + { + extendedFlags = extendedFlags_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceExtendedFlagsFeaturesKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceExtendedFlagsFeaturesKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceExtendedFlagsFeaturesKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceExtendedFlagsFeaturesKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, extendedFlags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceExtendedFlagsFeaturesKHR const & ) const = default; +#else + bool operator==( PhysicalDeviceExtendedFlagsFeaturesKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( extendedFlags == rhs.extendedFlags ); +# endif + } + + bool operator!=( PhysicalDeviceExtendedFlagsFeaturesKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceExtendedFlagsFeaturesKHR; + void * pNext = {}; + Bool32 extendedFlags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceExtendedFlagsFeaturesKHR; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceExtendedFlagsFeaturesKHR; + }; + // wrapper struct for struct VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV.html struct PhysicalDeviceExtendedSparseAddressSpaceFeaturesNV @@ -122724,6 +124204,129 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceImageSlicedViewOf3DFeaturesEXT; }; + // wrapper struct for struct VkPhysicalDeviceImageTilingControlFeaturesEXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceImageTilingControlFeaturesEXT.html + struct PhysicalDeviceImageTilingControlFeaturesEXT + { + using NativeType = VkPhysicalDeviceImageTilingControlFeaturesEXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceImageTilingControlFeaturesEXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceImageTilingControlFeaturesEXT( Bool32 imageTilingControl_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , imageTilingControl{ imageTilingControl_ } + { + } + + VULKAN_HPP_CONSTEXPR PhysicalDeviceImageTilingControlFeaturesEXT( PhysicalDeviceImageTilingControlFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceImageTilingControlFeaturesEXT( VkPhysicalDeviceImageTilingControlFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceImageTilingControlFeaturesEXT( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceImageTilingControlFeaturesEXT & operator=( PhysicalDeviceImageTilingControlFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceImageTilingControlFeaturesEXT & operator=( VkPhysicalDeviceImageTilingControlFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceImageTilingControlFeaturesEXT & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceImageTilingControlFeaturesEXT && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceImageTilingControlFeaturesEXT & setImageTilingControl( Bool32 imageTilingControl_ ) & VULKAN_HPP_NOEXCEPT + { + imageTilingControl = imageTilingControl_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceImageTilingControlFeaturesEXT && setImageTilingControl( Bool32 imageTilingControl_ ) && VULKAN_HPP_NOEXCEPT + { + imageTilingControl = imageTilingControl_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceImageTilingControlFeaturesEXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceImageTilingControlFeaturesEXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceImageTilingControlFeaturesEXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceImageTilingControlFeaturesEXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, imageTilingControl ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceImageTilingControlFeaturesEXT const & ) const = default; +#else + bool operator==( PhysicalDeviceImageTilingControlFeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( imageTilingControl == rhs.imageTilingControl ); +# endif + } + + bool operator!=( PhysicalDeviceImageTilingControlFeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceImageTilingControlFeaturesEXT; + void * pNext = {}; + Bool32 imageTilingControl = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceImageTilingControlFeaturesEXT; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceImageTilingControlFeaturesEXT; + }; + // wrapper struct for struct VkPhysicalDeviceImageViewImageFormatInfoEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceImageViewImageFormatInfoEXT.html struct PhysicalDeviceImageViewImageFormatInfoEXT @@ -129935,6 +131538,136 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT; }; + // wrapper struct for struct VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT.html + struct PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT + { + using NativeType = VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT( Bool32 multisampledRenderToSwapchain_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , multisampledRenderToSwapchain{ multisampledRenderToSwapchain_ } + { + } + + VULKAN_HPP_CONSTEXPR PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT( PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & rhs ) + VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT( VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT & + operator=( PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT & + operator=( VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT & setMultisampledRenderToSwapchain( Bool32 multisampledRenderToSwapchain_ ) & + VULKAN_HPP_NOEXCEPT + { + multisampledRenderToSwapchain = multisampledRenderToSwapchain_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT && + setMultisampledRenderToSwapchain( Bool32 multisampledRenderToSwapchain_ ) && + VULKAN_HPP_NOEXCEPT + { + multisampledRenderToSwapchain = multisampledRenderToSwapchain_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, multisampledRenderToSwapchain ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & ) const = default; +#else + bool operator==( PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( multisampledRenderToSwapchain == rhs.multisampledRenderToSwapchain ); +# endif + } + + bool operator!=( PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + void * pNext = {}; + Bool32 multisampledRenderToSwapchain = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT; + }; + // wrapper struct for struct VkPhysicalDeviceMultiviewFeatures, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceMultiviewFeatures.html struct PhysicalDeviceMultiviewFeatures @@ -147267,6 +149000,180 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceShaderMultipleWaitQueuesPropertiesQCOM; }; + // wrapper struct for struct VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT.html + struct PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT + { + using NativeType = VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceShaderOcpMicroscalingTypesFeaturesEXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT( Bool32 shaderFloat4_ = {}, + Bool32 shaderFloat6_ = {}, + Bool32 shaderFloat8UnsignedE8M0_ = {}, + Bool32 shaderMXInt8_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , shaderFloat4{ shaderFloat4_ } + , shaderFloat6{ shaderFloat6_ } + , shaderFloat8UnsignedE8M0{ shaderFloat8UnsignedE8M0_ } + , shaderMXInt8{ shaderMXInt8_ } + { + } + + VULKAN_HPP_CONSTEXPR + PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT( PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT( VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & + operator=( PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & operator=( VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & setShaderFloat4( Bool32 shaderFloat4_ ) & VULKAN_HPP_NOEXCEPT + { + shaderFloat4 = shaderFloat4_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT && setShaderFloat4( Bool32 shaderFloat4_ ) && VULKAN_HPP_NOEXCEPT + { + shaderFloat4 = shaderFloat4_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & setShaderFloat6( Bool32 shaderFloat6_ ) & VULKAN_HPP_NOEXCEPT + { + shaderFloat6 = shaderFloat6_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT && setShaderFloat6( Bool32 shaderFloat6_ ) && VULKAN_HPP_NOEXCEPT + { + shaderFloat6 = shaderFloat6_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & setShaderFloat8UnsignedE8M0( Bool32 shaderFloat8UnsignedE8M0_ ) & + VULKAN_HPP_NOEXCEPT + { + shaderFloat8UnsignedE8M0 = shaderFloat8UnsignedE8M0_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT && setShaderFloat8UnsignedE8M0( Bool32 shaderFloat8UnsignedE8M0_ ) && + VULKAN_HPP_NOEXCEPT + { + shaderFloat8UnsignedE8M0 = shaderFloat8UnsignedE8M0_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT & setShaderMXInt8( Bool32 shaderMXInt8_ ) & VULKAN_HPP_NOEXCEPT + { + shaderMXInt8 = shaderMXInt8_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT && setShaderMXInt8( Bool32 shaderMXInt8_ ) && VULKAN_HPP_NOEXCEPT + { + shaderMXInt8 = shaderMXInt8_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, shaderFloat4, shaderFloat6, shaderFloat8UnsignedE8M0, shaderMXInt8 ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & ) const = default; +#else + bool operator==( PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( shaderFloat4 == rhs.shaderFloat4 ) && ( shaderFloat6 == rhs.shaderFloat6 ) && + ( shaderFloat8UnsignedE8M0 == rhs.shaderFloat8UnsignedE8M0 ) && ( shaderMXInt8 == rhs.shaderMXInt8 ); +# endif + } + + bool operator!=( PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceShaderOcpMicroscalingTypesFeaturesEXT; + void * pNext = {}; + Bool32 shaderFloat4 = {}; + Bool32 shaderFloat6 = {}; + Bool32 shaderFloat8UnsignedE8M0 = {}; + Bool32 shaderMXInt8 = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceShaderOCPMicroscalingTypesFeaturesEXT; + }; + // wrapper struct for struct VkPhysicalDeviceShaderObjectFeaturesEXT, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceShaderObjectFeaturesEXT.html struct PhysicalDeviceShaderObjectFeaturesEXT @@ -154823,6 +156730,130 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = PhysicalDeviceVideoEncodeAV1FeaturesKHR; }; + // wrapper struct for struct VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR.html + struct PhysicalDeviceVideoEncodeFeedback2FeaturesKHR + { + using NativeType = VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::ePhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR PhysicalDeviceVideoEncodeFeedback2FeaturesKHR( Bool32 videoEncodeFeedback2_ = {}, void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , videoEncodeFeedback2{ videoEncodeFeedback2_ } + { + } + + VULKAN_HPP_CONSTEXPR + PhysicalDeviceVideoEncodeFeedback2FeaturesKHR( PhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + PhysicalDeviceVideoEncodeFeedback2FeaturesKHR( VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : PhysicalDeviceVideoEncodeFeedback2FeaturesKHR( *reinterpret_cast( &rhs ) ) + { + } + + PhysicalDeviceVideoEncodeFeedback2FeaturesKHR & operator=( PhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + PhysicalDeviceVideoEncodeFeedback2FeaturesKHR & operator=( VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceVideoEncodeFeedback2FeaturesKHR & setPNext( void * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceVideoEncodeFeedback2FeaturesKHR && setPNext( void * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceVideoEncodeFeedback2FeaturesKHR & setVideoEncodeFeedback2( Bool32 videoEncodeFeedback2_ ) & VULKAN_HPP_NOEXCEPT + { + videoEncodeFeedback2 = videoEncodeFeedback2_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 PhysicalDeviceVideoEncodeFeedback2FeaturesKHR && setVideoEncodeFeedback2( Bool32 videoEncodeFeedback2_ ) && VULKAN_HPP_NOEXCEPT + { + videoEncodeFeedback2 = videoEncodeFeedback2_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkPhysicalDeviceVideoEncodeFeedback2FeaturesKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, videoEncodeFeedback2 ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( PhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & ) const = default; +#else + bool operator==( PhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( videoEncodeFeedback2 == rhs.videoEncodeFeedback2 ); +# endif + } + + bool operator!=( PhysicalDeviceVideoEncodeFeedback2FeaturesKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::ePhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + void * pNext = {}; + Bool32 videoEncodeFeedback2 = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = PhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + }; +#endif + + template <> + struct CppType + { + using Type = PhysicalDeviceVideoEncodeFeedback2FeaturesKHR; + }; + // wrapper struct for struct VkPhysicalDeviceVideoEncodeIntraRefreshFeaturesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDeviceVideoEncodeIntraRefreshFeaturesKHR.html struct PhysicalDeviceVideoEncodeIntraRefreshFeaturesKHR @@ -173216,6 +175247,157 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = QueryPoolVideoEncodeFeedbackCreateInfoKHR; }; + // wrapper struct for struct VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR.html + struct QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR + { + using NativeType = VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR( uint32_t maxPerPartitionFeedbackEntries_ = {}, + VideoEncodePerPartitionFeedbackFlagsKHR perPartitionEncodeFeedbackFlags_ = {}, + void const * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , maxPerPartitionFeedbackEntries{ maxPerPartitionFeedbackEntries_ } + , perPartitionEncodeFeedbackFlags{ perPartitionEncodeFeedbackFlags_ } + { + } + + VULKAN_HPP_CONSTEXPR + QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR( QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR( VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR( *reinterpret_cast( &rhs ) ) + { + } + + QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR & + operator=( QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR & operator=( VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR & setPNext( void const * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR && setPNext( void const * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR & + setMaxPerPartitionFeedbackEntries( uint32_t maxPerPartitionFeedbackEntries_ ) & + VULKAN_HPP_NOEXCEPT + { + maxPerPartitionFeedbackEntries = maxPerPartitionFeedbackEntries_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR && + setMaxPerPartitionFeedbackEntries( uint32_t maxPerPartitionFeedbackEntries_ ) && + VULKAN_HPP_NOEXCEPT + { + maxPerPartitionFeedbackEntries = maxPerPartitionFeedbackEntries_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR & + setPerPartitionEncodeFeedbackFlags( VideoEncodePerPartitionFeedbackFlagsKHR perPartitionEncodeFeedbackFlags_ ) & + VULKAN_HPP_NOEXCEPT + { + perPartitionEncodeFeedbackFlags = perPartitionEncodeFeedbackFlags_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR && + setPerPartitionEncodeFeedbackFlags( VideoEncodePerPartitionFeedbackFlagsKHR perPartitionEncodeFeedbackFlags_ ) && + VULKAN_HPP_NOEXCEPT + { + perPartitionEncodeFeedbackFlags = perPartitionEncodeFeedbackFlags_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, maxPerPartitionFeedbackEntries, perPartitionEncodeFeedbackFlags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & ) const = default; +#else + bool operator==( QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( maxPerPartitionFeedbackEntries == rhs.maxPerPartitionFeedbackEntries ) && + ( perPartitionEncodeFeedbackFlags == rhs.perPartitionEncodeFeedbackFlags ); +# endif + } + + bool operator!=( QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + void const * pNext = {}; + uint32_t maxPerPartitionFeedbackEntries = {}; + VideoEncodePerPartitionFeedbackFlagsKHR perPartitionEncodeFeedbackFlags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + }; +#endif + + template <> + struct CppType + { + using Type = QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR; + }; + // wrapper struct for struct VkQueueFamilyCheckpointProperties2NV, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkQueueFamilyCheckpointProperties2NV.html struct QueueFamilyCheckpointProperties2NV @@ -188772,6 +190954,104 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE }; #endif + // wrapper struct for struct VkSharedPresentSurfaceCapabilities2KHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkSharedPresentSurfaceCapabilities2KHR.html + struct SharedPresentSurfaceCapabilities2KHR + { + using NativeType = VkSharedPresentSurfaceCapabilities2KHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eSharedPresentSurfaceCapabilities2KHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR SharedPresentSurfaceCapabilities2KHR( ImageUsageFlags2KHR sharedPresentSupportedUsageFlags_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , sharedPresentSupportedUsageFlags{ sharedPresentSupportedUsageFlags_ } + { + } + + VULKAN_HPP_CONSTEXPR SharedPresentSurfaceCapabilities2KHR( SharedPresentSurfaceCapabilities2KHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + SharedPresentSurfaceCapabilities2KHR( VkSharedPresentSurfaceCapabilities2KHR const & rhs ) VULKAN_HPP_NOEXCEPT + : SharedPresentSurfaceCapabilities2KHR( *reinterpret_cast( &rhs ) ) + { + } + + SharedPresentSurfaceCapabilities2KHR & operator=( SharedPresentSurfaceCapabilities2KHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + SharedPresentSurfaceCapabilities2KHR & operator=( VkSharedPresentSurfaceCapabilities2KHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + + operator VkSharedPresentSurfaceCapabilities2KHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkSharedPresentSurfaceCapabilities2KHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkSharedPresentSurfaceCapabilities2KHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkSharedPresentSurfaceCapabilities2KHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, sharedPresentSupportedUsageFlags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( SharedPresentSurfaceCapabilities2KHR const & ) const = default; +#else + bool operator==( SharedPresentSurfaceCapabilities2KHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( sharedPresentSupportedUsageFlags == rhs.sharedPresentSupportedUsageFlags ); +# endif + } + + bool operator!=( SharedPresentSurfaceCapabilities2KHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eSharedPresentSurfaceCapabilities2KHR; + void * pNext = {}; + ImageUsageFlags2KHR sharedPresentSupportedUsageFlags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = SharedPresentSurfaceCapabilities2KHR; + }; +#endif + + template <> + struct CppType + { + using Type = SharedPresentSurfaceCapabilities2KHR; + }; + // wrapper struct for struct VkSharedPresentSurfaceCapabilitiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkSharedPresentSurfaceCapabilitiesKHR.html struct SharedPresentSurfaceCapabilitiesKHR @@ -193718,6 +195998,104 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = SwapchainDisplayNativeHdrCreateInfoAMD; }; + // wrapper struct for struct VkSwapchainFlagsSurfaceCapabilitiesEXT, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkSwapchainFlagsSurfaceCapabilitiesEXT.html + struct SwapchainFlagsSurfaceCapabilitiesEXT + { + using NativeType = VkSwapchainFlagsSurfaceCapabilitiesEXT; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eSwapchainFlagsSurfaceCapabilitiesEXT; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR SwapchainFlagsSurfaceCapabilitiesEXT( SwapchainCreateFlagsKHR swapchainSupportedFlags_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , swapchainSupportedFlags{ swapchainSupportedFlags_ } + { + } + + VULKAN_HPP_CONSTEXPR SwapchainFlagsSurfaceCapabilitiesEXT( SwapchainFlagsSurfaceCapabilitiesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + SwapchainFlagsSurfaceCapabilitiesEXT( VkSwapchainFlagsSurfaceCapabilitiesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + : SwapchainFlagsSurfaceCapabilitiesEXT( *reinterpret_cast( &rhs ) ) + { + } + + SwapchainFlagsSurfaceCapabilitiesEXT & operator=( SwapchainFlagsSurfaceCapabilitiesEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + SwapchainFlagsSurfaceCapabilitiesEXT & operator=( VkSwapchainFlagsSurfaceCapabilitiesEXT const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + + operator VkSwapchainFlagsSurfaceCapabilitiesEXT const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkSwapchainFlagsSurfaceCapabilitiesEXT &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkSwapchainFlagsSurfaceCapabilitiesEXT const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkSwapchainFlagsSurfaceCapabilitiesEXT *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, swapchainSupportedFlags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( SwapchainFlagsSurfaceCapabilitiesEXT const & ) const = default; +#else + bool operator==( SwapchainFlagsSurfaceCapabilitiesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( swapchainSupportedFlags == rhs.swapchainSupportedFlags ); +# endif + } + + bool operator!=( SwapchainFlagsSurfaceCapabilitiesEXT const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eSwapchainFlagsSurfaceCapabilitiesEXT; + void * pNext = {}; + SwapchainCreateFlagsKHR swapchainSupportedFlags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = SwapchainFlagsSurfaceCapabilitiesEXT; + }; +#endif + + template <> + struct CppType + { + using Type = SwapchainFlagsSurfaceCapabilitiesEXT; + }; + // wrapper struct for struct VkSwapchainLatencyCreateInfoNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSwapchainLatencyCreateInfoNV.html struct SwapchainLatencyCreateInfoNV { @@ -195297,6 +197675,131 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = TensorDependencyInfoARM; }; + // wrapper struct for struct VkTensorExplicitTilingFormatPropertiesARM, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorExplicitTilingFormatPropertiesARM.html + struct TensorExplicitTilingFormatPropertiesARM + { + using NativeType = VkTensorExplicitTilingFormatPropertiesARM; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eTensorExplicitTilingFormatPropertiesARM; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR TensorExplicitTilingFormatPropertiesARM( FormatFeatureFlags2 brick16TilingTensorFeatures_ = {}, + FormatFeatureFlags2 brick8TilingTensorFeatures_ = {}, + FormatFeatureFlags2 brick4TilingTensorFeatures_ = {}, + FormatFeatureFlags2 blockUTilingTensorFeatures_ = {}, + FormatFeatureFlags2 blockU64kTilingTensorFeatures_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , brick16TilingTensorFeatures{ brick16TilingTensorFeatures_ } + , brick8TilingTensorFeatures{ brick8TilingTensorFeatures_ } + , brick4TilingTensorFeatures{ brick4TilingTensorFeatures_ } + , blockUTilingTensorFeatures{ blockUTilingTensorFeatures_ } + , blockU64kTilingTensorFeatures{ blockU64kTilingTensorFeatures_ } + { + } + + VULKAN_HPP_CONSTEXPR TensorExplicitTilingFormatPropertiesARM( TensorExplicitTilingFormatPropertiesARM const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + TensorExplicitTilingFormatPropertiesARM( VkTensorExplicitTilingFormatPropertiesARM const & rhs ) VULKAN_HPP_NOEXCEPT + : TensorExplicitTilingFormatPropertiesARM( *reinterpret_cast( &rhs ) ) + { + } + + TensorExplicitTilingFormatPropertiesARM & operator=( TensorExplicitTilingFormatPropertiesARM const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + TensorExplicitTilingFormatPropertiesARM & operator=( VkTensorExplicitTilingFormatPropertiesARM const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + + operator VkTensorExplicitTilingFormatPropertiesARM const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkTensorExplicitTilingFormatPropertiesARM &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkTensorExplicitTilingFormatPropertiesARM const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkTensorExplicitTilingFormatPropertiesARM *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, + pNext, + brick16TilingTensorFeatures, + brick8TilingTensorFeatures, + brick4TilingTensorFeatures, + blockUTilingTensorFeatures, + blockU64kTilingTensorFeatures ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( TensorExplicitTilingFormatPropertiesARM const & ) const = default; +#else + bool operator==( TensorExplicitTilingFormatPropertiesARM const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( brick16TilingTensorFeatures == rhs.brick16TilingTensorFeatures ) && + ( brick8TilingTensorFeatures == rhs.brick8TilingTensorFeatures ) && ( brick4TilingTensorFeatures == rhs.brick4TilingTensorFeatures ) && + ( blockUTilingTensorFeatures == rhs.blockUTilingTensorFeatures ) && ( blockU64kTilingTensorFeatures == rhs.blockU64kTilingTensorFeatures ); +# endif + } + + bool operator!=( TensorExplicitTilingFormatPropertiesARM const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eTensorExplicitTilingFormatPropertiesARM; + void * pNext = {}; + FormatFeatureFlags2 brick16TilingTensorFeatures = {}; + FormatFeatureFlags2 brick8TilingTensorFeatures = {}; + FormatFeatureFlags2 brick4TilingTensorFeatures = {}; + FormatFeatureFlags2 blockUTilingTensorFeatures = {}; + FormatFeatureFlags2 blockU64kTilingTensorFeatures = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = TensorExplicitTilingFormatPropertiesARM; + }; +#endif + + template <> + struct CppType + { + using Type = TensorExplicitTilingFormatPropertiesARM; + }; + // wrapper struct for struct VkTensorFormatPropertiesARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorFormatPropertiesARM.html struct TensorFormatPropertiesARM { @@ -195521,6 +198024,136 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = TensorMemoryRequirementsInfoARM; }; + // wrapper struct for struct VkTensorRollingBackingCreateInfoARM, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorRollingBackingCreateInfoARM.html + struct TensorRollingBackingCreateInfoARM + { + using NativeType = VkTensorRollingBackingCreateInfoARM; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eTensorRollingBackingCreateInfoARM; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR_14 + TensorRollingBackingCreateInfoARM( std::array const & wraps_ = {}, + void const * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , wraps{ wraps_ } + { + } + + VULKAN_HPP_CONSTEXPR_14 TensorRollingBackingCreateInfoARM( TensorRollingBackingCreateInfoARM const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + TensorRollingBackingCreateInfoARM( VkTensorRollingBackingCreateInfoARM const & rhs ) VULKAN_HPP_NOEXCEPT + : TensorRollingBackingCreateInfoARM( *reinterpret_cast( &rhs ) ) + { + } + + TensorRollingBackingCreateInfoARM & operator=( TensorRollingBackingCreateInfoARM const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + TensorRollingBackingCreateInfoARM & operator=( VkTensorRollingBackingCreateInfoARM const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + +#if !defined( VULKAN_HPP_NO_SETTERS ) && !defined( VULKAN_HPP_NO_STRUCT_SETTERS ) + VULKAN_HPP_CONSTEXPR_14 TensorRollingBackingCreateInfoARM & setPNext( void const * pNext_ ) & VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 TensorRollingBackingCreateInfoARM && setPNext( void const * pNext_ ) && VULKAN_HPP_NOEXCEPT + { + pNext = pNext_; + return std::move( *this ); + } + + VULKAN_HPP_CONSTEXPR_14 TensorRollingBackingCreateInfoARM & + setWraps( std::array wraps_ ) & + VULKAN_HPP_NOEXCEPT + { + wraps = wraps_; + return *this; + } + + VULKAN_HPP_CONSTEXPR_14 TensorRollingBackingCreateInfoARM && + setWraps( std::array wraps_ ) && + VULKAN_HPP_NOEXCEPT + { + wraps = wraps_; + return std::move( *this ); + } +#endif /*VULKAN_HPP_NO_SETTERS*/ + + operator VkTensorRollingBackingCreateInfoARM const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkTensorRollingBackingCreateInfoARM &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkTensorRollingBackingCreateInfoARM const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkTensorRollingBackingCreateInfoARM *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple const &> + reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, wraps ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( TensorRollingBackingCreateInfoARM const & ) const = default; +#else + bool operator==( TensorRollingBackingCreateInfoARM const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( wraps == rhs.wraps ); +# endif + } + + bool operator!=( TensorRollingBackingCreateInfoARM const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eTensorRollingBackingCreateInfoARM; + void const * pNext = {}; + ArrayWrapper1D wraps = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = TensorRollingBackingCreateInfoARM; + }; +#endif + + template <> + struct CppType + { + using Type = TensorRollingBackingCreateInfoARM; + }; + // wrapper struct for struct VkTensorViewCaptureDescriptorDataInfoARM, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorViewCaptureDescriptorDataInfoARM.html struct TensorViewCaptureDescriptorDataInfoARM @@ -205418,6 +208051,108 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE using Type = VideoEncodeCapabilitiesKHR; }; + // wrapper struct for struct VkVideoEncodeFeedback2CapabilitiesKHR, see + // https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoEncodeFeedback2CapabilitiesKHR.html + struct VideoEncodeFeedback2CapabilitiesKHR + { + using NativeType = VkVideoEncodeFeedback2CapabilitiesKHR; + + static bool const allowDuplicate = false; + static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eVideoEncodeFeedback2CapabilitiesKHR; + +#if !defined( VULKAN_HPP_NO_CONSTRUCTORS ) && !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS ) + VULKAN_HPP_CONSTEXPR VideoEncodeFeedback2CapabilitiesKHR( uint32_t maxPerPartitionFeedbackEntries_ = {}, + VideoEncodePerPartitionFeedbackFlagsKHR supportedPerPartitionEncodeFeedbackFlags_ = {}, + void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT + : pNext{ pNext_ } + , maxPerPartitionFeedbackEntries{ maxPerPartitionFeedbackEntries_ } + , supportedPerPartitionEncodeFeedbackFlags{ supportedPerPartitionEncodeFeedbackFlags_ } + { + } + + VULKAN_HPP_CONSTEXPR VideoEncodeFeedback2CapabilitiesKHR( VideoEncodeFeedback2CapabilitiesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; + + VideoEncodeFeedback2CapabilitiesKHR( VkVideoEncodeFeedback2CapabilitiesKHR const & rhs ) VULKAN_HPP_NOEXCEPT + : VideoEncodeFeedback2CapabilitiesKHR( *reinterpret_cast( &rhs ) ) + { + } + + VideoEncodeFeedback2CapabilitiesKHR & operator=( VideoEncodeFeedback2CapabilitiesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default; +#endif /*VULKAN_HPP_NO_CONSTRUCTORS*/ + + VideoEncodeFeedback2CapabilitiesKHR & operator=( VkVideoEncodeFeedback2CapabilitiesKHR const & rhs ) VULKAN_HPP_NOEXCEPT + { + *this = *reinterpret_cast( &rhs ); + return *this; + } + + operator VkVideoEncodeFeedback2CapabilitiesKHR const &() const VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkVideoEncodeFeedback2CapabilitiesKHR &() VULKAN_HPP_NOEXCEPT + { + return *reinterpret_cast( this ); + } + + operator VkVideoEncodeFeedback2CapabilitiesKHR const *() const VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + + operator VkVideoEncodeFeedback2CapabilitiesKHR *() VULKAN_HPP_NOEXCEPT + { + return reinterpret_cast( this ); + } + +#if defined( VULKAN_HPP_USE_REFLECT ) + std::tuple reflect() const VULKAN_HPP_NOEXCEPT + { + return std::tie( sType, pNext, maxPerPartitionFeedbackEntries, supportedPerPartitionEncodeFeedbackFlags ); + } +#endif + +#if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR ) + auto operator<=>( VideoEncodeFeedback2CapabilitiesKHR const & ) const = default; +#else + bool operator==( VideoEncodeFeedback2CapabilitiesKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { +# if defined( VULKAN_HPP_USE_REFLECT ) + return this->reflect() == rhs.reflect(); +# else + return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( maxPerPartitionFeedbackEntries == rhs.maxPerPartitionFeedbackEntries ) && + ( supportedPerPartitionEncodeFeedbackFlags == rhs.supportedPerPartitionEncodeFeedbackFlags ); +# endif + } + + bool operator!=( VideoEncodeFeedback2CapabilitiesKHR const & rhs ) const VULKAN_HPP_NOEXCEPT + { + return !operator==( rhs ); + } +#endif + + public: + StructureType sType = StructureType::eVideoEncodeFeedback2CapabilitiesKHR; + void * pNext = {}; + uint32_t maxPerPartitionFeedbackEntries = {}; + VideoEncodePerPartitionFeedbackFlagsKHR supportedPerPartitionEncodeFeedbackFlags = {}; + }; + +#if 20 <= VULKAN_HPP_CPP_VERSION + template <> + struct CppType + { + using Type = VideoEncodeFeedback2CapabilitiesKHR; + }; +#endif + + template <> + struct CppType + { + using Type = VideoEncodeFeedback2CapabilitiesKHR; + }; + // wrapper struct for struct VkVideoEncodeH264CapabilitiesKHR, see // https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoEncodeH264CapabilitiesKHR.html struct VideoEncodeH264CapabilitiesKHR diff --git a/third_party/vulkan/vulkan_to_string.hpp b/third_party/vulkan/vulkan_to_string.hpp index b23a3c9..194ea1d 100644 --- a/third_party/vulkan/vulkan_to_string.hpp +++ b/third_party/vulkan/vulkan_to_string.hpp @@ -1,5 +1,4 @@ // Copyright 2015-2026 The Khronos Group Inc. -// // SPDX-License-Identifier: Apache-2.0 OR MIT // @@ -1986,6 +1985,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE result += " VideoEncodeQuantizationDeltaMapKHR |"; if ( value & FormatFeatureFlagBits2::eVideoEncodeEmphasisMapKHR ) result += " VideoEncodeEmphasisMapKHR |"; + if ( value & FormatFeatureFlagBits2::eSampledImageFilterLinear2DIMG ) + result += " SampledImageFilterLinear2DIMG |"; if ( value & FormatFeatureFlagBits2::eDepthCopyOnComputeQueueKHR ) result += " DepthCopyOnComputeQueueKHR |"; if ( value & FormatFeatureFlagBits2::eDepthCopyOnTransferQueueKHR ) @@ -2329,6 +2330,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE result += " PresentWait2 |"; if ( value & SwapchainCreateFlagBitsKHR::eDeferredMemoryAllocation ) result += " DeferredMemoryAllocation |"; + if ( value & SwapchainCreateFlagBitsKHR::eMultisampledRenderToSingleSampledEXT ) + result += " MultisampledRenderToSingleSampledEXT |"; if ( result.size() > 1 ) result.back() = '}'; @@ -3500,6 +3503,20 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE result += " BitstreamBytesWritten |"; if ( value & VideoEncodeFeedbackFlagBitsKHR::eBitstreamHasOverrides ) result += " BitstreamHasOverrides |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::eAverageQuantization ) + result += " AverageQuantization |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::eMinQuantization ) + result += " MinQuantization |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::eMaxQuantization ) + result += " MaxQuantization |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::eIntraPixels ) + result += " IntraPixels |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::eInterPixels ) + result += " InterPixels |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::eSkippedPixels ) + result += " SkippedPixels |"; + if ( value & VideoEncodeFeedbackFlagBitsKHR::ePicturePartitionCount ) + result += " PicturePartitionCount |"; if ( result.size() > 1 ) result.back() = '}'; @@ -4491,6 +4508,25 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } #endif /*VK_USE_PLATFORM_OHOS*/ + //=== VK_KHR_video_encode_feedback2 === + + VULKAN_HPP_INLINE std::string to_string( VideoEncodePerPartitionFeedbackFlagsKHR value ) + { + std::string result = "{"; + if ( value & VideoEncodePerPartitionFeedbackFlagBitsKHR::eStatus ) + result += " Status |"; + if ( value & VideoEncodePerPartitionFeedbackFlagBitsKHR::eBitstreamBufferOffset ) + result += " BitstreamBufferOffset |"; + if ( value & VideoEncodePerPartitionFeedbackFlagBitsKHR::eBitstreamBytesWritten ) + result += " BitstreamBytesWritten |"; + + if ( result.size() > 1 ) + result.back() = '}'; + else + result = "{}"; + return result; + } + //=== VK_ARM_performance_counters_by_region === VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( PerformanceCounterDescriptionFlagsARM ) @@ -4617,6 +4653,21 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE return result; } + //=== VK_EXT_cooperative_matrix_maintenance1 === + + VULKAN_HPP_INLINE std::string to_string( CooperativeMatrixFlagsEXT value ) + { + std::string result = "{"; + if ( value & CooperativeMatrixFlagBitsEXT::eSaturatingAccumulation ) + result += " SaturatingAccumulation |"; + + if ( result.size() > 1 ) + result.back() = '}'; + else + result = "{}"; + return result; + } + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === @@ -4626,6 +4677,127 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } #endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=== VK_KHR_extended_flags === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( FormatFeatureFlags4KHR ) + { + return "{}"; + } + + VULKAN_HPP_INLINE std::string to_string( ImageUsageFlags2KHR value ) + { + std::string result = "{"; + if ( value & ImageUsageFlagBits2KHR::eTransferSrc ) + result += " TransferSrc |"; + if ( value & ImageUsageFlagBits2KHR::eTransferDst ) + result += " TransferDst |"; + if ( value & ImageUsageFlagBits2KHR::eSampled ) + result += " Sampled |"; + if ( value & ImageUsageFlagBits2KHR::eStorage ) + result += " Storage |"; + if ( value & ImageUsageFlagBits2KHR::eColorAttachment ) + result += " ColorAttachment |"; + if ( value & ImageUsageFlagBits2KHR::eDepthStencilAttachment ) + result += " DepthStencilAttachment |"; + if ( value & ImageUsageFlagBits2KHR::eTransientAttachment ) + result += " TransientAttachment |"; + if ( value & ImageUsageFlagBits2KHR::eInputAttachment ) + result += " InputAttachment |"; + if ( value & ImageUsageFlagBits2KHR::eFragmentShadingRateAttachment ) + result += " FragmentShadingRateAttachment |"; + if ( value & ImageUsageFlagBits2KHR::eFragmentDensityMapEXT ) + result += " FragmentDensityMapEXT |"; + if ( value & ImageUsageFlagBits2KHR::eVideoDecodeDst ) + result += " VideoDecodeDst |"; + if ( value & ImageUsageFlagBits2KHR::eVideoDecodeSrc ) + result += " VideoDecodeSrc |"; + if ( value & ImageUsageFlagBits2KHR::eVideoDecodeDpb ) + result += " VideoDecodeDpb |"; + if ( value & ImageUsageFlagBits2KHR::eVideoEncodeDst ) + result += " VideoEncodeDst |"; + if ( value & ImageUsageFlagBits2KHR::eVideoEncodeSrc ) + result += " VideoEncodeSrc |"; + if ( value & ImageUsageFlagBits2KHR::eVideoEncodeDpb ) + result += " VideoEncodeDpb |"; + if ( value & ImageUsageFlagBits2KHR::eInvocationMaskHUAWEI ) + result += " InvocationMaskHUAWEI |"; + if ( value & ImageUsageFlagBits2KHR::eAttachmentFeedbackLoopEXT ) + result += " AttachmentFeedbackLoopEXT |"; + if ( value & ImageUsageFlagBits2KHR::eSampleWeightQCOM ) + result += " SampleWeightQCOM |"; + if ( value & ImageUsageFlagBits2KHR::eSampleBlockMatchQCOM ) + result += " SampleBlockMatchQCOM |"; + if ( value & ImageUsageFlagBits2KHR::eHostTransfer ) + result += " HostTransfer |"; + if ( value & ImageUsageFlagBits2KHR::eTensorAliasingARM ) + result += " TensorAliasingARM |"; + if ( value & ImageUsageFlagBits2KHR::eVideoEncodeQuantizationDeltaMap ) + result += " VideoEncodeQuantizationDeltaMap |"; + if ( value & ImageUsageFlagBits2KHR::eVideoEncodeEmphasisMap ) + result += " VideoEncodeEmphasisMap |"; + if ( value & ImageUsageFlagBits2KHR::eTileMemoryQCOM ) + result += " TileMemoryQCOM |"; + + if ( result.size() > 1 ) + result.back() = '}'; + else + result = "{}"; + return result; + } + + VULKAN_HPP_INLINE std::string to_string( ImageCreateFlags2KHR value ) + { + std::string result = "{"; + if ( value & ImageCreateFlagBits2KHR::eSparseBinding ) + result += " SparseBinding |"; + if ( value & ImageCreateFlagBits2KHR::eSparseResidency ) + result += " SparseResidency |"; + if ( value & ImageCreateFlagBits2KHR::eSparseAliased ) + result += " SparseAliased |"; + if ( value & ImageCreateFlagBits2KHR::eMutableFormat ) + result += " MutableFormat |"; + if ( value & ImageCreateFlagBits2KHR::eCubeCompatible ) + result += " CubeCompatible |"; + if ( value & ImageCreateFlagBits2KHR::eAliasSingleLayerDescriptor ) + result += " AliasSingleLayerDescriptor |"; + if ( value & ImageCreateFlagBits2KHR::e2DArrayCompatible ) + result += " 2DArrayCompatible |"; + if ( value & ImageCreateFlagBits2KHR::eSplitInstanceBindRegions ) + result += " SplitInstanceBindRegions |"; + if ( value & ImageCreateFlagBits2KHR::eBlockTexelViewCompatible ) + result += " BlockTexelViewCompatible |"; + if ( value & ImageCreateFlagBits2KHR::eExtendedUsage ) + result += " ExtendedUsage |"; + if ( value & ImageCreateFlagBits2KHR::eDisjoint ) + result += " Disjoint |"; + if ( value & ImageCreateFlagBits2KHR::eAlias ) + result += " Alias |"; + if ( value & ImageCreateFlagBits2KHR::eProtected ) + result += " Protected |"; + if ( value & ImageCreateFlagBits2KHR::eSampleLocationsCompatibleDepthEXT ) + result += " SampleLocationsCompatibleDepthEXT |"; + if ( value & ImageCreateFlagBits2KHR::eCornerSampledNV ) + result += " CornerSampledNV |"; + if ( value & ImageCreateFlagBits2KHR::eSubsampledEXT ) + result += " SubsampledEXT |"; + if ( value & ImageCreateFlagBits2KHR::eFragmentDensityMapOffsetEXT ) + result += " FragmentDensityMapOffsetEXT |"; + if ( value & ImageCreateFlagBits2KHR::eDescriptorBufferCaptureReplayEXT ) + result += " DescriptorBufferCaptureReplayEXT |"; + if ( value & ImageCreateFlagBits2KHR::e2DViewCompatibleEXT ) + result += " 2DViewCompatibleEXT |"; + if ( value & ImageCreateFlagBits2KHR::eMultisampledRenderToSingleSampledEXT ) + result += " MultisampledRenderToSingleSampledEXT |"; + if ( value & ImageCreateFlagBits2KHR::eVideoProfileIndependent ) + result += " VideoProfileIndependent |"; + + if ( result.size() > 1 ) + result.back() = '}'; + else + result = "{}"; + return result; + } + //======================= //=== ENUMs to_string === //======================= @@ -5873,6 +6045,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case StructureType::ePhysicalDeviceLayeredApiVulkanPropertiesKHR : return "PhysicalDeviceLayeredApiVulkanPropertiesKHR"; case StructureType::ePhysicalDeviceShaderAtomicFloat16VectorFeaturesNV : return "PhysicalDeviceShaderAtomicFloat16VectorFeaturesNV"; case StructureType::ePhysicalDeviceShaderReplicatedCompositesFeaturesEXT : return "PhysicalDeviceShaderReplicatedCompositesFeaturesEXT"; + case StructureType::eTensorExplicitTilingFormatPropertiesARM : return "TensorExplicitTilingFormatPropertiesARM"; + case StructureType::eTensorRollingBackingCreateInfoARM : return "TensorRollingBackingCreateInfoARM"; case StructureType::ePhysicalDeviceShaderFloat8FeaturesEXT : return "PhysicalDeviceShaderFloat8FeaturesEXT"; case StructureType::ePhysicalDeviceRayTracingValidationFeaturesNV : return "PhysicalDeviceRayTracingValidationFeaturesNV"; case StructureType::ePhysicalDeviceClusterAccelerationStructureFeaturesNV : return "PhysicalDeviceClusterAccelerationStructureFeaturesNV"; @@ -5930,12 +6104,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE #if defined( VK_USE_PLATFORM_OHOS ) case StructureType::eSurfaceCreateInfoOHOS: return "SurfaceCreateInfoOHOS"; #endif /*VK_USE_PLATFORM_OHOS*/ - case StructureType::ePhysicalDeviceHdrVividFeaturesHUAWEI : return "PhysicalDeviceHdrVividFeaturesHUAWEI"; - case StructureType::eHdrVividDynamicMetadataHUAWEI : return "HdrVividDynamicMetadataHUAWEI"; - case StructureType::ePhysicalDeviceCooperativeMatrix2FeaturesNV : return "PhysicalDeviceCooperativeMatrix2FeaturesNV"; - case StructureType::eCooperativeMatrixFlexibleDimensionsPropertiesNV : return "CooperativeMatrixFlexibleDimensionsPropertiesNV"; - case StructureType::ePhysicalDeviceCooperativeMatrix2PropertiesNV : return "PhysicalDeviceCooperativeMatrix2PropertiesNV"; - case StructureType::ePhysicalDevicePipelineOpacityMicromapFeaturesARM: return "PhysicalDevicePipelineOpacityMicromapFeaturesARM"; + case StructureType::ePhysicalDeviceHdrVividFeaturesHUAWEI : return "PhysicalDeviceHdrVividFeaturesHUAWEI"; + case StructureType::eHdrVividDynamicMetadataHUAWEI : return "HdrVividDynamicMetadataHUAWEI"; + case StructureType::ePhysicalDeviceCooperativeMatrix2FeaturesNV : return "PhysicalDeviceCooperativeMatrix2FeaturesNV"; + case StructureType::eCooperativeMatrixFlexibleDimensionsPropertiesNV : return "CooperativeMatrixFlexibleDimensionsPropertiesNV"; + case StructureType::ePhysicalDeviceCooperativeMatrix2PropertiesNV : return "PhysicalDeviceCooperativeMatrix2PropertiesNV"; + case StructureType::ePhysicalDevicePipelineOpacityMicromapFeaturesARM : return "PhysicalDevicePipelineOpacityMicromapFeaturesARM"; + case StructureType::ePhysicalDeviceVideoEncodeFeedback2FeaturesKHR : return "PhysicalDeviceVideoEncodeFeedback2FeaturesKHR"; + case StructureType::eVideoEncodeFeedback2CapabilitiesKHR : return "VideoEncodeFeedback2CapabilitiesKHR"; + case StructureType::eQueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR: return "QueryPoolVideoEncodePerPartitionFeedbackCreateInfoKHR"; #if defined( VK_USE_PLATFORM_METAL_EXT ) case StructureType::eImportMemoryMetalHandleInfoEXT: return "ImportMemoryMetalHandleInfoEXT"; case StructureType::eMemoryMetalHandlePropertiesEXT: return "MemoryMetalHandlePropertiesEXT"; @@ -5960,6 +6137,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case StructureType::ePhysicalDeviceRobustness2PropertiesKHR : return "PhysicalDeviceRobustness2PropertiesKHR"; case StructureType::eSetPresentConfigNV : return "SetPresentConfigNV"; case StructureType::ePhysicalDevicePresentMeteringFeaturesNV : return "PhysicalDevicePresentMeteringFeaturesNV"; + case StructureType::ePhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT : return "PhysicalDeviceMultisampledRenderToSwapchainFeaturesEXT"; + case StructureType::eSwapchainFlagsSurfaceCapabilitiesEXT : return "SwapchainFlagsSurfaceCapabilitiesEXT"; case StructureType::ePhysicalDeviceFragmentDensityMapOffsetFeaturesEXT : return "PhysicalDeviceFragmentDensityMapOffsetFeaturesEXT"; case StructureType::ePhysicalDeviceFragmentDensityMapOffsetPropertiesEXT : return "PhysicalDeviceFragmentDensityMapOffsetPropertiesEXT"; case StructureType::eRenderPassFragmentDensityMapOffsetEndInfoEXT : return "RenderPassFragmentDensityMapOffsetEndInfoEXT"; @@ -5997,10 +6176,21 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case StructureType::ePhysicalDeviceComputeOccupancyPriorityFeaturesNV : return "PhysicalDeviceComputeOccupancyPriorityFeaturesNV"; case StructureType::ePhysicalDeviceMaintenance11FeaturesKHR : return "PhysicalDeviceMaintenance11FeaturesKHR"; case StructureType::eQueueFamilyOptimalImageTransferGranularityPropertiesKHR : return "QueueFamilyOptimalImageTransferGranularityPropertiesKHR"; + case StructureType::ePhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT : return "PhysicalDeviceCooperativeMatrixMaintenance1FeaturesEXT"; + case StructureType::ePhysicalDeviceCooperativeMatrixInfo2EXT : return "PhysicalDeviceCooperativeMatrixInfo2EXT"; + case StructureType::eCooperativeMatrixProperties2EXT : return "CooperativeMatrixProperties2EXT"; case StructureType::ePhysicalDeviceShaderSubgroupPartitionedFeaturesEXT : return "PhysicalDeviceShaderSubgroupPartitionedFeaturesEXT"; #if defined( VK_USE_PLATFORM_UBM_SEC ) case StructureType::eUbmSurfaceCreateInfoSEC: return "UbmSurfaceCreateInfoSEC"; #endif /*VK_USE_PLATFORM_UBM_SEC*/ + case StructureType::eFormatProperties4KHR : return "FormatProperties4KHR"; + case StructureType::eImageCreateFlags2CreateInfoKHR : return "ImageCreateFlags2CreateInfoKHR"; + case StructureType::eImageUsageFlags2CreateInfoKHR : return "ImageUsageFlags2CreateInfoKHR"; + case StructureType::eImageViewUsage2CreateInfoKHR : return "ImageViewUsage2CreateInfoKHR"; + case StructureType::ePhysicalDeviceExtendedFlagsFeaturesKHR : return "PhysicalDeviceExtendedFlagsFeaturesKHR"; + case StructureType::eImageStencilUsage2CreateInfoKHR : return "ImageStencilUsage2CreateInfoKHR"; + case StructureType::eSharedPresentSurfaceCapabilities2KHR : return "SharedPresentSurfaceCapabilities2KHR"; + case StructureType::ePhysicalDeviceShaderOcpMicroscalingTypesFeaturesEXT : return "PhysicalDeviceShaderOcpMicroscalingTypesFeaturesEXT"; case StructureType::ePhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE: return "PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE"; case StructureType::ePhysicalDeviceThrottleHintFeaturesSEC : return "PhysicalDeviceThrottleHintFeaturesSEC"; case StructureType::eThrottleHintSubmitInfoSEC : return "ThrottleHintSubmitInfoSEC"; @@ -6008,8 +6198,11 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case StructureType::eDataGraphPipelineSessionNeuralStatisticsCreateInfoARM: return "DataGraphPipelineSessionNeuralStatisticsCreateInfoARM"; case StructureType::ePhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM: return "PhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM"; - case StructureType::ePhysicalDevicePrimitiveRestartIndexFeaturesEXT: return "PhysicalDevicePrimitiveRestartIndexFeaturesEXT"; - default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + case StructureType::ePhysicalDevicePrimitiveRestartIndexFeaturesEXT : return "PhysicalDevicePrimitiveRestartIndexFeaturesEXT"; + case StructureType::ePhysicalDeviceImageTilingControlFeaturesEXT : return "PhysicalDeviceImageTilingControlFeaturesEXT"; + case StructureType::eImageTilingControlCreateInfoEXT : return "ImageTilingControlCreateInfoEXT"; + case StructureType::ePhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV: return "PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -6097,6 +6290,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case VendorId::eMESA : return "MESA"; case VendorId::ePocl : return "Pocl"; case VendorId::eMobileye: return "Mobileye"; + case VendorId::eApe : return "Ape"; default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -8058,6 +8252,9 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case DriverId::eMesaHoneykrisp : return "MesaHoneykrisp"; case DriverId::eVulkanScEmulationOnVulkan: return "VulkanScEmulationOnVulkan"; case DriverId::eMesaKosmickrisp : return "MesaKosmickrisp"; + case DriverId::eMesaGfxstream : return "MesaGfxstream"; + case DriverId::eApeSoft : return "ApeSoft"; + case DriverId::eReserved31 : return "Reserved31"; default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -8333,6 +8530,7 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case FormatFeatureFlagBits2::eCopyImageIndirectDstKHR : return "CopyImageIndirectDstKHR"; case FormatFeatureFlagBits2::eVideoEncodeQuantizationDeltaMapKHR : return "VideoEncodeQuantizationDeltaMapKHR"; case FormatFeatureFlagBits2::eVideoEncodeEmphasisMapKHR : return "VideoEncodeEmphasisMapKHR"; + case FormatFeatureFlagBits2::eSampledImageFilterLinear2DIMG : return "SampledImageFilterLinear2DIMG"; case FormatFeatureFlagBits2::eDepthCopyOnComputeQueueKHR : return "DepthCopyOnComputeQueueKHR"; case FormatFeatureFlagBits2::eDepthCopyOnTransferQueueKHR : return "DepthCopyOnTransferQueueKHR"; case FormatFeatureFlagBits2::eStencilCopyOnComputeQueueKHR : return "StencilCopyOnComputeQueueKHR"; @@ -8614,14 +8812,15 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { switch ( value ) { - case SwapchainCreateFlagBitsKHR::eSplitInstanceBindRegions: return "SplitInstanceBindRegions"; - case SwapchainCreateFlagBitsKHR::eProtected : return "Protected"; - case SwapchainCreateFlagBitsKHR::eMutableFormat : return "MutableFormat"; - case SwapchainCreateFlagBitsKHR::ePresentTimingEXT : return "PresentTimingEXT"; - case SwapchainCreateFlagBitsKHR::ePresentId2 : return "PresentId2"; - case SwapchainCreateFlagBitsKHR::ePresentWait2 : return "PresentWait2"; - case SwapchainCreateFlagBitsKHR::eDeferredMemoryAllocation: return "DeferredMemoryAllocation"; - default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + case SwapchainCreateFlagBitsKHR::eSplitInstanceBindRegions : return "SplitInstanceBindRegions"; + case SwapchainCreateFlagBitsKHR::eProtected : return "Protected"; + case SwapchainCreateFlagBitsKHR::eMutableFormat : return "MutableFormat"; + case SwapchainCreateFlagBitsKHR::ePresentTimingEXT : return "PresentTimingEXT"; + case SwapchainCreateFlagBitsKHR::ePresentId2 : return "PresentId2"; + case SwapchainCreateFlagBitsKHR::ePresentWait2 : return "PresentWait2"; + case SwapchainCreateFlagBitsKHR::eDeferredMemoryAllocation : return "DeferredMemoryAllocation"; + case SwapchainCreateFlagBitsKHR::eMultisampledRenderToSingleSampledEXT: return "MultisampledRenderToSingleSampledEXT"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -10159,6 +10358,13 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE case VideoEncodeFeedbackFlagBitsKHR::eBitstreamBufferOffset: return "BitstreamBufferOffset"; case VideoEncodeFeedbackFlagBitsKHR::eBitstreamBytesWritten: return "BitstreamBytesWritten"; case VideoEncodeFeedbackFlagBitsKHR::eBitstreamHasOverrides: return "BitstreamHasOverrides"; + case VideoEncodeFeedbackFlagBitsKHR::eAverageQuantization : return "AverageQuantization"; + case VideoEncodeFeedbackFlagBitsKHR::eMinQuantization : return "MinQuantization"; + case VideoEncodeFeedbackFlagBitsKHR::eMaxQuantization : return "MaxQuantization"; + case VideoEncodeFeedbackFlagBitsKHR::eIntraPixels : return "IntraPixels"; + case VideoEncodeFeedbackFlagBitsKHR::eInterPixels : return "InterPixels"; + case VideoEncodeFeedbackFlagBitsKHR::eSkippedPixels : return "SkippedPixels"; + case VideoEncodeFeedbackFlagBitsKHR::ePicturePartitionCount: return "PicturePartitionCount"; default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -10702,9 +10908,14 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { switch ( value ) { - case TensorTilingARM::eOptimal: return "Optimal"; - case TensorTilingARM::eLinear : return "Linear"; - default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + case TensorTilingARM::eOptimal : return "Optimal"; + case TensorTilingARM::eLinear : return "Linear"; + case TensorTilingARM::eBrick16Wide : return "Brick16Wide"; + case TensorTilingARM::eBrick8Wide : return "Brick8Wide"; + case TensorTilingARM::eBrick4Wide : return "Brick4Wide"; + case TensorTilingARM::eBlockUInterleaved : return "BlockUInterleaved"; + case TensorTilingARM::eBlockUInterleaved64K: return "BlockUInterleaved64K"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -10899,23 +11110,28 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE { switch ( value ) { - case ComponentTypeKHR::eFloat16 : return "Float16"; - case ComponentTypeKHR::eFloat32 : return "Float32"; - case ComponentTypeKHR::eFloat64 : return "Float64"; - case ComponentTypeKHR::eSint8 : return "Sint8"; - case ComponentTypeKHR::eSint16 : return "Sint16"; - case ComponentTypeKHR::eSint32 : return "Sint32"; - case ComponentTypeKHR::eSint64 : return "Sint64"; - case ComponentTypeKHR::eUint8 : return "Uint8"; - case ComponentTypeKHR::eUint16 : return "Uint16"; - case ComponentTypeKHR::eUint32 : return "Uint32"; - case ComponentTypeKHR::eUint64 : return "Uint64"; - case ComponentTypeKHR::eBfloat16 : return "Bfloat16"; - case ComponentTypeKHR::eSint8PackedNV: return "Sint8PackedNV"; - case ComponentTypeKHR::eUint8PackedNV: return "Uint8PackedNV"; - case ComponentTypeKHR::eFloat8E4M3EXT: return "Float8E4M3EXT"; - case ComponentTypeKHR::eFloat8E5M2EXT: return "Float8E5M2EXT"; - default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + case ComponentTypeKHR::eFloat16 : return "Float16"; + case ComponentTypeKHR::eFloat32 : return "Float32"; + case ComponentTypeKHR::eFloat64 : return "Float64"; + case ComponentTypeKHR::eSint8 : return "Sint8"; + case ComponentTypeKHR::eSint16 : return "Sint16"; + case ComponentTypeKHR::eSint32 : return "Sint32"; + case ComponentTypeKHR::eSint64 : return "Sint64"; + case ComponentTypeKHR::eUint8 : return "Uint8"; + case ComponentTypeKHR::eUint16 : return "Uint16"; + case ComponentTypeKHR::eUint32 : return "Uint32"; + case ComponentTypeKHR::eUint64 : return "Uint64"; + case ComponentTypeKHR::eBfloat16 : return "Bfloat16"; + case ComponentTypeKHR::eSint8PackedNV : return "Sint8PackedNV"; + case ComponentTypeKHR::eUint8PackedNV : return "Uint8PackedNV"; + case ComponentTypeKHR::eFloat8E4M3EXT : return "Float8E4M3EXT"; + case ComponentTypeKHR::eFloat8E5M2EXT : return "Float8E5M2EXT"; + case ComponentTypeKHR::eFloat6E2M3EXT : return "Float6E2M3EXT"; + case ComponentTypeKHR::eFloat6E3M2EXT : return "Float6E3M2EXT"; + case ComponentTypeKHR::eFloat4E2M1EXT : return "Float4E2M1EXT"; + case ComponentTypeKHR::eFloat8UnsignedE8M0EXT: return "Float8UnsignedE8M0EXT"; + case ComponentTypeKHR::eMxint8EXT : return "Mxint8EXT"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; } } @@ -11537,6 +11753,19 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } #endif /*VK_USE_PLATFORM_OHOS*/ + //=== VK_KHR_video_encode_feedback2 === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( VideoEncodePerPartitionFeedbackFlagBitsKHR value ) + { + switch ( value ) + { + case VideoEncodePerPartitionFeedbackFlagBitsKHR::eStatus : return "Status"; + case VideoEncodePerPartitionFeedbackFlagBitsKHR::eBitstreamBufferOffset: return "BitstreamBufferOffset"; + case VideoEncodePerPartitionFeedbackFlagBitsKHR::eBitstreamBytesWritten: return "BitstreamBytesWritten"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + } + } + //=== VK_ARM_performance_counters_by_region === VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( PerformanceCounterDescriptionFlagBitsARM ) @@ -11705,6 +11934,17 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } } + //=== VK_EXT_cooperative_matrix_maintenance1 === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( CooperativeMatrixFlagBitsEXT value ) + { + switch ( value ) + { + case CooperativeMatrixFlagBitsEXT::eSaturatingAccumulation: return "SaturatingAccumulation"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + } + } + #if defined( VK_USE_PLATFORM_UBM_SEC ) //=== VK_SEC_ubm_surface === @@ -11714,6 +11954,75 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } #endif /*VK_USE_PLATFORM_UBM_SEC*/ + //=== VK_KHR_extended_flags === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( FormatFeatureFlagBits4KHR ) + { + return "(void)"; + } + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( ImageUsageFlagBits2KHR value ) + { + switch ( value ) + { + case ImageUsageFlagBits2KHR::eTransferSrc : return "TransferSrc"; + case ImageUsageFlagBits2KHR::eTransferDst : return "TransferDst"; + case ImageUsageFlagBits2KHR::eSampled : return "Sampled"; + case ImageUsageFlagBits2KHR::eStorage : return "Storage"; + case ImageUsageFlagBits2KHR::eColorAttachment : return "ColorAttachment"; + case ImageUsageFlagBits2KHR::eDepthStencilAttachment : return "DepthStencilAttachment"; + case ImageUsageFlagBits2KHR::eTransientAttachment : return "TransientAttachment"; + case ImageUsageFlagBits2KHR::eInputAttachment : return "InputAttachment"; + case ImageUsageFlagBits2KHR::eFragmentShadingRateAttachment : return "FragmentShadingRateAttachment"; + case ImageUsageFlagBits2KHR::eFragmentDensityMapEXT : return "FragmentDensityMapEXT"; + case ImageUsageFlagBits2KHR::eVideoDecodeDst : return "VideoDecodeDst"; + case ImageUsageFlagBits2KHR::eVideoDecodeSrc : return "VideoDecodeSrc"; + case ImageUsageFlagBits2KHR::eVideoDecodeDpb : return "VideoDecodeDpb"; + case ImageUsageFlagBits2KHR::eVideoEncodeDst : return "VideoEncodeDst"; + case ImageUsageFlagBits2KHR::eVideoEncodeSrc : return "VideoEncodeSrc"; + case ImageUsageFlagBits2KHR::eVideoEncodeDpb : return "VideoEncodeDpb"; + case ImageUsageFlagBits2KHR::eInvocationMaskHUAWEI : return "InvocationMaskHUAWEI"; + case ImageUsageFlagBits2KHR::eAttachmentFeedbackLoopEXT : return "AttachmentFeedbackLoopEXT"; + case ImageUsageFlagBits2KHR::eSampleWeightQCOM : return "SampleWeightQCOM"; + case ImageUsageFlagBits2KHR::eSampleBlockMatchQCOM : return "SampleBlockMatchQCOM"; + case ImageUsageFlagBits2KHR::eHostTransfer : return "HostTransfer"; + case ImageUsageFlagBits2KHR::eTensorAliasingARM : return "TensorAliasingARM"; + case ImageUsageFlagBits2KHR::eVideoEncodeQuantizationDeltaMap: return "VideoEncodeQuantizationDeltaMap"; + case ImageUsageFlagBits2KHR::eVideoEncodeEmphasisMap : return "VideoEncodeEmphasisMap"; + case ImageUsageFlagBits2KHR::eTileMemoryQCOM : return "TileMemoryQCOM"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + } + } + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( ImageCreateFlagBits2KHR value ) + { + switch ( value ) + { + case ImageCreateFlagBits2KHR::eSparseBinding : return "SparseBinding"; + case ImageCreateFlagBits2KHR::eSparseResidency : return "SparseResidency"; + case ImageCreateFlagBits2KHR::eSparseAliased : return "SparseAliased"; + case ImageCreateFlagBits2KHR::eMutableFormat : return "MutableFormat"; + case ImageCreateFlagBits2KHR::eCubeCompatible : return "CubeCompatible"; + case ImageCreateFlagBits2KHR::eAliasSingleLayerDescriptor : return "AliasSingleLayerDescriptor"; + case ImageCreateFlagBits2KHR::e2DArrayCompatible : return "2DArrayCompatible"; + case ImageCreateFlagBits2KHR::eSplitInstanceBindRegions : return "SplitInstanceBindRegions"; + case ImageCreateFlagBits2KHR::eBlockTexelViewCompatible : return "BlockTexelViewCompatible"; + case ImageCreateFlagBits2KHR::eExtendedUsage : return "ExtendedUsage"; + case ImageCreateFlagBits2KHR::eDisjoint : return "Disjoint"; + case ImageCreateFlagBits2KHR::eAlias : return "Alias"; + case ImageCreateFlagBits2KHR::eProtected : return "Protected"; + case ImageCreateFlagBits2KHR::eSampleLocationsCompatibleDepthEXT : return "SampleLocationsCompatibleDepthEXT"; + case ImageCreateFlagBits2KHR::eCornerSampledNV : return "CornerSampledNV"; + case ImageCreateFlagBits2KHR::eSubsampledEXT : return "SubsampledEXT"; + case ImageCreateFlagBits2KHR::eFragmentDensityMapOffsetEXT : return "FragmentDensityMapOffsetEXT"; + case ImageCreateFlagBits2KHR::eDescriptorBufferCaptureReplayEXT : return "DescriptorBufferCaptureReplayEXT"; + case ImageCreateFlagBits2KHR::e2DViewCompatibleEXT : return "2DViewCompatibleEXT"; + case ImageCreateFlagBits2KHR::eMultisampledRenderToSingleSampledEXT: return "MultisampledRenderToSingleSampledEXT"; + case ImageCreateFlagBits2KHR::eVideoProfileIndependent : return "VideoProfileIndependent"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + } + } + //=== VK_SEC_throttle_hint === VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( ThrottleHintTypeSEC value ) @@ -11740,6 +12049,19 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE } } + //=== VK_EXT_image_tiling_control === + + VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 std::string to_string( ImageTilingControlEXT value ) + { + switch ( value ) + { + case ImageTilingControlEXT::eDefault : return "Default"; + case ImageTilingControlEXT::eMinSize : return "MinSize"; + case ImageTilingControlEXT::eMaxPerformance: return "MaxPerformance"; + default : return "invalid ( " + toHexString( static_cast( value ) ) + " )"; + } + } + } // namespace VULKAN_HPP_NAMESPACE #if defined( __clang__ ) || defined( __GNUC__ ) diff --git a/third_party/vulkan/vulkan_ubm.h b/third_party/vulkan/vulkan_ubm.h new file mode 100644 index 0000000..37cf660 --- /dev/null +++ b/third_party/vulkan/vulkan_ubm.h @@ -0,0 +1,59 @@ +#ifndef VULKAN_UBM_H_ +#define VULKAN_UBM_H_ 1 + +/* +** Copyright 2015-2026 The Khronos Group Inc. +** +** SPDX-License-Identifier: Apache-2.0 OR MIT +*/ + +/* +** This header is generated from the Khronos Vulkan XML API Registry. +** +*/ + + +#ifdef __cplusplus +extern "C" { +#endif + + + +// VK_SEC_ubm_surface is a preprocessor guard. Do not pass it to API calls. +#define VK_SEC_ubm_surface 1 +#define VK_SEC_UBM_SURFACE_SPEC_VERSION 1 +#define VK_SEC_UBM_SURFACE_EXTENSION_NAME "VK_SEC_ubm_surface" +typedef VkFlags VkUbmSurfaceCreateFlagsSEC; +typedef struct VkUbmSurfaceCreateInfoSEC { + VkStructureType sType; + const void* pNext; + VkUbmSurfaceCreateFlagsSEC flags; + struct ubm_device* device; + struct ubm_surface* surface; +} VkUbmSurfaceCreateInfoSEC; + +typedef VkResult (VKAPI_PTR *PFN_vkCreateUbmSurfaceSEC)(VkInstance instance, const VkUbmSurfaceCreateInfoSEC* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); +typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct ubm_device* device); + +#ifndef VK_NO_PROTOTYPES +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR VkResult VKAPI_CALL vkCreateUbmSurfaceSEC( + VkInstance instance, + const VkUbmSurfaceCreateInfoSEC* pCreateInfo, + const VkAllocationCallbacks* pAllocator, + VkSurfaceKHR* pSurface); +#endif + +#ifndef VK_ONLY_EXPORTED_PROTOTYPES +VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceUbmPresentationSupportSEC( + VkPhysicalDevice physicalDevice, + uint32_t queueFamilyIndex, + struct ubm_device* device); +#endif +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/third_party/vulkan/vulkan_vi.h b/third_party/vulkan/vulkan_vi.h index 97d1a3c..f5237e4 100644 --- a/third_party/vulkan/vulkan_vi.h +++ b/third_party/vulkan/vulkan_vi.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_video.cppm b/third_party/vulkan/vulkan_video.cppm index e03c9b8..8c58f16 100644 --- a/third_party/vulkan/vulkan_video.cppm +++ b/third_party/vulkan/vulkan_video.cppm @@ -53,20 +53,20 @@ export module vulkan_video; import vulkan; -#if defined( _MSC_VER ) -# pragma warning( push ) -# pragma warning( disable : 5244 ) -#elif defined( __clang__ ) +#if defined( __clang__ ) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Winclude-angled-in-module-purview" +#elif defined( _MSC_VER ) +# pragma warning( push ) +# pragma warning( disable : 5244 ) #elif defined( __GNUC__ ) #endif #include -#if defined( _MSC_VER ) -# pragma warning( pop ) -#elif defined( __clang__ ) +#if defined( __clang__ ) # pragma clang diagnostic pop +#elif defined( _MSC_VER ) +# pragma warning( pop ) #elif defined( __GNUC__ ) #endif diff --git a/third_party/vulkan/vulkan_video.hpp b/third_party/vulkan/vulkan_video.hpp index 1646141..fb31d62 100644 --- a/third_party/vulkan/vulkan_video.hpp +++ b/third_party/vulkan/vulkan_video.hpp @@ -173,6 +173,8 @@ VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE eBaseline = STD_VIDEO_H264_PROFILE_IDC_BASELINE, eMain = STD_VIDEO_H264_PROFILE_IDC_MAIN, eHigh = STD_VIDEO_H264_PROFILE_IDC_HIGH, + eHigh10 = STD_VIDEO_H264_PROFILE_IDC_HIGH_10, + eHigh422 = STD_VIDEO_H264_PROFILE_IDC_HIGH_422, eHigh444Predictive = STD_VIDEO_H264_PROFILE_IDC_HIGH_444_PREDICTIVE, eInvalid = STD_VIDEO_H264_PROFILE_IDC_INVALID }; diff --git a/third_party/vulkan/vulkan_wayland.h b/third_party/vulkan/vulkan_wayland.h index 41025db..1664562 100644 --- a/third_party/vulkan/vulkan_wayland.h +++ b/third_party/vulkan/vulkan_wayland.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_win32.h b/third_party/vulkan/vulkan_win32.h index 5c7e8bd..0750692 100644 --- a/third_party/vulkan/vulkan_win32.h +++ b/third_party/vulkan/vulkan_win32.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_xcb.h b/third_party/vulkan/vulkan_xcb.h index 473f8c2..439f65d 100644 --- a/third_party/vulkan/vulkan_xcb.h +++ b/third_party/vulkan/vulkan_xcb.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_xlib.h b/third_party/vulkan/vulkan_xlib.h index dfd107c..7394bf7 100644 --- a/third_party/vulkan/vulkan_xlib.h +++ b/third_party/vulkan/vulkan_xlib.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /* diff --git a/third_party/vulkan/vulkan_xlib_xrandr.h b/third_party/vulkan/vulkan_xlib_xrandr.h index a272e24..4aabd64 100644 --- a/third_party/vulkan/vulkan_xlib_xrandr.h +++ b/third_party/vulkan/vulkan_xlib_xrandr.h @@ -4,7 +4,7 @@ /* ** Copyright 2015-2026 The Khronos Group Inc. ** -** SPDX-License-Identifier: Apache-2.0 +** SPDX-License-Identifier: Apache-2.0 OR MIT */ /*