adding D3D11 base, working on Vulkan backend

This commit is contained in:
2024-10-08 09:40:39 +02:00
parent 9f753ecae3
commit 8de4b8677b
21 changed files with 755 additions and 16 deletions

BIN
Tests/LoadingPulse/build/LoadingPulse.x86_64 git.filemode.executable_file

Binary file not shown.

15
Tests/LoadingPulse/main.c git.filemode.normal_file
View File

@@ -0,0 +1,15 @@
#include <Pulse.h>
#include <stdio.h>
int main(void)
{
PulseDevice device = PulseCreateDevice(PULSE_BACKEND_ANY, PULSE_SHADER_FORMAT_SPIRV_BIT, PULSE_NO_DEBUG);
if(device == PULSE_NULL_HANDLE)
{
fprintf(stderr, "Error while loading Pulse: %s", PulseVerbaliseErrorType(PulseGetLastErrorType()));
return 1;
}
PulseDestroyDevice(device);
return 0;
}

8
Tests/LoadingPulse/xmake.lua git.filemode.normal_file
View File

@@ -0,0 +1,8 @@
target("LoadingPulse")
add_deps("pulse_gpu")
if is_plat("linux") then
set_extension(".x86_64")
end
add_files("main.c")
set_targetdir("build/")
target_end()

6
Tests/xmake.lua git.filemode.normal_file
View File

@@ -0,0 +1,6 @@
option("tests", { description = "Build tests", default = true })
if has_config("tests") then
set_group("Tests")
includes("*/xmake.lua")
end