Загрузка...

Setup SDL 3 GPU with CMake and vcpkg in C++ with SDL main callbacks

sdl3-ttf, sdl3-image, glm and sdl shadercross are also included!

code:
https://github.com/CodesOtakuYT/codotaku_sdl

chapters:

00:00 Create project
00:40 Setup vcpkg as a submodule and CMakePresets.json
06:20 Add sdl3, sdl3-image and sdl3-ttf using vcpkg
09:20 Add sdl3, sdl3-image and sdl3-ttf into CMake
11:20 Setup SDL main callbacks with a C++ app class
25:00 Initializing SDL and custom log category
29:05 Create SDL window using unique_ptr with a custom deleter
31:40 Handling events
39:40 Create SDL GPU device using unique_ptr with a custom deleter
45:00 Printing SDL GPU drivers supported
47:10 Printing selected SDL GPU driver
48:30 Setup preferred GPU drivers list selection with fallbacks
55:40 Setting app metadata using SDL_SetAppMetadata
57:50 Switching CLion toolchain using CMakePresets.json
58:45 Adding clang-cl in windows with C++ modules to CLion
01:02:50 Claim the window using the GPU device (creating swapchain)
01:03:40 Acquiring command buffer and swapchain texture
01:05:40 Change swapchain parameters (srgb, hdr, vsync, etc...)
01:07:20 Change swapchain present mode to mailbox if supported with fallback to vsync
01:10:35 Submit command buffer
01:11:40 Clearing window using a render pass
01:20:45 A red window! Congrats you're an AAA graphics developer now
01:21:10 Download SDL shader cross to cross compile shaders to all SDL 3 GPU backends
01:22:50 Add glm using vcpkg
01:24:55 Add shadercross to system path and how to cross compile shaders

Видео Setup SDL 3 GPU with CMake and vcpkg in C++ with SDL main callbacks канала Codotaku
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять