Skip to content

Instantly share code, notes, and snippets.

@JesseRMeyer
Last active March 1, 2020 17:34
Show Gist options
  • Save JesseRMeyer/8479e582bd5034ee090f70e274d3d2da to your computer and use it in GitHub Desktop.
Save JesseRMeyer/8479e582bd5034ee090f70e274d3d2da to your computer and use it in GitHub Desktop.
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