Created
March 4, 2020 22:35
-
-
Save JesseRMeyer/f34fac9cf8cd6887a3ffc051b020cce0 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
pub const enum_VkImageViewType = extern enum(c_int) { | |
1D = 0, | |
2D = 1, | |
3D = 2, | |
CUBE = 3, | |
1D_ARRAY = 4, | |
2D_ARRAY = 5, | |
CUBE_ARRAY = 6, | |
BEGIN_RANGE = 0, | |
END_RANGE = 6, | |
RANGE_SIZE = 7, | |
MAX_ENUM = 2147483647, | |
_, | |
}; | |
var image_view_create_info = VkImageViewCreateInfo { | |
.sType = VkStructureType.IMAGE_VIEW_CREATE_INFO, | |
.pNext = null, | |
.image = zeroes(VkImage), | |
.viewType = VkImageViewType.2D, //NOTE HERE | |
.format = chosen_swap_chain_format.format, | |
.components = VkComponentMapping { | |
.r = VkComponentSwizzle.IDENTITY, | |
.g = VkComponentSwizzle.IDENTITY, | |
.b = VkComponentSwizzle.IDENTITY, | |
.a = VkComponentSwizzle.IDENTITY, | |
}, | |
.subresourceRange = VkImageSubresourceRange { | |
.aspectMask = VkImageAspectFlags.COLOR_BIT, | |
.baseMipLevel = 0, | |
.levelCount = 1, | |
.baseArrayLayer = 0, | |
.layerCount = 1, | |
}, | |
}; | |
//COMPILER ERROR | |
.\vulkan.zig:1973:6: error: invalid character: 'D' | |
2D_ARRAY = 5, | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment