fix: DD-FG 3x/4x flicker and rebrand Win-FG to DD-FG (#1132)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-19 11:21:32 -04:00
1 parent ab6d100cea
commit 2415ff0518
62 files changed
+353 -324

No files matched your search

@@ -0,0 +1,55 @@
#include "ddfg_vkd.h"
#include "../VulkanRendererContext.h"
#include <android/log.h>
bool ddfgVkdInit(const VkTable& table, ddfg::DeviceDispatch& dd, ddfg::InstanceDispatch& id) {
bool ok = true;
#define COPY(dst, fn) \
do { \
dst.fn = table.fn; \
if (!dst.fn) { \
__android_log_print(ANDROID_LOG_ERROR, "DdFgVkd", \
"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;
}