Skip to content

Commit 160e617

Browse files
committed
fix copyright and clang-format
1 parent 0e4168f commit 160e617

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

samples/extensions/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
////
2-
- Copyright (c) 2021-2024, The Khronos Group
2+
- Copyright (c) 2021-2025, The Khronos Group
33
-
44
- SPDX-License-Identifier: Apache-2.0
55
-

samples/extensions/shader_relaxed_extended_instruction/shader_relaxed_extended_instruction.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* SPDX-License-Identifier: Apache-2.0
44
*
5-
* Licensed under the Apache License, Version 2.0 the "License";
5+
* Licensed under the Apache License, Version 2.0 the "License";
66
* you may not use this file except in compliance with the License.
77
* You may obtain a copy of the License at
88
*
@@ -27,9 +27,9 @@ static VKAPI_ATTR VkBool32 VKAPI_CALL s_debug_utils_message_callback(
2727
const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData,
2828
void *pUserData)
2929
{
30-
(void)messageSeverity;
31-
(void)messageType;
32-
(void)pUserData;
30+
(void) messageSeverity;
31+
(void) messageType;
32+
(void) pUserData;
3333
if (pCallbackData && pCallbackData->pMessage)
3434
{
3535
LOGI("{}", pCallbackData->pMessage);
@@ -41,7 +41,7 @@ ShaderRelaxedExtendedInstruction::ShaderRelaxedExtendedInstruction()
4141
{
4242
title = "Shader relaxed extended instruction (VK_KHR_shader_relaxed_extended_instruction)";
4343

44-
// Instance prerequisite for feature chaining and layer settings (optional)
44+
// Instance prerequisite for feature chaining and layer settings (optional)
4545
add_instance_extension(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);
4646
add_instance_extension(VK_EXT_LAYER_SETTINGS_EXTENSION_NAME, /*optional*/ true);
4747

@@ -53,7 +53,7 @@ ShaderRelaxedExtendedInstruction::ShaderRelaxedExtendedInstruction()
5353
// Optionally, enable debug printf so shaders using debugPrintfEXT will print via VVL
5454
{
5555
static const char *enables[] = {
56-
"VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT",
56+
"VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT",
5757
};
5858

5959
VkLayerSettingEXT layer_setting{};
@@ -112,8 +112,8 @@ std::unique_ptr<vkb::core::InstanceC> ShaderRelaxedExtendedInstruction::create_i
112112

113113
const char *validation_layer_name = "VK_LAYER_KHRONOS_validation";
114114
auto vvl_properties = std::ranges::find_if(layer_properties, [validation_layer_name](const VkLayerProperties &p) {
115-
return strcmp(p.layerName, validation_layer_name) == 0;
116-
});
115+
return strcmp(p.layerName, validation_layer_name) == 0;
116+
});
117117

118118
if (vvl_properties != layer_properties.end())
119119
{
@@ -255,10 +255,10 @@ void ShaderRelaxedExtendedInstruction::record_minimal_present_cmd(VkCommandBuffe
255255
subresource_range.layerCount = 1;
256256

257257
vkb::image_layout_transition(cmd,
258-
swapchain_buffers[current_buffer].image,
259-
VK_IMAGE_LAYOUT_UNDEFINED,
260-
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
261-
subresource_range);
258+
swapchain_buffers[current_buffer].image,
259+
VK_IMAGE_LAYOUT_UNDEFINED,
260+
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
261+
subresource_range);
262262

263263
VK_CHECK(vkEndCommandBuffer(cmd));
264264
}

samples/extensions/shader_relaxed_extended_instruction/shader_relaxed_extended_instruction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ShaderRelaxedExtendedInstruction : public ApiVulkanSample
2525
ShaderRelaxedExtendedInstruction();
2626
~ShaderRelaxedExtendedInstruction() override;
2727

28-
void build_command_buffers() override; // Not used; per-frame recording in render()
28+
void build_command_buffers() override; // Not used; per-frame recording in render()
2929
void request_gpu_features(vkb::core::PhysicalDeviceC &gpu) override;
3030
bool prepare(const vkb::ApplicationOptions &options) override;
3131
void render(float delta_time) override;

0 commit comments

Comments
 (0)