mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
The last of the Winlator lineage rewritten out; rumble on the phone
The five files the audit measured as Winlator's are replaced: a one-method callback interface by java.util.function.Consumer, the component base by SessionPart (attach an application context, start, stop), the environment list by HostEnvironment, the process starter by HostProcess, and the pad's state holder by PadState with named sticks, triggers, directions and buttons. The frame-generation tree is framegen/ (its contents were never Winlator's: lsfg-vk's port and Bannerlator's Win-FG), the log tags are the app's, and the fake pad's rumble socket is now one the app actually serves: RumbleComponent turns a game's force-feedback effects into the phone's vibrator, which used to go nowhere. The two design notes describing Bannerlator's X11 path are gone, and the README and credits say what is whose.
This commit is contained in:
1 parent
2fb79735c3
commit
9cfb96e358
84 files changed
+493
-1771
No files matched your search
@@ -0,0 +1,56 @@
|
||||
// See winfg_vkd.h.
|
||||
#include "winfg_vkd.h"
|
||||
#include "../VulkanRendererContext.h"
|
||||
#include <android/log.h>
|
||||
|
||||
bool winfgVkdInit(const VkTable& table, winfg::DeviceDispatch& dd, winfg::InstanceDispatch& id) {
|
||||
bool ok = true;
|
||||
#define COPY(dst, fn) \
|
||||
do { \
|
||||
dst.fn = table.fn; \
|
||||
if (!dst.fn) { \
|
||||
__android_log_print(ANDROID_LOG_ERROR, "WinFgVkd", \
|
||||
"entry point vk" #fn " did not resolve"); \
|
||||
ok = false; \
|
||||
} \
|
||||
} while (0)
|
||||
COPY(dd, AllocateDescriptorSets);
|
||||
COPY(dd, AllocateMemory);
|
||||
COPY(dd, BindBufferMemory);
|
||||
COPY(dd, BindImageMemory);
|
||||
COPY(dd, CmdBindDescriptorSets);
|
||||
COPY(dd, CmdBindPipeline);
|
||||
COPY(dd, CmdClearColorImage);
|
||||
COPY(dd, CmdCopyImage);
|
||||
COPY(dd, CmdDispatch);
|
||||
COPY(dd, CmdPipelineBarrier);
|
||||
COPY(dd, CreateBuffer);
|
||||
COPY(dd, CreateComputePipelines);
|
||||
COPY(dd, CreateDescriptorPool);
|
||||
COPY(dd, CreateDescriptorSetLayout);
|
||||
COPY(dd, CreateImage);
|
||||
COPY(dd, CreateImageView);
|
||||
COPY(dd, CreatePipelineLayout);
|
||||
COPY(dd, CreateSampler);
|
||||
COPY(dd, CreateShaderModule);
|
||||
COPY(dd, DestroyBuffer);
|
||||
COPY(dd, DestroyDescriptorPool);
|
||||
COPY(dd, DestroyDescriptorSetLayout);
|
||||
COPY(dd, DestroyImage);
|
||||
COPY(dd, DestroyImageView);
|
||||
COPY(dd, DestroyPipeline);
|
||||
COPY(dd, DestroyPipelineLayout);
|
||||
COPY(dd, DestroySampler);
|
||||
COPY(dd, DestroyShaderModule);
|
||||
COPY(dd, DeviceWaitIdle);
|
||||
COPY(dd, FreeMemory);
|
||||
COPY(dd, GetBufferMemoryRequirements);
|
||||
COPY(dd, GetImageMemoryRequirements);
|
||||
COPY(dd, MapMemory);
|
||||
COPY(dd, ResetDescriptorPool);
|
||||
COPY(dd, UnmapMemory);
|
||||
COPY(dd, UpdateDescriptorSets);
|
||||
COPY(id, GetPhysicalDeviceMemoryProperties);
|
||||
#undef COPY
|
||||
return ok;
|
||||
}
|
||||
Reference in new issue
Block a user