Last active
March 1, 2020 17:34
-
-
Save JesseRMeyer/8479e582bd5034ee090f70e274d3d2da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const validation_layer = "VK_LAYER_KHRONOS_validation"; | |
const test_struct = struct { | |
ppEnabledLayerNames: [*c]const [*c]const u8, | |
}; | |
var testing = test_struct { | |
.ppEnabledLayerNames = &validation_layer, | |
}; | |
// | |
.\win32_tbd.zig:101:9: error: expected type '[*c]const [*c]const u8', found '*const *const [27:0]u8' | |
const validation_layer = "VK_LAYER_KHRONOS_validation"; | |
^ | |
.\win32_tbd.zig:101:9: note: pointer type child '*const [27:0]u8' cannot cast into pointer type child '[*c]const u8' const validation_layer = "VK_LAYER_KHRONOS_validation"; | |
^ | |
.\win32_tbd.zig:101:9: note: pointer type child '[27:0]u8' cannot cast into pointer type child 'u8' | |
const validation_layer = "VK_LAYER_KHRONOS_validation"; | |
^ | |
.\win32_tbd.zig:107:37: note: referenced here | |
.ppEnabledLayerNames = &validation_layer, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment