Skip to content

Commit 37783f6

Browse files
authored
Merge branch 'KhronosGroup:main' into fgiancan-remove-vendored-cmake-module-find-vulkan
2 parents acf2e2c + 8f7fcb0 commit 37783f6

File tree

134 files changed

+2615
-1839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+2615
-1839
lines changed

antora/modules/ROOT/nav.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
** xref:samples/extensions/portability/README.adoc[Portability]
8383
** xref:samples/extensions/push_descriptors/README.adoc[Push descriptors]
8484
*** xref:samples/extensions/hpp_push_descriptors/README.adoc[Push descriptors (Vulkan-Hpp)]
85+
** xref:samples/extensions/rasterization_order_attachment_access/README.adoc[Rasterization order attachment access]
8586
** xref:samples/extensions/ray_tracing_basic/README.adoc[Raytracing basic]
8687
** xref:samples/extensions/ray_tracing_extended/README.adoc[Raytracing extended]
8788
** xref:samples/extensions/ray_tracing_invocation_reorder/README.adoc[Ray tracing invocation reorder (SER)]
@@ -134,4 +135,4 @@
134135
** xref:docs/build.adoc[Build guide]
135136
** xref:docs/memory_limits.adoc[Memory limits]
136137
** xref:docs/misc.adoc[Miscellaneous]
137-
* link:https://github.com/KhronosGroup/Vulkan-Samples[GitHub Repository, window=_blank]
138+
* link:https://github.com/KhronosGroup/Vulkan-Samples[GitHub Repository, window=_blank

bldsys/cmake/template/gradle/app.build.gradle.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'com.android.application'
33
}
44

5-
ext.vvl_version='1.4.321.0'
5+
ext.vvl_version='1.4.341.0'
66
apply from: "./download_vvl.gradle"
77

88
android {
@@ -68,7 +68,7 @@ android {
6868
abortOnError false
6969
checkReleaseBuilds false
7070
}
71-
71+
7272
buildFeatures {
7373
viewBinding true
7474
prefab true

bldsys/cmake/template/gradle/download_vvl.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ apply plugin: 'com.android.application'
3636
*/
3737

3838
// get the validation layer version.
39-
def VVL_VER = "1.4.321.0"
39+
def VVL_VER = "1.4.341.0"
4040
if (ext.has("vvl_version")) {
4141
VVL_VER = ext.vvl_version
4242
}

framework/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,12 @@ set(RENDERING_FILES
110110
rendering/render_target.h
111111
rendering/subpass.h
112112
rendering/hpp_pipeline_state.h
113-
rendering/hpp_render_pipeline.h
114-
rendering/hpp_render_target.h
115113
# Source files
116114
rendering/pipeline_state.cpp
117115
rendering/postprocessing_pipeline.cpp
118116
rendering/postprocessing_pass.cpp
119117
rendering/postprocessing_renderpass.cpp
120-
rendering/postprocessing_computepass.cpp
121-
rendering/render_pipeline.cpp
122-
rendering/render_target.cpp
123-
rendering/hpp_render_target.cpp)
118+
rendering/postprocessing_computepass.cpp)
124119

125120
set(RENDERING_SUBPASSES_FILES
126121
# Header files
@@ -409,7 +404,7 @@ else()
409404
endif()
410405

411406
# mask out the min/max macros from minwindef.h
412-
if(MSVC)
407+
if(WIN32)
413408
add_definitions(-DNOMINMAX)
414409
endif()
415410

framework/builder_base.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* Copyright (c) 2021-2025, NVIDIA CORPORATION. All rights reserved.
2-
* Copyright (c) 2025, Bradley Austin Davis. All rights reserved.
1+
/* Copyright (c) 2021-2026, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 2025-2026, Bradley Austin Davis. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -103,11 +103,11 @@ class BuilderBase
103103

104104
private:
105105
// we always want to store a vk::CreateInfo, so we have to figure out that type, depending on the BindingType!
106-
using HPPCreateInfoType = typename vkb::VulkanTypeMapping<bindingType, CreateInfoType>::Type;
106+
using CreateInfoTypeCpp = typename vkb::VulkanTypeMapping<bindingType, CreateInfoType>::Type;
107107

108108
protected:
109109
VmaAllocationCreateInfo alloc_create_info = {};
110-
HPPCreateInfoType create_info = {};
110+
CreateInfoTypeCpp create_info = {};
111111
std::string debug_name = {};
112112
};
113113

@@ -118,7 +118,7 @@ using BuilderBaseCpp = BuilderBase<vkb::BindingType::Cpp, BuilderType, CreateInf
118118

119119
template <vkb::BindingType bindingType, typename BuilderType, typename CreateInfoType>
120120
inline BuilderBase<bindingType, BuilderType, CreateInfoType>::BuilderBase(const CreateInfoType &create_info_) :
121-
create_info{reinterpret_cast<HPPCreateInfoType const &>(create_info_)}
121+
create_info{reinterpret_cast<CreateInfoTypeCpp const &>(create_info_)}
122122
{
123123
alloc_create_info.usage = VMA_MEMORY_USAGE_AUTO;
124124
};
@@ -138,7 +138,7 @@ inline CreateInfoType const &BuilderBase<bindingType, BuilderType, CreateInfoTyp
138138
}
139139
else
140140
{
141-
return *reinterpret_cast<typename HPPCreateInfoType::NativeType const *>(&create_info);
141+
return *reinterpret_cast<typename CreateInfoTypeCpp::NativeType const *>(&create_info);
142142
}
143143
}
144144

@@ -151,7 +151,7 @@ inline CreateInfoType &BuilderBase<bindingType, BuilderType, CreateInfoType>::ge
151151
}
152152
else
153153
{
154-
return *reinterpret_cast<typename HPPCreateInfoType::NativeType *>(&create_info);
154+
return *reinterpret_cast<typename CreateInfoTypeCpp::NativeType *>(&create_info);
155155
}
156156
}
157157

framework/common/hpp_resource_caching.h

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2023-2025, NVIDIA CORPORATION. All rights reserved.
1+
/* Copyright (c) 2023-2026, NVIDIA CORPORATION. All rights reserved.
22
*
33
* SPDX-License-Identifier: Apache-2.0
44
*
@@ -23,7 +23,6 @@
2323
#include "core/hpp_render_pass.h"
2424
#include "core/hpp_shader_module.h"
2525
#include "hpp_resource_record.h"
26-
#include "rendering/hpp_render_target.h"
2726
#include "resource_caching.h"
2827
#include <vulkan/vulkan_hash.hpp>
2928

@@ -227,9 +226,9 @@ struct hash<vkb::core::HPPSubpassInfo>
227226
};
228227

229228
template <>
230-
struct hash<vkb::rendering::HPPAttachment>
229+
struct hash<vkb::rendering::AttachmentCpp>
231230
{
232-
size_t operator()(const vkb::rendering::HPPAttachment &attachment) const
231+
size_t operator()(const vkb::rendering::AttachmentCpp &attachment) const
233232
{
234233
size_t result = 0;
235234
vkb::hash_combine(result, attachment.format);
@@ -250,28 +249,18 @@ struct hash<vkb::rendering::HPPPipelineState>
250249
};
251250

252251
template <>
253-
struct hash<vkb::rendering::HPPRenderTarget>
252+
struct hash<vkb::rendering::RenderTargetCpp>
254253
{
255-
size_t operator()(const vkb::rendering::HPPRenderTarget &render_target) const
254+
size_t operator()(const vkb::rendering::RenderTargetCpp &render_target) const
256255
{
257-
size_t result = 0;
258-
vkb::hash_combine(result, render_target.get_extent());
256+
std::size_t result = 0;
257+
259258
for (auto const &view : render_target.get_views())
260259
{
261-
vkb::hash_combine(result, view);
262-
}
263-
for (auto const &attachment : render_target.get_attachments())
264-
{
265-
vkb::hash_combine(result, attachment);
266-
}
267-
for (auto const &input : render_target.get_input_attachments())
268-
{
269-
vkb::hash_combine(result, input);
270-
}
271-
for (auto const &output : render_target.get_output_attachments())
272-
{
273-
vkb::hash_combine(result, output);
260+
vkb::hash_combine(result, view.get_handle());
261+
vkb::hash_combine(result, view.get_image().get_handle());
274262
}
263+
275264
return result;
276265
}
277266
};

framework/common/resource_caching.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2018-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2018-2026, Arm Limited and Contributors
22
*
33
* SPDX-License-Identifier: Apache-2.0
44
*
@@ -22,6 +22,7 @@
2222
#include "core/descriptor_set_layout.h"
2323
#include "core/framebuffer.h"
2424
#include "core/image.h"
25+
#include "core/image_view.h"
2526
#include "core/pipeline.h"
2627
#include "rendering/pipeline_state.h"
2728
#include "rendering/render_target.h"
@@ -123,9 +124,9 @@ struct hash<vkb::RenderPass>
123124
};
124125

125126
template <>
126-
struct hash<vkb::Attachment>
127+
struct hash<vkb::rendering::AttachmentC>
127128
{
128-
std::size_t operator()(const vkb::Attachment &attachment) const
129+
std::size_t operator()(const vkb::rendering::AttachmentC &attachment) const
129130
{
130131
std::size_t result = 0;
131132

@@ -437,13 +438,13 @@ struct hash<vkb::ColorBlendAttachmentState>
437438
};
438439

439440
template <>
440-
struct hash<vkb::RenderTarget>
441+
struct hash<vkb::rendering::RenderTargetC>
441442
{
442-
std::size_t operator()(const vkb::RenderTarget &render_target) const
443+
std::size_t operator()(const vkb::rendering::RenderTargetC &render_target) const
443444
{
444445
std::size_t result = 0;
445446

446-
for (auto &view : render_target.get_views())
447+
for (auto const &view : render_target.get_views())
447448
{
448449
vkb::hash_combine(result, view.get_handle());
449450
vkb::hash_combine(result, view.get_image().get_handle());
@@ -559,9 +560,9 @@ inline void hash_param<std::vector<uint8_t>>(
559560
}
560561

561562
template <>
562-
inline void hash_param<std::vector<Attachment>>(
563-
size_t &seed,
564-
const std::vector<Attachment> &value)
563+
inline void hash_param<std::vector<vkb::rendering::AttachmentC>>(
564+
size_t &seed,
565+
const std::vector<vkb::rendering::AttachmentC> &value)
565566
{
566567
for (auto &attachment : value)
567568
{

framework/core/allocated.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* Copyright (c) 2021-2025, NVIDIA CORPORATION. All rights reserved.
2-
* Copyright (c) 2024-2025, Bradley Austin Davis. All rights reserved.
3-
* Copyright (c) 2025, Arm Limited and Contributors
1+
/* Copyright (c) 2021-2026, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 2024-2026, Bradley Austin Davis. All rights reserved.
3+
* Copyright (c) 2025-2026, Arm Limited and Contributors
44
*
55
* SPDX-License-Identifier: Apache-2.0
66
*
@@ -36,15 +36,15 @@ VmaAllocator &get_memory_allocator();
3636

3737
/**
3838
* @brief The non-templatized VMA initializer function, referenced by the template version to smooth
39-
* over the differences between the `vkb::Device` and `vkb::core::HPPDevice` classes.
39+
* over the differences between the `vkb::core::Device<bindingType` classes.
4040
* Idempotent, but should be paired with `shutdown`.
4141
* @param create_info The VMA allocator create info.
4242
*/
4343
void init(const VmaAllocatorCreateInfo &create_info);
4444

4545
/**
4646
* @brief Initializes the VMA allocator with the specified device, expressed
47-
* as the `vkb` wrapper class, which might be `vkb::Device` or `vkb::core::HPPDevice`.
47+
* as the `vkb` wrapper class, which might be `vkb::core::DeviceC` or `vkb::core::DeviceCpp`.
4848
* @tparam DeviceType The type of the device.
4949
* @param device The Vulkan device.
5050
*/

0 commit comments

Comments
 (0)