This file contains hidden or 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
set(VULKAN_LIB $ENV{VULKAN_SDK}/Lib) | |
set(VULKAN_INCLUDE $ENV{VULKAN_SDK}/Include) | |
target_link_libraries(${PROJECT_NAME} PUBLIC | |
optimized ${VULKAN_LIB}/spirv-cross-core.lib | |
optimized ${VULKAN_LIB}/spirv-cross-cpp.lib | |
optimized ${VULKAN_LIB}/spirv-cross-glsl.lib | |
optimized ${VULKAN_LIB}/OGLCompiler.lib | |
optimized ${VULKAN_LIB}/OSDependent.lib |
This file contains hidden or 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
#include <vector> | |
#include <iostream> | |
#include <functional> | |
#include <unordered_map> | |
using namespace std; | |
struct Base{ virtual void print() = 0; }; | |
struct A : public Base{ void print() override { cout << "A" << endl; } }; | |
struct B : public Base{ void print() override { cout << "B" << endl; } }; |
This file contains hidden or 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
# pip install pillow | |
import sys | |
import os | |
from PIL import Image | |
def crop_images(directory, x, y, width, height): | |
# サブディレクトリを作成 | |
output_dir = os.path.join(directory, "cropped") |
This file contains hidden or 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
#pragma once | |
#include <condition_variable> | |
#include <functional> | |
#include <mutex> | |
#include <queue> | |
#include <thread> | |
#include <vector> | |
// Job: 任意のタスクを表すクラス | |
class Job { |
This file contains hidden or 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
param( | |
[string]$ProjectName | |
) | |
if (-not $ProjectName) { | |
Write-Host "Usage: .\gen_cpp_project.ps1 <ProjectName>" | |
exit | |
} | |
# 1) 現在の年を取得 |
OlderNewer