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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user