major refactor and add a camera

change asset loading of images to be sRGB
use wayland by default on linux unless we are running under renderdoc
changed shaders to be combined vertex and fragment in a single file
require Vulkan 1.3 and enable shaderDrawParameters
This commit is contained in:
Sven Balzer
2025-03-08 19:39:40 +01:00
parent d80ffe7c79
commit 88da989ad7
15 changed files with 1843 additions and 2253 deletions
+9 -1
View File
@@ -11070,7 +11070,7 @@ static Uint8 VULKAN_INTERNAL_CreateInstance(VulkanRenderer *renderer)
appInfo.applicationVersion = 0;
appInfo.pEngineName = "SDLGPU";
appInfo.engineVersion = SDL_VERSION;
appInfo.apiVersion = VK_MAKE_VERSION(1, 0, 0);
appInfo.apiVersion = VK_MAKE_VERSION(1, 3, 0);
createFlags = 0;
@@ -11504,6 +11504,14 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
deviceCreateInfo.ppEnabledExtensionNames = deviceExtensions;
deviceCreateInfo.pEnabledFeatures = &desiredDeviceFeatures;
VkPhysicalDeviceVulkan11Features device_features_vulkan11 = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES,
.pNext = (void *)deviceCreateInfo.pNext,
.shaderDrawParameters = VK_TRUE,
};
deviceCreateInfo.pNext = &device_features_vulkan11;
vulkanResult = renderer->vkCreateDevice(
renderer->physicalDevice,
&deviceCreateInfo,