MoltenVK

(★ 5,795)

MoltenVK는 Vulkan Portability 구현체입니다. 고성능의 업계 표준 Vulkan 그래픽 및 연산 API의 하위 집합을 Apple의 Metal 그래픽 프레임워크 위에 레이어링하여, Vulkan 애플리케이션이 macOS, iOS, tvOS에서 실행될 수 있도록 지원합니다.

파일 탐색기

  • .gitignore
  • CMakeLists.txt
  • CODE_OF_CONDUCT.md
  • fetchDependencies
  • LICENSE
  • Makefile
  • README.md

# 설치 가이드

cmake
사전 준비물

설치 및 실행 절차

brew install cmake python3 ninja

필수 빌드 도구를 설치합니다.

git clone https://github.com/KhronosGroup/MoltenVK.git

MoltenVK 저장소를 복제합니다.

./fetchDependencies --all

외부 종속성 라이브러리를 가져오고 빌드합니다.

핵심 명령어

./fetchDependencies --all

지정된 플랫폼에 대한 외부 오픈소스 의존성을 가져오고 빌드합니다.

fetchDependencies 실행 시 빌드할 플랫폼 옵션(--macos, --ios, --all 등)을 지정해야 합니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

brew install

설명 보기 ▼

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

🔍

clang-format

설명 보기 ▼

C/C++/Java/JavaScript/Objective-C/Protobuf/C# 코드 자동 형식화.
더 많은 정보: <https://clang.llvm.org/docs/ClangFormat.html>.

clang-format {{path/to/file}}

파일 형식을 지정하고 결과를 `stdout`으로 출력:

clang-format -i {{path/to/file}}

그 자리에서 파일 형식을 지정:

clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{path/to/file}}

미리 정의된 코딩 스타일을 사용하여 파일 형식을 지정:

🔍

cmake

설명 보기 ▼

네이티브 빌드 시스템을 위한 빌드 설정 파일을 생성하는, 크로스 플랫폼 빌드 자동화 도구.
더 많은 정보: <https://cmake.org/cmake/help/latest/manual/cmake.1.html>.

cmake {{path/to/project_directory}}

프로젝트 디렉터리의 `CMakeLists.txt`를 사용해 현재 디렉터리에 빌드 설정을 생성:

cmake --build {{path/to/build_directory}}

지정한 디렉터리의 빌드 설정을 사용해 빌드 산출물을 생성:

cmake --install {{path/to/build_directory}} --strip

빌드 산출물을 `/usr/local/`에 설치하고 디버그 심볼을 제거:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

ninja

설명 보기 ▼

빠른 빌드를 위해 설계된 빌드 시스템.
더 많은 정보: <https://ninja-build.org/manual.html>.

ninja

현재 디렉토리에서 빌드:

ninja -j {{4}}

현재 디렉토리에서 빌드하고, 동시에 4개의 작업을 병렬로 실행:

ninja -C {{path/to/directory}}

주어진 디렉토리에서 프로그램 빌드:

🔍

python3

설명 보기 ▼

이 명령은 `python`의 별칭입니다.

tldr python

자세한 내용은 원본 명령을 참고하세요:

// repository documentation