Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion framework/core/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ inline void Device<bindingType>::init(std::unordered_map<const char *, bool> con
if (gpu.has_high_priority_graphics_queue() &&
(vkb::common::get_queue_family_index(queue_family_properties, vk::QueueFlagBits::eGraphics) == queue_family_index))
{
queue_priorities.back()[0] = 1.0f;
queue_priorities.back()[0] = 0.5f;
}

queue_create_infos.push_back({.queueFamilyIndex = queue_family_index,
Expand Down
2 changes: 1 addition & 1 deletion samples/api/hello_triangle/hello_triangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void HelloTriangle::init_device()
#endif

// The sample uses a single graphics queue
const float queue_priority = 1.0f;
const float queue_priority = 0.5f;

VkDeviceQueueCreateInfo queue_info{
.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO,
Expand Down
2 changes: 1 addition & 1 deletion samples/api/hello_triangle_1_3/hello_triangle_1_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void HelloTriangleV13::init_device()
.pNext = &enable_vulkan13_features};
// Create the logical device

float queue_priority = 1.0f;
float queue_priority = 0.5f;

// Create one queue
VkDeviceQueueCreateInfo queue_info{
Expand Down
2 changes: 1 addition & 1 deletion samples/api/hpp_hello_triangle/hpp_hello_triangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ vk::Device HPPHelloTriangle::create_device(const std::vector<const char *> &requ
#endif

// Create a device with one queue
float queue_priority = 1.0f;
float queue_priority = 0.5f;
vk::DeviceQueueCreateInfo queue_info{.queueFamilyIndex = graphics_queue_index, .queueCount = 1, .pQueuePriorities = &queue_priority};
vk::DeviceCreateInfo device_info{.queueCreateInfoCount = 1,
.pQueueCreateInfos = &queue_info,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void HPPHelloTriangleV13::init_device()
enabled_features_chain = {{}, {.synchronization2 = true, .dynamicRendering = true}, {.extendedDynamicState = true}};

// Create the logical device
float queue_priority = 1.0f;
float queue_priority = 0.5f;

// Create one queue
vk::DeviceQueueCreateInfo queue_info{.queueFamilyIndex = static_cast<uint32_t>(context.graphics_queue_index),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void FullScreenExclusive::init_device(const std::vector<const char *> &required_
throw std::runtime_error("Required device extensions are missing, will try without.");
}

float queue_priority = 1.0f;
float queue_priority = 0.5f;

VkDeviceQueueCreateInfo queue_info{VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO};
queue_info.queueFamilyIndex = context.graphics_queue_index;
Expand Down
2 changes: 1 addition & 1 deletion samples/tooling/profiles/profiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::unique_ptr<vkb::core::DeviceC> Profiles::create_device(vkb::core::PhysicalD
// Simplified queue setup (only graphics)
uint32_t selected_queue_family = 0;
const auto &queue_family_properties = gpu.get_queue_family_properties();
const float default_queue_priority{0.0f};
const float default_queue_priority{0.5f};
VkDeviceQueueCreateInfo queue_create_info{};
queue_create_info.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
queue_create_info.queueCount = 1;
Expand Down
Loading