{"id":2461,"date":"2022-03-14T01:31:21","date_gmt":"2022-03-13T16:31:21","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=2461"},"modified":"2022-03-14T01:31:21","modified_gmt":"2022-03-13T16:31:21","slug":"2022-3-13%e6%97%a5","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-3-13%e6%97%a5\/","title":{"rendered":"2022\/3\/13(\u65e5)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3053\u3093\u306a\u30da\u30fc\u30b8\u3092\u898b\u3064\u3051\u305f\u3002Vulkan\u5165\u9580\u306e\u3042\u3061\u3053\u3061\u3092\u76f4\u3055\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3055\u305d\u3046\u3067\u9b31\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/KhronosGroup\/Vulkan-Guide\/blob\/master\/chapters\/common_pitfalls.adoc\">https:\/\/github.com\/KhronosGroup\/Vulkan-Guide\/blob\/master\/chapters\/common_pitfalls.adoc<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ABC226-E \u81ea\u529bAC\u3002\u6027\u8cea\u3092\u8003\u5bdf\u3059\u308c\u3070\u3001\u30eb\u30fc\u30d7\u304c1\u500b\u306e\u9023\u7d50\u6210\u5206\u306e\u307f2\u901a\u308a\u306e\u5411\u304d\u4ed8\u3051\u304c\u3042\u308a\u5f97\u3066\u3001\u30eb\u30fc\u30d7\u304c\u306a\u3044\u6728\u3060\u3063\u305f\u308a\u30eb\u30fc\u30d7\u304c2\u500b\u4ee5\u4e0a\u3042\u308b\u30b0\u30e9\u30d5\u3060\u3068\u6761\u4ef6\u3092\u6e80\u305f\u3059\u5411\u304d\u4ed8\u3051\u65b9\u6cd5\u306f\u306a\u3044\u3053\u3068\u304c\u5206\u304b\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30eb\u30fc\u30d7\u3092\u6570\u3048\u308b\u65b9\u6cd5\u3092\u5c11\u3057\u60a9\u3093\u3060\u304c\u7d50\u5c40\u30eb\u30fc\u30d7\u3092\u5f8b\u5100\u306b\u6570\u3048\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u306a\u3082\u308a\u30b0\u30e9\u30d5\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u3055\u3048\u3067\u304d\u308c\u3070\u3044\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u3001UnionFind\u3067\u9023\u7d50\u6210\u5206\u3092\u8abf\u3079\u3066\u5404\u9023\u7d50\u6210\u5206\u3054\u3068\u306b\u8fba\u306e\u6570\uff1d\u9802\u70b9\u306e\u6570\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u308c\u3070\u3088\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u8fd1\u306eABC\u6c34\u304f\u3089\u3044\u304c\u4eca\u306e\u81ea\u5206\u306b\u306f\u3061\u3087\u3046\u3069\u3044\u3044\u96e3\u6613\u5ea6\u306b\u611f\u3058\u308b\u306a\u2026ARC\u6c34\u3084AGC\u6c34\u306f\u300c\u7406\u89e3\u4e0d\u80fd\u300d\u307f\u305f\u3044\u306a\u985e\u3067\u306f\u306a\u3044\u3057\u3001\u3080\u3057\u308d\u8a00\u308f\u308c\u308c\u3070\u96e3\u306a\u304f\u5206\u304b\u308b\u3082\u306e\u3070\u304b\u308a\u3060\u304c\u3001\u5929\u624d\u904e\u304e\u3066\u30bc\u30ed\u304b\u3089\u89e3\u6cd5\u3092\u601d\u3044\u3064\u304f\u306e\u306f\u96e3\u3057\u304f\u611f\u3058\u308b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Vulkan\u5165\u9580\u3092\u66f8\u304d\u9032\u3081\u305f\u3002\u30e1\u30e2\u30ea\u95a2\u9023\u306e\u6982\u5ff5\u306e\u547c\u3073\u5206\u3051\u65b9\u306b\u82e6\u616e\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u7269\u7406\u7684\u306a\u5b9f\u4f53\u3068\u3057\u3066\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3068GPU\u306e\u30e1\u30e2\u30ea(\u3044\u308f\u3086\u308bVRAM)\u304c\u3042\u308a\u3001CPU\u304b\u3089\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306b\u3057\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u304cGPU\u304b\u3089\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308b\u3002CPU\u5185\u8535GPU\u306a\u3069\u306e\u5834\u5408\u306f\u307b\u307c\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3092\u4f7f\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3057\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u304a\u3088\u3073Vulkan API\u4e0a\u306e\u6982\u5ff5\u3068\u3057\u3066\u306f\u3001\u666e\u901a\u306e\u5909\u6570\u3092\u7f6e\u304f\u666e\u901a\u306e\u30e1\u30e2\u30ea(\u30b9\u30bf\u30c3\u30af\u30e1\u30e2\u30ea\u3084\u30d2\u30fc\u30d7\u30e1\u30e2\u30ea\u306a\u3069)\u304c\u307e\u305a\u3042\u308a\u3001\u305d\u308c\u3068\u306f\u5225\u306bVulkan\u3067\u78ba\u4fdd\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea(vk::DeviceMemory)\u304c\u3042\u308b\u3002\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u76f4\u63a5\u64cd\u4f5c\u3067\u304d\u305a\u3001\u89e6\u308b\u5834\u5408\u306b\u306f\u666e\u901a\u306e\u30e1\u30e2\u30ea\u306b\u30de\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u306f\u30a4\u30b3\u30fc\u30ebVRAM\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u306f\u306a\u3044\u3089\u3057\u3044\u3002\u6700\u8fd1\u307e\u3067\u8aa4\u89e3\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u306fGPU\u304b\u3089\u89e6\u308c\u308b\u30e1\u30e2\u30ea\u3092\u8868\u3059\u3082\u306e\u3067\u3042\u308a\u3001\u6307\u3059\u5148\u306fVRAM\u3067\u3042\u308b\u5834\u5408\u3082\u3042\u308c\u3070\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3067\u3042\u308b\u5834\u5408\u3082\u3042\u308b\u3002\u305d\u3057\u3066Vulkan\u3068\u3044\u3046API\u306e\u8a2d\u8a08\u3068\u3057\u3066\u306f\u3001\u305d\u306e\u6307\u3059\u5148\u304cVRAM\u306a\u306e\u304b\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306a\u306e\u304b\u306a\u3069\u306f\u30d7\u30ed\u30b0\u30e9\u30de\u306f\u77e5\u3089\u306a\u304f\u3066\u3044\u3044\u3068\u3044\u3046\u5f62\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u521d\u5b66\u8005\u76f8\u624b\u306b\u8aac\u660e\u3059\u308b\u5206\u306b\u306f\u30cf\u30fc\u30c9\u5bc4\u308a\u306e\u7d30\u304b\u3044\u4e8b\u60c5\u306e\u8aac\u660e\u306f\u51fa\u6765\u308b\u3060\u3051\u907f\u3051\u305f\u3044\u3068\u81ea\u5206\u306f\u8003\u3048\u3066\u3044\u308b(\u305d\u3082\u305d\u3082Vulkan\u81ea\u4f53\u30cf\u30fc\u30c9\u5bc4\u308a\u306a\u3082\u306e\u306a\u306e\u3067\u7121\u7406\u304c\u3042\u308b\u304c)\u3002\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3068VRAM\u306e\u8a73\u3057\u3044\u4e8b\u60c5\u306e\u8aac\u660e\u306f\u907f\u3051\u3001\u300c\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u300d\u3068\u300c\u666e\u901a\u306e\u5909\u6570\u3092\u7f6e\u3044\u3066\u304a\u304f\u666e\u901a\u306e\u30e1\u30e2\u30ea\u300d\u3068\u3044\u30462\u8ef8\u3067\u306e\u8aac\u660e\u306b\u3057\u305f\u3044\u306e\u3060\u304c\u3001\u3059\u308b\u3068\u300c\u666e\u901a\u306e\u30e1\u30e2\u30ea\u300d\u306e\u826f\u3044\u547c\u79f0\u304c\u5206\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u304f\u308b\u3002\u300c\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u300d\u3068\u547c\u3073\u305f\u3044\u3068\u3053\u308d\u3060\u304c\u3001\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u3082\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3067\u3042\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u300cGPU\u306f\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u306b\u3057\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u300d\u306f\u771f\u3060\u304c\u300cGPU\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u300d\u306a\u3069\u3068\u8a00\u3046\u3068\u3053\u308c\u306f\u507d\u3067\u3042\u308b\u3002\u3046\u304b\u3064\u306b\u300cGPU\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3092\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\u306b\u79fb\u3059\u5fc5\u8981\u304c\u3042\u308b\u300d\u306a\u3069\u3068\u66f8\u3053\u3046\u3082\u306e\u306a\u3089\u3053\u308c\u306f\u9593\u9055\u3063\u305f\u60c5\u5831\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u300cGPU\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u666e\u901a\u306e\u30e1\u30e2\u30ea\u7a7a\u9593\u300d\u306e\u826f\u3044\u547c\u79f0\u306f\u306a\u3044\u3082\u306e\u304b\u3002\u3053\u308c\u3055\u3048\u3042\u308c\u3070\u5168\u3066\u4e0a\u624b\u304f\u3044\u304f\u306e\u3060\u304c\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u653e\u7f6e\u3057\u3066\u3044\u308b\u30e9\u30ba\u30d1\u30a4\u30d4\u30b3\u3092\u4f7f\u3063\u3066\u307f\u308b\u305f\u3081\u306b\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3060\u304c\u3001\u4f55\u3084\u3063\u3066\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u901a\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CMake\u3067\u3084\u3063\u3066\u3044\u3053\u3046\u3068\u601d\u3063\u305f\u304c\u3069\u3046\u8a2d\u5b9a\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u3002\u30cd\u30c3\u30c8\u306e\u3042\u308b\u8a18\u4e8b\u3060\u3068MSYS\u304c\u304a\u3059\u3059\u3081\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u308f\u3056\u308f\u3056MSYS\u3092\u5165\u308c\u3066\u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u304c\u7d50\u5c40\u3069\u3046\u3084\u3063\u3066\u3082\u6b7b\u306c\u306e\u3067\u3001WSL\u3092\u4f7f\u3063\u3066\u304a\u3068\u306a\u3057\u304f\u516c\u5f0f\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u307f\u305f\u3002\u3057\u304b\u3057\u305d\u308c\u3082\u30c0\u30e1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CMAKE_C_COMPILER\u3068CMAKE_CXX_COMPILER\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u306e\u306b\u30b3\u30f3\u30d1\u30a4\u30e9\u306d\u30fc\u305e\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u3067\u308b\u306e\u3067\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eCMake\u306e\u30ec\u30b7\u30d4\u306e\u4e2d\u3067SDK\u4e2d\u306eCMake\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3002\u305d\u3093\u306a\u306e\u3042\u308a\u304b\u3088\uff1fexport\u3067\u74b0\u5883\u5909\u6570CC\u3068CXX\u306b\u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u6307\u5b9a\u3057\u305f\u3089\u901a\u3063\u305f\u3002\u3053\u3046\u3059\u308c\u3070\u6a2a\u65ad\u7684\u306b\u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u6307\u5b9a\u3067\u304d\u308b\u3002\u3057\u304b\u3057\u4eca\u5ea6\u306f\u5225\u306e\u30a8\u30e9\u30fc\u3002\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d3\u30eb\u30c9\u304c\u901a\u3089\u3093\u3068\u3002\u77e5\u308b\u304b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">_exit\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u8a00\u3063\u3066\u3044\u308b\u3002\u306a\u3093\u304b\u3057\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u7d50\u5408\u3055\u308c\u3066\u306a\u3044\u307f\u305f\u3044\u306a\u611f\u3058\u306b\u898b\u3048\u308b\u3002\u3082\u3057\u304f\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u3079\u304d\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u306a\u3044\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306a\u30da\u30fc\u30b8\u3092\u898b\u3064\u3051\u305f\u3002Vulkan\u5165\u9580\u306e\u3042\u3061\u3053\u3061\u3092\u76f4\u3055\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3055\u305d\u3046\u3067\u9b31\u3002 https:\/\/github.com\/KhronosGroup\/Vulkan-Guide\/blob\/master\/chapters\/co &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-3-13%e6%97%a5\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/3\/13(\u65e5)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2461","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=2461"}],"version-history":[{"count":3,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2461\/revisions"}],"predecessor-version":[{"id":2464,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2461\/revisions\/2464"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=2461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=2461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=2461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}