mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-06-03 07:08:15 +02:00
Compare commits
37 Commits
v2.2.5
...
b090a070c8
| Author | SHA1 | Date | |
|---|---|---|---|
|
b090a070c8
|
|||
| 069f8af9d6 | |||
| 8b952f14c5 | |||
| cfc3fccac4 | |||
| f691ce6890 | |||
| fb0eecde00 | |||
| f65b8a2aef | |||
|
552cc33ba3
|
|||
| d1f5b7c68e | |||
| e3ab91c7eb | |||
| 6f0beebdf9 | |||
| f9f4fc6425 | |||
| 59b3a297f9 | |||
| 790e24ebdb | |||
| 3a2563a7f5 | |||
| cf491fc56d | |||
| 492365f6dd | |||
| 564942ad35 | |||
| 2751206578 | |||
| 002c35ccdb | |||
| 36e63bbbe7 | |||
| 3a11c1d350 | |||
| 74613d230f | |||
| f1e89ca90e | |||
| 1566fbfc00 | |||
| 6c1400e62c | |||
| 25fb5285f7 | |||
| 87059f8ca3 | |||
| db299c6930 | |||
| ebfc00d015 | |||
|
7639c27df4
|
|||
| 2d9f193a72 | |||
| 6aac4a71de | |||
| 0ff3085448 | |||
| b286da89e2 | |||
|
55eb31551a
|
|||
|
7741ed2dd4
|
@@ -30,7 +30,7 @@ jobs:
|
|||||||
sudo apt-get -y install mesa-common-dev clang libsdl2-2.0-0 libsdl2-dev build-essential libvulkan-dev
|
sudo apt-get -y install mesa-common-dev clang libsdl2-2.0-0 libsdl2-dev build-essential libvulkan-dev
|
||||||
|
|
||||||
- name: Python
|
- name: Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
brew install SDL2
|
brew install SDL2
|
||||||
|
|
||||||
- name: Python
|
- name: Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
platform: ['x64', 'x86']
|
platform: ['x64', 'x86']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
CC: clang-cl
|
CC: clang-cl
|
||||||
CXX: clang-cl
|
CXX: clang-cl
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
platform: ['UCRT64', 'CLANG64']
|
platform: ['UCRT64', 'CLANG64']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -44,11 +44,16 @@ void update(void* param)
|
|||||||
mlx_set_font(mlx->mlx, "default");
|
mlx_set_font(mlx->mlx, "default");
|
||||||
mlx_string_put(mlx->mlx, mlx->win, 20, 50, (mlx_color){ .rgba = 0xFFFFFFFF }, "that's a text");
|
mlx_string_put(mlx->mlx, mlx->win, 20, 50, (mlx_color){ .rgba = 0xFFFFFFFF }, "that's a text");
|
||||||
|
|
||||||
|
int win_width;
|
||||||
|
int win_height;
|
||||||
|
|
||||||
|
mlx_get_window_size(mlx->mlx, mlx->win, &win_width, &win_height);
|
||||||
|
|
||||||
uint32_t color = 0;
|
uint32_t color = 0;
|
||||||
for(int j = 0; j < 400; j++)
|
for(int j = 0; j < win_height; j++)
|
||||||
{
|
{
|
||||||
mlx_pixel_put(mlx->mlx, mlx->win, j, j, (mlx_color){ .rgba = 0x0000FFFF + (color << 24) });
|
mlx_pixel_put(mlx->mlx, mlx->win, j, j, (mlx_color){ .rgba = 0x0000FFFF + (color << 24) });
|
||||||
mlx_pixel_put(mlx->mlx, mlx->win, 399 - j, j, (mlx_color){ .rgba = 0x0000FFFF });
|
mlx_pixel_put(mlx->mlx, mlx->win, win_width - j, j, (mlx_color){ .rgba = 0x0000FFFF });
|
||||||
color += (color < 255);
|
color += (color < 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+17
-18
@@ -1,12 +1,15 @@
|
|||||||
project('MacroLibX',
|
project('MacroLibX',
|
||||||
['c', 'cpp'],
|
['c', 'cpp'],
|
||||||
version : '2.2.4',
|
version : '2.3.0',
|
||||||
license : 'MIT',
|
license : 'MIT',
|
||||||
meson_version : '>= 1.9.0',
|
meson_version : '>= 0.63.0',
|
||||||
default_options : ['warning_level=2', 'optimization=3', 'cpp_std=c++20'])
|
default_options : [
|
||||||
|
'warning_level=2',
|
||||||
|
'optimization=3',
|
||||||
|
'cpp_std=c++20',
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
add_project_arguments('-Wno-error=', language : 'c')
|
|
||||||
add_project_arguments('-fPIC', language : 'c')
|
|
||||||
add_project_arguments('-DSDL_MAIN_HANDLED', language : 'c')
|
add_project_arguments('-DSDL_MAIN_HANDLED', language : 'c')
|
||||||
|
|
||||||
if get_option('graphics_memory_dump')
|
if get_option('graphics_memory_dump')
|
||||||
@@ -25,15 +28,14 @@ if get_option('disable_all_safeties')
|
|||||||
add_project_arguments('-DDISABLE_ALL_SAFETIES', language : 'c')
|
add_project_arguments('-DDISABLE_ALL_SAFETIES', language : 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
includes_directories = [
|
includes_directories = include_directories(
|
||||||
include_directories('includes'),
|
'includes',
|
||||||
include_directories('runtime/Includes'),
|
'runtime/Includes',
|
||||||
include_directories('runtime/Sources'),
|
'runtime/Sources',
|
||||||
include_directories('third_party'),
|
'third_party',
|
||||||
]
|
)
|
||||||
|
|
||||||
sources = [
|
sources = files(
|
||||||
files(
|
|
||||||
'runtime/Sources/Core/Application.cpp',
|
'runtime/Sources/Core/Application.cpp',
|
||||||
'runtime/Sources/Core/Bridge.cpp',
|
'runtime/Sources/Core/Bridge.cpp',
|
||||||
'runtime/Sources/Core/EventBus.cpp',
|
'runtime/Sources/Core/EventBus.cpp',
|
||||||
@@ -66,9 +68,8 @@ sources = [
|
|||||||
'runtime/Sources/Renderer/RenderCore.cpp',
|
'runtime/Sources/Renderer/RenderCore.cpp',
|
||||||
'runtime/Sources/Renderer/Renderer.cpp',
|
'runtime/Sources/Renderer/Renderer.cpp',
|
||||||
'runtime/Sources/Renderer/SceneRenderer.cpp',
|
'runtime/Sources/Renderer/SceneRenderer.cpp',
|
||||||
'runtime/Sources/Renderer/Swapchain.cpp'
|
'runtime/Sources/Renderer/Swapchain.cpp',
|
||||||
)
|
)
|
||||||
]
|
|
||||||
|
|
||||||
mlx_headers = [
|
mlx_headers = [
|
||||||
'includes/mlx.h',
|
'includes/mlx.h',
|
||||||
@@ -78,9 +79,7 @@ mlx_headers = [
|
|||||||
|
|
||||||
install_headers(mlx_headers)
|
install_headers(mlx_headers)
|
||||||
|
|
||||||
deps = [
|
deps = dependency('sdl2')
|
||||||
dependency('sdl2'),
|
|
||||||
]
|
|
||||||
|
|
||||||
libmlx = library('mlx',
|
libmlx = library('mlx',
|
||||||
sources,
|
sources,
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ namespace mlx
|
|||||||
|
|
||||||
std::unordered_map<std::string, std::pair<std::size_t, ProfileResult>> m_profile_data;
|
std::unordered_map<std::string, std::pair<std::size_t, ProfileResult>> m_profile_data;
|
||||||
std::ofstream m_output_stream;
|
std::ofstream m_output_stream;
|
||||||
std::mutex m_mutex;
|
|
||||||
bool m_runtime_session_began = false;
|
bool m_runtime_session_began = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ namespace mlx
|
|||||||
void SetInputBinding(std::function<void(SDL_Event*)> functor);
|
void SetInputBinding(std::function<void(SDL_Event*)> functor);
|
||||||
|
|
||||||
VkSurfaceKHR CreateVulkanSurface(Handle window, VkInstance instance) const noexcept;
|
VkSurfaceKHR CreateVulkanSurface(Handle window, VkInstance instance) const noexcept;
|
||||||
std::vector<const char*> GetRequiredVulkanInstanceExtentions(Handle window) const noexcept;
|
|
||||||
Vec2ui GetVulkanDrawableSize(Handle window) const noexcept;
|
Vec2ui GetVulkanDrawableSize(Handle window) const noexcept;
|
||||||
void MoveMouseOnWindow(Handle window, int x, int y) const noexcept;
|
void MoveMouseOnWindow(Handle window, int x, int y) const noexcept;
|
||||||
void GetScreenSizeWindowIsOn(Handle window, int* x, int* y) const noexcept;
|
void GetScreenSizeWindowIsOn(Handle window, int* x, int* y) const noexcept;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace mlx
|
|||||||
class PutPixelManager
|
class PutPixelManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PutPixelManager(NonOwningPtr<class Renderer> renderer) : p_renderer(renderer) {}
|
PutPixelManager(NonOwningPtr<class Renderer> renderer);
|
||||||
|
|
||||||
// Returns a valid pointer when a new texture has been created
|
// Returns a valid pointer when a new texture has been created
|
||||||
NonOwningPtr<Texture> DrawPixel(int x, int y, std::uint64_t draw_layer, mlx_color color);
|
NonOwningPtr<Texture> DrawPixel(int x, int y, std::uint64_t draw_layer, mlx_color color);
|
||||||
@@ -20,6 +20,7 @@ namespace mlx
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
NonOwningPtr<Texture> GetLayer(std::uint64_t draw_layer, bool& is_newlayer);
|
NonOwningPtr<Texture> GetLayer(std::uint64_t draw_layer, bool& is_newlayer);
|
||||||
|
std::unique_ptr<Texture> NewTexture();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unordered_map<std::uint64_t, NonOwningPtr<Texture>> m_placements;
|
std::unordered_map<std::uint64_t, NonOwningPtr<Texture>> m_placements;
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ namespace mlx
|
|||||||
MLX_FORCEINLINE void GetSize(int* x, int* y) { *x = GetWidth(); *y = GetHeight(); }
|
MLX_FORCEINLINE void GetSize(int* x, int* y) { *x = GetWidth(); *y = GetHeight(); }
|
||||||
|
|
||||||
MLX_FORCEINLINE VkSurfaceKHR CreateVulkanSurface(VkInstance instance) const noexcept { return SDLManager::Get().CreateVulkanSurface(p_window, instance); }
|
MLX_FORCEINLINE VkSurfaceKHR CreateVulkanSurface(VkInstance instance) const noexcept { return SDLManager::Get().CreateVulkanSurface(p_window, instance); }
|
||||||
MLX_FORCEINLINE std::vector<const char*> GetRequiredVulkanInstanceExtentions() const noexcept { return SDLManager::Get().GetRequiredVulkanInstanceExtentions(p_window); }
|
|
||||||
MLX_FORCEINLINE Vec2ui GetVulkanDrawableSize() const noexcept { return SDLManager::Get().GetVulkanDrawableSize(p_window); }
|
MLX_FORCEINLINE Vec2ui GetVulkanDrawableSize() const noexcept { return SDLManager::Get().GetVulkanDrawableSize(p_window); }
|
||||||
|
|
||||||
[[nodiscard]] inline Handle GetRawHandle() const noexcept { return p_window; }
|
[[nodiscard]] inline Handle GetRawHandle() const noexcept { return p_window; }
|
||||||
|
|||||||
@@ -25,12 +25,12 @@
|
|||||||
#error Failed to find SDL2 headers
|
#error Failed to find SDL2 headers
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __has_include(<SDL2/SDL_vulkan.h>)
|
#if __has_include(<SDL2/SDL_syswm.h>)
|
||||||
#include <SDL2/SDL_vulkan.h>
|
#include <SDL2/SDL_syswm.h>
|
||||||
#elif __has_include(<SDL_vulkan.h>)
|
#elif __has_include(<SDL_syswm.h>)
|
||||||
#include <SDL_vulkan.h>
|
#include <SDL_syswm.h>
|
||||||
#else
|
#else
|
||||||
#error Failed to find SDL2 Vulkan headers
|
#error Failed to find SDL2 SysWMinfo
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|||||||
@@ -89,7 +89,13 @@ namespace mlx
|
|||||||
mlx_color GetPixel(int x, int y) noexcept;
|
mlx_color GetPixel(int x, int y) noexcept;
|
||||||
void GetRegion(int x, int y, int w, int h, mlx_color* dst) noexcept;
|
void GetRegion(int x, int y, int w, int h, mlx_color* dst) noexcept;
|
||||||
void Clear(VkCommandBuffer cmd, Vec4f color) override;
|
void Clear(VkCommandBuffer cmd, Vec4f color) override;
|
||||||
|
void CopyTo(Texture& other);
|
||||||
|
void Resize(std::uint32_t width, std::uint32_t height);
|
||||||
|
|
||||||
|
void Swap(Texture& texture) 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);
|
void Update(VkCommandBuffer cmd);
|
||||||
|
|
||||||
~Texture() override { Destroy(); }
|
~Texture() override { Destroy(); }
|
||||||
|
|||||||
@@ -123,5 +123,41 @@
|
|||||||
MLX_VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceFormatsKHR)
|
MLX_VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceFormatsKHR)
|
||||||
MLX_VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfacePresentModesKHR)
|
MLX_VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfacePresentModesKHR)
|
||||||
MLX_VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceSupportKHR)
|
MLX_VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceSupportKHR)
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_ANDROID_KHR
|
||||||
|
#ifdef VK_KHR_android_surface
|
||||||
|
MLX_VULKAN_INSTANCE_FUNCTION(vkCreateAndroidSurfaceKHR)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
|
#ifdef VK_KHR_xcb_surface
|
||||||
|
MLX_VULKAN_INSTANCE_FUNCTION(vkCreateXcbSurfaceKHR)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
||||||
|
#ifdef VK_KHR_xlib_surface
|
||||||
|
MLX_VULKAN_INSTANCE_FUNCTION(vkCreateXlibSurfaceKHR)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
|
#ifdef VK_KHR_wayland_surface
|
||||||
|
MLX_VULKAN_INSTANCE_FUNCTION(vkCreateWaylandSurfaceKHR)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
#ifdef VK_KHR_win32_surface
|
||||||
|
MLX_VULKAN_INSTANCE_FUNCTION(vkCreateWin32SurfaceKHR)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
#ifdef VK_EXT_metal_surface
|
||||||
|
MLX_VULKAN_INSTANCE_FUNCTION(vkCreateMetalSurfaceEXT)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -238,6 +238,15 @@ extern "C"
|
|||||||
mlx::Error("Image loader: not a valid file format '%'", filename);
|
mlx::Error("Image loader: not a valid file format '%'", filename);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
std::ifstream stream(file, std::ios::binary);
|
||||||
|
if(!stream.is_open())
|
||||||
|
{
|
||||||
|
mlx::Error("Image loader: failed to open file '%'", filename);
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
return mlx->app->NewStbTexture(filename, width, height);
|
return mlx->app->NewStbTexture(filename, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -304,12 +313,29 @@ extern "C"
|
|||||||
mlx::Error("Font loader: filepath is NULL");
|
mlx::Error("Font loader: filepath is NULL");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::filesystem::path file(filepath);
|
std::filesystem::path file(filepath);
|
||||||
if(std::strcmp(filepath, "default") != 0 && file.extension() != ".ttf" && file.extension() != ".tte")
|
if (std::strcmp(filepath, "default") != 0 && !std::filesystem::exists(file))
|
||||||
|
{
|
||||||
|
mlx::Error("TTF loader: unable to find file '%'", filepath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(std::strcmp(filepath, "default") != 0)
|
||||||
|
{
|
||||||
|
if(file.extension() != ".ttf" && file.extension() != ".tte")
|
||||||
{
|
{
|
||||||
mlx::Error("TTF loader: not a truetype font file '%'", filepath);
|
mlx::Error("TTF loader: not a truetype font file '%'", filepath);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
std::ifstream stream(file, std::ios::binary);
|
||||||
|
if(!stream.is_open())
|
||||||
|
{
|
||||||
|
mlx::Error("TTF loader: failed to open font file '%'", filepath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(std::strcmp(filepath, "default") == 0)
|
if(std::strcmp(filepath, "default") == 0)
|
||||||
mlx->app->LoadFont(file, 6.f);
|
mlx->app->LoadFont(file, 6.f);
|
||||||
else
|
else
|
||||||
@@ -324,12 +350,29 @@ extern "C"
|
|||||||
mlx::Error("Font loader: filepath is NULL");
|
mlx::Error("Font loader: filepath is NULL");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::filesystem::path file(filepath);
|
std::filesystem::path file(filepath);
|
||||||
if(std::strcmp(filepath, "default") != 0 && file.extension() != ".ttf" && file.extension() != ".tte")
|
if (std::strcmp(filepath, "default") != 0 && !std::filesystem::exists(file))
|
||||||
|
{
|
||||||
|
mlx::Error("TTF loader: unable to find file '%'", filepath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(std::strcmp(filepath, "default") != 0)
|
||||||
|
{
|
||||||
|
if(file.extension() != ".ttf" && file.extension() != ".tte")
|
||||||
{
|
{
|
||||||
mlx::Error("TTF loader: not a truetype font file '%'", filepath);
|
mlx::Error("TTF loader: not a truetype font file '%'", filepath);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
std::ifstream stream(file, std::ios::binary);
|
||||||
|
if(!stream.is_open())
|
||||||
|
{
|
||||||
|
mlx::Error("TTF loader: failed to open font file '%'", filepath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mlx->app->LoadFont(file, scale);
|
mlx->app->LoadFont(file, scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ namespace mlx
|
|||||||
|
|
||||||
void Profiler::BeginRuntimeSession()
|
void Profiler::BeginRuntimeSession()
|
||||||
{
|
{
|
||||||
std::lock_guard lock(m_mutex);
|
|
||||||
if(m_runtime_session_began)
|
if(m_runtime_session_began)
|
||||||
return;
|
return;
|
||||||
m_output_stream.open("./runtime_profile.mlx.json", std::ofstream::out | std::ofstream::trunc);
|
m_output_stream.open("./runtime_profile.mlx.json", std::ofstream::out | std::ofstream::trunc);
|
||||||
@@ -22,7 +21,6 @@ namespace mlx
|
|||||||
|
|
||||||
void Profiler::AppendProfileData(ProfileResult&& result)
|
void Profiler::AppendProfileData(ProfileResult&& result)
|
||||||
{
|
{
|
||||||
std::lock_guard lock(m_mutex);
|
|
||||||
auto it = m_profile_data.find(result.name);
|
auto it = m_profile_data.find(result.name);
|
||||||
if(it != m_profile_data.end())
|
if(it != m_profile_data.end())
|
||||||
{
|
{
|
||||||
@@ -49,7 +47,6 @@ namespace mlx
|
|||||||
|
|
||||||
void Profiler::EndRuntimeSession()
|
void Profiler::EndRuntimeSession()
|
||||||
{
|
{
|
||||||
std::lock_guard lock(m_mutex);
|
|
||||||
if(!m_runtime_session_began)
|
if(!m_runtime_session_began)
|
||||||
return;
|
return;
|
||||||
for(auto& [_, pair] : m_profile_data)
|
for(auto& [_, pair] : m_profile_data)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace mlx
|
|||||||
Internal::WindowInfos* infos = new Internal::WindowInfos;
|
Internal::WindowInfos* infos = new Internal::WindowInfos;
|
||||||
Verify(infos != nullptr, "SDL: window allocation failed");
|
Verify(infos != nullptr, "SDL: window allocation failed");
|
||||||
|
|
||||||
std::uint32_t flags = SDL_WINDOW_VULKAN;
|
std::uint32_t flags = 0;
|
||||||
if(hidden)
|
if(hidden)
|
||||||
flags |= SDL_WINDOW_HIDDEN;
|
flags |= SDL_WINDOW_HIDDEN;
|
||||||
else
|
else
|
||||||
@@ -88,28 +88,38 @@ namespace mlx
|
|||||||
|
|
||||||
VkSurfaceKHR SDLManager::CreateVulkanSurface(Handle window, VkInstance instance) const noexcept
|
VkSurfaceKHR SDLManager::CreateVulkanSurface(Handle window, VkInstance instance) const noexcept
|
||||||
{
|
{
|
||||||
VkSurfaceKHR surface;
|
SDL_SysWMinfo info;
|
||||||
if(!SDL_Vulkan_CreateSurface(static_cast<Internal::WindowInfos*>(window)->window, instance, &surface))
|
SDL_VERSION(&info.version);
|
||||||
FatalError("SDL: could not create a Vulkan surface; %", SDL_GetError());
|
if(SDL_GetWindowWMInfo(static_cast<Internal::WindowInfos*>(window)->window, &info) != SDL_TRUE)
|
||||||
return surface;
|
FatalError("SDL Manager: cannot retrieve window informations");
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<const char*> SDLManager::GetRequiredVulkanInstanceExtentions(Handle window) const noexcept
|
switch(info.subsystem)
|
||||||
{
|
{
|
||||||
std::uint32_t count;
|
#ifdef SDL_VIDEO_DRIVER_WINDOWS
|
||||||
if(!SDL_Vulkan_GetInstanceExtensions(static_cast<Internal::WindowInfos*>(window)->window, &count, nullptr))
|
case SDL_SYSWM_WINDOWS: return kvfCreateSurfaceKHR(instance, KVF_SURFACE_WINDOWS, static_cast<void*>(info.info.win.hinstance), static_cast<void*>(info.info.win.window));
|
||||||
FatalError("SDL Manager: could not retrieve Vulkan instance extensions");
|
#endif
|
||||||
std::vector<const char*> extensions(count);
|
#ifdef SDL_VIDEO_DRIVER_X11
|
||||||
if(!SDL_Vulkan_GetInstanceExtensions(static_cast<Internal::WindowInfos*>(window)->window, &count, extensions.data()))
|
case SDL_SYSWM_X11: return kvfCreateSurfaceKHR(instance, KVF_SURFACE_XLIB, static_cast<void*>(info.info.x11.display), static_cast<void*>(&info.info.x11.window));
|
||||||
FatalError("SDL Manager: could not retrieve Vulkan instance extensions");
|
#endif
|
||||||
extensions.push_back(VK_KHR_SURFACE_EXTENSION_NAME);
|
#ifdef SDL_VIDEO_DRIVER_COCOA
|
||||||
return extensions;
|
case SDL_SYSWM_COCOA: FatalError("SDL Manager: Vulkan surfaces over Metal are not supported yet. Please fill an issue here https://github.com/seekrs/MacroLibX/issues/new");
|
||||||
|
#endif
|
||||||
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND
|
||||||
|
case SDL_SYSWM_WAYLAND: return kvfCreateSurfaceKHR(instance, KVF_SURFACE_WAYLAND, static_cast<void*>(info.info.wl.display), static_cast<void*>(info.info.wl.surface));
|
||||||
|
#endif
|
||||||
|
#ifdef SDL_VIDEO_DRIVER_ANDROID
|
||||||
|
case SDL_SYSWM_ANDROID: return kvfCreateSurfaceKHR(instance, KVF_SURFACE_ANDROID, nullptr, static_cast<void*>(info.info.android.window));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
default : FatalError("SDL Manager: unsupported windowing system"); break;
|
||||||
|
}
|
||||||
|
return VK_NULL_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Vec2ui SDLManager::GetVulkanDrawableSize(Handle window) const noexcept
|
Vec2ui SDLManager::GetVulkanDrawableSize(Handle window) const noexcept
|
||||||
{
|
{
|
||||||
Vec2i extent;
|
Vec2i extent;
|
||||||
SDL_Vulkan_GetDrawableSize(static_cast<Internal::WindowInfos*>(window)->window, &extent.x, &extent.y);
|
SDL_GetWindowSize(static_cast<Internal::WindowInfos*>(window)->window, &extent.x, &extent.y);
|
||||||
return Vec2ui{ extent };
|
return Vec2ui{ extent };
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,6 +276,7 @@ namespace mlx
|
|||||||
case SDL_WINDOWEVENT_LEAVE: functor(MLX_WINDOW_EVENT, id, 6); break;
|
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_FOCUS_LOST: functor(MLX_WINDOW_EVENT, id, 7); break;
|
||||||
case SDL_WINDOWEVENT_SIZE_CHANGED: functor(MLX_WINDOW_EVENT, id, 8); break;
|
case SDL_WINDOWEVENT_SIZE_CHANGED: functor(MLX_WINDOW_EVENT, id, 8); break;
|
||||||
|
case SDL_WINDOWEVENT_RESTORED: functor(MLX_WINDOW_EVENT, id, 11); break;
|
||||||
|
|
||||||
default : break;
|
default : break;
|
||||||
}
|
}
|
||||||
@@ -284,6 +295,7 @@ namespace mlx
|
|||||||
{
|
{
|
||||||
if(m_drop_sdl_responsability)
|
if(m_drop_sdl_responsability)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_EVENTS);
|
SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_EVENTS);
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
s_instance = nullptr;
|
s_instance = nullptr;
|
||||||
|
|||||||
@@ -6,6 +6,29 @@
|
|||||||
|
|
||||||
namespace mlx
|
namespace mlx
|
||||||
{
|
{
|
||||||
|
PutPixelManager::PutPixelManager(NonOwningPtr<class Renderer> renderer) : p_renderer(renderer)
|
||||||
|
{
|
||||||
|
MLX_PROFILE_FUNCTION();
|
||||||
|
std::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||||
|
{
|
||||||
|
// Suboptimal for multi-windows applications
|
||||||
|
if(event.What() == Event::ResizeEventCode)
|
||||||
|
{
|
||||||
|
VkExtent2D extent{ .width = 0, .height = 0 };
|
||||||
|
if(p_renderer->GetWindow())
|
||||||
|
extent = kvfGetSwapchainImagesSize(p_renderer->GetSwapchain().Get());
|
||||||
|
else if(p_renderer->GetRenderTarget())
|
||||||
|
extent = VkExtent2D{ .width = p_renderer->GetRenderTarget()->GetWidth(), .height = p_renderer->GetRenderTarget()->GetHeight() };
|
||||||
|
else
|
||||||
|
FatalError("a renderer was created without window nor render target attached (wtf!?)");
|
||||||
|
|
||||||
|
for(auto& texture : m_textures)
|
||||||
|
texture->Resize(extent.width, extent.height);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
EventBus::RegisterListener({ functor, "mlx_put_pixel_manager_" + std::to_string(reinterpret_cast<std::uintptr_t>(this)) });
|
||||||
|
}
|
||||||
|
|
||||||
NonOwningPtr<Texture> PutPixelManager::DrawPixel(int x, int y, std::uint64_t draw_layer, mlx_color color)
|
NonOwningPtr<Texture> PutPixelManager::DrawPixel(int x, int y, std::uint64_t draw_layer, mlx_color color)
|
||||||
{
|
{
|
||||||
MLX_PROFILE_FUNCTION();
|
MLX_PROFILE_FUNCTION();
|
||||||
@@ -53,21 +76,8 @@ namespace mlx
|
|||||||
is_newlayer = true;
|
is_newlayer = true;
|
||||||
|
|
||||||
if(m_current_texture_index >= m_textures.size())
|
if(m_current_texture_index >= m_textures.size())
|
||||||
{
|
m_textures.push_back(NewTexture());
|
||||||
VkExtent2D extent{ .width = 0, .height = 0 };
|
|
||||||
if(p_renderer->GetWindow())
|
|
||||||
extent = kvfGetSwapchainImagesSize(p_renderer->GetSwapchain().Get());
|
|
||||||
else if(p_renderer->GetRenderTarget())
|
|
||||||
extent = VkExtent2D{ .width = p_renderer->GetRenderTarget()->GetWidth(), .height = p_renderer->GetRenderTarget()->GetHeight() };
|
|
||||||
else
|
|
||||||
FatalError("a renderer was created without window nor render target attached (wtf)");
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
m_textures.push_back(std::make_unique<Texture>(CPUBuffer{}, extent.width, extent.height, VK_FORMAT_R8G8B8A8_SRGB, false, "mlx_put_pixel_layer_" + std::to_string(m_current_texture_index)));
|
|
||||||
#else
|
|
||||||
m_textures.push_back(std::make_unique<Texture>(CPUBuffer{}, extent.width, extent.height, VK_FORMAT_R8G8B8A8_SRGB, false, std::string_view{}));
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_placements[draw_layer] = m_textures.at(m_current_texture_index).get();
|
m_placements[draw_layer] = m_textures.at(m_current_texture_index).get();
|
||||||
@@ -83,6 +93,23 @@ namespace mlx
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<Texture> PutPixelManager::NewTexture()
|
||||||
|
{
|
||||||
|
VkExtent2D extent{ .width = 0, .height = 0 };
|
||||||
|
if(p_renderer->GetWindow())
|
||||||
|
extent = kvfGetSwapchainImagesSize(p_renderer->GetSwapchain().Get());
|
||||||
|
else if(p_renderer->GetRenderTarget())
|
||||||
|
extent = VkExtent2D{ .width = p_renderer->GetRenderTarget()->GetWidth(), .height = p_renderer->GetRenderTarget()->GetHeight() };
|
||||||
|
else
|
||||||
|
FatalError("a renderer was created without window nor render target attached (wtf!?)");
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
return std::make_unique<Texture>(CPUBuffer{}, extent.width, extent.height, VK_FORMAT_R8G8B8A8_SRGB, false, "mlx_put_pixel_layer_" + std::to_string(m_current_texture_index));
|
||||||
|
#else
|
||||||
|
return std::make_unique<Texture>(CPUBuffer{}, extent.width, extent.height, VK_FORMAT_R8G8B8A8_SRGB, false, std::string_view{});
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void PutPixelManager::ResetRenderData()
|
void PutPixelManager::ResetRenderData()
|
||||||
{
|
{
|
||||||
m_placements.clear();
|
m_placements.clear();
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
namespace mlx
|
namespace mlx
|
||||||
{
|
{
|
||||||
mlx_color ReverseColor(mlx_color color)
|
MLX_FORCEINLINE mlx_color ReverseColor(mlx_color color)
|
||||||
{
|
{
|
||||||
mlx_color reversed_color;
|
mlx_color reversed_color;
|
||||||
reversed_color.r = color.a;
|
reversed_color.r = color.a;
|
||||||
@@ -362,8 +362,16 @@ namespace mlx
|
|||||||
m_staging_buffer->Init(BufferType::Staging, size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT, {}, {});
|
m_staging_buffer->Init(BufferType::Staging, size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT, {}, {});
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SyncCPUBuffer();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Texture::SyncCPUBuffer(VkCommandBuffer cmd)
|
||||||
|
{
|
||||||
|
if(!m_staging_buffer.has_value())
|
||||||
|
return;
|
||||||
VkImageLayout old_layout = m_layout;
|
VkImageLayout old_layout = m_layout;
|
||||||
VkCommandBuffer cmd = kvfCreateCommandBuffer(RenderCore::Get().GetDevice());
|
if(cmd == VK_NULL_HANDLE)
|
||||||
|
cmd = kvfCreateCommandBuffer(RenderCore::Get().GetDevice());
|
||||||
kvfBeginCommandBuffer(cmd, VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT);
|
kvfBeginCommandBuffer(cmd, VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT);
|
||||||
TransitionLayout(VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, cmd);
|
TransitionLayout(VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, cmd);
|
||||||
kvfCopyImageToBuffer(cmd, m_staging_buffer->Get(), m_image, m_staging_buffer->GetOffset(), VK_IMAGE_ASPECT_COLOR_BIT, { m_width, m_height, 1 });
|
kvfCopyImageToBuffer(cmd, m_staging_buffer->Get(), m_image, m_staging_buffer->GetOffset(), VK_IMAGE_ASPECT_COLOR_BIT, { m_width, m_height, 1 });
|
||||||
@@ -375,6 +383,105 @@ namespace mlx
|
|||||||
kvfDestroyCommandBuffer(RenderCore::Get().GetDevice(), cmd);
|
kvfDestroyCommandBuffer(RenderCore::Get().GetDevice(), cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Texture::CopyTo(Texture& other)
|
||||||
|
{
|
||||||
|
VkImageLayout old_layout = m_layout;
|
||||||
|
VkImageLayout other_old_layout = other.GetLayout();
|
||||||
|
|
||||||
|
VkImageSubresourceLayers subresource{};
|
||||||
|
subresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||||
|
subresource.mipLevel = 0;
|
||||||
|
subresource.layerCount = 1;
|
||||||
|
subresource.baseArrayLayer = 0;
|
||||||
|
|
||||||
|
VkExtent3D extent{};
|
||||||
|
extent.width = m_width;
|
||||||
|
extent.height = m_height;
|
||||||
|
extent.depth = 1;
|
||||||
|
|
||||||
|
VkOffset3D offset{};
|
||||||
|
offset.x = 0;
|
||||||
|
offset.y = 0;
|
||||||
|
offset.z = 0;
|
||||||
|
|
||||||
|
VkImageCopy region{};
|
||||||
|
region.srcSubresource = subresource;
|
||||||
|
region.dstSubresource = subresource;
|
||||||
|
region.extent = extent;
|
||||||
|
region.srcOffset = offset;
|
||||||
|
region.dstOffset = offset;
|
||||||
|
|
||||||
|
VkCommandBuffer cmd = kvfCreateCommandBuffer(RenderCore::Get().GetDevice());
|
||||||
|
kvfBeginCommandBuffer(cmd, VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT);
|
||||||
|
|
||||||
|
TransitionLayout(VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, cmd);
|
||||||
|
other.TransitionLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, cmd);
|
||||||
|
|
||||||
|
kvfCopyImageToImage(cmd, m_image, m_layout, other.Get(), other.GetLayout(), 1, ®ion);
|
||||||
|
|
||||||
|
TransitionLayout(old_layout, cmd);
|
||||||
|
other.TransitionLayout(other_old_layout, cmd);
|
||||||
|
|
||||||
|
kvfEndCommandBuffer(cmd);
|
||||||
|
|
||||||
|
SyncCPUBuffer(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Texture::Resize(std::uint32_t width, std::uint32_t height)
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
Texture new_texture = Texture(CPUBuffer{}, width, height, m_format, m_is_multisampled, m_debug_name);
|
||||||
|
#else
|
||||||
|
Texture new_texture = Texture(CPUBuffer{}, width, height, m_format, m_is_multisampled, std::string_view{});
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if(m_staging_buffer.has_value())
|
||||||
|
{
|
||||||
|
new_texture.OpenCPUBuffer();
|
||||||
|
new_texture.m_staging_buffer->CopyFrom(*m_staging_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Suboptimal operations, should bake all of them in a single command buffer
|
||||||
|
new_texture.Clear(VK_NULL_HANDLE, Vec4f{ 0.f });
|
||||||
|
CopyTo(new_texture);
|
||||||
|
|
||||||
|
Swap(new_texture);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
DebugLog("Texture: resized '%'", m_debug_name);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void Texture::Swap(Texture& texture) noexcept
|
||||||
|
{
|
||||||
|
MLX_PROFILE_FUNCTION();
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
std::swap(m_debug_name, texture.m_debug_name);
|
||||||
|
#endif
|
||||||
|
std::swap(m_allocation, texture.m_allocation);
|
||||||
|
std::swap(m_image, texture.m_image);
|
||||||
|
std::swap(m_image_view, texture.m_image_view);
|
||||||
|
std::swap(m_sampler, texture.m_sampler);
|
||||||
|
std::swap(m_format, texture.m_format);
|
||||||
|
std::swap(m_tiling, texture.m_tiling);
|
||||||
|
std::swap(m_layout, texture.m_layout);
|
||||||
|
std::swap(m_type, texture.m_type);
|
||||||
|
std::swap(m_width, texture.m_width);
|
||||||
|
std::swap(m_height, texture.m_height);
|
||||||
|
std::swap(m_is_multisampled, texture.m_is_multisampled);
|
||||||
|
|
||||||
|
if(m_staging_buffer.has_value() && texture.m_staging_buffer.has_value())
|
||||||
|
m_staging_buffer->Swap(*texture.m_staging_buffer);
|
||||||
|
else if(m_staging_buffer.has_value())
|
||||||
|
m_staging_buffer.reset();
|
||||||
|
else if(texture.m_staging_buffer.has_value())
|
||||||
|
texture.m_staging_buffer.reset();
|
||||||
|
|
||||||
|
m_has_been_modified = true;
|
||||||
|
texture.m_has_been_modified = true;
|
||||||
|
}
|
||||||
|
|
||||||
Texture* StbTextureLoad(const std::filesystem::path& file, int* w, int* h)
|
Texture* StbTextureLoad(const std::filesystem::path& file, int* w, int* h)
|
||||||
{
|
{
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
|
|||||||
@@ -127,6 +127,9 @@ namespace mlx
|
|||||||
void GraphicPipeline::Destroy() noexcept
|
void GraphicPipeline::Destroy() noexcept
|
||||||
{
|
{
|
||||||
MLX_PROFILE_FUNCTION();
|
MLX_PROFILE_FUNCTION();
|
||||||
|
if(m_pipeline == VK_NULL_HANDLE)
|
||||||
|
return;
|
||||||
|
|
||||||
p_vertex_shader.reset();
|
p_vertex_shader.reset();
|
||||||
p_fragment_shader.reset();
|
p_fragment_shader.reset();
|
||||||
for(auto fb : m_framebuffers)
|
for(auto fb : m_framebuffers)
|
||||||
|
|||||||
@@ -100,8 +100,25 @@ namespace mlx
|
|||||||
info.width = 1;
|
info.width = 1;
|
||||||
info.height = 1;
|
info.height = 1;
|
||||||
window = std::make_unique<Window>(&info, true);
|
window = std::make_unique<Window>(&info, true);
|
||||||
instance_extensions = window->GetRequiredVulkanInstanceExtentions();
|
instance_extensions.push_back(VK_KHR_SURFACE_EXTENSION_NAME);
|
||||||
#ifdef MLX_PLAT_MACOS
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
|
instance_extensions.push_back(VK_KHR_XCB_SURFACE_EXTENSION_NAME);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
||||||
|
instance_extensions.push_back(VK_KHR_XLIB_SURFACE_EXTENSION_NAME);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
|
instance_extensions.push_back(VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
instance_extensions.push_back(VK_KHR_WIN32_SURFACE_EXTENSION_NAME);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
instance_extensions.push_back(VK_EXT_METAL_SURFACE_EXTENSION_NAME);
|
||||||
instance_extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME);
|
instance_extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -185,6 +202,41 @@ namespace mlx
|
|||||||
MLX_LOAD_FUNCTION(vkGetPhysicalDeviceSurfaceFormatsKHR);
|
MLX_LOAD_FUNCTION(vkGetPhysicalDeviceSurfaceFormatsKHR);
|
||||||
MLX_LOAD_FUNCTION(vkGetPhysicalDeviceSurfacePresentModesKHR);
|
MLX_LOAD_FUNCTION(vkGetPhysicalDeviceSurfacePresentModesKHR);
|
||||||
MLX_LOAD_FUNCTION(vkGetPhysicalDeviceSurfaceSupportKHR);
|
MLX_LOAD_FUNCTION(vkGetPhysicalDeviceSurfaceSupportKHR);
|
||||||
|
#ifdef VK_USE_PLATFORM_ANDROID_KHR
|
||||||
|
#ifdef VK_KHR_android_surface
|
||||||
|
MLX_LOAD_FUNCTION(vkCreateAndroidSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
|
#ifdef VK_KHR_xcb_surface
|
||||||
|
MLX_LOAD_FUNCTION(vkCreateXcbSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
||||||
|
#ifdef VK_KHR_xlib_surface
|
||||||
|
MLX_LOAD_FUNCTION(vkCreateXlibSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
|
#ifdef VK_KHR_wayland_surface
|
||||||
|
MLX_LOAD_FUNCTION(vkCreateWaylandSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
#ifdef VK_KHR_win32_surface
|
||||||
|
MLX_LOAD_FUNCTION(vkCreateWin32SurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
#ifdef VK_EXT_metal_surface
|
||||||
|
MLX_LOAD_FUNCTION(vkCreateMetalSurfaceEXT);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
kvfPassInstanceVulkanFunctionPointers(&pfns);
|
kvfPassInstanceVulkanFunctionPointers(&pfns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+223
-2
@@ -55,6 +55,46 @@
|
|||||||
#define VK_NO_PROTOTYPES
|
#define VK_NO_PROTOTYPES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef KVF_NO_KHR
|
||||||
|
#ifdef VK_USE_PLATFORM_ANDROID_KHR
|
||||||
|
#include <vulkan/vulkan_android.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
|
#include <vulkan/vulkan_wayland.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
typedef struct HINSTANCE__* HINSTANCE;
|
||||||
|
typedef struct HWND__* HWND;
|
||||||
|
typedef struct HMONITOR__* HMONITOR;
|
||||||
|
typedef void* HANDLE;
|
||||||
|
typedef /*_Null_terminated_*/ const wchar_t* LPCWSTR;
|
||||||
|
typedef unsigned long DWORD;
|
||||||
|
typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
||||||
|
#include <vulkan/vulkan_win32.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
|
struct xcb_connection_t;
|
||||||
|
typedef uint32_t xcb_window_t;
|
||||||
|
typedef uint32_t xcb_visualid_t;
|
||||||
|
#include <vulkan/vulkan_xcb.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
#include <vulkan/vulkan_metal.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
||||||
|
typedef struct _XDisplay Display;
|
||||||
|
typedef unsigned long XID;
|
||||||
|
typedef XID Window;
|
||||||
|
typedef unsigned long VisualID;
|
||||||
|
#include <vulkan/vulkan_xlib.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@@ -82,6 +122,18 @@ typedef enum
|
|||||||
KVF_IMAGE_OTHER = 4,
|
KVF_IMAGE_OTHER = 4,
|
||||||
} KvfImageType;
|
} KvfImageType;
|
||||||
|
|
||||||
|
#ifndef KVF_NO_KHR
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
KVF_SURFACE_ANDROID = 0,
|
||||||
|
KVF_SURFACE_XLIB = 1,
|
||||||
|
KVF_SURFACE_XCB = 2,
|
||||||
|
KVF_SURFACE_WAYLAND = 3,
|
||||||
|
KVF_SURFACE_WINDOWS = 4,
|
||||||
|
KVF_SURFACE_METAL = 5,
|
||||||
|
} KvfSurfaceType;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef void (*KvfErrorCallback)(const char* message);
|
typedef void (*KvfErrorCallback)(const char* message);
|
||||||
|
|
||||||
#ifdef KVF_IMPL_VK_NO_PROTOTYPES
|
#ifdef KVF_IMPL_VK_NO_PROTOTYPES
|
||||||
@@ -148,10 +200,39 @@ void kvfDestroySemaphore(VkDevice device, VkSemaphore semaphore);
|
|||||||
uint32_t kvfGetSwapchainMinImagesCount(VkSwapchainKHR swapchain);
|
uint32_t kvfGetSwapchainMinImagesCount(VkSwapchainKHR swapchain);
|
||||||
VkExtent2D kvfGetSwapchainImagesSize(VkSwapchainKHR swapchain);
|
VkExtent2D kvfGetSwapchainImagesSize(VkSwapchainKHR swapchain);
|
||||||
void kvfDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain);
|
void kvfDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For Windows:
|
||||||
|
* - instance_handle -> HINSTANCE
|
||||||
|
* - window_handle -> HWND window handle
|
||||||
|
*
|
||||||
|
* For Wayland:
|
||||||
|
* - instance_handle -> wl_display
|
||||||
|
* - window_handle -> wl_surface
|
||||||
|
*
|
||||||
|
* For XLIB:
|
||||||
|
* - instance_handle -> Display
|
||||||
|
* - window_handle -> Window
|
||||||
|
*
|
||||||
|
* For XCB:
|
||||||
|
* - instance_handle -> xcb_connection_t
|
||||||
|
* - window_handle -> xcb_window_t
|
||||||
|
*
|
||||||
|
* For Metal:
|
||||||
|
* - instance_handle -> ignored
|
||||||
|
* - window_handle -> CAMetalLayer
|
||||||
|
*
|
||||||
|
* For Android:
|
||||||
|
* - instance_handle -> ignored
|
||||||
|
* - window_handle -> ANativeWindow
|
||||||
|
*/
|
||||||
|
VkSurfaceKHR kvfCreateSurfaceKHR(VkInstance instance, KvfSurfaceType type, void* instance_handle, void* window_handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
VkImage kvfCreateImage(VkDevice device, uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, KvfImageType type);
|
VkImage kvfCreateImage(VkDevice device, uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, KvfImageType type);
|
||||||
void kvfCopyImageToBuffer(VkCommandBuffer cmd, VkBuffer dst, VkImage src, size_t buffer_offset, VkImageAspectFlagBits aspect, VkExtent3D extent);
|
void kvfCopyImageToBuffer(VkCommandBuffer cmd, VkBuffer dst, VkImage src, size_t buffer_offset, VkImageAspectFlagBits aspect, VkExtent3D extent);
|
||||||
|
void kvfCopyImageToImage(VkCommandBuffer cmd, VkImage src, VkImageLayout src_layout, VkImage dst, VkImageLayout dst_layout, uint32_t count, const VkImageCopy* regions);
|
||||||
|
|
||||||
void kvfDestroyImage(VkDevice device, VkImage image);
|
void kvfDestroyImage(VkDevice device, VkImage image);
|
||||||
VkImageView kvfCreateImageView(VkDevice device, VkImage image, VkFormat format, VkImageViewType type, VkImageAspectFlags aspect, int layer_count);
|
VkImageView kvfCreateImageView(VkDevice device, VkImage image, VkFormat format, VkImageViewType type, VkImageAspectFlags aspect, int layer_count);
|
||||||
void kvfDestroyImageView(VkDevice device, VkImageView image_view);
|
void kvfDestroyImageView(VkDevice device, VkImageView image_view);
|
||||||
@@ -270,6 +351,42 @@ int32_t kvfFindMemoryType(VkPhysicalDevice physical_device, uint32_t type_filter
|
|||||||
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkGetPhysicalDeviceSurfaceFormatsKHR);
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkGetPhysicalDeviceSurfaceFormatsKHR);
|
||||||
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkGetPhysicalDeviceSurfacePresentModesKHR);
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkGetPhysicalDeviceSurfacePresentModesKHR);
|
||||||
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkGetPhysicalDeviceSurfaceSupportKHR);
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkGetPhysicalDeviceSurfaceSupportKHR);
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_ANDROID_KHR
|
||||||
|
#ifdef VK_KHR_android_surface
|
||||||
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkCreateAndroidSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
|
#ifdef VK_KHR_xcb_surface
|
||||||
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkCreateXcbSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
||||||
|
#ifdef VK_KHR_xlib_surface
|
||||||
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkCreateXlibSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
|
#ifdef VK_KHR_wayland_surface
|
||||||
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkCreateWaylandSurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
#ifdef VK_KHR_win32_surface
|
||||||
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkCreateWin32SurfaceKHR);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
#ifdef VK_EXT_metal_surface
|
||||||
|
KVF_DEFINE_VULKAN_FUNCTION_PROTOTYPE(vkCreateMetalSurfaceEXT);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2091,6 +2208,98 @@ void kvfDestroySemaphore(VkDevice device, VkSemaphore semaphore)
|
|||||||
KVF_ASSERT(device != VK_NULL_HANDLE);
|
KVF_ASSERT(device != VK_NULL_HANDLE);
|
||||||
__kvfDestroySwapchain(device, swapchain);
|
__kvfDestroySwapchain(device, swapchain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VkSurfaceKHR kvfCreateSurfaceKHR(VkInstance instance, KvfSurfaceType type, void* instance_handle, void* window_handle)
|
||||||
|
{
|
||||||
|
VkSurfaceKHR surface = VK_NULL_HANDLE;
|
||||||
|
switch(type)
|
||||||
|
{
|
||||||
|
#ifdef VK_USE_PLATFORM_ANDROID_KHR
|
||||||
|
case KVF_SURFACE_ANDROID:
|
||||||
|
{
|
||||||
|
VkAndroidSurfaceCreateInfoKHR create_info = {};
|
||||||
|
create_info.sType = VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR;
|
||||||
|
create_info.pNext = nullptr;
|
||||||
|
create_info.flags = 0;
|
||||||
|
create_info.window = (ANativeWindow*)window_handle;
|
||||||
|
kvfCheckVk(KVF_GET_INSTANCE_FUNCTION(vkCreateAndroidSurfaceKHR)(instance, &create_info, NULL, &surface));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
||||||
|
case KVF_SURFACE_XLIB:
|
||||||
|
{
|
||||||
|
VkXlibSurfaceCreateInfoKHR create_info = {};
|
||||||
|
create_info.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
|
||||||
|
create_info.pNext = nullptr;
|
||||||
|
create_info.flags = 0;
|
||||||
|
create_info.dpy = (Display*)instance_handle;
|
||||||
|
create_info.window = *(Window*)window_handle;
|
||||||
|
kvfCheckVk(KVF_GET_INSTANCE_FUNCTION(vkCreateXlibSurfaceKHR)(instance, &create_info, NULL, &surface));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
|
case KVF_SURFACE_XCB:
|
||||||
|
{
|
||||||
|
VkXcbSurfaceCreateInfoKHR create_info = {};
|
||||||
|
create_info.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
|
||||||
|
create_info.pNext = nullptr;
|
||||||
|
create_info.flags = 0;
|
||||||
|
create_info.connection = (xcb_connection_t*)instance_handle;
|
||||||
|
create_info.window = (*xcb_window_t*)window_handle;
|
||||||
|
kvfCheckVk(KVF_GET_INSTANCE_FUNCTION(vkCreateXcbSurfaceKHR)(instance, &create_info, NULL, &surface));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
|
case KVF_SURFACE_WAYLAND:
|
||||||
|
{
|
||||||
|
VkWaylandSurfaceCreateInfoKHR create_info = {};
|
||||||
|
create_info.sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR;
|
||||||
|
create_info.pNext = nullptr;
|
||||||
|
create_info.flags = 0;
|
||||||
|
create_info.display = (wl_display*)instance_handle;
|
||||||
|
create_info.surface = (wl_surface*)window_handle;
|
||||||
|
kvfCheckVk(KVF_GET_INSTANCE_FUNCTION(vkCreateWaylandSurfaceKHR)(instance, &create_info, NULL, &surface));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
case KVF_SURFACE_WINDOWS:
|
||||||
|
{
|
||||||
|
VkWin32SurfaceCreateInfoKHR create_info = {};
|
||||||
|
create_info.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR;
|
||||||
|
create_info.pNext = nullptr;
|
||||||
|
create_info.flags = 0;
|
||||||
|
create_info.hinstance = (HINSTANCE)instance_handle;
|
||||||
|
create_info.hwnd = (HWND)window_handle;
|
||||||
|
kvfCheckVk(KVF_GET_INSTANCE_FUNCTION(vkCreateWin32SurfaceKHR)(instance, &create_info, NULL, &surface));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
case KVF_SURFACE_METAL:
|
||||||
|
{
|
||||||
|
VkMetalSurfaceCreateInfoEXT create_info = {};
|
||||||
|
create_info.sType = VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT;
|
||||||
|
create_info.pNext = nullptr;
|
||||||
|
create_info.flags = 0;
|
||||||
|
create_info.pLayer = (CAMetalLayer*)window_handle;
|
||||||
|
kvfCheckVk(KVF_GET_INSTANCE_FUNCTION(vkCreateMetalSurfaceEXT)(instance, &create_info, NULL, &surface));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
return surface;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
VkImage kvfCreateImage(VkDevice device, uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, KvfImageType type)
|
VkImage kvfCreateImage(VkDevice device, uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, KvfImageType type)
|
||||||
@@ -2147,6 +2356,18 @@ void kvfCopyImageToBuffer(VkCommandBuffer cmd, VkBuffer dst, VkImage src, size_t
|
|||||||
KVF_GET_DEVICE_FUNCTION(vkCmdCopyImageToBuffer)(cmd, src, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, dst, 1, ®ion);
|
KVF_GET_DEVICE_FUNCTION(vkCmdCopyImageToBuffer)(cmd, src, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, dst, 1, ®ion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void kvfCopyImageToImage(VkCommandBuffer cmd, VkImage src, VkImageLayout src_layout, VkImage dst, VkImageLayout dst_layout, uint32_t count, const VkImageCopy* regions)
|
||||||
|
{
|
||||||
|
KVF_ASSERT(cmd != VK_NULL_HANDLE);
|
||||||
|
KVF_ASSERT(dst != VK_NULL_HANDLE);
|
||||||
|
KVF_ASSERT(src != VK_NULL_HANDLE);
|
||||||
|
#ifdef KVF_IMPL_VK_NO_PROTOTYPES
|
||||||
|
__KvfDevice* kvf_device = __kvfGetKvfDeviceFromVkCommandBuffer(cmd);
|
||||||
|
KVF_ASSERT(kvf_device != NULL && "could not find VkDevice in registered devices");
|
||||||
|
#endif
|
||||||
|
KVF_GET_DEVICE_FUNCTION(vkCmdCopyImage)(cmd, src, src_layout, dst, dst_layout, count, regions);
|
||||||
|
}
|
||||||
|
|
||||||
void kvfDestroyImage(VkDevice device, VkImage image)
|
void kvfDestroyImage(VkDevice device, VkImage image)
|
||||||
{
|
{
|
||||||
if(image == VK_NULL_HANDLE)
|
if(image == VK_NULL_HANDLE)
|
||||||
@@ -2955,7 +3176,7 @@ void kvfGPipelineBuilderEnableAdditiveBlending(KvfGraphicsPipelineBuilder* build
|
|||||||
builder->color_blend_attachment_state.dstColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
builder->color_blend_attachment_state.dstColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
builder->color_blend_attachment_state.colorBlendOp = VK_BLEND_OP_ADD;
|
builder->color_blend_attachment_state.colorBlendOp = VK_BLEND_OP_ADD;
|
||||||
builder->color_blend_attachment_state.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
builder->color_blend_attachment_state.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
||||||
builder->color_blend_attachment_state.alphaBlendOp = VK_BLEND_OP_ADD;
|
builder->color_blend_attachment_state.alphaBlendOp = VK_BLEND_OP_ADD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2968,7 +3189,7 @@ void kvfGPipelineBuilderEnableAlphaBlending(KvfGraphicsPipelineBuilder* builder)
|
|||||||
builder->color_blend_attachment_state.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
builder->color_blend_attachment_state.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
||||||
builder->color_blend_attachment_state.colorBlendOp = VK_BLEND_OP_ADD;
|
builder->color_blend_attachment_state.colorBlendOp = VK_BLEND_OP_ADD;
|
||||||
builder->color_blend_attachment_state.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
builder->color_blend_attachment_state.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
||||||
builder->color_blend_attachment_state.alphaBlendOp = VK_BLEND_OP_ADD;
|
builder->color_blend_attachment_state.alphaBlendOp = VK_BLEND_OP_ADD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+108
-9453
File diff suppressed because it is too large
Load Diff
Vendored
+3305
-1401
File diff suppressed because it is too large
Load Diff
Vendored
+2514
-615
File diff suppressed because it is too large
Load Diff
Vendored
+1340
-434
File diff suppressed because it is too large
Load Diff
+287
-76
@@ -16,7 +16,13 @@
|
|||||||
# include <vulkan/vulkan.hpp>
|
# include <vulkan/vulkan.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
#if defined( VULKAN_HPP_CXX_MODULE )
|
||||||
|
# define VULKAN_HPP_EXPORT export
|
||||||
|
#else
|
||||||
|
# define VULKAN_HPP_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
//======================================
|
//======================================
|
||||||
//=== Extension inspection functions ===
|
//=== Extension inspection functions ===
|
||||||
@@ -44,7 +50,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
VULKAN_HPP_INLINE std::map<std::string, std::string> const & getDeprecatedExtensions()
|
VULKAN_HPP_INLINE std::map<std::string, std::string> const & getDeprecatedExtensions()
|
||||||
{
|
{
|
||||||
static const std::map<std::string, std::string> deprecatedExtensions = { { "VK_EXT_debug_report", "VK_EXT_debug_utils" },
|
static std::map<std::string, std::string> const deprecatedExtensions = { { "VK_EXT_debug_report", "VK_EXT_debug_utils" },
|
||||||
{ "VK_NV_glsl_shader", "" },
|
{ "VK_NV_glsl_shader", "" },
|
||||||
{ "VK_NV_dedicated_allocation", "VK_KHR_dedicated_allocation" },
|
{ "VK_NV_dedicated_allocation", "VK_KHR_dedicated_allocation" },
|
||||||
{ "VK_AMD_gpu_shader_half_float", "VK_KHR_shader_float16_int8" },
|
{ "VK_AMD_gpu_shader_half_float", "VK_KHR_shader_float16_int8" },
|
||||||
@@ -67,16 +73,17 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ "VK_NV_ray_tracing", "VK_KHR_ray_tracing_pipeline" },
|
{ "VK_NV_ray_tracing", "VK_KHR_ray_tracing_pipeline" },
|
||||||
{ "VK_EXT_buffer_device_address", "VK_KHR_buffer_device_address" },
|
{ "VK_EXT_buffer_device_address", "VK_KHR_buffer_device_address" },
|
||||||
{ "VK_EXT_validation_features", "VK_EXT_layer_settings" },
|
{ "VK_EXT_validation_features", "VK_EXT_layer_settings" },
|
||||||
|
{ "VK_EXT_descriptor_buffer", "VK_EXT_descriptor_heap" },
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
{ "VK_NV_displacement_micromap", "VK_NV_cluster_acceleration_structure" }
|
{ "VK_NV_displacement_micromap", "VK_NV_cluster_acceleration_structure" },
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
};
|
{ "VK_NV_per_stage_descriptor_set", "VK_EXT_descriptor_heap" } };
|
||||||
return deprecatedExtensions;
|
return deprecatedExtensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
VULKAN_HPP_INLINE std::set<std::string> const & getDeviceExtensions()
|
VULKAN_HPP_INLINE std::set<std::string> const & getDeviceExtensions()
|
||||||
{
|
{
|
||||||
static const std::set<std::string> deviceExtensions = { "VK_KHR_swapchain",
|
static std::set<std::string> const deviceExtensions = { "VK_KHR_swapchain",
|
||||||
"VK_KHR_display_swapchain",
|
"VK_KHR_display_swapchain",
|
||||||
"VK_NV_glsl_shader",
|
"VK_NV_glsl_shader",
|
||||||
"VK_EXT_depth_range_unrestricted",
|
"VK_EXT_depth_range_unrestricted",
|
||||||
@@ -172,9 +179,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_EXT_sampler_filter_minmax",
|
"VK_EXT_sampler_filter_minmax",
|
||||||
"VK_KHR_storage_buffer_storage_class",
|
"VK_KHR_storage_buffer_storage_class",
|
||||||
"VK_AMD_gpu_shader_int16",
|
"VK_AMD_gpu_shader_int16",
|
||||||
|
"VK_AMD_gpa_interface",
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
"VK_AMDX_shader_enqueue",
|
"VK_AMDX_shader_enqueue",
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
|
"VK_EXT_descriptor_heap",
|
||||||
"VK_AMD_mixed_attachment_samples",
|
"VK_AMD_mixed_attachment_samples",
|
||||||
"VK_AMD_shader_fragment_mask",
|
"VK_AMD_shader_fragment_mask",
|
||||||
"VK_EXT_inline_uniform_block",
|
"VK_EXT_inline_uniform_block",
|
||||||
@@ -209,6 +218,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_draw_indirect_count",
|
"VK_KHR_draw_indirect_count",
|
||||||
"VK_EXT_filter_cubic",
|
"VK_EXT_filter_cubic",
|
||||||
"VK_QCOM_render_pass_shader_resolve",
|
"VK_QCOM_render_pass_shader_resolve",
|
||||||
|
"VK_QCOM_cooperative_matrix_conversion",
|
||||||
|
"VK_QCOM_elapsed_timer_query",
|
||||||
"VK_EXT_global_priority",
|
"VK_EXT_global_priority",
|
||||||
"VK_KHR_shader_subgroup_extended_types",
|
"VK_KHR_shader_subgroup_extended_types",
|
||||||
"VK_KHR_8bit_storage",
|
"VK_KHR_8bit_storage",
|
||||||
@@ -254,7 +265,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_fragment_shading_rate",
|
"VK_KHR_fragment_shading_rate",
|
||||||
"VK_AMD_shader_core_properties2",
|
"VK_AMD_shader_core_properties2",
|
||||||
"VK_AMD_device_coherent_memory",
|
"VK_AMD_device_coherent_memory",
|
||||||
|
"VK_KHR_shader_constant_data",
|
||||||
"VK_KHR_dynamic_rendering_local_read",
|
"VK_KHR_dynamic_rendering_local_read",
|
||||||
|
"VK_KHR_shader_abort",
|
||||||
"VK_EXT_shader_image_atomic_int64",
|
"VK_EXT_shader_image_atomic_int64",
|
||||||
"VK_KHR_shader_quad_control",
|
"VK_KHR_shader_quad_control",
|
||||||
"VK_KHR_spirv_1_4",
|
"VK_KHR_spirv_1_4",
|
||||||
@@ -309,6 +322,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_video_encode_queue",
|
"VK_KHR_video_encode_queue",
|
||||||
"VK_NV_device_diagnostics_config",
|
"VK_NV_device_diagnostics_config",
|
||||||
"VK_QCOM_render_pass_store_ops",
|
"VK_QCOM_render_pass_store_ops",
|
||||||
|
"VK_QCOM_queue_perf_hint",
|
||||||
|
"VK_QCOM_image_processing3",
|
||||||
|
"VK_QCOM_shader_multiple_wait_queues",
|
||||||
|
"VK_EXT_shader_split_barrier",
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
"VK_NV_cuda_kernel_launch",
|
"VK_NV_cuda_kernel_launch",
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
@@ -319,6 +336,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
||||||
"VK_KHR_synchronization2",
|
"VK_KHR_synchronization2",
|
||||||
"VK_EXT_descriptor_buffer",
|
"VK_EXT_descriptor_buffer",
|
||||||
|
"VK_KHR_device_address_commands",
|
||||||
"VK_EXT_graphics_pipeline_library",
|
"VK_EXT_graphics_pipeline_library",
|
||||||
"VK_AMD_shader_early_and_late_fragment_tests",
|
"VK_AMD_shader_early_and_late_fragment_tests",
|
||||||
"VK_KHR_fragment_shader_barycentric",
|
"VK_KHR_fragment_shader_barycentric",
|
||||||
@@ -436,9 +454,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_ARM_shader_core_builtins",
|
"VK_ARM_shader_core_builtins",
|
||||||
"VK_EXT_pipeline_library_group_handles",
|
"VK_EXT_pipeline_library_group_handles",
|
||||||
"VK_EXT_dynamic_rendering_unused_attachments",
|
"VK_EXT_dynamic_rendering_unused_attachments",
|
||||||
|
"VK_KHR_internally_synchronized_queues",
|
||||||
"VK_NV_low_latency2",
|
"VK_NV_low_latency2",
|
||||||
"VK_KHR_cooperative_matrix",
|
"VK_KHR_cooperative_matrix",
|
||||||
"VK_ARM_data_graph",
|
"VK_ARM_data_graph",
|
||||||
|
"VK_ARM_data_graph_instruction_set_tosa",
|
||||||
"VK_QCOM_multiview_per_view_render_areas",
|
"VK_QCOM_multiview_per_view_render_areas",
|
||||||
"VK_KHR_compute_shader_derivatives",
|
"VK_KHR_compute_shader_derivatives",
|
||||||
"VK_KHR_video_decode_av1",
|
"VK_KHR_video_decode_av1",
|
||||||
@@ -482,9 +502,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_NV_cluster_acceleration_structure",
|
"VK_NV_cluster_acceleration_structure",
|
||||||
"VK_NV_partitioned_acceleration_structure",
|
"VK_NV_partitioned_acceleration_structure",
|
||||||
"VK_EXT_device_generated_commands",
|
"VK_EXT_device_generated_commands",
|
||||||
|
"VK_KHR_device_fault",
|
||||||
"VK_KHR_maintenance8",
|
"VK_KHR_maintenance8",
|
||||||
"VK_MESA_image_alignment_control",
|
"VK_MESA_image_alignment_control",
|
||||||
"VK_KHR_shader_fma",
|
"VK_KHR_shader_fma",
|
||||||
|
"VK_NV_push_constant_bank",
|
||||||
"VK_EXT_ray_tracing_invocation_reorder",
|
"VK_EXT_ray_tracing_invocation_reorder",
|
||||||
"VK_EXT_depth_clamp_control",
|
"VK_EXT_depth_clamp_control",
|
||||||
"VK_KHR_maintenance9",
|
"VK_KHR_maintenance9",
|
||||||
@@ -497,30 +519,37 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
||||||
"VK_KHR_depth_clamp_zero_one",
|
"VK_KHR_depth_clamp_zero_one",
|
||||||
"VK_ARM_performance_counters_by_region",
|
"VK_ARM_performance_counters_by_region",
|
||||||
|
"VK_ARM_shader_instrumentation",
|
||||||
"VK_EXT_vertex_attribute_robustness",
|
"VK_EXT_vertex_attribute_robustness",
|
||||||
"VK_ARM_format_pack",
|
"VK_ARM_format_pack",
|
||||||
"VK_VALVE_fragment_density_map_layered",
|
"VK_VALVE_fragment_density_map_layered",
|
||||||
"VK_KHR_robustness2",
|
"VK_KHR_robustness2",
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
|
||||||
"VK_NV_present_metering",
|
"VK_NV_present_metering",
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
|
||||||
"VK_EXT_fragment_density_map_offset",
|
"VK_EXT_fragment_density_map_offset",
|
||||||
"VK_EXT_zero_initialize_device_memory",
|
"VK_EXT_zero_initialize_device_memory",
|
||||||
"VK_KHR_present_mode_fifo_latest_ready",
|
"VK_KHR_present_mode_fifo_latest_ready",
|
||||||
|
"VK_KHR_opacity_micromap",
|
||||||
"VK_EXT_shader_64bit_indexing",
|
"VK_EXT_shader_64bit_indexing",
|
||||||
"VK_EXT_custom_resolve",
|
"VK_EXT_custom_resolve",
|
||||||
"VK_QCOM_data_graph_model",
|
"VK_QCOM_data_graph_model",
|
||||||
"VK_KHR_maintenance10",
|
"VK_KHR_maintenance10",
|
||||||
|
"VK_ARM_data_graph_optical_flow",
|
||||||
"VK_EXT_shader_long_vector",
|
"VK_EXT_shader_long_vector",
|
||||||
"VK_SEC_pipeline_cache_incremental_mode",
|
"VK_SEC_pipeline_cache_incremental_mode",
|
||||||
"VK_EXT_shader_uniform_buffer_unsized_array",
|
"VK_EXT_shader_uniform_buffer_unsized_array",
|
||||||
"VK_NV_compute_occupancy_priority" };
|
"VK_NV_compute_occupancy_priority",
|
||||||
|
"VK_KHR_maintenance11",
|
||||||
|
"VK_EXT_shader_subgroup_partitioned",
|
||||||
|
"VK_VALVE_shader_mixed_float_dot_product",
|
||||||
|
"VK_SEC_throttle_hint",
|
||||||
|
"VK_ARM_data_graph_neural_accelerator_statistics",
|
||||||
|
"VK_EXT_primitive_restart_index" };
|
||||||
return deviceExtensions;
|
return deviceExtensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
VULKAN_HPP_INLINE std::set<std::string> const & getInstanceExtensions()
|
VULKAN_HPP_INLINE std::set<std::string> const & getInstanceExtensions()
|
||||||
{
|
{
|
||||||
static const std::set<std::string> instanceExtensions = { "VK_KHR_surface",
|
static std::set<std::string> const instanceExtensions = { "VK_KHR_surface",
|
||||||
"VK_KHR_display",
|
"VK_KHR_display",
|
||||||
#if defined( VK_USE_PLATFORM_XLIB_KHR )
|
#if defined( VK_USE_PLATFORM_XLIB_KHR )
|
||||||
"VK_KHR_xlib_surface",
|
"VK_KHR_xlib_surface",
|
||||||
@@ -590,16 +619,19 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_EXT_layer_settings",
|
"VK_EXT_layer_settings",
|
||||||
"VK_NV_display_stereo",
|
"VK_NV_display_stereo",
|
||||||
#if defined( VK_USE_PLATFORM_OHOS )
|
#if defined( VK_USE_PLATFORM_OHOS )
|
||||||
"VK_OHOS_surface"
|
"VK_OHOS_surface",
|
||||||
#endif /*VK_USE_PLATFORM_OHOS*/
|
#endif /*VK_USE_PLATFORM_OHOS*/
|
||||||
|
#if defined( VK_USE_PLATFORM_UBM_SEC )
|
||||||
|
"VK_SEC_ubm_surface"
|
||||||
|
#endif /*VK_USE_PLATFORM_UBM_SEC*/
|
||||||
};
|
};
|
||||||
return instanceExtensions;
|
return instanceExtensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
VULKAN_HPP_INLINE std::map<std::string, std::vector<std::vector<std::string>>> const & getExtensionDepends( std::string const & extension )
|
VULKAN_HPP_INLINE std::map<std::string, std::vector<std::vector<std::string>>> const & getExtensionDepends( std::string const & extension )
|
||||||
{
|
{
|
||||||
static const std::map<std::string, std::vector<std::vector<std::string>>> noDependencies;
|
static std::map<std::string, std::vector<std::vector<std::string>>> const noDependencies;
|
||||||
static const std::map<std::string, std::map<std::string, std::vector<std::vector<std::string>>>> dependencies = {
|
static std::map<std::string, std::map<std::string, std::vector<std::vector<std::string>>>> const dependencies = {
|
||||||
{ "VK_KHR_swapchain",
|
{ "VK_KHR_swapchain",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -1082,6 +1114,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#endif /*VK_USE_PLATFORM_ANDROID_KHR*/
|
#endif /*VK_USE_PLATFORM_ANDROID_KHR*/
|
||||||
,
|
,
|
||||||
{ "VK_EXT_sampler_filter_minmax",
|
{ "VK_EXT_sampler_filter_minmax",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_AMD_gpa_interface",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
@@ -1105,6 +1143,16 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
} } } } }
|
} } } } }
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
,
|
,
|
||||||
|
{ "VK_EXT_descriptor_heap",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_buffer_device_address",
|
||||||
|
"VK_KHR_maintenance5",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_2",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_maintenance5",
|
||||||
|
} } } } },
|
||||||
{ "VK_EXT_inline_uniform_block",
|
{ "VK_EXT_inline_uniform_block",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -1226,6 +1274,17 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } },
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_QCOM_cooperative_matrix_conversion",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_cooperative_matrix",
|
||||||
|
} } } } },
|
||||||
|
{ "VK_QCOM_elapsed_timer_query",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_KHR_shader_subgroup_extended_types", { { "VK_VERSION_1_1", { {} } } } },
|
{ "VK_KHR_shader_subgroup_extended_types", { { "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_KHR_8bit_storage",
|
{ "VK_KHR_8bit_storage",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
@@ -1465,12 +1524,24 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } },
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_KHR_shader_constant_data",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_KHR_dynamic_rendering_local_read",
|
{ "VK_KHR_dynamic_rendering_local_read",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_dynamic_rendering",
|
"VK_KHR_dynamic_rendering",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_3", { {} } } } },
|
{ "VK_VERSION_1_3", { {} } } } },
|
||||||
|
{ "VK_KHR_shader_abort",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_device_fault",
|
||||||
|
"VK_KHR_shader_constant_data",
|
||||||
|
} } } } },
|
||||||
{ "VK_EXT_shader_image_atomic_int64",
|
{ "VK_EXT_shader_image_atomic_int64",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -1772,7 +1843,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
"VK_KHR_swapchain",
|
"VK_KHR_swapchain",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } },
|
{ "VK_VERSION_1_1",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_swapchain",
|
||||||
|
} } } } },
|
||||||
{ "VK_EXT_private_data",
|
{ "VK_EXT_private_data",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -1796,6 +1870,30 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_video_queue",
|
"VK_KHR_video_queue",
|
||||||
} } } } },
|
} } } } },
|
||||||
{ "VK_NV_device_diagnostics_config",
|
{ "VK_NV_device_diagnostics_config",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_QCOM_queue_perf_hint",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_QCOM_image_processing3",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_QCOM_shader_multiple_wait_queues",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_EXT_shader_split_barrier",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
@@ -1815,9 +1913,6 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_QCOM_tile_properties",
|
"VK_QCOM_tile_properties",
|
||||||
},
|
|
||||||
{
|
|
||||||
"VK_KHR_get_physical_device_properties2",
|
|
||||||
} } } } },
|
} } } } },
|
||||||
{ "VK_KHR_synchronization2",
|
{ "VK_KHR_synchronization2",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
@@ -1844,6 +1939,26 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_synchronization2",
|
"VK_KHR_synchronization2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_3", { {} } } } },
|
{ "VK_VERSION_1_3", { {} } } } },
|
||||||
|
{ "VK_KHR_device_address_commands",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_EXT_extended_dynamic_state",
|
||||||
|
"VK_KHR_buffer_device_address",
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
"VK_KHR_synchronization2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1",
|
||||||
|
{ {
|
||||||
|
"VK_EXT_extended_dynamic_state",
|
||||||
|
"VK_KHR_buffer_device_address",
|
||||||
|
"VK_KHR_synchronization2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_2",
|
||||||
|
{ {
|
||||||
|
"VK_EXT_extended_dynamic_state",
|
||||||
|
"VK_KHR_synchronization2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_3", { {} } } } },
|
||||||
{ "VK_EXT_graphics_pipeline_library",
|
{ "VK_EXT_graphics_pipeline_library",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -2495,21 +2610,20 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ "VK_KHR_surface_maintenance1",
|
{ "VK_KHR_surface_maintenance1",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_surface",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"VK_KHR_get_surface_capabilities2",
|
"VK_KHR_get_surface_capabilities2",
|
||||||
|
"VK_KHR_surface",
|
||||||
} } } } },
|
} } } } },
|
||||||
{ "VK_KHR_swapchain_maintenance1",
|
{ "VK_KHR_swapchain_maintenance1",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_swapchain",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"VK_KHR_surface_maintenance1",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
"VK_KHR_surface_maintenance1",
|
||||||
|
"VK_KHR_swapchain",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_surface_maintenance1",
|
||||||
|
"VK_KHR_swapchain",
|
||||||
} } } } },
|
} } } } },
|
||||||
{ "VK_QCOM_multiview_per_view_viewports",
|
{ "VK_QCOM_multiview_per_view_viewports",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
@@ -2568,6 +2682,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_dynamic_rendering",
|
"VK_KHR_dynamic_rendering",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_3", { {} } } } },
|
{ "VK_VERSION_1_3", { {} } } } },
|
||||||
|
{ "VK_KHR_internally_synchronized_queues", { { "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_NV_low_latency2",
|
{ "VK_NV_low_latency2",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -2597,6 +2712,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_deferred_host_operations",
|
"VK_KHR_deferred_host_operations",
|
||||||
"VK_KHR_maintenance5",
|
"VK_KHR_maintenance5",
|
||||||
} } } } },
|
} } } } },
|
||||||
|
{ "VK_ARM_data_graph_instruction_set_tosa",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_ARM_data_graph",
|
||||||
|
} } } } },
|
||||||
{ "VK_QCOM_multiview_per_view_render_areas",
|
{ "VK_QCOM_multiview_per_view_render_areas",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -2841,6 +2961,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_maintenance5",
|
"VK_KHR_maintenance5",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_3", { {} } } } },
|
{ "VK_VERSION_1_3", { {} } } } },
|
||||||
|
{ "VK_KHR_device_fault",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_KHR_maintenance8", { { "VK_VERSION_1_1", { {} } } } },
|
{ "VK_KHR_maintenance8", { { "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_MESA_image_alignment_control",
|
{ "VK_MESA_image_alignment_control",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
@@ -2929,6 +3055,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } },
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_ARM_shader_instrumentation",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_EXT_vertex_attribute_robustness",
|
{ "VK_EXT_vertex_attribute_robustness",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -2956,17 +3088,13 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ {
|
{ {
|
||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } }
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
|
||||||
,
|
|
||||||
{ "VK_NV_present_metering",
|
{ "VK_NV_present_metering",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } }
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
|
||||||
,
|
|
||||||
{ "VK_EXT_fragment_density_map_offset",
|
{ "VK_EXT_fragment_density_map_offset",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -3001,6 +3129,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ {
|
{ {
|
||||||
"VK_KHR_swapchain",
|
"VK_KHR_swapchain",
|
||||||
} } } } },
|
} } } } },
|
||||||
|
{ "VK_KHR_opacity_micromap",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_acceleration_structure",
|
||||||
|
"VK_KHR_device_address_commands",
|
||||||
|
} } } } },
|
||||||
{ "VK_EXT_shader_64bit_indexing",
|
{ "VK_EXT_shader_64bit_indexing",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
@@ -3024,6 +3158,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } },
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_ARM_data_graph_optical_flow",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_ARM_data_graph",
|
||||||
|
} } } } },
|
||||||
{ "VK_EXT_shader_long_vector", { { "VK_VERSION_1_2", { {} } } } },
|
{ "VK_EXT_shader_long_vector", { { "VK_VERSION_1_2", { {} } } } },
|
||||||
{ "VK_SEC_pipeline_cache_incremental_mode",
|
{ "VK_SEC_pipeline_cache_incremental_mode",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
@@ -3038,6 +3177,48 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
} } },
|
} } },
|
||||||
{ "VK_VERSION_1_1", { {} } } } },
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
{ "VK_NV_compute_occupancy_priority",
|
{ "VK_NV_compute_occupancy_priority",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_KHR_maintenance11",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } },
|
||||||
|
{ "VK_EXT_shader_subgroup_partitioned",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1", { {} } } } }
|
||||||
|
#if defined( VK_USE_PLATFORM_UBM_SEC )
|
||||||
|
,
|
||||||
|
{ "VK_SEC_ubm_surface",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_surface",
|
||||||
|
} } } } }
|
||||||
|
#endif /*VK_USE_PLATFORM_UBM_SEC*/
|
||||||
|
,
|
||||||
|
{ "VK_VALVE_shader_mixed_float_dot_product",
|
||||||
|
{ { "VK_VERSION_1_0",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
"VK_KHR_shader_float16_int8",
|
||||||
|
} } },
|
||||||
|
{ "VK_VERSION_1_1",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_shader_float16_int8",
|
||||||
|
},
|
||||||
|
{} } },
|
||||||
|
{ "VK_VERSION_1_2",
|
||||||
|
{ {
|
||||||
|
"VK_KHR_get_physical_device_properties2",
|
||||||
|
} } } } },
|
||||||
|
{ "VK_EXT_primitive_restart_index",
|
||||||
{ { "VK_VERSION_1_0",
|
{ { "VK_VERSION_1_0",
|
||||||
{ {
|
{ {
|
||||||
"VK_KHR_get_physical_device_properties2",
|
"VK_KHR_get_physical_device_properties2",
|
||||||
@@ -3079,13 +3260,13 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
VULKAN_HPP_INLINE std::map<std::string, std::string> const & getObsoletedExtensions()
|
VULKAN_HPP_INLINE std::map<std::string, std::string> const & getObsoletedExtensions()
|
||||||
{
|
{
|
||||||
static const std::map<std::string, std::string> obsoletedExtensions = { { "VK_AMD_negative_viewport_height", "VK_KHR_maintenance1" } };
|
static std::map<std::string, std::string> const obsoletedExtensions = { { "VK_AMD_negative_viewport_height", "VK_KHR_maintenance1" } };
|
||||||
return obsoletedExtensions;
|
return obsoletedExtensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
VULKAN_HPP_INLINE std::map<std::string, std::string> const & getPromotedExtensions()
|
VULKAN_HPP_INLINE std::map<std::string, std::string> const & getPromotedExtensions()
|
||||||
{
|
{
|
||||||
static const std::map<std::string, std::string> promotedExtensions = { { "VK_KHR_sampler_mirror_clamp_to_edge", "VK_VERSION_1_2" },
|
static std::map<std::string, std::string> const promotedExtensions = { { "VK_KHR_sampler_mirror_clamp_to_edge", "VK_VERSION_1_2" },
|
||||||
{ "VK_EXT_debug_marker", "VK_EXT_debug_utils" },
|
{ "VK_EXT_debug_marker", "VK_EXT_debug_utils" },
|
||||||
{ "VK_AMD_draw_indirect_count", "VK_KHR_draw_indirect_count" },
|
{ "VK_AMD_draw_indirect_count", "VK_KHR_draw_indirect_count" },
|
||||||
{ "VK_KHR_dynamic_rendering", "VK_VERSION_1_3" },
|
{ "VK_KHR_dynamic_rendering", "VK_VERSION_1_3" },
|
||||||
@@ -3138,6 +3319,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ "VK_EXT_pipeline_creation_feedback", "VK_VERSION_1_3" },
|
{ "VK_EXT_pipeline_creation_feedback", "VK_VERSION_1_3" },
|
||||||
{ "VK_KHR_driver_properties", "VK_VERSION_1_2" },
|
{ "VK_KHR_driver_properties", "VK_VERSION_1_2" },
|
||||||
{ "VK_KHR_shader_float_controls", "VK_VERSION_1_2" },
|
{ "VK_KHR_shader_float_controls", "VK_VERSION_1_2" },
|
||||||
|
{ "VK_NV_shader_subgroup_partitioned", "VK_EXT_shader_subgroup_partitioned" },
|
||||||
{ "VK_KHR_depth_stencil_resolve", "VK_VERSION_1_2" },
|
{ "VK_KHR_depth_stencil_resolve", "VK_VERSION_1_2" },
|
||||||
{ "VK_NV_compute_shader_derivatives", "VK_KHR_compute_shader_derivatives" },
|
{ "VK_NV_compute_shader_derivatives", "VK_KHR_compute_shader_derivatives" },
|
||||||
{ "VK_NV_fragment_shader_barycentric", "VK_KHR_fragment_shader_barycentric" },
|
{ "VK_NV_fragment_shader_barycentric", "VK_KHR_fragment_shader_barycentric" },
|
||||||
@@ -3174,6 +3356,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ "VK_EXT_image_robustness", "VK_VERSION_1_3" },
|
{ "VK_EXT_image_robustness", "VK_VERSION_1_3" },
|
||||||
{ "VK_KHR_copy_commands2", "VK_VERSION_1_3" },
|
{ "VK_KHR_copy_commands2", "VK_VERSION_1_3" },
|
||||||
{ "VK_EXT_4444_formats", "VK_VERSION_1_3" },
|
{ "VK_EXT_4444_formats", "VK_VERSION_1_3" },
|
||||||
|
{ "VK_EXT_device_fault", "VK_KHR_device_fault" },
|
||||||
{ "VK_ARM_rasterization_order_attachment_access",
|
{ "VK_ARM_rasterization_order_attachment_access",
|
||||||
"VK_EXT_rasterization_order_attachment_access" },
|
"VK_EXT_rasterization_order_attachment_access" },
|
||||||
{ "VK_VALVE_mutable_descriptor_type", "VK_EXT_mutable_descriptor_type" },
|
{ "VK_VALVE_mutable_descriptor_type", "VK_EXT_mutable_descriptor_type" },
|
||||||
@@ -3181,6 +3364,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{ "VK_EXT_present_mode_fifo_latest_ready", "VK_KHR_present_mode_fifo_latest_ready" },
|
{ "VK_EXT_present_mode_fifo_latest_ready", "VK_KHR_present_mode_fifo_latest_ready" },
|
||||||
{ "VK_EXT_extended_dynamic_state2", "VK_VERSION_1_3" },
|
{ "VK_EXT_extended_dynamic_state2", "VK_VERSION_1_3" },
|
||||||
{ "VK_EXT_global_priority_query", "VK_KHR_global_priority" },
|
{ "VK_EXT_global_priority_query", "VK_KHR_global_priority" },
|
||||||
|
{ "VK_EXT_opacity_micromap", "VK_KHR_opacity_micromap" },
|
||||||
{ "VK_EXT_load_store_op_none", "VK_KHR_load_store_op_none" },
|
{ "VK_EXT_load_store_op_none", "VK_KHR_load_store_op_none" },
|
||||||
{ "VK_KHR_maintenance4", "VK_VERSION_1_3" },
|
{ "VK_KHR_maintenance4", "VK_VERSION_1_3" },
|
||||||
{ "VK_KHR_shader_subgroup_rotate", "VK_VERSION_1_4" },
|
{ "VK_KHR_shader_subgroup_rotate", "VK_VERSION_1_4" },
|
||||||
@@ -3278,13 +3462,20 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
return "VK_EXT_layer_settings";
|
return "VK_EXT_layer_settings";
|
||||||
}
|
}
|
||||||
|
if ( extension == "VK_EXT_descriptor_buffer" )
|
||||||
|
{
|
||||||
|
return "VK_EXT_descriptor_heap";
|
||||||
|
}
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
if ( extension == "VK_NV_displacement_micromap" )
|
if ( extension == "VK_NV_displacement_micromap" )
|
||||||
{
|
{
|
||||||
return "VK_NV_cluster_acceleration_structure";
|
return "VK_NV_cluster_acceleration_structure";
|
||||||
}
|
}
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
|
if ( extension == "VK_NV_per_stage_descriptor_set" )
|
||||||
|
{
|
||||||
|
return "VK_EXT_descriptor_heap";
|
||||||
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3505,6 +3696,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
return "VK_VERSION_1_2";
|
return "VK_VERSION_1_2";
|
||||||
}
|
}
|
||||||
|
if ( extension == "VK_NV_shader_subgroup_partitioned" )
|
||||||
|
{
|
||||||
|
return "VK_EXT_shader_subgroup_partitioned";
|
||||||
|
}
|
||||||
if ( extension == "VK_KHR_depth_stencil_resolve" )
|
if ( extension == "VK_KHR_depth_stencil_resolve" )
|
||||||
{
|
{
|
||||||
return "VK_VERSION_1_2";
|
return "VK_VERSION_1_2";
|
||||||
@@ -3649,6 +3844,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
return "VK_VERSION_1_3";
|
return "VK_VERSION_1_3";
|
||||||
}
|
}
|
||||||
|
if ( extension == "VK_EXT_device_fault" )
|
||||||
|
{
|
||||||
|
return "VK_KHR_device_fault";
|
||||||
|
}
|
||||||
if ( extension == "VK_ARM_rasterization_order_attachment_access" )
|
if ( extension == "VK_ARM_rasterization_order_attachment_access" )
|
||||||
{
|
{
|
||||||
return "VK_EXT_rasterization_order_attachment_access";
|
return "VK_EXT_rasterization_order_attachment_access";
|
||||||
@@ -3673,6 +3872,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
return "VK_KHR_global_priority";
|
return "VK_KHR_global_priority";
|
||||||
}
|
}
|
||||||
|
if ( extension == "VK_EXT_opacity_micromap" )
|
||||||
|
{
|
||||||
|
return "VK_KHR_opacity_micromap";
|
||||||
|
}
|
||||||
if ( extension == "VK_EXT_load_store_op_none" )
|
if ( extension == "VK_EXT_load_store_op_none" )
|
||||||
{
|
{
|
||||||
return "VK_KHR_load_store_op_none";
|
return "VK_KHR_load_store_op_none";
|
||||||
@@ -3764,11 +3967,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|| ( extension == "VK_MVK_macos_surface" )
|
|| ( extension == "VK_MVK_macos_surface" )
|
||||||
#endif /*VK_USE_PLATFORM_MACOS_MVK*/
|
#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_AMD_gpu_shader_int16" ) || ( extension == "VK_NV_ray_tracing" ) || ( extension == "VK_EXT_buffer_device_address" ) ||
|
||||||
( extension == "VK_EXT_validation_features" )
|
( extension == "VK_EXT_validation_features" ) || ( extension == "VK_EXT_descriptor_buffer" )
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
|| ( extension == "VK_NV_displacement_micromap" )
|
|| ( extension == "VK_NV_displacement_micromap" )
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
|| false;
|
|| ( extension == "VK_NV_per_stage_descriptor_set" );
|
||||||
}
|
}
|
||||||
|
|
||||||
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 bool isDeviceExtension( std::string const & extension )
|
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 bool isDeviceExtension( std::string const & extension )
|
||||||
@@ -3823,11 +4026,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|| ( extension == "VK_ANDROID_external_memory_android_hardware_buffer" )
|
|| ( extension == "VK_ANDROID_external_memory_android_hardware_buffer" )
|
||||||
#endif /*VK_USE_PLATFORM_ANDROID_KHR*/
|
#endif /*VK_USE_PLATFORM_ANDROID_KHR*/
|
||||||
|| ( extension == "VK_EXT_sampler_filter_minmax" ) || ( extension == "VK_KHR_storage_buffer_storage_class" ) ||
|
|| ( extension == "VK_EXT_sampler_filter_minmax" ) || ( extension == "VK_KHR_storage_buffer_storage_class" ) ||
|
||||||
( extension == "VK_AMD_gpu_shader_int16" )
|
( extension == "VK_AMD_gpu_shader_int16" ) || ( extension == "VK_AMD_gpa_interface" )
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
|| ( extension == "VK_AMDX_shader_enqueue" )
|
|| ( extension == "VK_AMDX_shader_enqueue" )
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
|| ( extension == "VK_AMD_mixed_attachment_samples" ) || ( extension == "VK_AMD_shader_fragment_mask" ) ||
|
|| ( extension == "VK_EXT_descriptor_heap" ) || ( extension == "VK_AMD_mixed_attachment_samples" ) || ( extension == "VK_AMD_shader_fragment_mask" ) ||
|
||||||
( extension == "VK_EXT_inline_uniform_block" ) || ( extension == "VK_EXT_shader_stencil_export" ) || ( extension == "VK_KHR_shader_bfloat16" ) ||
|
( extension == "VK_EXT_inline_uniform_block" ) || ( extension == "VK_EXT_shader_stencil_export" ) || ( extension == "VK_KHR_shader_bfloat16" ) ||
|
||||||
( extension == "VK_EXT_sample_locations" ) || ( extension == "VK_KHR_relaxed_block_layout" ) || ( extension == "VK_KHR_get_memory_requirements2" ) ||
|
( extension == "VK_EXT_sample_locations" ) || ( extension == "VK_KHR_relaxed_block_layout" ) || ( extension == "VK_KHR_get_memory_requirements2" ) ||
|
||||||
( extension == "VK_KHR_image_format_list" ) || ( extension == "VK_EXT_blend_operation_advanced" ) ||
|
( extension == "VK_KHR_image_format_list" ) || ( extension == "VK_EXT_blend_operation_advanced" ) ||
|
||||||
@@ -3842,7 +4045,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
|| ( extension == "VK_NV_shading_rate_image" ) || ( extension == "VK_NV_ray_tracing" ) || ( extension == "VK_NV_representative_fragment_test" ) ||
|
|| ( extension == "VK_NV_shading_rate_image" ) || ( extension == "VK_NV_ray_tracing" ) || ( extension == "VK_NV_representative_fragment_test" ) ||
|
||||||
( extension == "VK_KHR_maintenance3" ) || ( extension == "VK_KHR_draw_indirect_count" ) || ( extension == "VK_EXT_filter_cubic" ) ||
|
( extension == "VK_KHR_maintenance3" ) || ( extension == "VK_KHR_draw_indirect_count" ) || ( extension == "VK_EXT_filter_cubic" ) ||
|
||||||
( extension == "VK_QCOM_render_pass_shader_resolve" ) || ( extension == "VK_EXT_global_priority" ) ||
|
( extension == "VK_QCOM_render_pass_shader_resolve" ) || ( extension == "VK_QCOM_cooperative_matrix_conversion" ) ||
|
||||||
|
( extension == "VK_QCOM_elapsed_timer_query" ) || ( extension == "VK_EXT_global_priority" ) ||
|
||||||
( extension == "VK_KHR_shader_subgroup_extended_types" ) || ( extension == "VK_KHR_8bit_storage" ) ||
|
( extension == "VK_KHR_shader_subgroup_extended_types" ) || ( extension == "VK_KHR_8bit_storage" ) ||
|
||||||
( extension == "VK_EXT_external_memory_host" ) || ( extension == "VK_AMD_buffer_marker" ) || ( extension == "VK_KHR_shader_atomic_int64" ) ||
|
( extension == "VK_EXT_external_memory_host" ) || ( extension == "VK_AMD_buffer_marker" ) || ( extension == "VK_KHR_shader_atomic_int64" ) ||
|
||||||
( extension == "VK_KHR_shader_clock" ) || ( extension == "VK_AMD_pipeline_compiler_control" ) || ( extension == "VK_EXT_calibrated_timestamps" ) ||
|
( extension == "VK_KHR_shader_clock" ) || ( extension == "VK_AMD_pipeline_compiler_control" ) || ( extension == "VK_EXT_calibrated_timestamps" ) ||
|
||||||
@@ -3864,12 +4068,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
( extension == "VK_GOOGLE_hlsl_functionality1" ) || ( extension == "VK_GOOGLE_decorate_string" ) ||
|
( extension == "VK_GOOGLE_hlsl_functionality1" ) || ( extension == "VK_GOOGLE_decorate_string" ) ||
|
||||||
( extension == "VK_EXT_subgroup_size_control" ) || ( extension == "VK_KHR_fragment_shading_rate" ) ||
|
( extension == "VK_EXT_subgroup_size_control" ) || ( extension == "VK_KHR_fragment_shading_rate" ) ||
|
||||||
( extension == "VK_AMD_shader_core_properties2" ) || ( extension == "VK_AMD_device_coherent_memory" ) ||
|
( extension == "VK_AMD_shader_core_properties2" ) || ( extension == "VK_AMD_device_coherent_memory" ) ||
|
||||||
( extension == "VK_KHR_dynamic_rendering_local_read" ) || ( extension == "VK_EXT_shader_image_atomic_int64" ) ||
|
( extension == "VK_KHR_shader_constant_data" ) || ( extension == "VK_KHR_dynamic_rendering_local_read" ) || ( extension == "VK_KHR_shader_abort" ) ||
|
||||||
( extension == "VK_KHR_shader_quad_control" ) || ( extension == "VK_KHR_spirv_1_4" ) || ( extension == "VK_EXT_memory_budget" ) ||
|
( extension == "VK_EXT_shader_image_atomic_int64" ) || ( extension == "VK_KHR_shader_quad_control" ) || ( extension == "VK_KHR_spirv_1_4" ) ||
|
||||||
( extension == "VK_EXT_memory_priority" ) || ( extension == "VK_NV_dedicated_allocation_image_aliasing" ) ||
|
( extension == "VK_EXT_memory_budget" ) || ( extension == "VK_EXT_memory_priority" ) ||
|
||||||
( extension == "VK_KHR_separate_depth_stencil_layouts" ) || ( extension == "VK_EXT_buffer_device_address" ) ||
|
( extension == "VK_NV_dedicated_allocation_image_aliasing" ) || ( extension == "VK_KHR_separate_depth_stencil_layouts" ) ||
|
||||||
( extension == "VK_EXT_tooling_info" ) || ( extension == "VK_EXT_separate_stencil_usage" ) || ( extension == "VK_KHR_present_wait" ) ||
|
( extension == "VK_EXT_buffer_device_address" ) || ( extension == "VK_EXT_tooling_info" ) || ( extension == "VK_EXT_separate_stencil_usage" ) ||
|
||||||
( extension == "VK_NV_cooperative_matrix" ) || ( extension == "VK_NV_coverage_reduction_mode" ) ||
|
( extension == "VK_KHR_present_wait" ) || ( extension == "VK_NV_cooperative_matrix" ) || ( extension == "VK_NV_coverage_reduction_mode" ) ||
|
||||||
( extension == "VK_EXT_fragment_shader_interlock" ) || ( extension == "VK_EXT_ycbcr_image_arrays" ) ||
|
( extension == "VK_EXT_fragment_shader_interlock" ) || ( extension == "VK_EXT_ycbcr_image_arrays" ) ||
|
||||||
( extension == "VK_KHR_uniform_buffer_standard_layout" ) || ( extension == "VK_EXT_provoking_vertex" )
|
( extension == "VK_KHR_uniform_buffer_standard_layout" ) || ( extension == "VK_EXT_provoking_vertex" )
|
||||||
#if defined( VK_USE_PLATFORM_WIN32_KHR )
|
#if defined( VK_USE_PLATFORM_WIN32_KHR )
|
||||||
@@ -3888,7 +4092,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
( extension == "VK_KHR_pipeline_library" ) || ( extension == "VK_NV_present_barrier" ) || ( extension == "VK_KHR_shader_non_semantic_info" ) ||
|
( extension == "VK_KHR_pipeline_library" ) || ( extension == "VK_NV_present_barrier" ) || ( extension == "VK_KHR_shader_non_semantic_info" ) ||
|
||||||
( extension == "VK_KHR_present_id" ) || ( extension == "VK_EXT_private_data" ) || ( extension == "VK_EXT_pipeline_creation_cache_control" ) ||
|
( extension == "VK_KHR_present_id" ) || ( extension == "VK_EXT_private_data" ) || ( extension == "VK_EXT_pipeline_creation_cache_control" ) ||
|
||||||
( extension == "VK_KHR_video_encode_queue" ) || ( extension == "VK_NV_device_diagnostics_config" ) ||
|
( extension == "VK_KHR_video_encode_queue" ) || ( extension == "VK_NV_device_diagnostics_config" ) ||
|
||||||
( extension == "VK_QCOM_render_pass_store_ops" )
|
( extension == "VK_QCOM_render_pass_store_ops" ) || ( extension == "VK_QCOM_queue_perf_hint" ) || ( extension == "VK_QCOM_image_processing3" ) ||
|
||||||
|
( extension == "VK_QCOM_shader_multiple_wait_queues" ) || ( extension == "VK_EXT_shader_split_barrier" )
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
||||||
|| ( extension == "VK_NV_cuda_kernel_launch" )
|
|| ( extension == "VK_NV_cuda_kernel_launch" )
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
||||||
@@ -3896,12 +4101,12 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#if defined( VK_USE_PLATFORM_METAL_EXT )
|
#if defined( VK_USE_PLATFORM_METAL_EXT )
|
||||||
|| ( extension == "VK_EXT_metal_objects" )
|
|| ( extension == "VK_EXT_metal_objects" )
|
||||||
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
||||||
|| ( extension == "VK_KHR_synchronization2" ) || ( extension == "VK_EXT_descriptor_buffer" ) || ( extension == "VK_EXT_graphics_pipeline_library" ) ||
|
|| ( extension == "VK_KHR_synchronization2" ) || ( extension == "VK_EXT_descriptor_buffer" ) || ( extension == "VK_KHR_device_address_commands" ) ||
|
||||||
( extension == "VK_AMD_shader_early_and_late_fragment_tests" ) || ( extension == "VK_KHR_fragment_shader_barycentric" ) ||
|
( extension == "VK_EXT_graphics_pipeline_library" ) || ( extension == "VK_AMD_shader_early_and_late_fragment_tests" ) ||
|
||||||
( extension == "VK_KHR_shader_subgroup_uniform_control_flow" ) || ( extension == "VK_KHR_zero_initialize_workgroup_memory" ) ||
|
( extension == "VK_KHR_fragment_shader_barycentric" ) || ( extension == "VK_KHR_shader_subgroup_uniform_control_flow" ) ||
|
||||||
( extension == "VK_NV_fragment_shading_rate_enums" ) || ( extension == "VK_NV_ray_tracing_motion_blur" ) || ( extension == "VK_EXT_mesh_shader" ) ||
|
( extension == "VK_KHR_zero_initialize_workgroup_memory" ) || ( extension == "VK_NV_fragment_shading_rate_enums" ) ||
|
||||||
( extension == "VK_EXT_ycbcr_2plane_444_formats" ) || ( extension == "VK_EXT_fragment_density_map2" ) ||
|
( extension == "VK_NV_ray_tracing_motion_blur" ) || ( extension == "VK_EXT_mesh_shader" ) || ( extension == "VK_EXT_ycbcr_2plane_444_formats" ) ||
|
||||||
( extension == "VK_QCOM_rotated_copy_commands" ) || ( extension == "VK_EXT_image_robustness" ) ||
|
( extension == "VK_EXT_fragment_density_map2" ) || ( extension == "VK_QCOM_rotated_copy_commands" ) || ( extension == "VK_EXT_image_robustness" ) ||
|
||||||
( extension == "VK_KHR_workgroup_memory_explicit_layout" ) || ( extension == "VK_KHR_copy_commands2" ) ||
|
( extension == "VK_KHR_workgroup_memory_explicit_layout" ) || ( extension == "VK_KHR_copy_commands2" ) ||
|
||||||
( extension == "VK_EXT_image_compression_control" ) || ( extension == "VK_EXT_attachment_feedback_loop_layout" ) ||
|
( extension == "VK_EXT_image_compression_control" ) || ( extension == "VK_EXT_attachment_feedback_loop_layout" ) ||
|
||||||
( extension == "VK_EXT_4444_formats" ) || ( extension == "VK_EXT_device_fault" ) ||
|
( extension == "VK_EXT_4444_formats" ) || ( extension == "VK_EXT_device_fault" ) ||
|
||||||
@@ -3959,8 +4164,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
( extension == "VK_NV_cooperative_vector" ) || ( extension == "VK_NV_extended_sparse_address_space" ) ||
|
( extension == "VK_NV_cooperative_vector" ) || ( extension == "VK_NV_extended_sparse_address_space" ) ||
|
||||||
( extension == "VK_EXT_mutable_descriptor_type" ) || ( extension == "VK_EXT_legacy_vertex_attributes" ) ||
|
( extension == "VK_EXT_mutable_descriptor_type" ) || ( extension == "VK_EXT_legacy_vertex_attributes" ) ||
|
||||||
( extension == "VK_ARM_shader_core_builtins" ) || ( extension == "VK_EXT_pipeline_library_group_handles" ) ||
|
( extension == "VK_ARM_shader_core_builtins" ) || ( extension == "VK_EXT_pipeline_library_group_handles" ) ||
|
||||||
( extension == "VK_EXT_dynamic_rendering_unused_attachments" ) || ( extension == "VK_NV_low_latency2" ) ||
|
( extension == "VK_EXT_dynamic_rendering_unused_attachments" ) || ( extension == "VK_KHR_internally_synchronized_queues" ) ||
|
||||||
( extension == "VK_KHR_cooperative_matrix" ) || ( extension == "VK_ARM_data_graph" ) || ( extension == "VK_QCOM_multiview_per_view_render_areas" ) ||
|
( extension == "VK_NV_low_latency2" ) || ( extension == "VK_KHR_cooperative_matrix" ) || ( extension == "VK_ARM_data_graph" ) ||
|
||||||
|
( extension == "VK_ARM_data_graph_instruction_set_tosa" ) || ( extension == "VK_QCOM_multiview_per_view_render_areas" ) ||
|
||||||
( extension == "VK_KHR_compute_shader_derivatives" ) || ( extension == "VK_KHR_video_decode_av1" ) || ( extension == "VK_KHR_video_encode_av1" ) ||
|
( extension == "VK_KHR_compute_shader_derivatives" ) || ( extension == "VK_KHR_video_decode_av1" ) || ( extension == "VK_KHR_video_encode_av1" ) ||
|
||||||
( extension == "VK_KHR_video_decode_vp9" ) || ( extension == "VK_KHR_video_maintenance1" ) || ( extension == "VK_NV_per_stage_descriptor_set" ) ||
|
( extension == "VK_KHR_video_decode_vp9" ) || ( extension == "VK_KHR_video_maintenance1" ) || ( extension == "VK_NV_per_stage_descriptor_set" ) ||
|
||||||
( extension == "VK_QCOM_image_processing2" ) || ( extension == "VK_QCOM_filter_cubic_weights" ) || ( extension == "VK_QCOM_ycbcr_degamma" ) ||
|
( extension == "VK_QCOM_image_processing2" ) || ( extension == "VK_QCOM_filter_cubic_weights" ) || ( extension == "VK_QCOM_ycbcr_degamma" ) ||
|
||||||
@@ -3981,24 +4187,25 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
( extension == "VK_EXT_shader_replicated_composites" ) || ( extension == "VK_EXT_shader_float8" ) ||
|
( extension == "VK_EXT_shader_replicated_composites" ) || ( extension == "VK_EXT_shader_float8" ) ||
|
||||||
( extension == "VK_NV_ray_tracing_validation" ) || ( extension == "VK_NV_cluster_acceleration_structure" ) ||
|
( 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_NV_partitioned_acceleration_structure" ) || ( extension == "VK_EXT_device_generated_commands" ) ||
|
||||||
( extension == "VK_KHR_maintenance8" ) || ( extension == "VK_MESA_image_alignment_control" ) || ( extension == "VK_KHR_shader_fma" ) ||
|
( extension == "VK_KHR_device_fault" ) || ( extension == "VK_KHR_maintenance8" ) || ( extension == "VK_MESA_image_alignment_control" ) ||
|
||||||
( extension == "VK_EXT_ray_tracing_invocation_reorder" ) || ( extension == "VK_EXT_depth_clamp_control" ) ||
|
( extension == "VK_KHR_shader_fma" ) || ( extension == "VK_NV_push_constant_bank" ) || ( extension == "VK_EXT_ray_tracing_invocation_reorder" ) ||
|
||||||
( extension == "VK_KHR_maintenance9" ) || ( extension == "VK_KHR_video_maintenance2" ) || ( extension == "VK_HUAWEI_hdr_vivid" ) ||
|
( extension == "VK_EXT_depth_clamp_control" ) || ( extension == "VK_KHR_maintenance9" ) || ( extension == "VK_KHR_video_maintenance2" ) ||
|
||||||
( 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" )
|
||||||
#if defined( VK_USE_PLATFORM_METAL_EXT )
|
#if defined( VK_USE_PLATFORM_METAL_EXT )
|
||||||
|| ( extension == "VK_EXT_external_memory_metal" )
|
|| ( extension == "VK_EXT_external_memory_metal" )
|
||||||
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
#endif /*VK_USE_PLATFORM_METAL_EXT*/
|
||||||
|| ( extension == "VK_KHR_depth_clamp_zero_one" ) || ( extension == "VK_ARM_performance_counters_by_region" ) ||
|
|| ( extension == "VK_KHR_depth_clamp_zero_one" ) || ( extension == "VK_ARM_performance_counters_by_region" ) ||
|
||||||
( extension == "VK_EXT_vertex_attribute_robustness" ) || ( extension == "VK_ARM_format_pack" ) ||
|
( 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_VALVE_fragment_density_map_layered" ) || ( extension == "VK_KHR_robustness2" ) || ( extension == "VK_NV_present_metering" ) ||
|
||||||
#if defined( VK_ENABLE_BETA_EXTENSIONS )
|
( extension == "VK_EXT_fragment_density_map_offset" ) || ( extension == "VK_EXT_zero_initialize_device_memory" ) ||
|
||||||
|| ( extension == "VK_NV_present_metering" )
|
( extension == "VK_KHR_present_mode_fifo_latest_ready" ) || ( extension == "VK_KHR_opacity_micromap" ) ||
|
||||||
#endif /*VK_ENABLE_BETA_EXTENSIONS*/
|
( extension == "VK_EXT_shader_64bit_indexing" ) || ( extension == "VK_EXT_custom_resolve" ) || ( extension == "VK_QCOM_data_graph_model" ) ||
|
||||||
|| ( extension == "VK_EXT_fragment_density_map_offset" ) || ( extension == "VK_EXT_zero_initialize_device_memory" ) ||
|
( extension == "VK_KHR_maintenance10" ) || ( extension == "VK_ARM_data_graph_optical_flow" ) || ( extension == "VK_EXT_shader_long_vector" ) ||
|
||||||
( extension == "VK_KHR_present_mode_fifo_latest_ready" ) || ( extension == "VK_EXT_shader_64bit_indexing" ) ||
|
( extension == "VK_SEC_pipeline_cache_incremental_mode" ) || ( extension == "VK_EXT_shader_uniform_buffer_unsized_array" ) ||
|
||||||
( extension == "VK_EXT_custom_resolve" ) || ( extension == "VK_QCOM_data_graph_model" ) || ( extension == "VK_KHR_maintenance10" ) ||
|
( extension == "VK_NV_compute_occupancy_priority" ) || ( extension == "VK_KHR_maintenance11" ) ||
|
||||||
( extension == "VK_EXT_shader_long_vector" ) || ( extension == "VK_SEC_pipeline_cache_incremental_mode" ) ||
|
( extension == "VK_EXT_shader_subgroup_partitioned" ) || ( extension == "VK_VALVE_shader_mixed_float_dot_product" ) ||
|
||||||
( extension == "VK_EXT_shader_uniform_buffer_unsized_array" ) || ( extension == "VK_NV_compute_occupancy_priority" );
|
( extension == "VK_SEC_throttle_hint" ) || ( extension == "VK_ARM_data_graph_neural_accelerator_statistics" ) ||
|
||||||
|
( extension == "VK_EXT_primitive_restart_index" );
|
||||||
}
|
}
|
||||||
|
|
||||||
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 bool isInstanceExtension( std::string const & extension )
|
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_20 bool isInstanceExtension( std::string const & extension )
|
||||||
@@ -4063,6 +4270,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#if defined( VK_USE_PLATFORM_OHOS )
|
#if defined( VK_USE_PLATFORM_OHOS )
|
||||||
|| ( extension == "VK_OHOS_surface" )
|
|| ( extension == "VK_OHOS_surface" )
|
||||||
#endif /*VK_USE_PLATFORM_OHOS*/
|
#endif /*VK_USE_PLATFORM_OHOS*/
|
||||||
|
#if defined( VK_USE_PLATFORM_UBM_SEC )
|
||||||
|
|| ( extension == "VK_SEC_ubm_surface" )
|
||||||
|
#endif /*VK_USE_PLATFORM_UBM_SEC*/
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4096,7 +4306,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
( extension == "VK_KHR_shader_subgroup_extended_types" ) || ( extension == "VK_KHR_8bit_storage" ) ||
|
( extension == "VK_KHR_shader_subgroup_extended_types" ) || ( extension == "VK_KHR_8bit_storage" ) ||
|
||||||
( extension == "VK_KHR_shader_atomic_int64" ) || ( extension == "VK_EXT_calibrated_timestamps" ) || ( extension == "VK_KHR_global_priority" ) ||
|
( extension == "VK_KHR_shader_atomic_int64" ) || ( extension == "VK_EXT_calibrated_timestamps" ) || ( extension == "VK_KHR_global_priority" ) ||
|
||||||
( extension == "VK_EXT_vertex_attribute_divisor" ) || ( extension == "VK_EXT_pipeline_creation_feedback" ) ||
|
( extension == "VK_EXT_vertex_attribute_divisor" ) || ( extension == "VK_EXT_pipeline_creation_feedback" ) ||
|
||||||
( extension == "VK_KHR_driver_properties" ) || ( extension == "VK_KHR_shader_float_controls" ) || ( extension == "VK_KHR_depth_stencil_resolve" ) ||
|
( extension == "VK_KHR_driver_properties" ) || ( extension == "VK_KHR_shader_float_controls" ) ||
|
||||||
|
( extension == "VK_NV_shader_subgroup_partitioned" ) || ( extension == "VK_KHR_depth_stencil_resolve" ) ||
|
||||||
( extension == "VK_NV_compute_shader_derivatives" ) || ( extension == "VK_NV_fragment_shader_barycentric" ) ||
|
( extension == "VK_NV_compute_shader_derivatives" ) || ( extension == "VK_NV_fragment_shader_barycentric" ) ||
|
||||||
( extension == "VK_KHR_timeline_semaphore" ) || ( extension == "VK_KHR_vulkan_memory_model" ) ||
|
( extension == "VK_KHR_timeline_semaphore" ) || ( extension == "VK_KHR_vulkan_memory_model" ) ||
|
||||||
( extension == "VK_KHR_shader_terminate_invocation" ) || ( extension == "VK_EXT_scalar_block_layout" ) ||
|
( extension == "VK_KHR_shader_terminate_invocation" ) || ( extension == "VK_EXT_scalar_block_layout" ) ||
|
||||||
@@ -4111,13 +4322,13 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
( extension == "VK_EXT_private_data" ) || ( extension == "VK_EXT_pipeline_creation_cache_control" ) || ( extension == "VK_KHR_synchronization2" ) ||
|
( extension == "VK_EXT_private_data" ) || ( extension == "VK_EXT_pipeline_creation_cache_control" ) || ( extension == "VK_KHR_synchronization2" ) ||
|
||||||
( extension == "VK_KHR_zero_initialize_workgroup_memory" ) || ( extension == "VK_EXT_ycbcr_2plane_444_formats" ) ||
|
( extension == "VK_KHR_zero_initialize_workgroup_memory" ) || ( extension == "VK_EXT_ycbcr_2plane_444_formats" ) ||
|
||||||
( extension == "VK_EXT_image_robustness" ) || ( extension == "VK_KHR_copy_commands2" ) || ( extension == "VK_EXT_4444_formats" ) ||
|
( extension == "VK_EXT_image_robustness" ) || ( extension == "VK_KHR_copy_commands2" ) || ( extension == "VK_EXT_4444_formats" ) ||
|
||||||
( extension == "VK_ARM_rasterization_order_attachment_access" ) || ( extension == "VK_VALVE_mutable_descriptor_type" ) ||
|
( extension == "VK_EXT_device_fault" ) || ( extension == "VK_ARM_rasterization_order_attachment_access" ) ||
|
||||||
( extension == "VK_KHR_format_feature_flags2" ) || ( extension == "VK_EXT_present_mode_fifo_latest_ready" ) ||
|
( extension == "VK_VALVE_mutable_descriptor_type" ) || ( extension == "VK_KHR_format_feature_flags2" ) ||
|
||||||
( extension == "VK_EXT_extended_dynamic_state2" ) || ( extension == "VK_EXT_global_priority_query" ) ||
|
( extension == "VK_EXT_present_mode_fifo_latest_ready" ) || ( extension == "VK_EXT_extended_dynamic_state2" ) ||
|
||||||
( extension == "VK_EXT_load_store_op_none" ) || ( extension == "VK_KHR_maintenance4" ) || ( extension == "VK_KHR_shader_subgroup_rotate" ) ||
|
( extension == "VK_EXT_global_priority_query" ) || ( extension == "VK_EXT_opacity_micromap" ) || ( extension == "VK_EXT_load_store_op_none" ) ||
|
||||||
( extension == "VK_EXT_depth_clamp_zero_one" ) || ( extension == "VK_QCOM_fragment_density_map_offset" ) ||
|
( extension == "VK_KHR_maintenance4" ) || ( extension == "VK_KHR_shader_subgroup_rotate" ) || ( extension == "VK_EXT_depth_clamp_zero_one" ) ||
|
||||||
( extension == "VK_NV_copy_memory_indirect" ) || ( extension == "VK_NV_memory_decompression" ) ||
|
( extension == "VK_QCOM_fragment_density_map_offset" ) || ( extension == "VK_NV_copy_memory_indirect" ) ||
|
||||||
( extension == "VK_EXT_pipeline_protected_access" ) || ( extension == "VK_KHR_maintenance5" ) ||
|
( extension == "VK_NV_memory_decompression" ) || ( extension == "VK_EXT_pipeline_protected_access" ) || ( extension == "VK_KHR_maintenance5" ) ||
|
||||||
( extension == "VK_NV_ray_tracing_invocation_reorder" ) || ( extension == "VK_KHR_vertex_attribute_divisor" ) ||
|
( extension == "VK_NV_ray_tracing_invocation_reorder" ) || ( extension == "VK_KHR_vertex_attribute_divisor" ) ||
|
||||||
( extension == "VK_KHR_load_store_op_none" ) || ( extension == "VK_KHR_shader_float_controls2" ) || ( extension == "VK_KHR_index_type_uint8" ) ||
|
( extension == "VK_KHR_load_store_op_none" ) || ( extension == "VK_KHR_shader_float_controls2" ) || ( extension == "VK_KHR_index_type_uint8" ) ||
|
||||||
( extension == "VK_KHR_line_rasterization" ) || ( extension == "VK_KHR_shader_expect_assume" ) || ( extension == "VK_KHR_maintenance6" ) ||
|
( extension == "VK_KHR_line_rasterization" ) || ( extension == "VK_KHR_shader_expect_assume" ) || ( extension == "VK_KHR_maintenance6" ) ||
|
||||||
|
|||||||
+108
-29
@@ -8,7 +8,11 @@
|
|||||||
#ifndef VULKAN_FORMAT_TRAITS_HPP
|
#ifndef VULKAN_FORMAT_TRAITS_HPP
|
||||||
#define VULKAN_FORMAT_TRAITS_HPP
|
#define VULKAN_FORMAT_TRAITS_HPP
|
||||||
|
|
||||||
|
#if defined( VULKAN_HPP_CXX_MODULE )
|
||||||
|
# define VULKAN_HPP_EXPORT export
|
||||||
|
#else
|
||||||
# include <vulkan/vulkan.hpp>
|
# include <vulkan/vulkan.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
@@ -19,92 +23,92 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
//=== Function Declarations ===
|
//=== Function Declarations ===
|
||||||
|
|
||||||
// The three-dimensional extent of a texel block.
|
// The three-dimensional extent of a texel block.
|
||||||
VULKAN_HPP_CONSTEXPR_14 std::array<uint8_t, 3> blockExtent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 std::array<uint8_t, 3> blockExtent( Format format );
|
||||||
|
|
||||||
// The texel block size in bytes.
|
// The texel block size in bytes.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t blockSize( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t blockSize( Format format );
|
||||||
|
|
||||||
// The class of the format (can't be just named "class"!)
|
// The class of the format (can't be just named "class"!)
|
||||||
VULKAN_HPP_CONSTEXPR_14 char const * compatibilityClass( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 char const * compatibilityClass( Format format );
|
||||||
|
|
||||||
// The number of bits in this component, if not compressed, otherwise 0.
|
// The number of bits in this component, if not compressed, otherwise 0.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t componentBits( Format format, uint8_t component );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t componentBits( Format format, uint8_t component );
|
||||||
|
|
||||||
// The number of components of this format.
|
// The number of components of this format.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t componentCount( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t componentCount( Format format );
|
||||||
|
|
||||||
// The name of the component
|
// The name of the component
|
||||||
VULKAN_HPP_CONSTEXPR_14 char const * componentName( Format format, uint8_t component );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 char const * componentName( Format format, uint8_t component );
|
||||||
|
|
||||||
// The numeric format of the component
|
// The numeric format of the component
|
||||||
VULKAN_HPP_CONSTEXPR_14 char const * componentNumericFormat( Format format, uint8_t component );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 char const * componentNumericFormat( Format format, uint8_t component );
|
||||||
|
|
||||||
// The plane this component lies in.
|
// The plane this component lies in.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t componentPlaneIndex( Format format, uint8_t component );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t componentPlaneIndex( Format format, uint8_t component );
|
||||||
|
|
||||||
// True, if the components of this format are compressed, otherwise false.
|
// True, if the components of this format are compressed, otherwise false.
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool componentsAreCompressed( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool componentsAreCompressed( Format format );
|
||||||
|
|
||||||
// A textual description of the compression scheme, or an empty string if it is not compressed
|
// A textual description of the compression scheme, or an empty string if it is not compressed
|
||||||
VULKAN_HPP_CONSTEXPR_14 char const * compressionScheme( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 char const * compressionScheme( Format format );
|
||||||
|
|
||||||
// Get all formats
|
// Get all formats
|
||||||
std::vector<Format> const & getAllFormats();
|
VULKAN_HPP_EXPORT std::vector<Format> const & getAllFormats();
|
||||||
|
|
||||||
// Get all color with a color component
|
// Get all color with a color component
|
||||||
std::vector<Format> const & getColorFormats();
|
VULKAN_HPP_EXPORT std::vector<Format> const & getColorFormats();
|
||||||
|
|
||||||
// Get all formats with a depth component
|
// Get all formats with a depth component
|
||||||
std::vector<Format> const & getDepthFormats();
|
VULKAN_HPP_EXPORT std::vector<Format> const & getDepthFormats();
|
||||||
|
|
||||||
// Get all formats with a depth and a stencil component
|
// Get all formats with a depth and a stencil component
|
||||||
std::vector<Format> const & getDepthStencilFormats();
|
VULKAN_HPP_EXPORT std::vector<Format> const & getDepthStencilFormats();
|
||||||
|
|
||||||
// Get all formats with a stencil component
|
// Get all formats with a stencil component
|
||||||
std::vector<Format> const & getStencilFormats();
|
VULKAN_HPP_EXPORT std::vector<Format> const & getStencilFormats();
|
||||||
|
|
||||||
// True, if this format has an alpha component
|
// True, if this format has an alpha component
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool hasAlphaComponent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool hasAlphaComponent( Format format );
|
||||||
|
|
||||||
// True, if this format has a blue component
|
// True, if this format has a blue component
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool hasBlueComponent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool hasBlueComponent( Format format );
|
||||||
|
|
||||||
// True, if this format has a depth component
|
// True, if this format has a depth component
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool hasDepthComponent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool hasDepthComponent( Format format );
|
||||||
|
|
||||||
// True, if this format has a green component
|
// True, if this format has a green component
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool hasGreenComponent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool hasGreenComponent( Format format );
|
||||||
|
|
||||||
// True, if this format has a red component
|
// True, if this format has a red component
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool hasRedComponent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool hasRedComponent( Format format );
|
||||||
|
|
||||||
// True, if this format has a stencil component
|
// True, if this format has a stencil component
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool hasStencilComponent( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool hasStencilComponent( Format format );
|
||||||
|
|
||||||
// True, if the format is a color
|
// True, if the format is a color
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool isColor( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool isColor( Format format );
|
||||||
|
|
||||||
// True, if this format is a compressed one.
|
// True, if this format is a compressed one.
|
||||||
VULKAN_HPP_CONSTEXPR_14 bool isCompressed( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 bool isCompressed( Format format );
|
||||||
|
|
||||||
// The number of bits into which the format is packed. A single image element in this format can be stored in the same space as a scalar type of this bit
|
// The number of bits into which the format is packed. A single image element in this format can be stored in the same space as a scalar type of this bit
|
||||||
// width.
|
// width.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t packed( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t packed( Format format );
|
||||||
|
|
||||||
// The single-plane format that this plane is compatible with.
|
// The single-plane format that this plane is compatible with.
|
||||||
VULKAN_HPP_CONSTEXPR_14 Format planeCompatibleFormat( Format format, uint8_t plane );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 Format planeCompatibleFormat( Format format, uint8_t plane );
|
||||||
|
|
||||||
// The number of image planes of this format.
|
// The number of image planes of this format.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t planeCount( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t planeCount( Format format );
|
||||||
|
|
||||||
// The relative height of this plane. A value of k means that this plane is 1/k the height of the overall format.
|
// The relative height of this plane. A value of k means that this plane is 1/k the height of the overall format.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t planeHeightDivisor( Format format, uint8_t plane );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t planeHeightDivisor( Format format, uint8_t plane );
|
||||||
|
|
||||||
// The relative width of this plane. A value of k means that this plane is 1/k the width of the overall format.
|
// The relative width of this plane. A value of k means that this plane is 1/k the width of the overall format.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t planeWidthDivisor( Format format, uint8_t plane );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t planeWidthDivisor( Format format, uint8_t plane );
|
||||||
|
|
||||||
// The number of texels in a texel block.
|
// The number of texels in a texel block.
|
||||||
VULKAN_HPP_CONSTEXPR_14 uint8_t texelsPerBlock( Format format );
|
VULKAN_HPP_EXPORT VULKAN_HPP_CONSTEXPR_14 uint8_t texelsPerBlock( Format format );
|
||||||
|
|
||||||
//=== Function Definitions ===
|
//=== Function Definitions ===
|
||||||
|
|
||||||
@@ -516,6 +520,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case Format::eAstc6x6x6SrgbBlockEXT : return 16;
|
case Format::eAstc6x6x6SrgbBlockEXT : return 16;
|
||||||
case Format::eAstc6x6x6SfloatBlockEXT : return 16;
|
case Format::eAstc6x6x6SfloatBlockEXT : return 16;
|
||||||
case Format::eR8BoolARM : return 1;
|
case Format::eR8BoolARM : return 1;
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM : return 2;
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM : return 1;
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM : return 1;
|
||||||
case Format::eR16G16Sfixed5NV : return 4;
|
case Format::eR16G16Sfixed5NV : return 4;
|
||||||
case Format::eR10X6UintPack16ARM : return 2;
|
case Format::eR10X6UintPack16ARM : return 2;
|
||||||
case Format::eR10X6G10X6Uint2Pack16ARM : return 4;
|
case Format::eR10X6G10X6Uint2Pack16ARM : return 4;
|
||||||
@@ -820,6 +827,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case Format::eAstc6x6x6SrgbBlockEXT : return "ASTC_6x6x6";
|
case Format::eAstc6x6x6SrgbBlockEXT : return "ASTC_6x6x6";
|
||||||
case Format::eAstc6x6x6SfloatBlockEXT : return "ASTC_6x6x6";
|
case Format::eAstc6x6x6SfloatBlockEXT : return "ASTC_6x6x6";
|
||||||
case Format::eR8BoolARM : return "8-bit";
|
case Format::eR8BoolARM : return "8-bit";
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM : return "16-bit";
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM : return "8-bit";
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM : return "8-bit";
|
||||||
case Format::eR16G16Sfixed5NV : return "32-bit";
|
case Format::eR16G16Sfixed5NV : return "32-bit";
|
||||||
case Format::eR10X6UintPack16ARM : return "16-bit";
|
case Format::eR10X6UintPack16ARM : return "16-bit";
|
||||||
case Format::eR10X6G10X6Uint2Pack16ARM : return "32-bit";
|
case Format::eR10X6G10X6Uint2Pack16ARM : return "32-bit";
|
||||||
@@ -2237,6 +2247,24 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case 0 : return 8;
|
case 0 : return 8;
|
||||||
default: VULKAN_HPP_ASSERT( false ); return 0;
|
default: VULKAN_HPP_ASSERT( false ); return 0;
|
||||||
}
|
}
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return 16;
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return 0;
|
||||||
|
}
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return 8;
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return 0;
|
||||||
|
}
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return 8;
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return 0;
|
||||||
|
}
|
||||||
case Format::eR16G16Sfixed5NV:
|
case Format::eR16G16Sfixed5NV:
|
||||||
switch ( component )
|
switch ( component )
|
||||||
{
|
{
|
||||||
@@ -2637,6 +2665,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case Format::eAstc6x6x6SrgbBlockEXT : return 4;
|
case Format::eAstc6x6x6SrgbBlockEXT : return 4;
|
||||||
case Format::eAstc6x6x6SfloatBlockEXT : return 4;
|
case Format::eAstc6x6x6SfloatBlockEXT : return 4;
|
||||||
case Format::eR8BoolARM : return 1;
|
case Format::eR8BoolARM : return 1;
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM : return 1;
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM : return 1;
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM : return 1;
|
||||||
case Format::eR16G16Sfixed5NV : return 2;
|
case Format::eR16G16Sfixed5NV : return 2;
|
||||||
case Format::eR10X6UintPack16ARM : return 1;
|
case Format::eR10X6UintPack16ARM : return 1;
|
||||||
case Format::eR10X6G10X6Uint2Pack16ARM : return 2;
|
case Format::eR10X6G10X6Uint2Pack16ARM : return 2;
|
||||||
@@ -4956,6 +4987,24 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case 0 : return "R";
|
case 0 : return "R";
|
||||||
default: VULKAN_HPP_ASSERT( false ); return "";
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
}
|
}
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return "R";
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
|
}
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return "R";
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
|
}
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return "R";
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
|
}
|
||||||
case Format::eR16G16Sfixed5NV:
|
case Format::eR16G16Sfixed5NV:
|
||||||
switch ( component )
|
switch ( component )
|
||||||
{
|
{
|
||||||
@@ -7371,6 +7420,24 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case 0 : return "BOOL";
|
case 0 : return "BOOL";
|
||||||
default: VULKAN_HPP_ASSERT( false ); return "";
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
}
|
}
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return "SFLOAT";
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
|
}
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return "SFLOAT";
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
|
}
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM:
|
||||||
|
switch ( component )
|
||||||
|
{
|
||||||
|
case 0 : return "SFLOAT";
|
||||||
|
default: VULKAN_HPP_ASSERT( false ); return "";
|
||||||
|
}
|
||||||
case Format::eR16G16Sfixed5NV:
|
case Format::eR16G16Sfixed5NV:
|
||||||
switch ( component )
|
switch ( component )
|
||||||
{
|
{
|
||||||
@@ -8214,6 +8281,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
Format::eAstc6x6x6SrgbBlockEXT,
|
Format::eAstc6x6x6SrgbBlockEXT,
|
||||||
Format::eAstc6x6x6SfloatBlockEXT,
|
Format::eAstc6x6x6SfloatBlockEXT,
|
||||||
Format::eR8BoolARM,
|
Format::eR8BoolARM,
|
||||||
|
Format::eR16SfloatFpencodingBfloat16ARM,
|
||||||
|
Format::eR8SfloatFpencodingFloat8E4M3ARM,
|
||||||
|
Format::eR8SfloatFpencodingFloat8E5M2ARM,
|
||||||
Format::eR16G16Sfixed5NV,
|
Format::eR16G16Sfixed5NV,
|
||||||
Format::eR10X6UintPack16ARM,
|
Format::eR10X6UintPack16ARM,
|
||||||
Format::eR10X6G10X6Uint2Pack16ARM,
|
Format::eR10X6G10X6Uint2Pack16ARM,
|
||||||
@@ -8507,6 +8577,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
Format::eAstc6x6x6SrgbBlockEXT,
|
Format::eAstc6x6x6SrgbBlockEXT,
|
||||||
Format::eAstc6x6x6SfloatBlockEXT,
|
Format::eAstc6x6x6SfloatBlockEXT,
|
||||||
Format::eR8BoolARM,
|
Format::eR8BoolARM,
|
||||||
|
Format::eR16SfloatFpencodingBfloat16ARM,
|
||||||
|
Format::eR8SfloatFpencodingFloat8E4M3ARM,
|
||||||
|
Format::eR8SfloatFpencodingFloat8E5M2ARM,
|
||||||
Format::eR16G16Sfixed5NV,
|
Format::eR16G16Sfixed5NV,
|
||||||
Format::eR10X6UintPack16ARM,
|
Format::eR10X6UintPack16ARM,
|
||||||
Format::eR10X6G10X6Uint2Pack16ARM,
|
Format::eR10X6G10X6Uint2Pack16ARM,
|
||||||
@@ -9496,6 +9569,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case Format::eAstc6x6x6SrgbBlockEXT:
|
case Format::eAstc6x6x6SrgbBlockEXT:
|
||||||
case Format::eAstc6x6x6SfloatBlockEXT:
|
case Format::eAstc6x6x6SfloatBlockEXT:
|
||||||
case Format::eR8BoolARM:
|
case Format::eR8BoolARM:
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM:
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM:
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM:
|
||||||
case Format::eR16G16Sfixed5NV:
|
case Format::eR16G16Sfixed5NV:
|
||||||
case Format::eR10X6UintPack16ARM:
|
case Format::eR10X6UintPack16ARM:
|
||||||
case Format::eR10X6G10X6Uint2Pack16ARM:
|
case Format::eR10X6G10X6Uint2Pack16ARM:
|
||||||
@@ -10552,6 +10628,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
case Format::eAstc6x6x6SrgbBlockEXT : return 216;
|
case Format::eAstc6x6x6SrgbBlockEXT : return 216;
|
||||||
case Format::eAstc6x6x6SfloatBlockEXT : return 216;
|
case Format::eAstc6x6x6SfloatBlockEXT : return 216;
|
||||||
case Format::eR8BoolARM : return 1;
|
case Format::eR8BoolARM : return 1;
|
||||||
|
case Format::eR16SfloatFpencodingBfloat16ARM : return 1;
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E4M3ARM : return 1;
|
||||||
|
case Format::eR8SfloatFpencodingFloat8E5M2ARM : return 1;
|
||||||
case Format::eR16G16Sfixed5NV : return 1;
|
case Format::eR16G16Sfixed5NV : return 1;
|
||||||
case Format::eR10X6UintPack16ARM : return 1;
|
case Format::eR10X6UintPack16ARM : return 1;
|
||||||
case Format::eR10X6G10X6Uint2Pack16ARM : return 1;
|
case Format::eR10X6G10X6Uint2Pack16ARM : return 1;
|
||||||
|
|||||||
Vendored
+6485
-5218
File diff suppressed because it is too large
Load Diff
+3081
-1755
File diff suppressed because it is too large
Load Diff
Vendored
+1770
-137
File diff suppressed because it is too large
Load Diff
+34
-15
@@ -87,6 +87,23 @@
|
|||||||
# define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1
|
# define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL == 1
|
||||||
|
# if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNX__ ) || defined( __Fuchsia__ ) && !defined( VULKAN_HPP_CXX_MODULE )
|
||||||
|
# include <dlfcn.h>
|
||||||
|
# elif defined( _WIN32 ) && !defined( VULKAN_HPP_NO_WIN32_PROTOTYPES )
|
||||||
|
using HINSTANCE = struct HINSTANCE__ *;
|
||||||
|
# if defined( _WIN64 )
|
||||||
|
# include <cstdint>
|
||||||
|
using FARPROC = int64_t( __stdcall * )();
|
||||||
|
# else
|
||||||
|
using FARPROC = int( __stdcall * )();
|
||||||
|
# endif
|
||||||
|
extern "C" __declspec( dllimport ) HINSTANCE __stdcall LoadLibraryA( char const * lpLibFileName );
|
||||||
|
extern "C" __declspec( dllimport ) int __stdcall FreeLibrary( HINSTANCE hLibModule );
|
||||||
|
extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE hModule, char const * lpProcName );
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined( __has_include )
|
#if !defined( __has_include )
|
||||||
# define __has_include( x ) false
|
# define __has_include( x ) false
|
||||||
#endif
|
#endif
|
||||||
@@ -99,6 +116,12 @@
|
|||||||
# define VULKAN_HPP_SUPPORT_SPAN
|
# define VULKAN_HPP_SUPPORT_SPAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined( VULKAN_HPP_CXX_MODULE )
|
||||||
|
# define VULKAN_HPP_EXPORT export
|
||||||
|
#else
|
||||||
|
# define VULKAN_HPP_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined( VULKAN_HPP_CXX_MODULE ) && !( defined( __cpp_modules ) && defined( __cpp_lib_modules ) )
|
#if defined( VULKAN_HPP_CXX_MODULE ) && !( defined( __cpp_modules ) && defined( __cpp_lib_modules ) )
|
||||||
VULKAN_HPP_COMPILE_WARNING( "This is a non-conforming implementation of C++ named modules and the standard library module." )
|
VULKAN_HPP_COMPILE_WARNING( "This is a non-conforming implementation of C++ named modules and the standard library module." )
|
||||||
#endif
|
#endif
|
||||||
@@ -175,7 +198,7 @@ VULKAN_HPP_COMPILE_WARNING( "This is a non-conforming implementation of C++ name
|
|||||||
# else
|
# else
|
||||||
# define VULKAN_HPP_CONSTEXPR_17
|
# define VULKAN_HPP_CONSTEXPR_17
|
||||||
# endif
|
# endif
|
||||||
# if ( 201907 <= __cpp_constexpr ) && ( !defined( __GNUC__ ) || ( 110400 < GCC_VERSION ) )
|
# if ( 201907 <= __cpp_constexpr ) && ( !defined( __GNUC__ ) || ( 120000 <= GCC_VERSION ) )
|
||||||
# define VULKAN_HPP_CONSTEXPR_20 constexpr
|
# define VULKAN_HPP_CONSTEXPR_20 constexpr
|
||||||
# else
|
# else
|
||||||
# define VULKAN_HPP_CONSTEXPR_20
|
# define VULKAN_HPP_CONSTEXPR_20
|
||||||
@@ -233,6 +256,14 @@ VULKAN_HPP_COMPILE_WARNING( "This is a non-conforming implementation of C++ name
|
|||||||
# define VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
# define VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 17 <= VULKAN_HPP_CPP_VERSION
|
||||||
|
# define VULKAN_HPP_MAYBE_UNUSED [[maybe_unused]]
|
||||||
|
# define VULKAN_HPP_UNUSED( var )
|
||||||
|
#else
|
||||||
|
# define VULKAN_HPP_MAYBE_UNUSED
|
||||||
|
# define VULKAN_HPP_UNUSED( var ) ( (void)( var ) )
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_NAMESPACE )
|
#if !defined( VULKAN_HPP_NAMESPACE )
|
||||||
# define VULKAN_HPP_NAMESPACE vk
|
# define VULKAN_HPP_NAMESPACE vk
|
||||||
#endif
|
#endif
|
||||||
@@ -268,20 +299,6 @@ VULKAN_HPP_COMPILE_WARNING( "This is a non-conforming implementation of C++ name
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
|
||||||
{
|
|
||||||
namespace detail
|
|
||||||
{
|
|
||||||
class DispatchLoaderDynamic;
|
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_DEFAULT_DISPATCHER )
|
|
||||||
# if VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1
|
|
||||||
extern VULKAN_HPP_STORAGE_API DispatchLoaderDynamic defaultDispatchLoaderDynamic;
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
} // namespace detail
|
|
||||||
} // namespace VULKAN_HPP_NAMESPACE
|
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC_TYPE )
|
#if !defined( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC_TYPE )
|
||||||
# define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC_TYPE VULKAN_HPP_NAMESPACE::detail::DispatchLoaderDynamic
|
# define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC_TYPE VULKAN_HPP_NAMESPACE::detail::DispatchLoaderDynamic
|
||||||
#endif
|
#endif
|
||||||
@@ -312,6 +329,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
# define VULKAN_HPP_DEFAULT_DISPATCHER ::VULKAN_HPP_NAMESPACE::detail::getDispatchLoaderStatic()
|
# define VULKAN_HPP_DEFAULT_DISPATCHER ::VULKAN_HPP_NAMESPACE::detail::getDispatchLoaderStatic()
|
||||||
# define VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
|
# define VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
|
||||||
# endif
|
# endif
|
||||||
|
#else
|
||||||
|
# define VULKAN_HPP_DEFAULT_DISPATCHER_HANDLED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( VULKAN_HPP_NO_DEFAULT_DISPATCHER )
|
#if defined( VULKAN_HPP_NO_DEFAULT_DISPATCHER )
|
||||||
|
|||||||
Vendored
+3881
-2105
File diff suppressed because it is too large
Load Diff
Vendored
+66
-44
@@ -8,13 +8,12 @@
|
|||||||
#ifndef VULKAN_SHARED_HPP
|
#ifndef VULKAN_SHARED_HPP
|
||||||
#define VULKAN_SHARED_HPP
|
#define VULKAN_SHARED_HPP
|
||||||
|
|
||||||
#include <vulkan/vulkan.hpp>
|
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_CXX_MODULE )
|
#if !defined( VULKAN_HPP_CXX_MODULE )
|
||||||
# include <atomic> // std::atomic_size_t
|
# include <atomic> // std::atomic_size_t
|
||||||
|
# include <vulkan/vulkan.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
#if !defined( VULKAN_HPP_NO_SMART_HANDLE )
|
#if !defined( VULKAN_HPP_NO_SMART_HANDLE )
|
||||||
template <typename HandleType>
|
template <typename HandleType>
|
||||||
@@ -113,8 +112,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
ReferenceCounter( const ReferenceCounter & ) = delete;
|
ReferenceCounter( ReferenceCounter const & ) = delete;
|
||||||
ReferenceCounter & operator=( const ReferenceCounter & ) = delete;
|
ReferenceCounter & operator=( ReferenceCounter const & ) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
size_t addRef() VULKAN_HPP_NOEXCEPT
|
size_t addRef() VULKAN_HPP_NOEXCEPT
|
||||||
@@ -148,7 +147,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedHandleBase( const SharedHandleBase & o ) VULKAN_HPP_NOEXCEPT
|
SharedHandleBase( SharedHandleBase const & o ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
o.addRef();
|
o.addRef();
|
||||||
m_handle = o.m_handle;
|
m_handle = o.m_handle;
|
||||||
@@ -163,7 +162,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
o.m_control = nullptr;
|
o.m_control = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedHandleBase & operator=( const SharedHandleBase & o ) VULKAN_HPP_NOEXCEPT
|
SharedHandleBase & operator=( SharedHandleBase const & o ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
SharedHandleBase( o ).swap( *this );
|
SharedHandleBase( o ).swap( *this );
|
||||||
return *this;
|
return *this;
|
||||||
@@ -213,7 +212,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
const HandleType * operator->() const VULKAN_HPP_NOEXCEPT
|
HandleType const * operator->() const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return &m_handle;
|
return &m_handle;
|
||||||
}
|
}
|
||||||
@@ -235,25 +234,25 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T = HandleType>
|
template <typename T = HandleType>
|
||||||
typename std::enable_if<HasDestructor<T>::value, const SharedHandle<DestructorTypeOf<HandleType>> &>::type getDestructorType() const VULKAN_HPP_NOEXCEPT
|
typename std::enable_if<HasDestructor<T>::value, SharedHandle<DestructorTypeOf<HandleType>> const &>::type getDestructorType() const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return getHeader().parent;
|
return getHeader().parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
template <typename T = HandleType>
|
template <typename T = HandleType>
|
||||||
static typename std::enable_if<!HasDestructor<T>::value, void>::type internalDestroy( const HeaderType & control, HandleType handle ) VULKAN_HPP_NOEXCEPT
|
static typename std::enable_if<!HasDestructor<T>::value, void>::type internalDestroy( HeaderType const & control, HandleType handle ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
control.deleter.destroy( handle );
|
control.deleter.destroy( handle );
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T = HandleType>
|
template <typename T = HandleType>
|
||||||
static typename std::enable_if<HasDestructor<T>::value, void>::type internalDestroy( const HeaderType & control, HandleType handle ) VULKAN_HPP_NOEXCEPT
|
static typename std::enable_if<HasDestructor<T>::value, void>::type internalDestroy( HeaderType const & control, HandleType handle ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
control.deleter.destroy( control.parent.get(), handle );
|
control.deleter.destroy( control.parent.get(), handle );
|
||||||
}
|
}
|
||||||
|
|
||||||
const HeaderType & getHeader() const VULKAN_HPP_NOEXCEPT
|
HeaderType const & getHeader() const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return m_control->m_header;
|
return m_control->m_header;
|
||||||
}
|
}
|
||||||
@@ -295,7 +294,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
explicit SharedHandle( HandleType handle,
|
explicit SharedHandle( HandleType handle,
|
||||||
SharedHandle<DestructorTypeOf<HandleType>> parent,
|
SharedHandle<DestructorTypeOf<HandleType>> parent,
|
||||||
SharedHandle<typename GetPoolType<HandleType>::type> pool,
|
SharedHandle<typename GetPoolType<HandleType>::type> pool,
|
||||||
const Dispatcher & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT
|
Dispatcher const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) VULKAN_HPP_NOEXCEPT
|
||||||
: BaseType( handle, std::move( parent ), DeleterType{ std::move( pool ), dispatch } )
|
: BaseType( handle, std::move( parent ), DeleterType{ std::move( pool ), dispatch } )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -329,13 +328,13 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
using DestroyFunctionPointerType =
|
using DestroyFunctionPointerType =
|
||||||
typename std::conditional<HasDestructor<HandleType>::value,
|
typename std::conditional<HasDestructor<HandleType>::value,
|
||||||
void ( DestructorType::* )( HandleType, const AllocationCallbacks *, const Dispatcher & ) const,
|
void ( DestructorType::* )( HandleType, AllocationCallbacks const *, Dispatcher const & ) const,
|
||||||
void ( HandleType::* )( const AllocationCallbacks *, const Dispatcher & ) const>::type;
|
void ( HandleType::* )( AllocationCallbacks const *, Dispatcher const & ) const>::type;
|
||||||
|
|
||||||
using SelectorType = typename std::conditional<HasDestructor<HandleType>::value, DestructorType, HandleType>::type;
|
using SelectorType = typename std::conditional<HasDestructor<HandleType>::value, DestructorType, HandleType>::type;
|
||||||
|
|
||||||
ObjectDestroyShared( Optional<const AllocationCallbacks> allocationCallbacks VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ),
|
ObjectDestroyShared( Optional<AllocationCallbacks const> allocationCallbacks VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ),
|
||||||
const Dispatcher & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
Dispatcher const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
||||||
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &SelectorType::destroy ) ) )
|
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &SelectorType::destroy ) ) )
|
||||||
, m_dispatch( &dispatch )
|
, m_dispatch( &dispatch )
|
||||||
, m_allocationCallbacks( allocationCallbacks )
|
, m_allocationCallbacks( allocationCallbacks )
|
||||||
@@ -359,8 +358,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DestroyFunctionPointerType m_destroy = nullptr;
|
DestroyFunctionPointerType m_destroy = nullptr;
|
||||||
const Dispatcher * m_dispatch = nullptr;
|
Dispatcher const * m_dispatch = nullptr;
|
||||||
Optional<const AllocationCallbacks> m_allocationCallbacks = nullptr;
|
Optional<AllocationCallbacks const> m_allocationCallbacks = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename HandleType, typename Dispatcher = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
template <typename HandleType, typename Dispatcher = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||||
@@ -369,10 +368,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
public:
|
public:
|
||||||
using DestructorType = typename SharedHandleTraits<HandleType>::DestructorType;
|
using DestructorType = typename SharedHandleTraits<HandleType>::DestructorType;
|
||||||
|
|
||||||
using DestroyFunctionPointerType = void ( DestructorType::* )( HandleType, const AllocationCallbacks *, const Dispatcher & ) const;
|
using DestroyFunctionPointerType = void ( DestructorType::* )( HandleType, AllocationCallbacks const *, Dispatcher const & ) const;
|
||||||
|
|
||||||
ObjectFreeShared( Optional<const AllocationCallbacks> allocationCallbacks VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ),
|
ObjectFreeShared( Optional<AllocationCallbacks const> allocationCallbacks VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ),
|
||||||
const Dispatcher & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
Dispatcher const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
||||||
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &DestructorType::free ) ) )
|
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &DestructorType::free ) ) )
|
||||||
, m_dispatch( &dispatch )
|
, m_dispatch( &dispatch )
|
||||||
, m_allocationCallbacks( allocationCallbacks )
|
, m_allocationCallbacks( allocationCallbacks )
|
||||||
@@ -388,8 +387,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DestroyFunctionPointerType m_destroy = nullptr;
|
DestroyFunctionPointerType m_destroy = nullptr;
|
||||||
const Dispatcher * m_dispatch = nullptr;
|
Dispatcher const * m_dispatch = nullptr;
|
||||||
Optional<const AllocationCallbacks> m_allocationCallbacks = nullptr;
|
Optional<AllocationCallbacks const> m_allocationCallbacks = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename HandleType, typename Dispatcher = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
template <typename HandleType, typename Dispatcher = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||||
@@ -398,9 +397,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
public:
|
public:
|
||||||
using DestructorType = typename SharedHandleTraits<HandleType>::DestructorType;
|
using DestructorType = typename SharedHandleTraits<HandleType>::DestructorType;
|
||||||
|
|
||||||
using DestroyFunctionPointerType = void ( DestructorType::* )( HandleType, const Dispatcher & ) const;
|
using DestroyFunctionPointerType = void ( DestructorType::* )( HandleType, Dispatcher const & ) const;
|
||||||
|
|
||||||
ObjectReleaseShared( const Dispatcher & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
ObjectReleaseShared( Dispatcher const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
||||||
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &DestructorType::release ) ) ), m_dispatch( &dispatch )
|
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &DestructorType::release ) ) ), m_dispatch( &dispatch )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -414,7 +413,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DestroyFunctionPointerType m_destroy = nullptr;
|
DestroyFunctionPointerType m_destroy = nullptr;
|
||||||
const Dispatcher * m_dispatch = nullptr;
|
Dispatcher const * m_dispatch = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename HandleType, typename PoolType, typename Dispatcher = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
template <typename HandleType, typename PoolType, typename Dispatcher = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||||
@@ -427,11 +426,11 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
using ReturnType = decltype( std::declval<DestructorType>().free( PoolType(), 0u, nullptr, Dispatcher() ) );
|
using ReturnType = decltype( std::declval<DestructorType>().free( PoolType(), 0u, nullptr, Dispatcher() ) );
|
||||||
|
|
||||||
using DestroyFunctionPointerType = ReturnType ( DestructorType::* )( PoolType, uint32_t, const HandleType *, const Dispatcher & ) const;
|
using DestroyFunctionPointerType = ReturnType ( DestructorType::* )( PoolType, uint32_t, HandleType const *, Dispatcher const & ) const;
|
||||||
|
|
||||||
PoolFreeShared() = default;
|
PoolFreeShared() = default;
|
||||||
|
|
||||||
PoolFreeShared( SharedHandle<PoolType> pool, const Dispatcher & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
PoolFreeShared( SharedHandle<PoolType> pool, Dispatcher const & dispatch VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT )
|
||||||
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &DestructorType::free ) ) )
|
: m_destroy( reinterpret_cast<decltype( m_destroy )>( static_cast<DestroyFunctionPointerType>( &DestructorType::free ) ) )
|
||||||
, m_dispatch( &dispatch )
|
, m_dispatch( &dispatch )
|
||||||
, m_pool( std::move( pool ) )
|
, m_pool( std::move( pool ) )
|
||||||
@@ -447,7 +446,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DestroyFunctionPointerType m_destroy = nullptr;
|
DestroyFunctionPointerType m_destroy = nullptr;
|
||||||
const Dispatcher * m_dispatch = nullptr;
|
Dispatcher const * m_dispatch = nullptr;
|
||||||
SharedHandle<PoolType> m_pool{};
|
SharedHandle<PoolType> m_pool{};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -825,6 +824,28 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
using SharedDebugUtilsMessengerEXT = SharedHandle<DebugUtilsMessengerEXT>;
|
using SharedDebugUtilsMessengerEXT = SharedHandle<DebugUtilsMessengerEXT>;
|
||||||
|
|
||||||
|
//=== VK_AMD_gpa_interface ===
|
||||||
|
template <>
|
||||||
|
class SharedHandleTraits<GpaSessionAMD>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
using DestructorType = Device;
|
||||||
|
using deleter = detail::ObjectDestroyShared<GpaSessionAMD>;
|
||||||
|
};
|
||||||
|
|
||||||
|
using SharedGpaSessionAMD = SharedHandle<GpaSessionAMD>;
|
||||||
|
|
||||||
|
//=== VK_EXT_descriptor_heap ===
|
||||||
|
template <>
|
||||||
|
class SharedHandleTraits<TensorARM>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
using DestructorType = Device;
|
||||||
|
using deleter = detail::ObjectDestroyShared<TensorARM>;
|
||||||
|
};
|
||||||
|
|
||||||
|
using SharedTensorARM = SharedHandle<TensorARM>;
|
||||||
|
|
||||||
//=== VK_KHR_acceleration_structure ===
|
//=== VK_KHR_acceleration_structure ===
|
||||||
template <>
|
template <>
|
||||||
class SharedHandleTraits<AccelerationStructureKHR>
|
class SharedHandleTraits<AccelerationStructureKHR>
|
||||||
@@ -939,16 +960,6 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
using SharedMicromapEXT = SharedHandle<MicromapEXT>;
|
using SharedMicromapEXT = SharedHandle<MicromapEXT>;
|
||||||
|
|
||||||
//=== VK_ARM_tensors ===
|
//=== VK_ARM_tensors ===
|
||||||
template <>
|
|
||||||
class SharedHandleTraits<TensorARM>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
using DestructorType = Device;
|
|
||||||
using deleter = detail::ObjectDestroyShared<TensorARM>;
|
|
||||||
};
|
|
||||||
|
|
||||||
using SharedTensorARM = SharedHandle<TensorARM>;
|
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
class SharedHandleTraits<TensorViewARM>
|
class SharedHandleTraits<TensorViewARM>
|
||||||
{
|
{
|
||||||
@@ -1035,6 +1046,17 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
using SharedIndirectExecutionSetEXT = SharedHandle<IndirectExecutionSetEXT>;
|
using SharedIndirectExecutionSetEXT = SharedHandle<IndirectExecutionSetEXT>;
|
||||||
|
|
||||||
|
//=== VK_ARM_shader_instrumentation ===
|
||||||
|
template <>
|
||||||
|
class SharedHandleTraits<ShaderInstrumentationARM>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
using DestructorType = Device;
|
||||||
|
using deleter = detail::ObjectDestroyShared<ShaderInstrumentationARM>;
|
||||||
|
};
|
||||||
|
|
||||||
|
using SharedShaderInstrumentationARM = SharedHandle<ShaderInstrumentationARM>;
|
||||||
|
|
||||||
// a number of SharedHandle specializations
|
// a number of SharedHandle specializations
|
||||||
enum class SwapchainOwns
|
enum class SwapchainOwns
|
||||||
{
|
{
|
||||||
@@ -1074,7 +1096,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void internalDestroy( const ImageHeader & control, Image handle ) VULKAN_HPP_NOEXCEPT
|
static void internalDestroy( ImageHeader const & control, Image handle ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
if ( control.swapchainOwned == SwapchainOwns::no )
|
if ( control.swapchainOwned == SwapchainOwns::no )
|
||||||
{
|
{
|
||||||
@@ -1119,7 +1141,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const SharedHandle<SurfaceKHR> & getSurface() const VULKAN_HPP_NOEXCEPT
|
SharedHandle<SurfaceKHR> const & getSurface() const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return getHeader().surface;
|
return getHeader().surface;
|
||||||
}
|
}
|
||||||
@@ -1134,13 +1156,13 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
public:
|
public:
|
||||||
using SharedHandleBase<HandleType, DestructorType>::SharedHandleBase;
|
using SharedHandleBase<HandleType, DestructorType>::SharedHandleBase;
|
||||||
|
|
||||||
const DestructorType & getDestructorType() const VULKAN_HPP_NOEXCEPT
|
DestructorType const & getDestructorType() const VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return SharedHandleBase<HandleType, DestructorType>::getHeader();
|
return SharedHandleBase<HandleType, DestructorType>::getHeader();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void internalDestroy( const DestructorType &, HandleType ) VULKAN_HPP_NOEXCEPT {}
|
static void internalDestroy( DestructorType const &, HandleType ) VULKAN_HPP_NOEXCEPT {}
|
||||||
};
|
};
|
||||||
|
|
||||||
//=== VK_VERSION_1_0 ===
|
//=== VK_VERSION_1_0 ===
|
||||||
|
|||||||
+1021
-224
File diff suppressed because it is too large
Load Diff
+26243
-10353
File diff suppressed because it is too large
Load Diff
+1238
-458
File diff suppressed because it is too large
Load Diff
Vendored
+55
-307
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2021-2025 The Khronos Group Inc.
|
// Copyright 2021-2026 The Khronos Group Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -8,317 +8,65 @@ module;
|
|||||||
|
|
||||||
#define VULKAN_HPP_CXX_MODULE 1
|
#define VULKAN_HPP_CXX_MODULE 1
|
||||||
|
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codecs_common.h> )
|
||||||
|
# include <vk_video/vulkan_video_codecs_common.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_h264std.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_h264std.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_h264std_decode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_h264std_decode.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_h264std_encode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_h264std_encode.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_h265std.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_h265std.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_h265std_decode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_h265std_decode.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_h265std_encode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_h265std_encode.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_vp9std.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_vp9std.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_vp9std_decode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_vp9std_decode.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_av1std.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_av1std.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_av1std_decode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_av1std_decode.h>
|
||||||
|
#endif
|
||||||
|
#if __has_include( <vk_video/vulkan_video_codec_av1std_encode.h> )
|
||||||
|
# include <vk_video/vulkan_video_codec_av1std_encode.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
#include <vulkan/vulkan_hpp_macros.hpp>
|
#include <vulkan/vulkan_hpp_macros.hpp>
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_CXX_MODULE_EXPERIMENTAL_WARNING )
|
export module vulkan_video;
|
||||||
# define VULKAN_HPP_CXX_MODULE_EXPERIMENTAL_WARNING \
|
|
||||||
"\n\tThe Vulkan-Hpp C++ named module is experimental. It is subject to change without prior notice.\n" \
|
|
||||||
"\tTo silence this warning, define the VULKAN_HPP_CXX_MODULE_EXPERIMENTAL_WARNING macro.\n" \
|
|
||||||
"\tFor feedback, go to: https://github.com/KhronosGroup/Vulkan-Hpp/issues"
|
|
||||||
|
|
||||||
VULKAN_HPP_COMPILE_WARNING( VULKAN_HPP_CXX_MODULE_EXPERIMENTAL_WARNING )
|
import vulkan;
|
||||||
|
|
||||||
|
#if defined( _MSC_VER )
|
||||||
|
# pragma warning( push )
|
||||||
|
# pragma warning( disable : 5244 )
|
||||||
|
#elif defined( __clang__ )
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
|
||||||
|
#elif defined( __GNUC__ )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <vulkan/vulkan_video.hpp>
|
#include <vulkan/vulkan_video.hpp>
|
||||||
|
|
||||||
export module vulkan:video;
|
#if defined( _MSC_VER )
|
||||||
|
# pragma warning( pop )
|
||||||
export namespace VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE
|
#elif defined( __clang__ )
|
||||||
{
|
# pragma clang diagnostic pop
|
||||||
|
#elif defined( __GNUC__ )
|
||||||
//=================
|
|
||||||
//=== CONSTANTs ===
|
|
||||||
//=================
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264CpbCntListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264MaxChromaPlanes;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264MaxNumListRef;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264NoReferencePicture;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingList4X4NumElements;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingList4X4NumLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingList8X8NumElements;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingList8X8NumLists;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH264FieldOrderCountListSize;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H265STD_H_ )
|
|
||||||
//=== vulkan_video_codec_h265std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ChromaQpOffsetListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ChromaQpOffsetTileColsListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ChromaQpOffsetTileRowsListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265CpbCntListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxChromaPlanes;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxDeltaPoc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxDpbSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxLongTermPics;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxLongTermRefPicsSps;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxNumListRef;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265MaxShortTermRefPicSets;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265NoReferencePicture;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteCompEntriesListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteComponentsListSize;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList16X16NumElements;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList16X16NumLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList32X32NumElements;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList32X32NumLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList4X4NumElements;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList4X4NumLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList8X8NumElements;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingList8X8NumLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SublayersListSize;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H265STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h265std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH265RefPicSetListSize;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_VP9STD_H_ )
|
|
||||||
//=== vulkan_video_codec_vp9std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9LoopFilterAdjustments;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9MaxRefFrames;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9MaxSegmentationPredProb;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9MaxSegmentationTreeProbs;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9MaxSegments;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9NumRefFrames;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9RefsPerFrame;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Vp9SegLvlMax;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_AV1STD_H_ )
|
|
||||||
//=== vulkan_video_codec_av1std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1GlobalMotionParams;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1LoopFilterAdjustments;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxCdefFilterStrengths;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxLoopFilterStrengths;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxNumCbPoints;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxNumCrPoints;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxNumPlanes;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxNumPosChroma;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxNumPosLuma;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxNumYPoints;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxSegments;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxTileCols;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1MaxTileRows;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1NumRefFrames;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1PrimaryRefNone;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1RefsPerFrame;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1SegLvlMax;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1SelectIntegerMv;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1SelectScreenContentTools;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1SkipModeFrames;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::Av1TotalRefsPerFrame;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//=============
|
|
||||||
//=== ENUMs ===
|
|
||||||
//=============
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264AspectRatioIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264CabacInitIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ChromaFormatIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264DisableDeblockingFilterIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264LevelIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264MemMgmtControlOp;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ModificationOfPicNumsIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264NonVclNaluType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264PictureType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264PocType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ProfileIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SliceType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264WeightedBipredIdc;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH264FieldOrderCount;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H265STD_H_ )
|
|
||||||
//=== vulkan_video_codec_h265std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265AspectRatioIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ChromaFormatIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265LevelIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PictureType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileIdc;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SliceType;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_VP9STD_H_ )
|
|
||||||
//=== vulkan_video_codec_vp9std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9ColorSpace;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9FrameType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9InterpolationFilter;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9Level;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9Profile;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9ReferenceName;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_AV1STD_H_ )
|
|
||||||
//=== vulkan_video_codec_av1std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ChromaSamplePosition;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ColorPrimaries;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FrameRestorationType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FrameType;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1InterpolationFilter;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Level;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1MatrixCoefficients;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Profile;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ReferenceName;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TransferCharacteristics;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TxMode;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//===============
|
|
||||||
//=== STRUCTS ===
|
|
||||||
//===============
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264HrdParameters;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264PictureParameterSet;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264PpsFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SequenceParameterSet;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SequenceParameterSetVui;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SpsFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SpsVuiFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH264PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH264PictureInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH264ReferenceInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH264ReferenceInfoFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H264STD_ENCODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h264std_encode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264PictureInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264ReferenceInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264ReferenceInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264ReferenceListsInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264ReferenceListsInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefListModEntry;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefPicMarkingEntry;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264SliceHeader;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264SliceHeaderFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264WeightTable;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264WeightTableFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H265STD_H_ )
|
|
||||||
//=== vulkan_video_codec_h265std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265DecPicBufMgr;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265HrdFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265HrdParameters;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265LongTermRefPicsSps;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PictureParameterSet;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PpsFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteEntries;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileTierLevel;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileTierLevelFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingLists;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SequenceParameterSet;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SequenceParameterSetVui;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ShortTermRefPicSet;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ShortTermRefPicSetFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SpsFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SpsVuiFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SubLayerHrdParameters;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265VideoParameterSet;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265VpsFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H265STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h265std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH265PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH265PictureInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH265ReferenceInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeH265ReferenceInfoFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_H265STD_ENCODE_H_ )
|
|
||||||
//=== vulkan_video_codec_h265std_encode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265LongTermRefPics;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265PictureInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265ReferenceInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265ReferenceInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265ReferenceListsInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265ReferenceListsInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265SliceSegmentHeader;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265SliceSegmentHeaderFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265WeightTable;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265WeightTableFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_VP9STD_H_ )
|
|
||||||
//=== vulkan_video_codec_vp9std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9ColorConfig;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9ColorConfigFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9LoopFilter;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9LoopFilterFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9Segmentation;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9SegmentationFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_VP9STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_vp9std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeVP9PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeVP9PictureInfoFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_AV1STD_H_ )
|
|
||||||
//=== vulkan_video_codec_av1std ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1CDEF;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ColorConfig;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ColorConfigFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FilmGrain;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FilmGrainFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1GlobalMotion;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopFilter;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopFilterFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopRestoration;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Quantization;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1QuantizationFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Segmentation;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1SequenceHeader;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1SequenceHeaderFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TileInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TileInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TimingInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TimingInfoFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_AV1STD_DECODE_H_ )
|
|
||||||
//=== vulkan_video_codec_av1std_decode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeAV1PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeAV1PictureInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeAV1ReferenceInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::DecodeAV1ReferenceInfoFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined( VULKAN_VIDEO_CODEC_AV1STD_ENCODE_H_ )
|
|
||||||
//=== vulkan_video_codec_av1std_encode ===
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1DecoderModelInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ExtensionHeader;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1OperatingPointInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1OperatingPointInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1PictureInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1PictureInfoFlags;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ReferenceInfo;
|
|
||||||
using VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ReferenceInfoFlags;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE
|
|
||||||
|
|||||||
Vendored
+61
-63
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2021-2025 The Khronos Group Inc.
|
// Copyright 2021-2026 The Khronos Group Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -13,10 +13,8 @@
|
|||||||
# define has_include_was_not_defined
|
# define has_include_was_not_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// clang-format off
|
#if !defined( VULKAN_HPP_CXX_MODULE )
|
||||||
# include <vulkan/vulkan.hpp>
|
# include <vulkan/vulkan.hpp>
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
# if __has_include( <vk_video/vulkan_video_codecs_common.h> )
|
# if __has_include( <vk_video/vulkan_video_codecs_common.h> )
|
||||||
# include <vk_video/vulkan_video_codecs_common.h>
|
# include <vk_video/vulkan_video_codecs_common.h>
|
||||||
# endif
|
# endif
|
||||||
@@ -54,15 +52,16 @@
|
|||||||
# include <vk_video/vulkan_video_codec_av1std_encode.h>
|
# include <vk_video/vulkan_video_codec_av1std_encode.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_VIDEO_NAMESPACE )
|
#if !defined( VULKAN_HPP_VIDEO_NAMESPACE )
|
||||||
# define VULKAN_HPP_VIDEO_NAMESPACE video
|
# define VULKAN_HPP_VIDEO_NAMESPACE video
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
namespace VULKAN_HPP_VIDEO_NAMESPACE
|
namespace VULKAN_HPP_VIDEO_NAMESPACE
|
||||||
{
|
{
|
||||||
|
|
||||||
//=================
|
//=================
|
||||||
//=== CONSTANTs ===
|
//=== CONSTANTs ===
|
||||||
//=================
|
//=================
|
||||||
@@ -805,7 +804,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint8_t chroma_sample_loc_type_top_field = {};
|
uint8_t chroma_sample_loc_type_top_field = {};
|
||||||
uint8_t chroma_sample_loc_type_bottom_field = {};
|
uint8_t chroma_sample_loc_type_bottom_field = {};
|
||||||
uint32_t reserved1 = {};
|
uint32_t reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264HrdParameters * pHrdParameters = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264HrdParameters const * pHrdParameters = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct H264SpsFlags
|
struct H264SpsFlags
|
||||||
@@ -982,9 +981,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint32_t frame_crop_top_offset = {};
|
uint32_t frame_crop_top_offset = {};
|
||||||
uint32_t frame_crop_bottom_offset = {};
|
uint32_t frame_crop_bottom_offset = {};
|
||||||
uint32_t reserved2 = {};
|
uint32_t reserved2 = {};
|
||||||
const int32_t * pOffsetForRefFrame = {};
|
int32_t const * pOffsetForRefFrame = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingLists * pScalingLists = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingLists const * pScalingLists = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SequenceParameterSetVui * pSequenceParameterSetVui = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264SequenceParameterSetVui const * pSequenceParameterSetVui = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct H264PpsFlags
|
struct H264PpsFlags
|
||||||
@@ -1087,7 +1086,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
int8_t pic_init_qs_minus26 = {};
|
int8_t pic_init_qs_minus26 = {};
|
||||||
int8_t chroma_qp_index_offset = {};
|
int8_t chroma_qp_index_offset = {};
|
||||||
int8_t second_chroma_qp_index_offset = {};
|
int8_t second_chroma_qp_index_offset = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingLists * pScalingLists = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264ScalingLists const * pScalingLists = {};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1669,9 +1668,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint8_t refList1ModOpCount = {};
|
uint8_t refList1ModOpCount = {};
|
||||||
uint8_t refPicMarkingOpCount = {};
|
uint8_t refPicMarkingOpCount = {};
|
||||||
ArrayWrapper1D<uint8_t, 7> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 7> reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefListModEntry * pRefList0ModOperations = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefListModEntry const * pRefList0ModOperations = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefListModEntry * pRefList1ModOperations = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefListModEntry const * pRefList1ModOperations = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefPicMarkingEntry * pRefPicMarkingOperations = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264RefPicMarkingEntry const * pRefPicMarkingOperations = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EncodeH264PictureInfo
|
struct EncodeH264PictureInfo
|
||||||
@@ -1721,7 +1720,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
int32_t PicOrderCnt = {};
|
int32_t PicOrderCnt = {};
|
||||||
uint8_t temporal_id = {};
|
uint8_t temporal_id = {};
|
||||||
ArrayWrapper1D<uint8_t, 3> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 3> reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264ReferenceListsInfo * pRefLists = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264ReferenceListsInfo const * pRefLists = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EncodeH264ReferenceInfo
|
struct EncodeH264ReferenceInfo
|
||||||
@@ -1819,7 +1818,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264CabacInitIdc::e0;
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264CabacInitIdc::e0;
|
||||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264DisableDeblockingFilterIdc disable_deblocking_filter_idc =
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264DisableDeblockingFilterIdc disable_deblocking_filter_idc =
|
||||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264DisableDeblockingFilterIdc::eDisabled;
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H264DisableDeblockingFilterIdc::eDisabled;
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264WeightTable * pWeightTable = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH264WeightTable const * pWeightTable = {};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -2016,8 +2015,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
ArrayWrapper1D<uint8_t, STD_VIDEO_H265_SUBLAYERS_LIST_SIZE> cpb_cnt_minus1 = {};
|
ArrayWrapper1D<uint8_t, STD_VIDEO_H265_SUBLAYERS_LIST_SIZE> cpb_cnt_minus1 = {};
|
||||||
ArrayWrapper1D<uint16_t, STD_VIDEO_H265_SUBLAYERS_LIST_SIZE> elemental_duration_in_tc_minus1 = {};
|
ArrayWrapper1D<uint16_t, STD_VIDEO_H265_SUBLAYERS_LIST_SIZE> elemental_duration_in_tc_minus1 = {};
|
||||||
ArrayWrapper1D<uint16_t, 3> reserved = {};
|
ArrayWrapper1D<uint16_t, 3> reserved = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SubLayerHrdParameters * pSubLayerHrdParametersNal = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SubLayerHrdParameters const * pSubLayerHrdParametersNal = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SubLayerHrdParameters * pSubLayerHrdParametersVcl = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SubLayerHrdParameters const * pSubLayerHrdParametersVcl = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct H265VpsFlags
|
struct H265VpsFlags
|
||||||
@@ -2198,9 +2197,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint32_t vps_time_scale = {};
|
uint32_t vps_time_scale = {};
|
||||||
uint32_t vps_num_ticks_poc_diff_one_minus1 = {};
|
uint32_t vps_num_ticks_poc_diff_one_minus1 = {};
|
||||||
uint32_t reserved3 = {};
|
uint32_t reserved3 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265DecPicBufMgr * pDecPicBufMgr = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265DecPicBufMgr const * pDecPicBufMgr = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265HrdParameters * pHrdParameters = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265HrdParameters const * pHrdParameters = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileTierLevel * pProfileTierLevel = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileTierLevel const * pProfileTierLevel = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct H265ScalingLists
|
struct H265ScalingLists
|
||||||
@@ -2387,7 +2386,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint8_t max_bits_per_min_cu_denom = {};
|
uint8_t max_bits_per_min_cu_denom = {};
|
||||||
uint8_t log2_max_mv_length_horizontal = {};
|
uint8_t log2_max_mv_length_horizontal = {};
|
||||||
uint8_t log2_max_mv_length_vertical = {};
|
uint8_t log2_max_mv_length_vertical = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265HrdParameters * pHrdParameters = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265HrdParameters const * pHrdParameters = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct H265PredictorPaletteEntries
|
struct H265PredictorPaletteEntries
|
||||||
@@ -2744,13 +2743,13 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint32_t conf_win_right_offset = {};
|
uint32_t conf_win_right_offset = {};
|
||||||
uint32_t conf_win_top_offset = {};
|
uint32_t conf_win_top_offset = {};
|
||||||
uint32_t conf_win_bottom_offset = {};
|
uint32_t conf_win_bottom_offset = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileTierLevel * pProfileTierLevel = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ProfileTierLevel const * pProfileTierLevel = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265DecPicBufMgr * pDecPicBufMgr = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265DecPicBufMgr const * pDecPicBufMgr = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingLists * pScalingLists = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingLists const * pScalingLists = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ShortTermRefPicSet * pShortTermRefPicSet = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ShortTermRefPicSet const * pShortTermRefPicSet = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265LongTermRefPicsSps * pLongTermRefPicsSps = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265LongTermRefPicsSps const * pLongTermRefPicsSps = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SequenceParameterSetVui * pSequenceParameterSetVui = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265SequenceParameterSetVui const * pSequenceParameterSetVui = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteEntries * pPredictorPaletteEntries = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteEntries const * pPredictorPaletteEntries = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct H265PpsFlags
|
struct H265PpsFlags
|
||||||
@@ -2932,8 +2931,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
ArrayWrapper1D<uint16_t, STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_COLS_LIST_SIZE> column_width_minus1 = {};
|
ArrayWrapper1D<uint16_t, STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_COLS_LIST_SIZE> column_width_minus1 = {};
|
||||||
ArrayWrapper1D<uint16_t, STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_ROWS_LIST_SIZE> row_height_minus1 = {};
|
ArrayWrapper1D<uint16_t, STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_ROWS_LIST_SIZE> row_height_minus1 = {};
|
||||||
uint32_t reserved3 = {};
|
uint32_t reserved3 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingLists * pScalingLists = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ScalingLists const * pScalingLists = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteEntries * pPredictorPaletteEntries = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265PredictorPaletteEntries const * pPredictorPaletteEntries = {};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -3325,7 +3324,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
int8_t slice_act_cr_qp_offset = {};
|
int8_t slice_act_cr_qp_offset = {};
|
||||||
int8_t slice_qp_delta = {};
|
int8_t slice_qp_delta = {};
|
||||||
uint16_t reserved1 = {};
|
uint16_t reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265WeightTable * pWeightTable = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265WeightTable const * pWeightTable = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EncodeH265ReferenceListsInfoFlags
|
struct EncodeH265ReferenceListsInfoFlags
|
||||||
@@ -3561,9 +3560,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
int32_t PicOrderCntVal = {};
|
int32_t PicOrderCntVal = {};
|
||||||
uint8_t TemporalId = {};
|
uint8_t TemporalId = {};
|
||||||
ArrayWrapper1D<uint8_t, 7> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 7> reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265ReferenceListsInfo * pRefLists = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265ReferenceListsInfo const * pRefLists = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ShortTermRefPicSet * pShortTermRefPicSet = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::H265ShortTermRefPicSet const * pShortTermRefPicSet = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265LongTermRefPics * pLongTermRefPics = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeH265LongTermRefPics const * pLongTermRefPics = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EncodeH265ReferenceInfoFlags
|
struct EncodeH265ReferenceInfoFlags
|
||||||
@@ -4019,9 +4018,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint8_t tile_cols_log2 = {};
|
uint8_t tile_cols_log2 = {};
|
||||||
uint8_t tile_rows_log2 = {};
|
uint8_t tile_rows_log2 = {};
|
||||||
ArrayWrapper1D<uint16_t, 3> reserved1 = {};
|
ArrayWrapper1D<uint16_t, 3> reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9ColorConfig * pColorConfig = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9ColorConfig const * pColorConfig = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9LoopFilter * pLoopFilter = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9LoopFilter const * pLoopFilter = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9Segmentation * pSegmentation = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::VP9Segmentation const * pSegmentation = {};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -4502,10 +4501,10 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint16_t context_update_tile_id = {};
|
uint16_t context_update_tile_id = {};
|
||||||
uint8_t tile_size_bytes_minus_1 = {};
|
uint8_t tile_size_bytes_minus_1 = {};
|
||||||
ArrayWrapper1D<uint8_t, 7> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 7> reserved1 = {};
|
||||||
const uint16_t * pMiColStarts = {};
|
uint16_t const * pMiColStarts = {};
|
||||||
const uint16_t * pMiRowStarts = {};
|
uint16_t const * pMiRowStarts = {};
|
||||||
const uint16_t * pWidthInSbsMinus1 = {};
|
uint16_t const * pWidthInSbsMinus1 = {};
|
||||||
const uint16_t * pHeightInSbsMinus1 = {};
|
uint16_t const * pHeightInSbsMinus1 = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AV1CDEF
|
struct AV1CDEF
|
||||||
@@ -4862,8 +4861,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
uint8_t seq_force_integer_mv = {};
|
uint8_t seq_force_integer_mv = {};
|
||||||
uint8_t seq_force_screen_content_tools = {};
|
uint8_t seq_force_screen_content_tools = {};
|
||||||
ArrayWrapper1D<uint8_t, 5> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 5> reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ColorConfig * pColorConfig = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1ColorConfig const * pColorConfig = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TimingInfo * pTimingInfo = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TimingInfo const * pTimingInfo = {};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -5008,14 +5007,14 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
ArrayWrapper1D<uint8_t, 3> reserved2 = {};
|
ArrayWrapper1D<uint8_t, 3> reserved2 = {};
|
||||||
ArrayWrapper1D<uint8_t, STD_VIDEO_AV1_NUM_REF_FRAMES> OrderHints = {};
|
ArrayWrapper1D<uint8_t, STD_VIDEO_AV1_NUM_REF_FRAMES> OrderHints = {};
|
||||||
ArrayWrapper1D<uint32_t, STD_VIDEO_AV1_NUM_REF_FRAMES> expectedFrameId = {};
|
ArrayWrapper1D<uint32_t, STD_VIDEO_AV1_NUM_REF_FRAMES> expectedFrameId = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TileInfo * pTileInfo = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TileInfo const * pTileInfo = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Quantization * pQuantization = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Quantization const * pQuantization = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Segmentation * pSegmentation = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Segmentation const * pSegmentation = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopFilter * pLoopFilter = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopFilter const * pLoopFilter = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1CDEF * pCDEF = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1CDEF const * pCDEF = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopRestoration * pLoopRestoration = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopRestoration const * pLoopRestoration = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1GlobalMotion * pGlobalMotion = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1GlobalMotion const * pGlobalMotion = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FilmGrain * pFilmGrain = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FilmGrain const * pFilmGrain = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DecodeAV1ReferenceInfoFlags
|
struct DecodeAV1ReferenceInfoFlags
|
||||||
@@ -5421,15 +5420,15 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
ArrayWrapper1D<int8_t, STD_VIDEO_AV1_REFS_PER_FRAME> ref_frame_idx = {};
|
ArrayWrapper1D<int8_t, STD_VIDEO_AV1_REFS_PER_FRAME> ref_frame_idx = {};
|
||||||
ArrayWrapper1D<uint8_t, 3> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 3> reserved1 = {};
|
||||||
ArrayWrapper1D<uint32_t, STD_VIDEO_AV1_REFS_PER_FRAME> delta_frame_id_minus_1 = {};
|
ArrayWrapper1D<uint32_t, STD_VIDEO_AV1_REFS_PER_FRAME> delta_frame_id_minus_1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TileInfo * pTileInfo = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1TileInfo const * pTileInfo = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Quantization * pQuantization = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Quantization const * pQuantization = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Segmentation * pSegmentation = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1Segmentation const * pSegmentation = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopFilter * pLoopFilter = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopFilter const * pLoopFilter = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1CDEF * pCDEF = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1CDEF const * pCDEF = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopRestoration * pLoopRestoration = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1LoopRestoration const * pLoopRestoration = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1GlobalMotion * pGlobalMotion = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1GlobalMotion const * pGlobalMotion = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ExtensionHeader * pExtensionHeader = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ExtensionHeader const * pExtensionHeader = {};
|
||||||
const uint32_t * pBufferRemovalTimes = {};
|
uint32_t const * pBufferRemovalTimes = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EncodeAV1ReferenceInfoFlags
|
struct EncodeAV1ReferenceInfoFlags
|
||||||
@@ -5514,10 +5513,9 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FrameType frame_type = VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FrameType::eKey;
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FrameType frame_type = VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::AV1FrameType::eKey;
|
||||||
uint8_t OrderHint = {};
|
uint8_t OrderHint = {};
|
||||||
ArrayWrapper1D<uint8_t, 3> reserved1 = {};
|
ArrayWrapper1D<uint8_t, 3> reserved1 = {};
|
||||||
const VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ExtensionHeader * pExtensionHeader = {};
|
VULKAN_HPP_NAMESPACE::VULKAN_HPP_VIDEO_NAMESPACE::EncodeAV1ExtensionHeader const * pExtensionHeader = {};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace VULKAN_HPP_VIDEO_NAMESPACE
|
} // namespace VULKAN_HPP_VIDEO_NAMESPACE
|
||||||
} // namespace VULKAN_HPP_NAMESPACE
|
} // namespace VULKAN_HPP_NAMESPACE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user