프로그래밍

셰이더 프로그래밍 입문] 관련 프로그램 설치법

민냐옹 2023. 1. 23. 13:51

책 '셰이더 프로그래밍 입문'를 공부하려면 Visual Studio 2019, 렌더몽키, DirectX SDK 등 프로그램과 예제 코드를 설치해야 한다.

 

예제 코드는 저자인 김포프 선생님 블로그에서 다운로드할 수 있다.

https://blog.popekim.com/ko/2012/07/09/intro-to-shader-programming.html

 

셰이더 프로그래밍 입문 | 포프머신

TOP 개발자에게 배우는 컴공수업 | 수업료는 최저시급, 난 최고연봉 | 프로그래밍 공부순서 야근 없이 오직 실력으로 대우받는 프로그래머가 되고 싶다고요? POCU 아카데미에서 시작하세요!

blog.popekim.com

 

Visual Studio는 이 글을 쓰고 있는 현재 Visual Studio 2022이 최신 버전이지만 이미 노트북에 Visual Studio 2019이 깔려있어서 그냥 깔려있는 버전을 썼다.

https://visualstudio.microsoft.com/ko/downloads/

 

Visual Studio Tools 다운로드 - Windows, Mac, Linux용 무료 설치

Visual Studio IDE 또는 VS Code를 무료로 다운로드하세요. Windows 또는 Mac에서 Visual Studio Professional 또는 Enterprise Edition을 사용해 보세요.

visualstudio.microsoft.com

 

렌더몽키는 2008년 12월에 출시된 매우 오래된 프로그램이다. 아래 사이트에서 다운로드 받은 후 설치하면 된다.

https://gpuopen.com/archived/rendermonkey-toolsuite/

 

RenderMonkey™ Toolsuite

RenderMonkey has reached end of life. AMD no longer supports RenderMonkey, but makes it available for download without warranty. RenderMonkey is a rich

gpuopen.com

 

설치법이 제일 복잡한 건 DirectX SDK. 렌더몽키처럼 매우 옛날 프로그램이다.

https://www.microsoft.com/en-us/download/details.aspx?id=6812 

 

Download DirectX Software Development Kit from Official Microsoft Download Center

Important! Selecting a language below will dynamically change the complete page content to that language. Chinese (Simplified)Chinese (Traditional)CzechDutchEnglishFrenchGermanItalianJapaneseKoreanPolishPortuguese (Brazil)RussianSpanishSwedish Download Thi

www.microsoft.com

위 링크에서 프로그램을 다운로드 받은 후 설치를 진행하면 아래 같은 경고창이 뜨면서 설치에 실패한다. S1023 오류가 원인이다.

DirectX SDK가 설치되면서 함께 설치되는 Visual C++ 2010 Redistributable의 과거 버전(10.0.30319 버전)과 내 컴퓨터에 이미 설치된 최신 버전(10.0.40219 버전)이 충돌해서 오류가 발생한 거다.

내 컴퓨터 > 제어판 > 앱 및 기능 페이지에서 Visual C++ 2010 Redistributable 최신 버전들을 지워줘야 한다.

x64, x86 둘다 지워줘야 한다.

오류 관련 설명은 아래 링크에서 자세히 확인할 수 있다.

https://learn.microsoft.com/ko-kr/troubleshoot/windows/win32/s1023-error-when-you-install-directx-sdk

 

DirectX SDK를 설치할 때 S1023 오류 발생 - Application Developer

이 문서에서는 DirectX SDK의 2010년 6월 릴리스를 설치할 때 발생하는 S1023 오류에 대한 해결을 제공합니다.

learn.microsoft.com

 

두 패키지를 지워준 후 DirectX SDK를 다시 설치하면 이제 성공한다. 설치 성공 후 Visual C++ 2010 Redistributable의 과거 버전를 설치한 것이 마음에 걸리면 다시 아래 링크에서 최신 버전을 설치해주면 된다!

https://www.microsoft.com/en-us/download/details.aspx?id=26999 

 

Download Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update from Official Microsoft Download C

Important! Selecting a language below will dynamically change the complete page content to that language. Chinese (Simplified)Chinese (Traditional)EnglishFrenchGermanItalianJapaneseKoreanRussianSpanish Download A security issue has been identified leading

www.microsoft.com

 

필요한 모든 프로그램이 제대로 설치됐다면, 예제 코드를 실행했을 때 정상 작동할 것이다. source > 01_DxFramework > BasicFramework.sln을 열고 디버그 > 디버깅하지 않고 시작을 누르면 아래처럼 작동해야 한다.