我正在尝试使用https://github.com/ParticlePeter/ErupteD
问题是我需要一个隐藏在版本后面的特定于平台的功能。该版本本身使用一个名为 的模块xcb-d
,该模块不在该库的配音配置文件中。
// VK_KHR_xcb_surface
version(VK_USE_PLATFORM_XCB_KHR) {
public import xcb.xcb;
enum VK_KHR_XCB_SURFACE_SPEC_VERSION = 6;
enum VK_KHR_XCB_SURFACE_EXTENSION_NAME = "VK_KHR_xcb_surface";
alias VkXcbSurfaceCreateFlagsKHR = VkFlags;
struct VkXcbSurfaceCreateInfoKHR {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
const(void)* pNext;
VkXcbSurfaceCreateFlagsKHR flags;
xcb_connection_t* connection;
xcb_window_t window;
}
}
https://github.com/ParticlePeter/ErupteD/blob/master/source/erupted/types.d#L3333
据我所知,xcb 没有配置https://github.com/ParticlePeter/ErupteD/blob/master/dub.json
我目前只是做
dependency "erupted" version="~>1.1.1"
subConfiguration "erupted" "with-derelict-loader"
versions "VK_USE_PLATFORM_XCB_KHR"
source/erupted/types.d(3335,16):错误:模块 xcb 位于无法读取的文件“xcb/xcb.d”中
是否可以为依赖项指定依赖项?