Skip to content

Instantly share code, notes, and snippets.

VkResult queryVkExternalMemoryProperties( //
VkPhysicalDevice physicalDevice, //
VkFormat format, //
VkImageType type, //
VkImageTiling tiling, //
VkImageUsageFlags usage, //
VkImageCreateFlags flags, //
VkExternalMemoryHandleTypeFlagBits handleType, //
VkExternalMemoryProperties* externalMemoryProperties)
std::ifstream is("input.dat");
is.seekg(0, std::ios_base::end);
std::size_t size=is.tellg();
is.seekg(0, std::ios_base::beg);
std::string s(size/sizeof(char), 0);
is.read((char*) &s[0], size);
is.close();