Minor Cleanup

This commit is contained in:
2026-05-01 20:31:42 +03:00
parent c10031ac95
commit 4bcafb0c46
8 changed files with 14 additions and 21 deletions
+5 -8
View File
@@ -2,16 +2,13 @@
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"type": "codelldb",
"request": "launch",
"name": "c",
"stdio": [
"input.txt",
null
],
"preLaunchTask": "Compile",
"name": "Debug evk (codelldb)",
"preLaunchTask": "Build",
"expressions": "native",
"program": "${workspaceFolder}/build/evk.exe"
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/build/evk"
}
]
}
+5 -5
View File
@@ -1,11 +1,11 @@
[binaries]
c = 'clang-19'
c_ld = 'lld-19'
cpp = 'clang++-19'
cpp_ld = 'lld-19'
c = 'clang'
c_ld = 'lld'
cpp = 'clang++'
cpp_ld = 'lld'
[properties]
c_args = ['-DEV_CC_CLANG=1','-fcolor-diagnostics', '-fansi-escape-codes', '-fms-extensions']
[cmake]
CMAKE_C_COMPILER = 'clang-19'
CMAKE_C_COMPILER = 'clang'
+1 -1
View File
@@ -108,7 +108,7 @@ evkDescriptorSetLayout evkCreateDescriptorSetLayoutFromShaders(evkDevice* device
vec(evkDescriptorBinding) bindings = vec_init(evkDescriptorBinding);
for(int i = 0; i < vec_len(&shaders); i++)
{
vec_append(&bindings, &shaders[i].reflect.bindings, vec_len(&shaders[i].reflect.bindings));
vec_append(&bindings, (void**)&shaders[i].reflect.bindings, vec_len(&shaders[i].reflect.bindings));
}
evkDescriptorBindingDedup(bindings);
return evkCreateDescriptorSetLayoutFromBindings(device, bindings);
+1 -1
View File
@@ -210,7 +210,7 @@ evkPipeline evkCreateGraphicsPipeline(evkDevice device, evkPipelineCreateInfo cr
.layout = res.layout.vk,
};
vkCreateGraphicsPipelines(device.vk, VK_NULL_HANDLE, 1, &graphicsPipelineCreateInfo, NULL, &res.vk);
EVK_ASSERT(vkCreateGraphicsPipelines(device.vk, VK_NULL_HANDLE, 1, &graphicsPipelineCreateInfo, NULL, &res.vk));
res._device = device;
+1 -1
View File
@@ -36,7 +36,7 @@ evkSwapChain evkCreateSwapChain(evkSwapChainCreateInfo createInfo)
if(imageExtent.width == UInt32.MAX)
imageExtent.width = createInfo.width;
if(imageExtent.height == UInt32.MAX)
imageExtent.height = createInfo.width;
imageExtent.height = createInfo.height;
VkSwapchainCreateInfoKHR swapChainCreateInfo = {
.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
+1 -1
View File
@@ -8,7 +8,7 @@ vulkan_dep = dependency('vulkan').partial_dependency(compile_args : true)
volk_inc = include_directories('.')
volk_src = files('volk_impl.c')
volk_src = files('volk.c')
volk_lib = library(
'volk',
@@ -1,2 +0,0 @@
#define VOLK_IMPLEMENTATION
#include "volk.h"
-2
View File
@@ -1,2 +0,0 @@
[wrap-redirect]
filename = shaderc/subprojects/shaderc_cmake.wrap