mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
adding D3D11 base, working on Vulkan backend
This commit is contained in:
BIN
Tests/LoadingPulse/build/LoadingPulse.x86_64
git.filemode.executable_file
BIN
Tests/LoadingPulse/build/LoadingPulse.x86_64
git.filemode.executable_file
Binary file not shown.
15
Tests/LoadingPulse/main.c
git.filemode.normal_file
15
Tests/LoadingPulse/main.c
git.filemode.normal_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
8
Tests/LoadingPulse/xmake.lua
git.filemode.normal_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
6
Tests/xmake.lua
git.filemode.normal_file
@@ -0,0 +1,6 @@
|
||||
option("tests", { description = "Build tests", default = true })
|
||||
|
||||
if has_config("tests") then
|
||||
set_group("Tests")
|
||||
includes("*/xmake.lua")
|
||||
end
|
||||
Reference in New Issue
Block a user